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 revenue fields to events_v2 (#3018)
Vini Brasild98242895bf3
diff --git a/priv/ingest_repo/migrations/20230417104025_add_revenue_to_events.exs b/priv/ingest_repo/migrations/20230417104025_add_revenue_to_events.exsnew file mode 100644index 0000000000..b329714aa2--- /dev/null+++ b/priv/ingest_repo/migrations/20230417104025_add_revenue_to_events.exs@@ -0,0 +1,13 @@+defmodule Plausible.IngestRepo.Migrations.AddRevenueToEvents do+ use Ecto.Migration++ def change do+ alter table(:events_v2) do+ add :revenue_reporting_amount, :"Nullable(Decimal64(3))"+ add :revenue_reporting_currency, :"FixedString(3)"++ add :revenue_source_amount, :"Nullable(Decimal64(3))"+ add :revenue_source_currency, :"FixedString(3)"+ end+ end+end