From c9013582227046a0685b8920c959f03e2ecdd670 Mon Sep 17 00:00:00 2001 From: Francis Cao Date: Mon, 26 Jun 2023 10:32:23 -0700 Subject: [PATCH] rename to job_id --- db/clickhouse/migrations/02_add_upload_id.sql | 4 ++-- db/clickhouse/schema.sql | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/db/clickhouse/migrations/02_add_upload_id.sql b/db/clickhouse/migrations/02_add_upload_id.sql index c14f5622..44b5906e 100644 --- a/db/clickhouse/migrations/02_add_upload_id.sql +++ b/db/clickhouse/migrations/02_add_upload_id.sql @@ -1,2 +1,2 @@ -ALTER TABLE "website_event" ADD COLUMN "upload_id" UUID AFTER "created_at"; -ALTER TABLE "event_data" ADD COLUMN "upload_id" UUID AFTER "created_at"; \ No newline at end of file +ALTER TABLE "website_event" ADD COLUMN "job_id" UUID AFTER "created_at"; +ALTER TABLE "event_data" ADD COLUMN "job_id" UUID AFTER "created_at"; \ No newline at end of file diff --git a/db/clickhouse/schema.sql b/db/clickhouse/schema.sql index 88d72db2..8ee02af8 100644 --- a/db/clickhouse/schema.sql +++ b/db/clickhouse/schema.sql @@ -28,7 +28,7 @@ CREATE TABLE umami.website_event event_type UInt32, event_name String, created_at DateTime('UTC'), - upload_id UUID + job_id UUID ) engine = MergeTree ORDER BY (website_id, session_id, created_at) @@ -123,7 +123,7 @@ CREATE TABLE umami.event_data date_value Nullable(DateTime('UTC')), data_type UInt32, created_at DateTime('UTC'), - upload_id UUID + job_id UUID ) engine = MergeTree ORDER BY (website_id, event_id, event_key, created_at)