]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The :class:`.CheckConstraint` construct now supports naming
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 30 Jan 2015 18:38:51 +0000 (13:38 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 30 Jan 2015 18:38:51 +0000 (13:38 -0500)
commit383bb3f708168aedb1832050a84ff054f8211386
tree3bc8837150ab66a2be63c780ac5912f5cb89e5bc
parent3712e35c329cc3b5106f026be90e04f65412586d
- The :class:`.CheckConstraint` construct now supports naming
conventions that include the token ``%(column_0_name)s``; the
constraint expression is scanned for columns.  Additionally,
naming conventions for check constraints that don't include the
``%(constraint_name)s`` token will now work for :class:`.SchemaType`-
generated constraints, such as those of :class:`.Boolean` and
:class:`.Enum`; this stopped working in 0.9.7 due to :ticket:`3067`.
fixes #3299
doc/build/changelog/changelog_10.rst
doc/build/changelog/migration_10.rst
doc/build/core/constraints.rst
lib/sqlalchemy/sql/naming.py
lib/sqlalchemy/sql/schema.py
test/sql/test_constraints.py
test/sql/test_metadata.py