Skip to content

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

fix(migrations): re-chain OIDC migration to 060 to clear duplicate 055 (#316)

Tássio Noronha3e85476da0c4
diff --git a/backend/alembic/versions/055_oidc_identity_linking.py b/backend/alembic/versions/060_oidc_identity_linking.py
similarity index 64%
rename from backend/alembic/versions/055_oidc_identity_linking.py
rename to backend/alembic/versions/060_oidc_identity_linking.py
index dbc5c929..0cf66b42 100644
--- a/backend/alembic/versions/055_oidc_identity_linking.py
+++ b/backend/alembic/versions/060_oidc_identity_linking.py
@@ -1,16 +1,23 @@
"""add oidc identity linking to users
-Revision ID: 055
-Revises: 054
+Revision ID: 060
+Revises: 059
Create Date: 2026-06-05
+
+Re-chained from the original "055" to 060 to resolve a duplicate revision id:
+the OIDC feature and the bank-connection-logo feature (#294) both shipped a
+migration numbered 055, leaving two alembic heads so `alembic upgrade head`
+failed on startup. This migration is additive (users.oidc_issuer/oidc_subject
++ indexes + unique constraint), so re-ordering it after the current head is
+safe; it simply applies on the next upgrade.
"""
from alembic import op
import sqlalchemy as sa
-revision = "055"
-down_revision = "054"
+revision = "060"
+down_revision = "059"
branch_labels = None
depends_on = None