diff --git a/db/migrations/000003_create_node_population_table.up.sql b/db/migrations/000003_create_node_population_table.up.sql index f6a3e6b..0f604bf 100644 --- a/db/migrations/000003_create_node_population_table.up.sql +++ b/db/migrations/000003_create_node_population_table.up.sql @@ -4,4 +4,4 @@ CREATE TABLE node_population ( agent_version_type LowCardinality(String), agent_version_semver Array(Int16) ) ENGINE = AggregatingMergeTree() - PRIMARY KEY (timestamp, agent_version_type) \ No newline at end of file + PRIMARY KEY (timestamp, agent_version_type, agent_version_semver) \ No newline at end of file diff --git a/db/migrations/000004_create_node_population_materialized_view.up.sql b/db/migrations/000004_create_node_population_materialized_view.up.sql index d2afe4c..9eaa58a 100644 --- a/db/migrations/000004_create_node_population_materialized_view.up.sql +++ b/db/migrations/000004_create_node_population_materialized_view.up.sql @@ -5,4 +5,4 @@ SELECT agent_version_type, agent_version_semver FROM requests -GROUP BY timestamp, agent_version_type, agent_version_semver \ No newline at end of file +GROUP BY timestamp, agent_version_type, agent_version_semver; \ No newline at end of file