analytics/priv/clickhouse_repo/migrations/20210323130440_add_sample_by.exs

9 lines
227 B
Elixir
Raw Normal View History

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