summaryrefslogtreecommitdiff
path: root/priv/repo/migrations
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-04-10 16:33:45 +0200
committerlain <lain@soykaf.club>2019-04-10 16:33:45 +0200
commit280172f6f6d74872349e3b4e6f1feaa9c95b3900 (patch)
tree06ebc93e02fe36afaef10e558e251de1c14ddfaa /priv/repo/migrations
parent64c1c3a4071f3f99a59f38e2dcde499bda3969cf (diff)
downloadpleroma-280172f6f6d74872349e3b4e6f1feaa9c95b3900.tar.gz
pleroma-280172f6f6d74872349e3b4e6f1feaa9c95b3900.zip
Conversations: Create or bump on inserting a dm.
Diffstat (limited to 'priv/repo/migrations')
-rw-r--r--priv/repo/migrations/20190408123347_create_conversations.exs2
1 files changed, 1 insertions, 1 deletions
diff --git a/priv/repo/migrations/20190408123347_create_conversations.exs b/priv/repo/migrations/20190408123347_create_conversations.exs
index 68bf766bc..0e0af30ae 100644
--- a/priv/repo/migrations/20190408123347_create_conversations.exs
+++ b/priv/repo/migrations/20190408123347_create_conversations.exs
@@ -19,8 +19,8 @@ defmodule Pleroma.Repo.Migrations.CreateConversations do
timestamps()
end
- create index(:conversation_participations, [:user_id])
create index(:conversation_participations, [:conversation_id])
+ create unique_index(:conversation_participations, [:user_id, :conversation_id])
create unique_index(:conversations, [:ap_id])
end
end