-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: idempotency is per-client (#275)
- Loading branch information
1 parent
f3c5dd6
commit 1905c8b
Showing
3 changed files
with
32 additions
and
9 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
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