diff --git a/src/migrations/20231211122322-feature-types-created-by.js b/src/migrations/20231211122322-feature-types-created-by.js new file mode 100644 index 000000000000..784f87a53d62 --- /dev/null +++ b/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, + ); +};