mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
20 lines
361 B
JavaScript
20 lines
361 B
JavaScript
|
'use strict';
|
||
|
|
||
|
exports.up = function (db, callback) {
|
||
|
db.runSql(
|
||
|
`
|
||
|
ALTER TABLE features ADD COLUMN IF NOT EXISTS created_by INTEGER;
|
||
|
`,
|
||
|
callback,
|
||
|
);
|
||
|
};
|
||
|
|
||
|
exports.down = function (db, callback) {
|
||
|
db.runSql(
|
||
|
`
|
||
|
ALTER TABLE features DROP COLUMN IF EXISTS created_by;
|
||
|
`,
|
||
|
callback,
|
||
|
);
|
||
|
};
|