diff --git a/src/migrations/20240305121426-add-created-at-environment-type-trends.js b/src/migrations/20240305121426-add-created-at-environment-type-trends.js new file mode 100644 index 00000000000..e3129ce7bd2 --- /dev/null +++ b/src/migrations/20240305121426-add-created-at-environment-type-trends.js @@ -0,0 +1,15 @@ +'use strict'; + +exports.up = function(db, cb) { + db.runSql( + ` + ALTER TABLE IF EXISTS environment_type_trends + ADD COLUMN created_at timestamp default now(); + `, + cb, + ); +}; + +exports.down = function(db, cb) { + db.runSql('ALTER TABLE IF EXISTS environment_type_trends DROP COLUMN IF EXISTS created_at;', cb); +};