From 57bbf00baa3cdb77350ce0b25d4184e28e18b210 Mon Sep 17 00:00:00 2001 From: Chris Veilleux Date: Thu, 27 Jun 2019 12:51:14 -0500 Subject: [PATCH] removed unique constraint as they are not allowed on partitioned tables --- db/mycroft/metrics_schema/tables/api_history.sql | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/db/mycroft/metrics_schema/tables/api_history.sql b/db/mycroft/metrics_schema/tables/api_history.sql index 8cec254b..91d1c576 100644 --- a/db/mycroft/metrics_schema/tables/api_history.sql +++ b/db/mycroft/metrics_schema/tables/api_history.sql @@ -6,8 +6,7 @@ CREATE TABLE metrics.api_history ( duration INTEGER NOT NULL, http_status CHAR(3) NOT NULL, account_id uuid, - device_id uuid, - UNIQUE (url, access_ts) + device_id uuid ) PARTITION BY RANGE (access_ts)