parent
eb4e92c53c
commit
e9f4a78784
2 changed files with 2 additions and 3 deletions
src/db
|
@ -116,9 +116,8 @@ class Db {
|
||||||
}
|
}
|
||||||
|
|
||||||
public async sync() {
|
public async sync() {
|
||||||
console.log('Syncing databases');
|
console.log('⌛ Syncing database');
|
||||||
await this.migrations.up();
|
await this.migrations.up();
|
||||||
console.log('Database sync completed');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -9,7 +9,7 @@ class Migrations {
|
||||||
storage: new SequelizeStorage({ sequelize: db }),
|
storage: new SequelizeStorage({ sequelize: db }),
|
||||||
context: db.getQueryInterface(),
|
context: db.getQueryInterface(),
|
||||||
migrations: {
|
migrations: {
|
||||||
glob: 'src/db/migrations/*.*s',
|
glob: '**/db/migrations/*.*s',
|
||||||
},
|
},
|
||||||
logger: console,
|
logger: console,
|
||||||
}) as Umzug;
|
}) as Umzug;
|
||||||
|
|
Loading…
Add table
Reference in a new issue