Commit 5eb4a472 authored by Lin Jen-Shin's avatar Lin Jen-Shin

We cannot delete the index for MySQL, because fk

foreign key, I mean.
parent 411bd9c5
......@@ -12,7 +12,7 @@ class AddUniqueConstraintToCiVariables < ActiveRecord::Migration
def down
if index_exists?(:ci_variables, columns)
if index_exists?(:ci_variables, columns) && Gitlab::Database.postgresql?
remove_concurrent_index(:ci_variables, columns)
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