Skip to content

Commit

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

Contains the migration that adds the column created_by to
`feature_types`
  • Loading branch information
daveleek committed Dec 11, 2023
1 parent 0f1b89b commit 427abbd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/migrations/20231211122322-feature-types-created-by.js
@@ -0,0 +1,19 @@
'use strict';

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

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

0 comments on commit 427abbd

Please sign in to comment.