mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-26 13:48:33 +02: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