forked from sqlalchemy/sqlalchemy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes sqlalchemy#4784 regarding constraints:
* introduced new type_ck prefix for type-bound constraints; code and docs * misc unit tests to cover the type-bound items * added unit tests to ensure pep-compliant enum objects are used to generate a name as the docs instruct Fixes sqlalchemy#4790 regarding exception text: * added some debug info to constraint naming exceptions Change-Id: I48dd77301c10d6462847e2d00ac1412be20a74b2
- Loading branch information
Showing
6 changed files
with
518 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.. change:: | ||
:tags: feature, orm | ||
:tickets: 4784, 4790 | ||
|
||
Added support for a new :paramref:`_schema.MetaData.naming_convention`, | ||
`type_ck`. | ||
|
||
The `CheckConstraint` created by `Boolean` and `Enum` columns is a so-called | ||
"type-bound" constraint, and often needs a different naming convention than | ||
other constraints. | ||
|
||
Exception messages generated by `create_table` when there related errors are | ||
also improved. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.