1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-27 00:19:39 +01:00

fix: flag trends should support bigint for yes and no evaluations ()

Recently we see some pods failing with inserting yes, no values that
were over int. Increasing type to bigint.
This commit is contained in:
Jaanus Sellin 2024-04-25 14:02:04 +03:00 committed by GitHub
parent 34c1da58cc
commit 68e7a3164e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View 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,
);
};