mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
20 lines
344 B
JavaScript
20 lines
344 B
JavaScript
|
exports.up = function (db, cb) {
|
||
|
db.runSql(
|
||
|
`
|
||
|
ALTER table users
|
||
|
ADD COLUMN IF NOT EXISTS is_service boolean DEFAULT false
|
||
|
`,
|
||
|
cb,
|
||
|
);
|
||
|
};
|
||
|
|
||
|
exports.down = function (db, cb) {
|
||
|
db.runSql(
|
||
|
`
|
||
|
ALTER table users
|
||
|
DROP COLUMN is_service
|
||
|
`,
|
||
|
cb,
|
||
|
);
|
||
|
};
|