1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/src/migrations/20230309174400-add-project-segment-permission.js
2023-03-10 10:34:26 +01:00

15 lines
376 B
JavaScript

exports.up = function (db, cb) {
db.runSql(
`INSERT INTO permissions (permission, display_name, type) VALUES
('UPDATE_PROJECT_SEGMENT', 'Create/edit project segment', 'project');`,
cb,
);
};
exports.down = function (db, cb) {
db.runSql(
`DELETE FROM permissions WHERE permission = 'UPDATE_PROJECT_SEGMENT';`,
cb,
);
};