Skip to content

See if this helps with migration connection #826

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions migrations/umzug/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ const { Umzug, SequelizeStorage } = require('umzug');
const sequelize = new Sequelize(config.get('dbConfig.masterUrl'), {
dialect: 'postgres',
schema: config.get('dbConfig.schema'),
dialectOptions: {
prependSearchPath: true

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The prependSearchPath option is not a standard Sequelize option. Ensure that this option is supported by the version of Sequelize being used, or provide a custom implementation if necessary.

},
searchPath: config.get('dbConfig.schema'),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The searchPath option is being set to config.get('dbConfig.schema'). Verify that this value is correctly retrieved from the configuration and matches the expected schema name in the database.

});

// Initialize Umzug
Expand Down