-
-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ForeignKeyConstraint argument match
is not rendered in autogeneration
#1302
Comments
seems like a simple oversight, can you send a PR for the lines added to alembic/alembic/autogenerate/render.py Line 967 in dbdec26
alembic/tests/test_autogen_render.py Line 425 in dbdec26
|
…eForeignKeyOp to rendering
…nstraint rendering
…om_constraint
…eyConstraint
@zzzeek I have opened a pull request and noticed that not only the |
Asib Kamalsada has proposed a fix for this issue in the main branch: Add |
When specifying
ForeignKeyConstraint(..., match="FULL")
I noticed that the autogeneration does not pick up the keyword argumentmatch
.I already checked, the constraint is interpreted correctly and only during rendering in:
https://github.com/sqlalchemy/alembic/blob/dbdec2661b8a01132ea3f7a027f85fed2eaf5e54/alembic/autogenerate/render.py#L983C25-L983C25
the argument is just silently dropped, which totally confuses me.
Am I not seeing the reason for that? I need many
ForeignKeyConstraints
to have full matching, this is troublesome doing by hand.The text was updated successfully, but these errors were encountered: