mirror of
https://github.com/plausible/analytics.git
synced 2024-12-23 17:44:43 +03:00
6637751a5e
* Implement Numeric IDs migration * Fix typo * Mute credo for now * Improve configurability and add stop_t * Adjust to Ch/Chto only * Fix opts key for dictionary password * Add regular ecto migration with numeric ids v2 schemas (#2768) * Add regular ecto migration * Fix typo * Update priv/ingest_repo/migrations/20230320094327_create_v2_schemas.exs Co-authored-by: Vini Brasil <vini@hey.com> * Implement v2 events/sessions schema modules (#2777) * Implement v2 events/sessions schema modules * Clean up session schemas --------- Co-authored-by: Vini Brasil <vini@hey.com> * Update moduledocs --------- Co-authored-by: Vini Brasil <vini@hey.com>
7 lines
278 B
Elixir
7 lines
278 B
Elixir
CREATE TABLE IF NOT EXISTS
|
|
tmp_sessions_v2 AS sessions_v2 ENGINE = CollapsingMergeTree(sign)
|
|
PARTITION BY toYYYYMM(start)
|
|
PRIMARY KEY (site_id, toDate(start), user_id, session_id)
|
|
ORDER BY (site_id, toDate(start), user_id, session_id)
|
|
<%= @table_settings %>
|