Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
update backfill script.
Brian Cao1a793572e846
diff --git a/db/clickhouse/migrations/01_edit_keys.sql b/db/clickhouse/migrations/01_edit_keys.sqlindex 483a56501..3fc7dd79c 100644--- a/db/clickhouse/migrations/01_edit_keys.sql+++ b/db/clickhouse/migrations/01_edit_keys.sql@@ -11,10 +11,8 @@ ALTER TABLE "event_data" ADD COLUMN "job_id" UUID AFTER "created_at";-- update event_data stringalter table umami.event_dataupdate string_value = number_value-where number_value is not null- and string_value is null;+where data_type = 2alter table umami.event_dataupdate string_value = replaceOne(concat(CAST(toDateTime(date_value, 'UTC'), 'String'),'Z'), ' ', 'T')-where date_value is not null- and string_value is null;\ No newline at end of file+where data_type = 4\ No newline at end of file