1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #11964 -- Added support for database check constraints.

This commit is contained in:
Ian Foote
2016-11-05 13:12:12 +00:00
committed by Tim Graham
parent 6fbfb5cb96
commit 952f05a6db
29 changed files with 799 additions and 39 deletions

View File

@@ -30,6 +30,13 @@ officially support the latest release of each series.
What's new in Django 2.2
========================
Check Constraints
-----------------
The new :class:`~django.db.models.CheckConstraint` class enables adding custom
database constraints. Constraints are added to models using the
:attr:`Meta.constraints <django.db.models.Options.constraints>` option.
Minor features
--------------
@@ -213,7 +220,9 @@ Backwards incompatible changes in 2.2
Database backend API
--------------------
* ...
* Third-party database backends must implement support for table check
constraints or set ``DatabaseFeatures.supports_table_check_constraints`` to
``False``.
:mod:`django.contrib.gis`
-------------------------