Skip to content

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

add migration (#5052)

RobertJoonas9f54e1f17ae4
diff --git a/priv/repo/migrations/20250203183445_add_has_scroll_depth_to_site_import.exs b/priv/repo/migrations/20250203183445_add_has_scroll_depth_to_site_import.exs
new file mode 100644
index 0000000000..8d9dbc92e7
--- /dev/null
+++ b/priv/repo/migrations/20250203183445_add_has_scroll_depth_to_site_import.exs
@@ -0,0 +1,9 @@
+defmodule Plausible.Repo.Migrations.AddHasScrollDepthToSiteImport do
+ use Ecto.Migration
+
+ def change do
+ alter table(:site_imports) do
+ add :has_scroll_depth, :boolean, null: false, default: false
+ end
+ end
+end