Skip to content

Open-source personal finance manager. Self-hosted, privacy-first.

fix(pluggy): clear stale sandbox.svg logos so the real logo backfills

Tássio Noronha957265e835d9
diff --git a/backend/alembic/versions/058_clear_pluggy_sandbox_logos.py b/backend/alembic/versions/058_clear_pluggy_sandbox_logos.py
new file mode 100644
index 00000000..05486a75
--- /dev/null
+++ b/backend/alembic/versions/058_clear_pluggy_sandbox_logos.py
@@ -0,0 +1,33 @@
+"""clear stale Pluggy sandbox.svg connection logos
+
+v0.13.0 stored the Pluggy connector ``imageUrl`` verbatim, which for the demo
+/ sandbox connector is the generic ``sandbox.svg`` placeholder. The v0.13.1
+logo fix only backfills connections whose ``logo_url`` is NULL, so these rows
+keep showing the placeholder. Null them out here so the next sync re-resolves
+the real bank logo (via the COMPE-code fallback). Only the placeholder rows
+are touched — real logos, Enable Banking and SimpleFIN entries are untouched.
+
+Revision ID: 058
+Revises: 057
+Create Date: 2026-06-09
+"""
+
+from alembic import op
+
+revision = "058"
+down_revision = "057"
+branch_labels = None
+depends_on = None
+
+
+def upgrade() -> None:
+ op.execute(
+ r"UPDATE bank_connections SET logo_url = NULL "
+ r"WHERE logo_url LIKE '%/sandbox.svg'"
+ )
+
+
+def downgrade() -> None:
+ # One-way data cleanup: the placeholder value carried no information worth
+ # restoring, so the downgrade is intentionally a no-op.
+ pass