mirror of
https://github.com/plausible/analytics.git
synced 2024-12-24 10:02:10 +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
216 B
Elixir
7 lines
216 B
Elixir
SELECT partition
|
|
FROM system.parts
|
|
WHERE table = 'events'
|
|
<%= if @start_from do %>AND partition >= '<%= @start_from %>'<% end %>
|
|
<%= if @stop_at do %>AND partition <= '<%= @stop_at %>'<% end %>
|
|
ORDER BY partition
|