From 769185ea55f0b654b31a6d66ecd3ccecd96a677c Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 11 Mar 2024 01:31:25 +0200 Subject: [PATCH] add pkey to migration --- migrations/20240309-add-private-chats.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/migrations/20240309-add-private-chats.sql b/migrations/20240309-add-private-chats.sql index b72da947a..a50f6facd 100644 --- a/migrations/20240309-add-private-chats.sql +++ b/migrations/20240309-add-private-chats.sql @@ -102,3 +102,6 @@ alter table chat_notifications alter table chat_notifications add constraint chat_notifications_chat_fkey foreign key (chat_id) references chats(id); + +alter table chat_notifications + add constraint chat_notifications_pkey primary key (user_id, chat_message_id);