Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scripts/sql/34604300_unique_constraint_mpc.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- Remove the unique constraint
DROP INDEX IF EXISTS idx_unique_manifest_push_config_app_env;


6 changes: 6 additions & 0 deletions scripts/sql/34604300_unique_constraint_mpc.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

-- Add unique constraint to prevent future duplicates
-- This ensures only one active manifest_push_config per (app_id, env_id) combination
CREATE UNIQUE INDEX IF NOT EXISTS idx_unique_manifest_push_config_app_env
ON manifest_push_config (app_id, env_id)
WHERE deleted = false;