From a2dee849bd9828ba98a6a865dd476f81ef03f3b1 Mon Sep 17 00:00:00 2001 From: GroovieGermanikus Date: Thu, 20 Jun 2024 14:30:07 +0200 Subject: [PATCH] rename column average_slot_confirmation_time_ms --- benchrunner-service/src/postgres/metrics_dbstore.rs | 2 +- migrations/create_benchrunner.sql | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/benchrunner-service/src/postgres/metrics_dbstore.rs b/benchrunner-service/src/postgres/metrics_dbstore.rs index 55054ccf..b2784e83 100644 --- a/benchrunner-service/src/postgres/metrics_dbstore.rs +++ b/benchrunner-service/src/postgres/metrics_dbstore.rs @@ -134,7 +134,7 @@ impl BenchMetricsPostgresSaver for BenchRunnerConfirmationRateImpl { txs_confirmed, txs_un_confirmed, average_confirmation_time_ms, - average_slot_confirmation_time_ms, + average_slot_confirmation_time, metric_json ) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) diff --git a/migrations/create_benchrunner.sql b/migrations/create_benchrunner.sql index 240b3a5b..3aff4d65 100644 --- a/migrations/create_benchrunner.sql +++ b/migrations/create_benchrunner.sql @@ -47,3 +47,7 @@ GRANT SELECT ON ALL TABLES IN SCHEMA benchrunner TO ro_benchrunner; ALTER DEFAULT PRIVILEGES IN SCHEMA benchrunner GRANT SELECT ON TABLES TO ro_benchrunner; ALTER TABLE benchrunner.bench_metrics RENAME TO bench_metrics_bench1; + +ALTER TABLE benchrunner.bench_metrics_confirmation_rate ADD COLUMN bench_metrics_confirmation_rate real; + +ALTER TABLE benchrunner.bench_metrics_confirmation_rate DROP COLUMN average_slot_confirmation_time_ms;