From 8afb2bf3fbddc1b04a9da7c5cc5553dea2c1c593 Mon Sep 17 00:00:00 2001 From: kasium <15907922+kasium@users.noreply.github.com> Date: Thu, 4 Apr 2024 15:08:07 +0200 Subject: [PATCH] Fix constraint_name type in create_primary_key --- alembic/operations/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alembic/operations/base.py b/alembic/operations/base.py index 649e7f2b..27dd3b9e 100644 --- a/alembic/operations/base.py +++ b/alembic/operations/base.py @@ -1771,7 +1771,7 @@ def create_index( ... def create_primary_key( - self, constraint_name: str, columns: List[str] + self, constraint_name: Optional[str], columns: List[str] ) -> None: """Issue a "create primary key" instruction using the current batch migration context.