sqlalchemy / alembic

A database migrations tool for SQLAlchemy.
MIT License
2.61k stars 234 forks source link

Fix constraint_name type in create_primary_key #1452

Closed kasium closed 2 months ago

kasium commented 3 months ago

The constraint name in create_primary_key should be optional, but for batch operations is is required according to the type annotations

Description

Changed the type annotation to Optional[str]

Checklist

This pull request is:

Have a nice day!

CaselIT commented 3 months ago

Indeed, thanks for looking.

I'll update the stubs and commit

sqla-tester commented 3 months ago

New Gerrit review created for change 8afb2bf3fbddc1b04a9da7c5cc5553dea2c1c593: https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/5243

kasium commented 3 months ago

Thanks!

sqla-tester commented 2 months ago

Gerrit review https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/5243 has been merged. Congratulations! :)