1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/src/migrations/20231211133920-add-created-by-to-roles.js
Christopher Kolstad 150e6b03dc
feat: add column created_by to roles table (#5595)
Tracking who creates roles
2023-12-11 15:40:17 +01:00

7 lines
201 B
JavaScript

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