mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-09 13:47:13 +02:00
fix: do not allow creating cr for same environment
This commit is contained in:
parent
097f1d3af5
commit
b1f6b76841
@ -16,7 +16,7 @@ exports.up = (db, callback) => {
|
||||
SELECT id FROM ranked WHERE rn > 1
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX unique_pending_request_per_user_project_env
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS unique_pending_request_per_user_project_env
|
||||
ON change_requests (created_by, project, environment)
|
||||
WHERE state NOT IN ('Applied', 'Cancelled', 'Rejected', 'Scheduled');
|
||||
`,
|
||||
|
Loading…
Reference in New Issue
Block a user