Commit 50e98241 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix migration removing duplicate stages on MySQL again

parent b97b4d25
...@@ -23,6 +23,7 @@ class RemoveRedundantPipelineStages < ActiveRecord::Migration ...@@ -23,6 +23,7 @@ class RemoveRedundantPipelineStages < ActiveRecord::Migration
execute <<~SQL execute <<~SQL
DELETE a FROM ci_stages AS a, ci_stages AS b DELETE a FROM ci_stages AS a, ci_stages AS b
WHERE a.pipeline_id = b.pipeline_id AND a.name = b.name WHERE a.pipeline_id = b.pipeline_id AND a.name = b.name
AND a.id <> b.id
SQL SQL
end end
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