1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

feat: add created_by to role_permission table (#5592)

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.
This commit is contained in:
Christopher Kolstad 2023-12-11 15:39:44 +01:00 committed by GitHub
parent ed220c0b89
commit 0f250ba06c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,7 @@
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);
};