1
0
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:
Ivar Conradi Østhus 2022-01-11 14:02:58 +01:00
parent 52ee1f148b
commit 64f9d512e9
No known key found for this signature in database
GPG Key ID: 31AC596886B0BD09

View File

@ -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();
};