mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
add rev_id to CH schema
This commit is contained in:
parent
3485b6268b
commit
6a0d5ee1e6
@ -6,6 +6,7 @@ CREATE TABLE event
|
|||||||
website_id UUID,
|
website_id UUID,
|
||||||
session_id UUID,
|
session_id UUID,
|
||||||
event_id Nullable(UUID),
|
event_id Nullable(UUID),
|
||||||
|
rev_id UInt32,
|
||||||
--session
|
--session
|
||||||
hostname LowCardinality(String),
|
hostname LowCardinality(String),
|
||||||
browser LowCardinality(String),
|
browser LowCardinality(String),
|
||||||
@ -30,6 +31,7 @@ CREATE TABLE event_queue (
|
|||||||
website_id UUID,
|
website_id UUID,
|
||||||
session_id UUID,
|
session_id UUID,
|
||||||
event_id Nullable(UUID),
|
event_id Nullable(UUID),
|
||||||
|
rev_id UInt32,
|
||||||
url String,
|
url String,
|
||||||
referrer String,
|
referrer String,
|
||||||
hostname LowCardinality(String),
|
hostname LowCardinality(String),
|
||||||
@ -55,6 +57,7 @@ CREATE MATERIALIZED VIEW event_queue_mv TO event AS
|
|||||||
SELECT website_id,
|
SELECT website_id,
|
||||||
session_id,
|
session_id,
|
||||||
event_id,
|
event_id,
|
||||||
|
rev_id,
|
||||||
url,
|
url,
|
||||||
referrer,
|
referrer,
|
||||||
hostname,
|
hostname,
|
||||||
|
Loading…
Reference in New Issue
Block a user