Skip to content

Commit

Permalink
feat: add created_by to api_tokens table (#5596)
Browse files Browse the repository at this point in the history
Adds a migration for adding created_by column to the api_tokens table.
  • Loading branch information
Christopher Kolstad authored Dec 11, 2023
1 parent 150e6b0 commit 18ea734
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/migrations/20231211134633-add-created-by-to-apitokens.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
exports.up = function(db, cb) {
db.runSql(`ALTER TABLE api_tokens ADD COLUMN created_by INTEGER`, cb);
};

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

0 comments on commit 18ea734

Please sign in to comment.