Disable statement timeout when removing redundant stages
This commit is contained in:
parent
2cce501f45
commit
394c1c6588
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue