Skip to content

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

Migration: turn google auth tokens into text column type (#4428)

hq17fb2bfbd2951
diff --git a/priv/repo/migrations/20240809100853_turn_google_auth_tokens_into_text.exs b/priv/repo/migrations/20240809100853_turn_google_auth_tokens_into_text.exs
new file mode 100644
index 0000000000..cfe861dfb0
--- /dev/null
+++ b/priv/repo/migrations/20240809100853_turn_google_auth_tokens_into_text.exs
@@ -0,0 +1,10 @@
+defmodule Plausible.Repo.Migrations.TurnGoogleAuthTokensIntoText do
+ use Ecto.Migration
+
+ def change do
+ alter table(:google_auth) do
+ modify :refresh_token, :text
+ modify :access_token, :text
+ end
+ end
+end