1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-17 01:17:29 +02:00

feat: environment required approvals migration (#9612)

This commit is contained in:
Mateusz Kwasniewski 2025-03-25 15:33:58 +01:00 committed by GitHub
parent a672292425
commit 497cbcdef2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,19 @@
'use strict';
exports.up = function (db, callback) {
db.runSql(
`
ALTER TABLE environments ADD COLUMN required_approvals INTEGER;
`,
callback,
);
};
exports.down = function (db, callback) {
db.runSql(
`
ALTER TABLE environments DROP COLUMN IF EXISTS required_approvals;
`,
callback,
);
};