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