Commit f67d8eb1 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Drop the index only for postgresql, because

mysql cannot simply drop the index without dropping the corresponding
foreign key, and we certainly don't want to drop the foreign key
here.
parent c9fbbb3a
......@@ -10,6 +10,7 @@ class AddIndexToProjectAuthorizations < ActiveRecord::Migration
end
def down
remove_index(:project_authorizations, :project_id)
remove_index(:project_authorizations, :project_id) if
Gitlab::Database.postgresql?
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