1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Refs #12990 -- Bumped mysqlclient requirement to >= 1.4.0.

MySQLdb.constants.FIELD_TYPE.JSON was added in mysqlclient 1.4.0rc2.
This commit is contained in:
Mariusz Felisiak 2020-04-10 12:45:42 +02:00
parent 6137ec2bf2
commit f97f71f592
4 changed files with 7 additions and 4 deletions

View File

@ -32,8 +32,8 @@ from .schema import DatabaseSchemaEditor # isort:skip
from .validation import DatabaseValidation # isort:skip from .validation import DatabaseValidation # isort:skip
version = Database.version_info version = Database.version_info
if version < (1, 3, 13): if version < (1, 4, 0):
raise ImproperlyConfigured('mysqlclient 1.3.13 or newer is required; you have %s.' % Database.__version__) raise ImproperlyConfigured('mysqlclient 1.4.0 or newer is required; you have %s.' % Database.__version__)
# MySQLdb returns TIME columns as timedelta -- they are more like timedelta in # MySQLdb returns TIME columns as timedelta -- they are more like timedelta in

View File

@ -361,7 +361,7 @@ Connector/Python includes `its own`_.
mysqlclient mysqlclient
~~~~~~~~~~~ ~~~~~~~~~~~
Django requires `mysqlclient`_ 1.3.13 or later. Django requires `mysqlclient`_ 1.4.0 or later.
MySQL Connector/Python MySQL Connector/Python
~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~

View File

@ -690,6 +690,9 @@ Miscellaneous
* The auto-reloader no longer monitors changes in built-in Django translation * The auto-reloader no longer monitors changes in built-in Django translation
files. files.
* The minimum supported version of ``mysqlclient`` is increased from 1.3.13 to
1.4.0.
.. _deprecated-features-3.1: .. _deprecated-features-3.1:
Features deprecated in 3.1 Features deprecated in 3.1

View File

@ -1 +1 @@
mysqlclient >= 1.3.13 mysqlclient >= 1.4.0