1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00
unleash.unleash/src/migrations/20240215133213-flag-trends-users.js
Tymoteusz Czech b02f8005f1
migration: flag-trends - add users column (#6254)
Add `users` column to per-project trends.
2024-02-16 15:42:47 +01:00

17 lines
314 B
JavaScript

'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);
};