mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Remove unique constraint of user_id and event_types on webhooks table
This commit is contained in:
parent
071c3799c2
commit
b206f8e6b1
2 changed files with 18 additions and 0 deletions
9
packages/db/migrations/0111.do.remove_unique_key_on_webhooks.sql
Executable file
9
packages/db/migrations/0111.do.remove_unique_key_on_webhooks.sql
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
-- Type: DO
|
||||
-- Name: remove_unique_key_on_webhooks
|
||||
-- Description: Remove unique constraint of user_id and event_types on webhooks table
|
||||
|
||||
BEGIN;
|
||||
|
||||
ALTER TABLE omnivore.webhooks DROP CONSTRAINT webhooks_user_id_event_types_key;
|
||||
|
||||
COMMIT;
|
||||
9
packages/db/migrations/0111.undo.remove_unique_key_on_webhooks.sql
Executable file
9
packages/db/migrations/0111.undo.remove_unique_key_on_webhooks.sql
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
-- Type: UNDO
|
||||
-- Name: remove_unique_key_on_webhooks
|
||||
-- Description: Remove unique constraint of user_id and event_types on webhooks table
|
||||
|
||||
BEGIN;
|
||||
|
||||
ALTER TABLE omnivore.webhooks ADD CONSTRAINT webhooks_user_id_event_types_key UNIQUE (user_id, event_types);
|
||||
|
||||
COMMIT;
|
||||
Loading…
Reference in a new issue