Skip to content

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

Migration: rename "My Team" to "My Personal Sites" (#5156)

Adrian Gruntkowski6ee61c5512bf
diff --git a/priv/repo/migrations/20250224074807_rename_my_team.exs b/priv/repo/migrations/20250224074807_rename_my_team.exs
new file mode 100644
index 0000000000..476b8fdcaa
--- /dev/null
+++ b/priv/repo/migrations/20250224074807_rename_my_team.exs
@@ -0,0 +1,15 @@
+defmodule Plausible.Repo.Migrations.RenameMyTeam do
+ use Ecto.Migration
+
+ def up do
+ execute """
+ UPDATE teams SET name = 'My Personal Sites' WHERE name = 'My Team'
+ """
+ end
+
+ def down do
+ execute """
+ UPDATE teams SET name = 'My Team' WHERE name = 'My Personal Sites'
+ """
+ end
+end