From bf5be8e2eaad446a19dc75630ecd2a2a3760f837 Mon Sep 17 00:00:00 2001 From: Kevin Joiner <10265309+KevinJoiner@users.noreply.github.com> Date: Wed, 6 Mar 2024 16:47:19 -0500 Subject: [PATCH] Remove vehicle prefix from primary keys --- internal/codegen/clickhouse/table.tmpl | 2 +- pkg/vss/vehicle-table.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/codegen/clickhouse/table.tmpl b/internal/codegen/clickhouse/table.tmpl index 0b8029b..7be5f0e 100644 --- a/internal/codegen/clickhouse/table.tmpl +++ b/internal/codegen/clickhouse/table.tmpl @@ -4,4 +4,4 @@ CREATE TABLE IF NOT EXISTS {{ lower .ModelName }} ( {{- end }} ) ENGINE = MergeTree() -ORDER BY (Vehicle_DIMO_Subject, Vehicle_DIMO_Timestamp) \ No newline at end of file +ORDER BY (DIMO_Subject, DIMO_Timestamp) \ No newline at end of file diff --git a/pkg/vss/vehicle-table.sql b/pkg/vss/vehicle-table.sql index dd50fb4..dc063ae 100644 --- a/pkg/vss/vehicle-table.sql +++ b/pkg/vss/vehicle-table.sql @@ -39,4 +39,4 @@ CREATE TABLE IF NOT EXISTS vehicle ( VehicleIdentification_Year UInt16 COMMENT 'Model year of the vehicle.', ) ENGINE = MergeTree() -ORDER BY (Vehicle_DIMO_Subject, Vehicle_DIMO_Timestamp) \ No newline at end of file +ORDER BY (DIMO_Subject, DIMO_Timestamp) \ No newline at end of file