mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 05:37:20 +01:00
Added Prisma migration to support user identification: 1. Session Table Enhancement - Added user_id column (VARCHAR(36)) to session table - Stores WordPress user ID for logged-in users - Indexed for efficient lookups 2. User Mapping Table - New table to track visitor_id to user_id relationships - Maps anonymous visitors to authenticated users - Tracks first_seen_at, last_seen_at, and session_count - Unique constraint on (visitor_id, user_id) pair 3. Indexes - idx_session_user_id - Fast user_id lookups - idx_session_visitor_user - Composite index for visitor+user queries - idx_user_mapping_visitor - Visitor ID lookups - idx_user_mapping_user - User ID lookups - idx_user_mapping_last_seen - Time-based queries This migration enables unified user tracking across anonymous and authenticated sessions, supporting the WordPress plugin's user identification feature. |
||
|---|---|---|
| .. | ||
| 01_init | ||
| 02_report_schema_session_data | ||
| 03_metric_performance_index | ||
| 04_team_redesign | ||
| 05_add_visit_id | ||
| 06_session_data | ||
| 07_add_tag | ||
| 08_add_utm_clid | ||
| 09_update_hostname_region | ||
| 10_add_distinct_id | ||
| 11_add_segment | ||
| 12_update_report_parameter | ||
| 13_add_revenue | ||
| 14_add_link_and_pixel | ||
| 15_add_woocommerce_fields | ||
| 16_create_recommendation_tables | ||
| 17_setup_apache_age | ||
| 18_setup_timescaledb | ||
| 19_add_user_id_mapping | ||
| migration_lock.toml | ||