1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/src/migrations/20221103125732-change-request-remove-unique.js

23 lines
562 B
JavaScript
Raw Normal View History

'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,
);
};