1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

migration: flag-trends - add users column (#6254)

Add `users` column to per-project trends.
This commit is contained in:
Tymoteusz Czech 2024-02-16 15:42:47 +01:00 committed by GitHub
parent 7a48fb57a6
commit b02f8005f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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