summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20200831115854_add_unread_index_to_conversation_participation.exs
blob: 68771c65566e3906381ea97fc57bf8965443b8f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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