mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
fix: flag trends should support bigint for yes and no evaluations (#6930)
Recently we see some pods failing with inserting yes, no values that were over int. Increasing type to bigint.
This commit is contained in:
parent
34c1da58cc
commit
68e7a3164e
14
src/migrations/20240425132155-flag-trends-bigint.js
Normal file
14
src/migrations/20240425132155-flag-trends-bigint.js
Normal file
@ -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,
|
||||
);
|
||||
};
|
Loading…
Reference in New Issue
Block a user