mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 19:45:35 +01:00
save ip, lat, lng of session
This commit is contained in:
parent
8b108d3aae
commit
d0fb1dd4dd
10 changed files with 101 additions and 12 deletions
4
db/clickhouse/migrations/04_ip_lat_lng.sql
Normal file
4
db/clickhouse/migrations/04_ip_lat_lng.sql
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
-- AlterTable
|
||||
ALTER TABLE "session" ADD COLUMN "ip" VARCHAR(40),
|
||||
ADD COLUMN "lat" FLOAT,
|
||||
ADD COLUMN "lng" FLOAT;
|
||||
|
|
@ -16,6 +16,9 @@ CREATE TABLE umami.website_event
|
|||
subdivision1 LowCardinality(String),
|
||||
subdivision2 LowCardinality(String),
|
||||
city String,
|
||||
ip Nullable(String),
|
||||
lat Nullable(Float32),
|
||||
lng Nullable(Float32),
|
||||
--pageviews
|
||||
url_path String,
|
||||
url_query String,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue