[Sqlalchemy-commits] commit/sqlalchemy: 2 new changesets
Brought to you by:
zzzeek
From: Bitbucket <com...@bi...> - 2014-09-23 03:01:26
|
2 new commits in sqlalchemy: https://bitbucket.org/zzzeek/sqlalchemy/commits/1dacbb25f86f/ Changeset: 1dacbb25f86f Branch: None User: zzzeek Date: 2014-09-23 02:22:09+00:00 Summary: pep8/flake8 Affected #: 1 file https://bitbucket.org/zzzeek/sqlalchemy/commits/5508388f0325/ Changeset: 5508388f0325 Branch: None User: zzzeek Date: 2014-09-23 03:00:45+00:00 Summary: - The :mod:`sqlalchemy.ext.automap` extension will now set ``cascade="all, delete-orphan"`` automatically on a one-to-many relationship/backref where the foreign key is detected as containing one or more non-nullable columns. This argument is present in the keywords passed to :func:`.automap.generate_relationship` in this case and can still be overridden. Additionally, if the :class:`.ForeignKeyConstraint` specifies ``ondelete="CASCADE"`` for a non-nullable or ``ondelete="SET NULL"`` for a nullable set of columns, the argument ``passive_deletes=True`` is also added to the relationship. Note that not all backends support reflection of ondelete, but backends that do include Postgresql and MySQL. fixes #3210 Affected #: 3 files Repository URL: https://bitbucket.org/zzzeek/sqlalchemy/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. |