Rollback to a set version instead of an arbitrary number of steps
The previously hard-coded value can fail when new migrations are introduced since multiple migrations may need to be rolled back atomically. Closes #40302
This commit is contained in:
parent
be0ce05c5d
commit
e06f678cd8
1 changed files with 1 additions and 1 deletions
|
@ -544,7 +544,7 @@ migration:path-mysql:
|
|||
.db-rollback: &db-rollback
|
||||
<<: *dedicated-no-docs-pull-cache-job
|
||||
script:
|
||||
- bundle exec rake db:rollback STEP=119
|
||||
- bundle exec rake db:migrate VERSION=20170523121229
|
||||
- bundle exec rake db:migrate
|
||||
|
||||
db:rollback-pg:
|
||||
|
|
Loading…
Reference in a new issue