Fix bug after merge

This commit is contained in:
Alexandre Bodin 2021-09-21 15:32:49 +02:00
parent 5b0ac47435
commit 00a43df7bf
3 changed files with 1 additions and 3 deletions

View File

@ -4,7 +4,6 @@ const sqlite = {
filename: '.tmp/data.db', filename: '.tmp/data.db',
}, },
useNullAsDefault: true, useNullAsDefault: true,
debug: true,
}; };
const postgres = { const postgres = {

View File

@ -14,7 +14,6 @@ class SqliteDialect extends Dialect {
this.schemaInspector = new SqliteSchmeaInspector(db); this.schemaInspector = new SqliteSchmeaInspector(db);
} }
// TODO: use strapi.dir
configure() { configure() {
this.db.config.connection.connection.filename = path.resolve( this.db.config.connection.connection.filename = path.resolve(
this.db.config.connection.connection.filename this.db.config.connection.connection.filename

View File

@ -23,7 +23,7 @@ const migrationResolver = path => {
}; };
const createUmzugProvider = db => { const createUmzugProvider = db => {
const migrationDir = path.join(strapi.dir, 'database/migrations'); const migrationDir = path.join(strapi.dirs.root, 'database/migrations');
fse.ensureDirSync(migrationDir); fse.ensureDirSync(migrationDir);