Fix migration removing duplicate stages on MySQL again

parent b97b4d25
Pipeline #16611950 failed with stages
in 43 minutes and 48 seconds
......@@ -23,6 +23,7 @@ class RemoveRedundantPipelineStages < ActiveRecord::Migration
execute <<~SQL
DELETE a FROM ci_stages AS a, ci_stages AS b
WHERE a.pipeline_id = b.pipeline_id AND a.name = b.name
AND a.id <> b.id
SQL
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment