Skip to content

Commit

Permalink
feat: add created_by to role_permission table (#5592)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Christopher Kolstad authored Dec 11, 2023
1 parent ed220c0 commit 0f250ba
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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);
};

0 comments on commit 0f250ba

Please sign in to comment.