-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ffabaf0
commit c735f17
Showing
2 changed files
with
14 additions
and
5 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
migrations/1699887339_notifications-primary-key-includes-client-id.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
ALTER TABLE public.notifications | ||
DROP CONSTRAINT notifications_pkey; | ||
|
||
ALTER TABLE public.notifications | ||
ALTER COLUMN id SET not null; | ||
|
||
ALTER TABLE public.notifications | ||
ADD PRIMARY KEY (id, client_id); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters