开发者

Move schema_migration table to newer version without migrating?

开发者 https://www.devze.com 2023-01-04 14:37 出处:网络
Most of my migrations are by number, not timestamp, but 5 or 6 of them (the most recent) are with time开发者_如何学Cstamp. These I want to move to number based, and now I want to forward the migration

Most of my migrations are by number, not timestamp, but 5 or 6 of them (the most recent) are with time开发者_如何学Cstamp. These I want to move to number based, and now I want to forward the migration table to the appropriate number. How do I force the table to update without actually running the migration, or should I migrate down to 5 or 6 ago (before timestamp) and then migrate up again with numbers?


You either have to edit the corresponding rows in the table by hand, or roll down and back up after renaming. I'm not even sure how the rolling down and up will be handled if the migration numbers are in mixed format.

0

上一篇:

:下一篇

精彩评论

暂无评论...
验证码 换一张
取 消