Skip to content

Commit 32165a8

Browse files
committed
See if this helps with schema usage
1 parent d9d9cd4 commit 32165a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

migrations/umzug/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ const { Umzug, SequelizeStorage } = require('umzug');
55
// Initialize Sequelize
66
const sequelize = new Sequelize(config.get('dbConfig.masterUrl'), {
77
dialect: 'postgres',
8+
schema: config.get('dbConfig.schema'),
9+
dialectOptions: {
10+
prependSearchPath: true
11+
},
12+
searchPath: config.get('dbConfig.schema'),
813
});
914

1015
// Initialize Umzug

0 commit comments

Comments
 (0)