]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The "auto-attach" feature of constraints such as :class:`.UniqueConstraint`
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 24 Mar 2015 14:55:29 +0000 (10:55 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 24 Mar 2015 14:55:29 +0000 (10:55 -0400)
commitbdcaa0f6ca580b54b9c25178441fcbe8f2a4e387
tree61a80475ad22f83067ab0b2fe1df65b709f3a2c1
parent04545727d4117db51786189e591b1777bde1a40b
- The "auto-attach" feature of constraints such as :class:`.UniqueConstraint`
and :class:`.CheckConstraint` has been further enhanced such that
when the constraint is associated with non-table-bound :class:`.Column`
objects, the constraint will set up event listeners with the
columns themselves such that the constraint auto attaches at the
same time the columns are associated with the table.  This in particular
helps in some edge cases in declarative but is also of general use.
fixes #3341
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/sql/schema.py
test/ext/declarative/test_inheritance.py
test/sql/test_constraints.py