Commit graph

2 commits

Author SHA1 Message Date
Yorick Peterse
fd4ad65462
Fix migration for removing MR diff indexes
For whatever reason on some PostgreSQL installations there would be a
separate UNIQUE constraint on the merge_request_id column. Rails'
index_exists?() returns false for this constraint (even when using the
full name), yet the indexes() method returns it.

This commit changes the migration so that the constraint is dropped as
well. MySQL installations don't appear to be affected.

Fixes gitlab-org/gitlab-ce#22136
2016-09-14 16:18:49 +02:00
Dmitriy Zaporozhets
2acb8a3085 Change merge request diff index to be not uniq
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-08-02 13:31:19 +03:00