1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-01 00:08:27 +01:00
unleash.unleash/src/migrations/20240508153244-feature-lifecycles-status.js

17 lines
464 B
JavaScript

exports.up = function (db, cb) {
db.runSql(`
ALTER TABLE feature_lifecycles ADD COLUMN IF NOT EXISTS status TEXT;
ALTER TABLE feature_lifecycles ADD COLUMN IF NOT EXISTS status_value TEXT;
`, cb);
};
exports.down = function (db, cb) {
db.runSql(
`
ALTER TABLE feature_lifecycles DROP COLUMN IF EXISTS status;
ALTER TABLE feature_lifecycles DROP COLUMN IF EXISTS status_value;
`,
cb,
);
};