From d7c3e520023b0dbc47a7a7a00a7370674c634648 Mon Sep 17 00:00:00 2001 From: patrick Date: Fri, 4 Sep 2026 18:49:24 +0200 Subject: [PATCH] =?UTF-8?q?fix(migration):=20revision-id=200007=20k=C3=BCr?= =?UTF-8?q?zen=20(alembic=5Fversion=20ist=20VARCHAR(32))?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "0007_indizes_und_unique_constraints" (37 Zeichen) sprengte die Spalte, Statements liefen alle durch, nur das abschließende UPDATE auf alembic_version schlug fehl - sauber zurückgerollt (transaktionale DDL), beim echten Deploy-Lauf aufgefallen. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01CVgbozhYmuEhiEJHffRXCV --- ...es_und_unique_constraints.py => 0007_indizes_und_locks.py} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename backend/alembic/versions/{0007_indizes_und_unique_constraints.py => 0007_indizes_und_locks.py} (96%) diff --git a/backend/alembic/versions/0007_indizes_und_unique_constraints.py b/backend/alembic/versions/0007_indizes_und_locks.py similarity index 96% rename from backend/alembic/versions/0007_indizes_und_unique_constraints.py rename to backend/alembic/versions/0007_indizes_und_locks.py index c9efa97..5e41560 100644 --- a/backend/alembic/versions/0007_indizes_und_unique_constraints.py +++ b/backend/alembic/versions/0007_indizes_und_locks.py @@ -1,7 +1,7 @@ """Review-Funde (postgres-/sql-expert): fehlende FK-Indizes + partielle Unique- Constraints gegen Race Conditions (doppelte aktive Kontrolle/Mindermenge) -Revision ID: 0007_indizes_und_unique_constraints +Revision ID: 0007_indizes_und_locks Revises: 0006_add_eskalation_felder Create Date: 2026-09-04 @@ -21,7 +21,7 @@ from typing import Sequence, Union from alembic import op -revision: str = "0007_indizes_und_unique_constraints" +revision: str = "0007_indizes_und_locks" down_revision: Union[str, None] = "0006_add_eskalation_felder" branch_labels: Union[str, Sequence[str], None] = None depends_on: Union[str, Sequence[str], None] = None