--- /dev/null
+.. change::
+ :tags: bug, autogenerate
+ :tickets: 1671
+
+ Fixed issue where dialect-specific keyword arguments in ``dialect_kwargs``
+ were not rendered when rendering the :meth:`.Operations.create_foreign_key`
+ operation. This prevented dialect-specific keywords from being rendered
+ using custom :class:`.Rewriter` recipes that modify
+ :class:`.ops.CreateForeignKeyOp`, similar to other issues such as
+ :ticket:`1635`. Pull request courtesy Justin Malin.
+++ /dev/null
-.. change::
- :tags: usecase, operations
- :tickets: 1671
- Fixed an issue where dialect-specific keyword arguments, dialect_kwargs, were
- not passed through when using the op.create_foreign_key() operation. This
- prevented the use of backend-specific foreign key options, such as
- postgresql_not_valid for PostgreSQL constraints. The renderer for
- ops.CreateForeignKeyOp now correctly includes these arguments, aligning its
- behavior with other constraint operations.
- Pull request courtesy of Justin Malin.