Skip to content

Commit

Permalink
Fix constraint_name type in create_primary_key
Browse files Browse the repository at this point in the history
  • Loading branch information
kasium committed Apr 4, 2024
1 parent 0bc8c63 commit 8afb2bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alembic/operations/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8afb2bf

Please sign in to comment.