From e2c6a0858d7d9ad85eda353076a5b46608b704a9 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Wed, 4 Sep 2019 16:54:27 +0200 Subject: Fixed #30750 -- Added support for check constraints on MySQL 8.0.16+. --- docs/releases/3.0.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs') diff --git a/docs/releases/3.0.txt b/docs/releases/3.0.txt index 2868e37e16..570effe6b3 100644 --- a/docs/releases/3.0.txt +++ b/docs/releases/3.0.txt @@ -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 -- cgit v1.3