Replies: 2 comments 1 reply
-
I don't think I'm familiar with this scenario. When would a migration version less than the schema version be run? |
Beta Was this translation helpful? Give feedback.
-
This could be a problem if for example both migrations modify the same column. |
Beta Was this translation helpful? Give feedback.
-
This is a doc issue.
There was code introduced several versions ago that appears to handle the situation of a new migration appearing with a filename timestamp lower than the latest one run that will result in that migration still being run. That is different than how things worked at a point (and therefore there is now-incorrect data on the web for it) and important info in general.
This out-of-order behavior should be in the guide.
My personal suggestion would be having a section titled something like "Migrations and Version Control" that talks about it in the context of when you need to re-number migrations and when you don't since that is the main place this issue comes up.
Beta Was this translation helpful? Give feedback.
All reactions