From 7ab89382a9f5bde461c20a952354bc47a53f82ed Mon Sep 17 00:00:00 2001 From: nick Date: Tue, 5 Nov 2024 13:41:17 +0900 Subject: [PATCH] fix: drop constraint --- node/migrations/node/000035_update_feed_contraint.down.sql | 2 +- node/migrations/node/000035_update_feed_contraint.up.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/node/migrations/node/000035_update_feed_contraint.down.sql b/node/migrations/node/000035_update_feed_contraint.down.sql index 12a35296c..4d431ad47 100644 --- a/node/migrations/node/000035_update_feed_contraint.down.sql +++ b/node/migrations/node/000035_update_feed_contraint.down.sql @@ -1,2 +1,2 @@ -DROP INDEX IF EXISTS feeds_name_config_id_key_idx; +ALTER TABLE feeds DROP CONSTRAINT IF EXISTS feeds_name_config_id_key_idx; CREATE UNIQUE INDEX feeds_name_key ON feeds (name); \ No newline at end of file diff --git a/node/migrations/node/000035_update_feed_contraint.up.sql b/node/migrations/node/000035_update_feed_contraint.up.sql index ecfc7c098..c3744561f 100644 --- a/node/migrations/node/000035_update_feed_contraint.up.sql +++ b/node/migrations/node/000035_update_feed_contraint.up.sql @@ -1,2 +1,2 @@ -DROP INDEX IF EXISTS feeds_name_key; +ALTER TABLE feeds DROP CONSTRAINT IF EXISTS feeds_name_key; CREATE UNIQUE INDEX feeds_name_config_id_key_idx ON feeds (name, config_id); \ No newline at end of file