Question

Most of my migrations are by number, not timestamp, but 5 or 6 of them (the most recent) are with timestamp. 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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top