diff --git a/src/migrations/20240304160659-add-environment-type-trends.js b/src/migrations/20240304160659-add-environment-type-trends.js new file mode 100644 index 0000000000..9ccd53c9e6 --- /dev/null +++ b/src/migrations/20240304160659-add-environment-type-trends.js @@ -0,0 +1,18 @@ +'use strict'; + +exports.up = function(db, cb) { + db.runSql( + ` + CREATE TABLE IF NOT EXISTS environment_type_trends ( + id VARCHAR(255) NOT NULL, + environment_type VARCHAR(255) NOT NULL, + total_updates INTEGER NOT NULL, + PRIMARY KEY (id, environment_type) + );`, + cb, + ); +}; + +exports.down = function(db, cb) { + db.runSql('DROP TABLE IF EXISTS environment_type_trends;', cb); +};