mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
102713eeca
Remove uniqueness
23 lines
562 B
JavaScript
23 lines
562 B
JavaScript
'use strict';
|
|
|
|
exports.up = function (db, callback) {
|
|
db.runSql(
|
|
`
|
|
ALTER TABLE change_request_events
|
|
DROP CONSTRAINT change_request_events_feature_action_change_request_id_key
|
|
`,
|
|
callback,
|
|
);
|
|
};
|
|
|
|
exports.down = function (db, callback) {
|
|
db.runSql(
|
|
`
|
|
ALTER TABLE change_request_events
|
|
ADD CONSTRAINT change_request_events_feature_action_change_request_id_key
|
|
UNIQUE (feature, action, change_request_id);
|
|
`,
|
|
callback,
|
|
);
|
|
};
|