Skip to content

Commit

Permalink
chore: add migration for adding created_by to feature_strategies table (
Browse files Browse the repository at this point in the history
#5589)

## About the changes

Contains the migration that adds the column created_by to
`feature_strategies`
  • Loading branch information
daveleek authored Dec 11, 2023
1 parent 9dbb7ea commit 2773227
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/migrations/20231211122426-feature-strategies-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_strategies ADD COLUMN IF NOT EXISTS created_by INTEGER;
`,
callback,
);
};

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

1 comment on commit 2773227

@vercel
Copy link

@vercel vercel bot commented on 2773227 Dec 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.