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
Christopher Kolstad ff7be7696c
fix: Stores as typescript and with interfaces. (#902)
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-08-12 15:04:37 +02:00

24 lines
356 B
JavaScript

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,
};