mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 19:04:38 +00:00
Fix bug after merge
This commit is contained in:
parent
5b0ac47435
commit
00a43df7bf
@ -4,7 +4,6 @@ const sqlite = {
|
||||
filename: '.tmp/data.db',
|
||||
},
|
||||
useNullAsDefault: true,
|
||||
debug: true,
|
||||
};
|
||||
|
||||
const postgres = {
|
||||
|
||||
@ -14,7 +14,6 @@ class SqliteDialect extends Dialect {
|
||||
this.schemaInspector = new SqliteSchmeaInspector(db);
|
||||
}
|
||||
|
||||
// TODO: use strapi.dir
|
||||
configure() {
|
||||
this.db.config.connection.connection.filename = path.resolve(
|
||||
this.db.config.connection.connection.filename
|
||||
|
||||
@ -23,7 +23,7 @@ const migrationResolver = path => {
|
||||
};
|
||||
|
||||
const createUmzugProvider = db => {
|
||||
const migrationDir = path.join(strapi.dir, 'database/migrations');
|
||||
const migrationDir = path.join(strapi.dirs.root, 'database/migrations');
|
||||
|
||||
fse.ensureDirSync(migrationDir);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user