mirror of
https://github.com/arthur-pbty/portfolio2023.git
synced 2026-06-15 00:02:54 +02:00
restart portfolio
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const Env_1 = __importDefault(global[Symbol.for('ioc.use')]("Adonis/Core/Env"));
|
||||
const Application_1 = __importDefault(global[Symbol.for('ioc.use')]("Adonis/Core/Application"));
|
||||
const databaseConfig = {
|
||||
connection: Env_1.default.get('DB_CONNECTION'),
|
||||
connections: {
|
||||
sqlite: {
|
||||
client: 'sqlite',
|
||||
connection: {
|
||||
filename: Application_1.default.tmpPath('db.sqlite3'),
|
||||
},
|
||||
pool: {
|
||||
afterCreate: (conn, cb) => {
|
||||
conn.run('PRAGMA foreign_keys=true', cb);
|
||||
}
|
||||
},
|
||||
migrations: {
|
||||
naturalSort: true,
|
||||
},
|
||||
useNullAsDefault: true,
|
||||
healthCheck: false,
|
||||
debug: false,
|
||||
},
|
||||
}
|
||||
};
|
||||
exports.default = databaseConfig;
|
||||
//# sourceMappingURL=database.js.map
|
||||
Reference in New Issue
Block a user