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:
@@ -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`
|
||||
-------------------------
|
||||
|
||||
Reference in New Issue
Block a user