Replies: 4 comments
-
After further investigation, it appears to also be fixed by providing umzug a separate sequelize instance to the one you use for models. This issue occurred when I was unit testing, so the unit tests and umzug shared a sequelize instance which was causing the problem. The impact of this fix is small so I'm happy for this issue to be closed but I am curious why this happens. |
Beta Was this translation helpful? Give feedback.
-
A note in the docs about this would be very welcome. Umzug isn’t coupled to sequelize so if you use sequelize you need to be aware about how it caches models etc. |
Beta Was this translation helpful? Give feedback.
-
MigrationError: Migration 00000_initial.ts (down) failed: Original error: Cannot set properties of undefined (setting 'supportsSearchPath') I am completely clueless as to why I am getting this error. Any ideas from you guys? Or how I could get around it? |
Beta Was this translation helpful? Give feedback.
-
I had this issue for dropTable in my up() function. Maybe your issue is similiar. |
Beta Was this translation helpful? Give feedback.
-
An issue that appears when using umuz and sequelize when you have enums in your migrations and models.
Minimum viable example: https://github.com/lededje/migration-bug
expected result: Migrations are run up and then down
actual result:
If you checkout the
working
branch, and repeat the test (with a clean db) the migrations run as expected.Beta Was this translation helpful? Give feedback.
All reactions