mirror of
https://github.com/plausible/analytics.git
synced 2024-12-23 01:22:15 +03:00
3eb2f6d7a8
* Add support for sampling * Use correct mix package * Add notice about data sampling
9 lines
227 B
Elixir
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
|