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:
parent
7a48fb57a6
commit
b02f8005f1
16
src/migrations/20240215133213-flag-trends-users.js
Normal file
16
src/migrations/20240215133213-flag-trends-users.js
Normal 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);
|
||||
};
|
Loading…
Reference in New Issue
Block a user