Files
omnivore/packages/db/migrations/0111.undo.remove_unique_key_on_webhooks.sql

10 lines
266 B
PL/PgSQL
Executable File

-- 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;