implement autogen detection for ONUPDATE/ONDELETE in fks

Issue #317 resolved
Michael Bayer
repo owner created an issue

since some backends support "options" and we support FKs.

Comments (3)

  1. Michael Bayer reporter
    • Implemented support for autogenerate detection of changes in the ondelete, onupdate, initially and deferrable attributes of :class:.ForeignKeyConstraint objects on SQLAlchemy backends that support these on reflection (as of SQLAlchemy 1.0.8 currently Postgresql for all four, MySQL for ondelete and onupdate only). A constraint object that modifies these values will be reported as a "diff" and come out as a drop/create of the constraint with the modified values. The fields are ignored for backends which don't reflect these attributes (as of SQLA 1.0.8 this includes SQLite, Oracle, SQL Server, others). fixes #317

    → <<cset df9207102538>>

  2. Log in to comment