From 150e6b03dc9b12e00b5a9118945dac2a5e4e6b41 Mon Sep 17 00:00:00 2001 From: Christopher Kolstad Date: Mon, 11 Dec 2023 15:40:17 +0100 Subject: [PATCH] feat: add column created_by to roles table (#5595) Tracking who creates roles --- src/migrations/20231211133920-add-created-by-to-roles.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/migrations/20231211133920-add-created-by-to-roles.js diff --git a/src/migrations/20231211133920-add-created-by-to-roles.js b/src/migrations/20231211133920-add-created-by-to-roles.js new file mode 100644 index 0000000000..b44b5e34ff --- /dev/null +++ b/src/migrations/20231211133920-add-created-by-to-roles.js @@ -0,0 +1,7 @@ +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); +}; \ No newline at end of file