analytics/priv/clickhouse_repo/migrations/20210323130440_add_sample_by.exs
Uku Taht 3eb2f6d7a8
Add support for sampling (#875)
* Add support for sampling

* Use correct mix package

* Add notice about data sampling
2021-03-24 11:19:10 +02:00

9 lines
227 B
Elixir

defmodule Plausible.ClickhouseRepo.Migrations.AddSampleBy do
use Ecto.Migration
def change do
execute "ALTER TABLE events MODIFY SAMPLE BY user_id"
execute "ALTER TABLE sessions MODIFY SAMPLE BY user_id"
end
end