1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/src/migrations/20231211133008-add-created-by-to-role-user.js
Christopher Kolstad 4f7b3aa759
feat: add column created_by to role_user table (#5594)
As it says in the title. Adds a created_by column to the role_user table
to more easily track who's doing what.
2023-12-11 15:40:02 +01:00

7 lines
209 B
JavaScript

exports.up = function(db, cb) {
db.runSql(`ALTER TABLE role_user ADD COLUMN created_by INTEGER`, cb);
};
exports.down = function(db, cb) {
db.runSql(`ALTER TABLE role_user DROP COLUMN created_by`, cb);
};