diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2017-06-22 08:57:11 +0300 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2017-06-22 08:57:11 +0300 |
commit | b3edcfeb51d7930ad0330e401f2ef5f27ee9671c (patch) | |
tree | a8d34dec7a3923f9ef807373980d62c2247ca394 /db/post_migrate/20170526185921_migrate_build_stage_reference.rb | |
parent | 31573d98f9e34a4fec6c41e0e8c8f3151e8837b5 (diff) | |
parent | 261e4fe8d8e6c01d0278a9e3770fe78d75336a07 (diff) |
Merge branch '9-3-stable-rc7' into '9-3-stable'
Prepare 9.3 RC7
See merge request !12348
Diffstat (limited to 'db/post_migrate/20170526185921_migrate_build_stage_reference.rb')
-rw-r--r-- | db/post_migrate/20170526185921_migrate_build_stage_reference.rb | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/db/post_migrate/20170526185921_migrate_build_stage_reference.rb b/db/post_migrate/20170526185921_migrate_build_stage_reference.rb index 797e106cae4..98c32d8284c 100644 --- a/db/post_migrate/20170526185921_migrate_build_stage_reference.rb +++ b/db/post_migrate/20170526185921_migrate_build_stage_reference.rb @@ -3,23 +3,17 @@ class MigrateBuildStageReference < ActiveRecord::Migration DOWNTIME = false - def up - disable_statement_timeout - - stage_id = Arel.sql <<-SQL.strip_heredoc - (SELECT id FROM ci_stages - WHERE ci_stages.pipeline_id = ci_builds.commit_id - AND ci_stages.name = ci_builds.stage) - SQL + ## + # This is an empty migration, content has been moved to a new one: + # post migrate 20170526190000 MigrateBuildStageReferenceAgain + # + # See gitlab-org/gitlab-ce!12337 for more details. - update_column_in_batches(:ci_builds, :stage_id, stage_id) do |table, query| - query.where(table[:stage_id].eq(nil)) - end + def up + # noop end def down - disable_statement_timeout - - update_column_in_batches(:ci_builds, :stage_id, nil) + # noop end end |