DEV: Re-apply chat index migration (#29859)
Commit c2a733a95a
was applied to an
existing migration that possibly had already run. Due to this some
discourse instances might not have the correct index.
This change removes the original migration and creates a new one so that
it will actually be applied.
This is the missing index that some sites might not have:
```
Missing Index | CREATE INDEX
index_chat_messages_on_chat_channel_id_and_id ON public.chat_messages
USING btree (chat_channel_id, id) WHERE (deleted_at IS NOT NULL)
```
This commit is contained in:
parent
8210c4c649
commit
23a7f00524
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddIndexToChatMessages < ActiveRecord::Migration[7.0]
|
||||
class AddIndexToChatMessagesOnChatChannelId < ActiveRecord::Migration[7.1]
|
||||
disable_ddl_transaction!
|
||||
|
||||
def up
|
Loading…
Reference in New Issue