Disable statement timeout when removing redundant stages

This commit is contained in:
Grzegorz Bizon 2018-02-07 13:09:53 +01:00
parent 2cce501f45
commit 394c1c6588
1 changed files with 2 additions and 0 deletions

View File

@ -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