mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-07-07 22:35:51 +00:00
13 lines
272 B
Elixir
13 lines
272 B
Elixir
|
defmodule Pleroma.Repo.Migrations.AddSeenIndexToChatMessageReferences do
|
||
|
use Ecto.Migration
|
||
|
|
||
|
def change do
|
||
|
create(
|
||
|
index(:chat_message_references, [:chat_id],
|
||
|
where: "seen = false",
|
||
|
name: "unseen_messages_count_index"
|
||
|
)
|
||
|
)
|
||
|
end
|
||
|
end
|