From 0f1b89b259d9e3156122535588d9064ae928aa92 Mon Sep 17 00:00:00 2001 From: David Leek Date: Mon, 11 Dec 2023 14:57:40 +0100 Subject: [PATCH] chore: add migration for adding created_by to feature_tag table (#5590) ## About the changes Contains the migration that adds the column created_by to `feature_tag` --- .../20231211122351-feature-tag-created-by.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/migrations/20231211122351-feature-tag-created-by.js diff --git a/src/migrations/20231211122351-feature-tag-created-by.js b/src/migrations/20231211122351-feature-tag-created-by.js new file mode 100644 index 0000000000..b33907fe4f --- /dev/null +++ b/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, + ); +};