-
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.
* Add --strict-order flag * Limit --strict-order flag to appropriate verbs Limits the ´--strict-order´ flag to the up, migrate and status verb. * Rename --strict-flag to --strict * Throw error on strict numerical order conflict * Identify latest applied migration only in strict mode * Change wording of strict mode error message * Update usage text * Check pending migrations version in `Migrate()` instead of `FindMigrations()` * Change wording of strict mode error message * Check only pending migrations in `Migrate()` * Check only first pending migration FindMigrations returns a sorted list so we only need to check the first pending migration. * Abort migration if no pending migrations files exist * Abort migration with no error if no pending migrations files exist A return error is not in line with tests. * Derive highest applied version number from migration list * Undo refactor to find applied migrations * Dump schema even if no migrations are applied * Fix backwards-incompatible breaking condition * Add tests for strict mode * Fix tests * Remove whitespaces --------- Co-authored-by: Adrian Macneil <adrian@foxglove.dev>
- Loading branch information
1 parent
8bbf517
commit 1658a46
Showing
4 changed files
with
110 additions
and
5 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
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