Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
CH Migration: exit page hostname on sessions_v2 (#3953)
hq11f778e0c11f7
diff --git a/priv/ingest_repo/migrations/20240327085855_hostnames_in_sessions.exs b/priv/ingest_repo/migrations/20240327085855_hostnames_in_sessions.exsnew file mode 100644index 0000000000..48c4ab28e5--- /dev/null+++ b/priv/ingest_repo/migrations/20240327085855_hostnames_in_sessions.exs@@ -0,0 +1,19 @@+defmodule Plausible.ClickhouseRepo.Migrations.HostnamesInSessions do+ use Ecto.Migration++ def up do+ execute """+ ALTER TABLE sessions_v2+ #{Plausible.MigrationUtils.on_cluster_statement("sessions_v2")}+ ADD COLUMN exit_page_hostname String CODEC(ZSTD(3))+ """+ end++ def down do+ execute """+ ALTER TABLE sessions_v2+ #{Plausible.MigrationUtils.on_cluster_statement("sessions_v2")}+ DROP COLUMN exit_page_hostname+ """+ end+end