From d27aedfa883562877520dd1719e901051cbf71e2 Mon Sep 17 00:00:00 2001 From: kwasniew Date: Tue, 7 May 2024 10:52:00 +0200 Subject: [PATCH] feat: increase possible number range for yes/no metrics --- ...240507075431-client-metrics-env-daily-bigint.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/migrations/20240507075431-client-metrics-env-daily-bigint.js diff --git a/src/migrations/20240507075431-client-metrics-env-daily-bigint.js b/src/migrations/20240507075431-client-metrics-env-daily-bigint.js new file mode 100644 index 000000000000..44e6dd14ce80 --- /dev/null +++ b/src/migrations/20240507075431-client-metrics-env-daily-bigint.js @@ -0,0 +1,14 @@ +exports.up = function (db, cb) { + db.runSql(` + ALTER TABLE client_metrics_env_daily ALTER COLUMN yes TYPE bigint; + ALTER TABLE client_metrics_env_daily ALTER COLUMN no TYPE bigint; + `, cb); +}; + +exports.down = function (db, cb) { + db.runSql( + ` + `, + cb, + ); +};