diff --git a/src/migrations/20240215133213-flag-trends-users.js b/src/migrations/20240215133213-flag-trends-users.js new file mode 100644 index 0000000000..f23f09996f --- /dev/null +++ b/src/migrations/20240215133213-flag-trends-users.js @@ -0,0 +1,16 @@ +'use strict'; + +exports.up = function(db, cb) { + db.runSql( + ` + ALTER TABLE flag_trends ADD COLUMN IF NOT EXISTS users INTEGER DEFAULT 0; + `, + cb, + ); +}; + +exports.down = function(db, cb) { + db.runSql(` + ALTER TABLE flag_trends DROP COLUMN IF EXISTS users; + `, cb); +};