Skip to content

Commit

Permalink
fix: flag trends should support bigint for yes and no evaluations (#6930
Browse files Browse the repository at this point in the history
)

Recently we see some pods failing with inserting yes, no values that
were over int. Increasing type to bigint.
  • Loading branch information
sjaanus authored Apr 25, 2024
1 parent 34c1da5 commit 68e7a31
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/migrations/20240425132155-flag-trends-bigint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
exports.up = function (db, cb) {
db.runSql(`
ALTER TABLE flag_trends ALTER COLUMN total_yes TYPE bigint;
ALTER TABLE flag_trends ALTER COLUMN total_no TYPE bigint;
`, cb);
};

exports.down = function (db, cb) {
db.runSql(
`
`,
cb,
);
};

0 comments on commit 68e7a31

Please sign in to comment.