1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00
unleash.unleash/src/migrations/20221221144132-service-account-users.js

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