From ed220c0b897e796f94e7f039e3106da48759c41d Mon Sep 17 00:00:00 2001 From: Christopher Kolstad Date: Mon, 11 Dec 2023 15:39:07 +0100 Subject: [PATCH] feat: add column created_by to users table (#5597) --- src/migrations/20231211134130-add-created-by-to-users.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/migrations/20231211134130-add-created-by-to-users.js diff --git a/src/migrations/20231211134130-add-created-by-to-users.js b/src/migrations/20231211134130-add-created-by-to-users.js new file mode 100644 index 0000000000..3bbd63d135 --- /dev/null +++ b/src/migrations/20231211134130-add-created-by-to-users.js @@ -0,0 +1,7 @@ +exports.up = function(db, cb) { + db.runSql(`ALTER TABLE users ADD COLUMN created_by INTEGER`, cb); +}; + +exports.down = function(db, cb) { + db.runSql(`ALTER TABLE users DROP COLUMN created_by`, cb); +}; \ No newline at end of file