forked from rubenv/sql-migrate
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return error from PlanMigration when unknown migration in the database
As discussed in GitHub issue rubenv#43 the PlanMigration function would not allow running migrations when the there are already applied migrations in the database which are not part of the migration source. In such cases the user have to decide what to do. This also fixes a bug where running the `up` migration would result in success exit status while nothing has been done.
- Loading branch information
Showing
2 changed files
with
117 additions
and
0 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