mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-01 00:08:27 +01:00
18 lines
340 B
JavaScript
18 lines
340 B
JavaScript
|
exports.up = function (db, cb) {
|
||
|
db.runSql(
|
||
|
`
|
||
|
ALTER TABLE features DROP COLUMN IF EXISTS archived;
|
||
|
`,
|
||
|
cb,
|
||
|
);
|
||
|
};
|
||
|
|
||
|
exports.down = function (db, cb) {
|
||
|
db.runSql(
|
||
|
`
|
||
|
ALTER TABLE features ADD COLUMN IF NOT EXISTS archived BOOLEAN DEFAULT FALSE;
|
||
|
`,
|
||
|
cb,
|
||
|
);
|
||
|
};
|