diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-02-07 13:09:53 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-02-07 13:09:53 +0100 |
commit | 394c1c65883883d5ac8bcbeecd9fe05b1d3fd87b (patch) | |
tree | 866e3f23cddd8863b64b04fc28f58417b85da744 /db | |
parent | 2cce501f452e84d9fe8c27bd0291e4984c12bc4c (diff) | |
download | gitlab-ce-394c1c65883883d5ac8bcbeecd9fe05b1d3fd87b.tar.gz |
Disable statement timeout when removing redundant stages
Diffstat (limited to 'db')
-rw-r--r-- | db/post_migrate/20180119121225_remove_redundant_pipeline_stages.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/db/post_migrate/20180119121225_remove_redundant_pipeline_stages.rb b/db/post_migrate/20180119121225_remove_redundant_pipeline_stages.rb index 1962c16d84a..61ea85eb2a7 100644 --- a/db/post_migrate/20180119121225_remove_redundant_pipeline_stages.rb +++ b/db/post_migrate/20180119121225_remove_redundant_pipeline_stages.rb @@ -38,6 +38,8 @@ class RemoveRedundantPipelineStages < ActiveRecord::Migration end def remove_redundant_pipeline_stages! + disable_statement_timeout + redundant_stages_ids = <<~SQL SELECT id FROM ci_stages WHERE (pipeline_id, name) IN ( SELECT pipeline_id, name FROM ci_stages |