Skip to content

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

Migration to add new engagement_time column (#5092)

Karl-Aksel Puulmann482ba1face9b
diff --git a/priv/ingest_repo/migrations/20250219093806_events_engagement_time.exs b/priv/ingest_repo/migrations/20250219093806_events_engagement_time.exs
new file mode 100644
index 0000000000..b9d30a4200
--- /dev/null
+++ b/priv/ingest_repo/migrations/20250219093806_events_engagement_time.exs
@@ -0,0 +1,9 @@
+defmodule Plausible.IngestRepo.Migrations.EventsEngagementTime do
+ use Ecto.Migration
+
+ def change do
+ alter table(:events_v2) do
+ add :engagement_time, :UInt32
+ end
+ end
+end