-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
4376 message verification fails bc of duplicated missing leaves in th…
…e message table (#4440) * feat: replace pk on messages tb * fix: duplicated insert of messages * test: fix tests of client * chore: zapatos
- Loading branch information
1 parent
8b7ba3e
commit 10ceea9
Showing
5 changed files
with
128 additions
and
16 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
packages/adapters/database/db/migrations/20230608135754_replace_pk_messages.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 @@ | ||
-- migrate:up | ||
ALTER TABLE public.messages DROP CONSTRAINT messages_pkey; | ||
ALTER TABLE public.messages ADD PRIMARY KEY (origin_domain, index); | ||
|
||
CREATE INDEX messages_domain_leaf_idx ON public.messages (origin_domain, leaf); | ||
|
||
-- migrate:down | ||
DROP INDEX IF EXISTS messages_domain_leaf_idx; |
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
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