forked from AkkomaGang/akkoma
13 lines
300 B
Elixir
13 lines
300 B
Elixir
|
defmodule Pleroma.Repo.Migrations.AddUnreadIndexToConversationParticipation do
|
||
|
use Ecto.Migration
|
||
|
|
||
|
def change do
|
||
|
create(
|
||
|
index(:conversation_participations, [:user_id],
|
||
|
where: "read = false",
|
||
|
name: "unread_conversation_participation_count_index"
|
||
|
)
|
||
|
)
|
||
|
end
|
||
|
end
|