Skip to content

Commit

Permalink
feat: add column created_by to role_user table
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswk committed Dec 11, 2023
1 parent e8f19e6 commit a12f223
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/migrations/20231211133008-add-created-by-to-role-user.js
Original file line number Diff line number Diff line change
@@ -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);
};

0 comments on commit a12f223

Please sign in to comment.