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 themigrationstable.I also added a note about the new command when "Unable to find migration..." error messages are given in two of the
Migratorclasses.Issue #1002