1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

feat: optional change request feature (#4394)

This commit is contained in:
Mateusz Kwasniewski 2023-08-03 11:22:35 +02:00 committed by GitHub
parent a01aa7e355
commit 64b00fa52d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,20 @@
'use strict';
exports.up = function (db, callback) {
db.runSql(
`
ALTER TABLE change_request_events ALTER COLUMN feature DROP NOT NULL;
`,
callback,
);
};
exports.down = function (db, callback) {
db.runSql(
`
DELETE FROM change_request_events WHERE feature IS NULL;
ALTER TABLE change_request_events ALTER COLUMN feature SET NOT NULL;
`,
callback,
);
};