Skip to content

ForeignKeyConstraint argument match is not rendered in autogeneration #1302

Description

@asibkamalsada

When specifying ForeignKeyConstraint(..., match="FULL") I noticed that the autogeneration does not pick up the keyword argument match.

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions