mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-09 00:18:00 +01:00
migration: cors root role permission (#9080)
after https://github.com/Unleash/unleash/pull/8996
This commit is contained in:
parent
cc55d8dfa8
commit
af1b6c8c37
13
src/migrations/20250110130010-add-permission-cors.js
Normal file
13
src/migrations/20250110130010-add-permission-cors.js
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
exports.up = function (db, cb) {
|
||||||
|
db.runSql(`
|
||||||
|
INSERT INTO permissions (permission, display_name, type) VALUES ('UPDATE_CORS', 'Update CORS settings', 'root');
|
||||||
|
`, cb);
|
||||||
|
}
|
||||||
|
|
||||||
|
exports.down = function (db, cb) {
|
||||||
|
db.runSql(`
|
||||||
|
DELETE FROM permissions WHERE permission IN ('UPDATE_CORS');
|
||||||
|
`, cb);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user