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
Add `active_visitors` column to `imported_pages` CH table (#4028)
Adrian Gruntkowski069170eb1d86
diff --git a/priv/ingest_repo/migrations/20240419133926_add_active_visitors_to_imported_pages.exs b/priv/ingest_repo/migrations/20240419133926_add_active_visitors_to_imported_pages.exsnew file mode 100644index 0000000000..c4899bc822--- /dev/null+++ b/priv/ingest_repo/migrations/20240419133926_add_active_visitors_to_imported_pages.exs@@ -0,0 +1,19 @@+defmodule Plausible.IngestRepo.Migrations.AddActiveVisitorsToImportedPages do+ use Ecto.Migration++ def up do+ execute """+ ALTER TABLE imported_pages+ #{Plausible.MigrationUtils.on_cluster_statement("imported_pages")}+ ADD COLUMN active_visitors UInt64+ """+ end++ def down do+ execute """+ ALTER TABLE imported_pages+ #{Plausible.MigrationUtils.on_cluster_statement("imported_pages")}+ DROP COLUMN active_visitors+ """+ end+end