Skip to content

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

remove unnecessary data migration (#4895)

RobertJoonas79c6f642d9f7
diff --git a/lib/plausible/data_migration/missing_scroll_depth.ex b/lib/plausible/data_migration/missing_scroll_depth.ex
deleted file mode 100644
index 533287a1dd..0000000000
--- a/lib/plausible/data_migration/missing_scroll_depth.ex
+++ /dev/null
@@ -1,18 +0,0 @@
-defmodule Plausible.DataMigration.MissingScrollDepth do
- @moduledoc """
- Set scroll_depth to 255 (max UInt8) for all pageleave events where it's 0.
- """
-
- def run() do
- Plausible.IngestRepo.query!(
- """
- ALTER TABLE events_v2
- #{Plausible.MigrationUtils.on_cluster_statement("events_v2")}
- UPDATE scroll_depth = 255
- WHERE name = 'pageleave' AND scroll_depth = 0
- """,
- [],
- timeout: 60_000
- )
- end
-end