Skip to content

Commit

Permalink
chore: add migration for adding created_by to feature_tag table
Browse files Browse the repository at this point in the history
  • Loading branch information
daveleek committed Dec 11, 2023
1 parent 9508c79 commit 8b60043
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/migrations/20231211122351-feature-tag-created-by.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
'use strict';

exports.up = function (db, callback) {
db.runSql(
`
ALTER TABLE feature_tag ADD COLUMN IF NOT EXISTS created_by INTEGER;
`,
callback,
);
};

exports.down = function (db, callback) {
db.runSql(
`
ALTER TABLE feature_tag DROP COLUMN IF EXISTS created_by;
`,
callback,
);
};

0 comments on commit 8b60043

Please sign in to comment.