mirror of
https://github.com/hanzoai/analytics.git
synced 2026-10-30 15:05:29 +00:00
- Replace @umami/* imports with @hanzo/* npm aliases in package.json - Rename redis client to KVClient (UmamiRedisClient as KVClient) - Rename collector/forward/umami.go → analytics.go (git mv) - Remove all umami backwards-compat aliases from tracker (data-umami-event, window.umami, umami.disabled localStorage, eventNameAttributeLegacy) - Purge 93 umami. prefixes from ClickHouse SQL migrations - Update default admin password hash from "umami" to "analytics" - Rebrand podman service files, GitHub Actions, telemetry URL, seed scripts - Add data-test attributes to WebsiteAddButton, WebsitesTable, UserAddForm, UserEditForm for Cypress test compatibility - Refactor UsersTable: replace MenuButton portal dropdown with inline LinkButton (edit) + Button (delete) so Cypress .within() can find them - Fix Cypress tests: update selectors (td[label] → cy.contains), remove stale tab-navigation (settings page is vertical, not tabbed), scope button[type=submit] to [role=dialog] for delete confirmation - All 34 Cypress e2e tests now pass (was 28/34)
58 lines
1.3 KiB
SQL
58 lines
1.3 KiB
SQL
CREATE TABLE analytics.event_data_new
|
|
(
|
|
website_id UUID,
|
|
session_id UUID,
|
|
event_id UUID,
|
|
url_path String,
|
|
event_name String,
|
|
data_key String,
|
|
string_value Nullable(String),
|
|
number_value Nullable(Decimal64(4)),
|
|
date_value Nullable(DateTime('UTC')),
|
|
data_type UInt32,
|
|
created_at DateTime('UTC'),
|
|
job_id Nullable(UUID)
|
|
)
|
|
engine = MergeTree
|
|
ORDER BY (website_id, event_id, data_key, created_at)
|
|
SETTINGS index_granularity = 8192;
|
|
|
|
INSERT INTO analytics.event_data_new
|
|
SELECT website_id,
|
|
session_id,
|
|
event_id,
|
|
url_path,
|
|
event_name,
|
|
event_key,
|
|
string_value,
|
|
number_value,
|
|
date_value,
|
|
data_type,
|
|
created_at,
|
|
NULL
|
|
FROM analytics.event_data;
|
|
|
|
CREATE TABLE analytics.session_data
|
|
(
|
|
website_id UUID,
|
|
session_id UUID,
|
|
data_key String,
|
|
string_value Nullable(String),
|
|
number_value Nullable(Decimal64(4)),
|
|
date_value Nullable(DateTime('UTC')),
|
|
data_type UInt32,
|
|
created_at DateTime('UTC'),
|
|
job_id Nullable(UUID)
|
|
)
|
|
engine = MergeTree
|
|
ORDER BY (website_id, session_id, data_key, created_at)
|
|
SETTINGS index_granularity = 8192;
|
|
|
|
RENAME TABLE analytics.event_data TO analytics.event_data_old;
|
|
RENAME TABLE analytics.event_data_new TO analytics.event_data;
|
|
|
|
/*
|
|
DROP TABLE analytics.event_data_old
|
|
*/
|
|
|