Migrate not work some time #479
Replies: 3 comments
-
@AkhmedovSH most likely the migration you're running is hanging for some reason. If you can reproduce this in a minimal example with some specific migrations it can be looked into. |
Beta Was this translation helpful? Give feedback.
-
i take from example async function up({ context: queryInterface }) { async function down({ context: queryInterface }) { module.exports = { up, down }; can this package show concrete error in log it shows only which process run and sql errors but i want to find this process error maybe some if else try catch with console output in up down process i do not know |
Beta Was this translation helpful? Give feedback.
-
There could be many reasons this would happen. Given it's working in development but not production, maybe there's a networking issue so the server can't reach the database in production. I'd suggest adding some log statements, and maybe using |
Beta Was this translation helpful? Give feedback.
-
v3.x (beta version)
SequelizeStorage
node 14.16.0
Vanilla commonjs
Electronjs 12.0.5
Work in dev mode after packaging the project have a problem below
logger.console shows me in dev mode
{ event: 'migrating', name: '00_initial.js' }
[{ event: 'migrated', name: '00_initial.js', durationSeconds: 0.195 }
logger.console shows me in prod mode
{ event: 'migrating', name: '00_initial.js' }
and stop process which mean as i think it starts migration but can not end and not return migrated status to console what can be possible problem?
Beta Was this translation helpful? Give feedback.
All reactions