-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Account for "holes" in the existing migrations in PlanMigration
If there are migrations missing before the last run migration, for example because of a merge, migrate up to the latest run migration first before applying the user-requested migrations. Example: if the existing migrations in the database are: - 1 - 3 and the existing migrations on disk are: - 1 - 2 - 3 - 4 - 5 For "up, n=0" (3=>5) one would expect these migrations to run: - up 2 - up 4 - up 5 For "up, n=1" (3=>4) one would expect: - up 2 - up 4 For "down, n=1" (3=>2) one would expect: - up 2 - down 3 - down 2 etc.
- Loading branch information
Showing
2 changed files
with
108 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters