Skip to content

Commit 973ada6

Browse files
committed
umzug: resolve
1 parent 408e66e commit 973ada6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

migrations/umzug/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ const sequelize = new Sequelize(config.get('dbConfig.masterUrl'), {
77
dialect: 'postgres',
88
});
99

10-
console.log('Umzug migrations running in:', __dirname);
10+
console.log('Umzug migration script:', __dirname);
1111

1212
// Initialize Umzug
1313
const umzug = new Umzug({
1414
migrations: {
15-
glob: __dirname + '/migrations/*.js',
15+
glob: '__dirname/migrations/*.js',
1616
resolve: ({ name, path, context }) => {
17+
console.log('Loading migration:', name, path);
1718
const migration = require(path);
1819
return {
1920
name,

0 commit comments

Comments
 (0)