Skip to content

Commit

Permalink
chore: add migration for adding created_by to feature_tag table (#5590)
Browse files Browse the repository at this point in the history
## About the changes

Contains the migration that adds the column created_by to `feature_tag`
  • Loading branch information
daveleek committed Dec 11, 2023
1 parent 2773227 commit 0f1b89b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/migrations/20231211122351-feature-tag-created-by.js
@@ -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 0f1b89b

Please sign in to comment.