-
-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
migrate:clean bakery command #1007
migrate:clean bakery command #1007
Conversation
Also updated messages in Migrator classes that command can be run to remove stale migrations.
It looks like the |
Looks good. I'll test the actual command when I get the chance, but it could be quite useful in development. Might just add a |
Add help, add -f option to bypass confirmation prompt
Added help message and |
Codecov Report
@@ Coverage Diff @@
## hotfix #1007 +/- ##
============================================
- Coverage 68.3% 67.97% -0.34%
- Complexity 2141 2151 +10
============================================
Files 159 160 +1
Lines 7289 7325 +36
============================================
Hits 4979 4979
- Misses 2310 2346 +36
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## hotfix #1007 +/- ##
============================================
- Coverage 68.3% 66.73% -1.58%
+ Complexity 2141 2088 -53
============================================
Files 159 160 +1
Lines 7283 6861 -422
============================================
- Hits 4975 4579 -396
+ Misses 2308 2282 -26
Continue to review full report at Codecov.
|
This command removes stale migrations from the database. These missing migration classes prevent other
migrate:*
commands from running until the missing class files are either added back to the file system or manually dropped from themigrations
table.I also added a note about the new command when "Unable to find migration..." error messages are given in two of the
Migrator
classes.Issue #1002