mirror of
https://github.com/Unleash/unleash.git
synced 2025-11-24 20:06:55 +01:00
fix: Role permission empty string for non environment type
This commit is contained in:
parent
52ee1f148b
commit
64f9d512e9
@ -0,0 +1,13 @@
|
|||||||
|
exports.up = function (db, cb) {
|
||||||
|
db.runSql(
|
||||||
|
`
|
||||||
|
UPDATE role_permission SET environment = '' where permission_id NOT IN
|
||||||
|
(select id from permissions WHERE type = 'environment');
|
||||||
|
`,
|
||||||
|
cb,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
exports.down = function (db, cb) {
|
||||||
|
cb();
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue
Block a user