From 8ce19a4bc4b8fe17aa3b281f6b9339b9dc707b29 Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Mon, 16 Dec 2024 12:37:38 +0100 Subject: [PATCH] fix TestMigration for v2 --- stores/sql/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stores/sql/main.go b/stores/sql/main.go index 41e983091..a45a04dff 100644 --- a/stores/sql/main.go +++ b/stores/sql/main.go @@ -1635,7 +1635,7 @@ func RecordHostScans(ctx context.Context, tx sql.Tx, scans []api.HostScan) error uptime = CASE WHEN ? AND last_scan > 0 AND last_scan < ? THEN uptime + ? - last_scan ELSE uptime END, last_scan = ?, settings = CASE WHEN ? THEN ? ELSE settings END, - v2_settings = CASE WHEN ? THEN ? ELSE settings END, + v2_settings = CASE WHEN ? THEN ? ELSE v2_settings END, price_table = CASE WHEN ? THEN ? ELSE price_table END, price_table_expiry = CASE WHEN ? THEN ? ELSE price_table_expiry END, successful_interactions = CASE WHEN ? THEN successful_interactions + 1 ELSE successful_interactions END,