Skip to content

Commit afe1778

Browse files
committed
migration unique constraint on mpc
1 parent f568052 commit afe1778

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-- Remove the unique constraint
2+
DROP INDEX IF EXISTS idx_unique_manifest_push_config_app_env;
3+
4+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
-- Add unique constraint to prevent future duplicates
3+
-- This ensures only one active manifest_push_config per (app_id, env_id) combination
4+
CREATE UNIQUE INDEX IF NOT EXISTS idx_unique_manifest_push_config_app_env
5+
ON manifest_push_config (app_id, env_id)
6+
WHERE deleted = false;

0 commit comments

Comments
 (0)