1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-11 00:08:30 +01:00
unleash.unleash/src/migrations/20221128165141-change-request-min-approvals.js

18 lines
312 B
JavaScript

exports.up = function (db, cb) {
db.runSql(
`
ALTER TABLE change_requests ADD COLUMN min_approvals INTEGER DEFAULT 1;
`,
cb,
);
};
exports.down = function (db, cb) {
db.runSql(
`
ALTER TABLE change_requests DROP COLUMN min_approvals;
`,
cb,
);
};