From a12f223c8dd29eaa0e41306c4b780f662873fc0c Mon Sep 17 00:00:00 2001 From: Christopher Kolstad Date: Mon, 11 Dec 2023 14:31:16 +0100 Subject: [PATCH] feat: add column created_by to role_user table --- .../20231211133008-add-created-by-to-role-user.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/migrations/20231211133008-add-created-by-to-role-user.js diff --git a/src/migrations/20231211133008-add-created-by-to-role-user.js b/src/migrations/20231211133008-add-created-by-to-role-user.js new file mode 100644 index 000000000000..63dd2eba439a --- /dev/null +++ b/src/migrations/20231211133008-add-created-by-to-role-user.js @@ -0,0 +1,7 @@ +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); +}; \ No newline at end of file