Skip to content

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

Add `totp_secret_fallback` column to `users` (migration) (#6425)

Adrian Gruntkowski8bf0885adf87
diff --git a/priv/repo/migrations/20260528094343_add_totp_secret_fallback_to_user.exs b/priv/repo/migrations/20260528094343_add_totp_secret_fallback_to_user.exs
new file mode 100644
index 0000000000..7c50e2d023
--- /dev/null
+++ b/priv/repo/migrations/20260528094343_add_totp_secret_fallback_to_user.exs
@@ -0,0 +1,9 @@
+defmodule Plausible.Repo.Migrations.AddTotpSecretFallbackToUser do
+ use Ecto.Migration
+
+ def change do
+ alter table(:users) do
+ add :totp_secret_fallback, :binary
+ end
+ end
+end