Commit 5ba6edd4 authored by Adam Hegyi's avatar Adam Hegyi

Merge branch 'remove_epics_index' into 'master'

Remove redundant index on epics

See merge request gitlab-org/gitlab!59494
parents cfeeaa61 d150e188
---
title: Remove redundant index from epics
merge_request: 59494
author:
type: other
# frozen_string_literal: true
class RemoveIndexEpicsOnGroupIdFromEpics < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
INDEX_NAME = 'index_epics_on_group_id'
disable_ddl_transaction!
def up
remove_concurrent_index_by_name :epics, INDEX_NAME
end
def down
add_concurrent_index :epics, :group_id, name: INDEX_NAME
end
end
d237690af576fb5a85d984416dcca1936a140a10a9b6c968d3ff57419568fb8f
\ No newline at end of file
......@@ -22603,8 +22603,6 @@ CREATE INDEX index_epics_on_due_date_sourcing_milestone_id ON epics USING btree
CREATE INDEX index_epics_on_end_date ON epics USING btree (end_date);
CREATE INDEX index_epics_on_group_id ON epics USING btree (group_id);
CREATE UNIQUE INDEX index_epics_on_group_id_and_external_key ON epics USING btree (group_id, external_key) WHERE (external_key IS NOT NULL);
CREATE UNIQUE INDEX index_epics_on_group_id_and_iid ON epics USING btree (group_id, iid);
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