Skip to content

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

Migration: Add `users.last_team_identifier` (#5527)

Adam Rutkowski24d4ae6a5809
diff --git a/priv/repo/migrations/20250624100236_user_last_team_identifier.exs b/priv/repo/migrations/20250624100236_user_last_team_identifier.exs
new file mode 100644
index 0000000000..62bc1ced74
--- /dev/null
+++ b/priv/repo/migrations/20250624100236_user_last_team_identifier.exs
@@ -0,0 +1,9 @@
+defmodule Plausible.Repo.Migrations.UserLastTeamIdentifier do
+ use Ecto.Migration
+
+ def change do
+ alter table(:users) do
+ add :last_team_identifier, :binary, null: true
+ end
+ end
+end