mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #30750 -- Added support for check constraints on MySQL 8.0.16+.
This commit is contained in:
parent
b93d786251
commit
e2c6a0858d
5 changed files with 40 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue