summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-03-22 15:44:35 -0700
committerStan Hu <stanhu@gmail.com>2018-03-22 15:45:46 -0700
commite06f678cd8687b600f1d6a8f9f397fa1c74136a2 (patch)
treea3af701c23d1e7cbdc2eb8767869a06251dda715
parentbe0ce05c5d07b0b27be243f0a3d57b662dcab1af (diff)
downloadgitlab-ce-sh-improve-rollback-test.tar.gz
Rollback to a set version instead of an arbitrary number of stepssh-improve-rollback-test
The previously hard-coded value can fail when new migrations are introduced since multiple migrations may need to be rolled back atomically. Closes #40302
-rw-r--r--.gitlab-ci.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 724e37141d6..70f41e4dc98 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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: