forked from MarseyWorld/MarseyWorld
add pkey to migration
parent
1964ca4df3
commit
769185ea55
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue