blob: a5065d6129a746ed826535905fc905718c7c4499 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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
|