Skip to content

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

Add migration to run 'pa-' prefixing (#5622)

Artur Patac53cb7b2e92a
diff --git a/priv/repo/migrations/20250807164200_prefix_tracker_script_ids.exs b/priv/repo/migrations/20250807164200_prefix_tracker_script_ids.exs
new file mode 100644
index 0000000000..8288d251e6
--- /dev/null
+++ b/priv/repo/migrations/20250807164200_prefix_tracker_script_ids.exs
@@ -0,0 +1,12 @@
+defmodule Plausible.Repo.Migrations.PrefixTrackerScriptConfigurationId do
+ use Ecto.Migration
+
+ def up do
+ Plausible.DataMigration.PrefixTrackerScriptConfigurationId.run()
+ end
+
+ def down do
+ # The IDs have been changed and cannot be easily reverted
+ raise "Irreversible"
+ end
+end