Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Add migration for acquisition channel (#4531)

Uku Taht90b81b615f37
diff --git a/priv/ingest_repo/migrations/20240829092858_add_acquisition_channel.exs b/priv/ingest_repo/migrations/20240829092858_add_acquisition_channel.exs
new file mode 100644
index 0000000000..69e2d84d04
--- /dev/null
+++ b/priv/ingest_repo/migrations/20240829092858_add_acquisition_channel.exs
@@ -0,0 +1,13 @@
+defmodule Plausible.IngestRepo.Migrations.AddAcquisitionChannel do
+ use Ecto.Migration
+
+ def change do
+ alter table(:events_v2) do
+ add :channel, :"LowCardinality(String)"
+ end
+
+ alter table(:sessions_v2) do
+ add :channel, :"LowCardinality(String)"
+ end
+ end
+end