projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'freebsd-docs' into 'develop'
[akkoma]
/
priv
/
repo
/
migrations
/
20200603105113_add_unique_index_to_chat_message_references.exs
diff --git
a/priv/repo/migrations/20200603105113_add_unique_index_to_chat_message_references.exs
b/priv/repo/migrations/20200603105113_add_unique_index_to_chat_message_references.exs
index 1101be94f566e868cbac4d64b4fe5ed1a407265e..fdf85132ed370be180886c300a1818891c06051a 100644
(file)
--- a/
priv/repo/migrations/20200603105113_add_unique_index_to_chat_message_references.exs
+++ b/
priv/repo/migrations/20200603105113_add_unique_index_to_chat_message_references.exs
@@
-1,13
+1,6
@@
-defmodule Pleroma.Repo.Migrations.
Backfill
ChatMessageReferences do
+defmodule Pleroma.Repo.Migrations.
AddUniqueIndexTo
ChatMessageReferences do
use Ecto.Migration
use Ecto.Migration
- alias Pleroma.Chat
- alias Pleroma.ChatMessageReference
- alias Pleroma.Object
- alias Pleroma.Repo
-
- import Ecto.Query
-
def change do
create(unique_index(:chat_message_references, [:object_id, :chat_id]))
end
def change do
create(unique_index(:chat_message_references, [:object_id, :chat_id]))
end