Skip to content

Commit

Permalink
feat: migration for health and time_to_production in flag trends (#6067)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew authored Jan 30, 2024
1 parent 38df2e1 commit 82e84ec
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
'use strict';

exports.up = function(db, cb) {
db.runSql(
`
ALTER TABLE flag_trends ADD COLUMN IF NOT EXISTS health INTEGER DEFAULT 100;
ALTER TABLE flag_trends ADD COLUMN IF NOT EXISTS time_to_production FLOAT DEFAULT 0;
`,
cb,
);
};

exports.down = function(db, cb) {
db.runSql(`
ALTER TABLE flag_trends DROP COLUMN IF EXISTS health;
ALTER TABLE flag_trends DROP COLUMN IF EXISTS time_to_production;
`, cb);
};

0 comments on commit 82e84ec

Please sign in to comment.