Skip to content

Commit

Permalink
Merge "Fix constraint_name type in create_primary_key" into main
Browse files Browse the repository at this point in the history
  • Loading branch information
CaselIT authored and Gerrit Code Review committed Apr 24, 2024
2 parents 44965f0 + 0171748 commit 88f2684
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion alembic/operations/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def create_primary_key(
def batch_create_primary_key(
cls,
operations: BatchOperations,
constraint_name: str,
constraint_name: Optional[str],
columns: List[str],
) -> None:
"""Issue a "create primary key" instruction using the
Expand Down

0 comments on commit 88f2684

Please sign in to comment.