1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00
unleash.unleash/src/migrations/20210624115109-drop-enabled-column-from-features.js

24 lines
356 B
JavaScript
Raw Normal View History

exports.up = function (db, cb) {
db.runSql(
`
ALTER TABLE features
DROP COLUMN enabled;
`,
cb,
);
};
exports.down = function (db, cb) {
db.runSql(
`
ALTER TABLE features
ADD COLUMN enabled integer DEFAULT 0;
`,
cb,
);
};
exports._meta = {
version: 1,
};