mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
0f250ba06c
As it says on the tin. In an attempt to make all operations in Unleash traceable to an originator. This PR adds created_by to role_permission, which will show which user assigned a permission to a role.
7 lines
221 B
JavaScript
7 lines
221 B
JavaScript
exports.up = function(db, cb) {
|
|
db.runSql(`ALTER TABLE role_permission ADD COLUMN created_by INTEGER`, cb);
|
|
};
|
|
|
|
exports.down = function(db, cb) {
|
|
db.runSql(`ALTER TABLE role_permission DROP COLUMN created_by`, cb);
|
|
}; |