Fixed #30750 -- Added support for check constraints on MySQL 8.0.16+.

This commit is contained in:
Mariusz Felisiak 2019-09-04 16:54:27 +02:00
parent b93d786251
commit e2c6a0858d
5 changed files with 40 additions and 13 deletions

View file

@ -353,6 +353,8 @@ Models
* :attr:`.FileField.upload_to` now supports :class:`pathlib.Path`.
* :class:`~django.db.models.CheckConstraint` is now supported on MySQL 8.0.16+.
Requests and Responses
~~~~~~~~~~~~~~~~~~~~~~
@ -579,6 +581,9 @@ Miscellaneous
:ref:`x-content-type-options` header on all responses that do not already
have it.
* On MySQL 8.0.16+, ``PositiveIntegerField`` and ``PositiveSmallIntegerField``
now include a check constraint to prevent negative values in the database.
.. _deprecated-features-3.0:
Features deprecated in 3.0