add pkey to migration

master
Aevann 2024-03-11 01:31:25 +02:00
parent 1964ca4df3
commit 769185ea55
1 changed files with 3 additions and 0 deletions

View File

@ -102,3 +102,6 @@ alter table chat_notifications
alter table chat_notifications alter table chat_notifications
add constraint chat_notifications_chat_fkey foreign key (chat_id) references chats(id); 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);