Commit 768757d3 authored by Arturo Herrero's avatar Arturo Herrero

Remove index from chat_names and service_id

parent f2eb8558
---
title: Remove index from chat_names and service_id
merge_request: 37054
author:
type: other
# frozen_string_literal: true
class RemoveIndexChatNameServiceId < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
remove_concurrent_index :chat_names, :service_id
end
def down
add_concurrent_index :chat_names, :service_id
end
end
72c7ca9e1284483e653d6d8dc16103f104502d7cd569cb3f7ab75e932807a661
\ No newline at end of file
......@@ -18997,8 +18997,6 @@ CREATE INDEX index_boards_on_project_id ON public.boards USING btree (project_id
CREATE INDEX index_broadcast_message_on_ends_at_and_broadcast_type_and_id ON public.broadcast_messages USING btree (ends_at, broadcast_type, id);
CREATE INDEX index_chat_names_on_service_id ON public.chat_names USING btree (service_id);
CREATE UNIQUE INDEX index_chat_names_on_service_id_and_team_id_and_chat_id ON public.chat_names USING btree (service_id, team_id, chat_id);
CREATE UNIQUE INDEX index_chat_names_on_user_id_and_service_id ON public.chat_names USING btree (user_id, service_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