mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
38e428dacf
* fix: remove group user role
20 lines
364 B
JavaScript
20 lines
364 B
JavaScript
'use strict';
|
|
|
|
exports.up = function (db, cb) {
|
|
db.runSql(
|
|
`
|
|
ALTER TABLE group_user DROP COLUMN IF EXISTS role;
|
|
`,
|
|
cb,
|
|
);
|
|
};
|
|
|
|
exports.down = function (db, cb) {
|
|
db.runSql(
|
|
`
|
|
ALTER TABLE group_user ADD COLUMN role text check(role in ('Owner', 'Member')) default 'Member';
|
|
`,
|
|
cb,
|
|
);
|
|
};
|