-
-
Notifications
You must be signed in to change notification settings - Fork 303
Closed
Labels
3rd part autogen option renderingautogenerate - renderinguse casenot quite a feature and not quite a bug, something we just didn't think ofnot quite a feature and not quite a bug, something we just didn't think of
Description
Describe the use case
SqlAlchemy supports adding dialect kwargs for foreign keys, as does op.create_foreign_key(), but the renderer for ops.CreateForeignKeyOp does not pass through dialect_kwargs. An example of this is postgresql_not_valid.
Databases / Backends / Drivers targeted
postgres
Example Use
ALTER TABLE t1 ADD CONSTRAINT i FOREIGN KEY(c1) REFERENCES t2 (c2) NOT VALID;
Additional context
This was quite confusing, as it is documented as if it is handled, and it dialect_kwargs seem to be passed through for other constraints, just not for foreign keys. I have already begun working on the solution here.
Have a nice day!
Metadata
Metadata
Assignees
Labels
3rd part autogen option renderingautogenerate - renderinguse casenot quite a feature and not quite a bug, something we just didn't think ofnot quite a feature and not quite a bug, something we just didn't think of