projects
/
akkoma
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fixed migration the settings to DB
[akkoma]
/
priv
/
repo
/
migrations
/
20200603122732_add_seen_index_to_chat_message_references.exs
1
defmodule Pleroma.Repo.Migrations.AddSeenIndexToChatMessageReferences do
2
use Ecto.Migration
3
4
def change do
5
create(
6
index(:chat_message_references, [:chat_id],
7
where: "seen = false",
8
name: "unseen_messages_count_index"
9
)
10
)
11
end
12
end