From 8b60043396415de12364edc40ef8074f1977b806 Mon Sep 17 00:00:00 2001 From: David Leek Date: Mon, 11 Dec 2023 13:28:19 +0100 Subject: [PATCH] chore: add migration for adding created_by to feature_tag table --- .../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 000000000000..b33907fe4fa2 --- /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, + ); +};