Commit ffa845bf authored by Siddharth Asthana's avatar Siddharth Asthana

Remove index_merge_requests_on_title index from merge_requests table

Changelog: other
parent 54f16dd7
# frozen_string_literal: true
class RemoveIndexFromMergeRequests < Gitlab::Database::Migration[1.0]
disable_ddl_transaction!
INDEX_NAME = 'index_merge_requests_on_title'
def up
remove_concurrent_index :merge_requests, :title, name: INDEX_NAME
end
def down
add_concurrent_index :merge_requests, :title, name: INDEX_NAME
end
end
72c7e04b1a34154c894f93da800c15c717c3340d34729577538d539881d2e8ca
\ No newline at end of file
...@@ -26649,8 +26649,6 @@ CREATE INDEX index_merge_requests_on_target_project_id_and_updated_at_and_id ON ...@@ -26649,8 +26649,6 @@ CREATE INDEX index_merge_requests_on_target_project_id_and_updated_at_and_id ON
CREATE INDEX index_merge_requests_on_target_project_id_iid_jira_description ON merge_requests USING btree (target_project_id, iid) WHERE (description ~ '[A-Z][A-Z_0-9]+-\d+'::text); CREATE INDEX index_merge_requests_on_target_project_id_iid_jira_description ON merge_requests USING btree (target_project_id, iid) WHERE (description ~ '[A-Z][A-Z_0-9]+-\d+'::text);
CREATE INDEX index_merge_requests_on_title ON merge_requests USING btree (title);
CREATE INDEX index_merge_requests_on_title_trigram ON merge_requests USING gin (title gin_trgm_ops); CREATE INDEX index_merge_requests_on_title_trigram ON merge_requests USING gin (title gin_trgm_ops);
CREATE INDEX index_merge_requests_on_tp_id_and_merge_commit_sha_and_id ON merge_requests USING btree (target_project_id, merge_commit_sha, id); CREATE INDEX index_merge_requests_on_tp_id_and_merge_commit_sha_and_id ON merge_requests USING btree (target_project_id, merge_commit_sha, id);
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