From 717315a39b82bca78b65f6e8ac2b289dc2e706b7 Mon Sep 17 00:00:00 2001 From: Paulo Date: Tue, 8 Sep 2026 19:18:15 +0200 Subject: [PATCH] Preserve OAuth connection IDs during vault migration --- backend/migrations/versions/f1a6d3e8c2b7_vault.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/migrations/versions/f1a6d3e8c2b7_vault.py b/backend/migrations/versions/f1a6d3e8c2b7_vault.py index 47d87d43..53b8336f 100644 --- a/backend/migrations/versions/f1a6d3e8c2b7_vault.py +++ b/backend/migrations/versions/f1a6d3e8c2b7_vault.py @@ -192,7 +192,7 @@ def _move_oauth_grants() -> None: ), } for row in _read( - "SELECT provider, account_id, refresh_token, scopes, identity, connected_at, " + "SELECT id, provider, account_id, refresh_token, scopes, identity, connected_at, " "revoked_at, revoked_reason FROM oauth_connections" ): provider = row["provider"] @@ -206,6 +206,7 @@ def _move_oauth_grants() -> None: secrets.update(clients.get((provider.partition(":")[2], row["account_id"]), {})) _row( kind="oauth", + secret_id=row["id"], audience=audience, secrets=secrets, account_id=row["account_id"],