Skip to content

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

Migration for scroll_depth_visible_at (#5018)

Karl-Aksel Puulmann249bd0c960bf
diff --git a/priv/repo/migrations/20250109114738_add_scroll_depth_visible_at_to_site.exs b/priv/repo/migrations/20250109114738_add_scroll_depth_visible_at_to_site.exs
new file mode 100644
index 0000000000..c714609c88
--- /dev/null
+++ b/priv/repo/migrations/20250109114738_add_scroll_depth_visible_at_to_site.exs
@@ -0,0 +1,9 @@
+defmodule Plausible.Repo.Migrations.AddScrollDepthVisibleAtToSite do
+ use Ecto.Migration
+
+ def change do
+ alter table(:sites) do
+ add :scroll_depth_visible_at, :naive_datetime, null: true
+ end
+ end
+end