mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
9176ffae1e
This PR adds implements the frontend and migrations part of multiple reviewers. 2 UI parts: 1. Configuration to add the count of required approvals 2. Handle multiple approvers in review page.
26 lines
728 B
JavaScript
26 lines
728 B
JavaScript
'use strict';
|
|
|
|
exports.up = function (db, callback) {
|
|
db.runSql(
|
|
`
|
|
ALTER TABLE change_request_settings ADD COLUMN required_approvals integer default 1;
|
|
|
|
ALTER TABLE change_request_settings
|
|
ADD CONSTRAINT change_request_settings_project_environment_key
|
|
UNIQUE (project, environment)
|
|
`,
|
|
callback,
|
|
);
|
|
};
|
|
|
|
exports.down = function (db, callback) {
|
|
db.runSql(
|
|
`
|
|
ALTER TABLE change_request_settings DROP COLUMN IF EXISTS required_approvals;
|
|
ALTER TABLE change_request_settings
|
|
DROP CONSTRAINT IF EXISTS change_request_settings_project_environment_key;
|
|
`,
|
|
callback,
|
|
);
|
|
};
|