mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #31578 -- Dropped support for MySQL 5.6.
This commit is contained in:
parent
9756c33429
commit
20a8a443f0
6 changed files with 16 additions and 38 deletions
|
@ -59,7 +59,7 @@ supported versions, and any notes for each of the supported database backends:
|
|||
Database Library Requirements Supported Versions Notes
|
||||
================== ============================== ================== =========================================
|
||||
PostgreSQL GEOS, GDAL, PROJ, PostGIS 9.6+ Requires PostGIS.
|
||||
MySQL GEOS, GDAL 5.6.1+ :ref:`Limited functionality <mysql-spatial-limitations>`.
|
||||
MySQL GEOS, GDAL 5.7+ :ref:`Limited functionality <mysql-spatial-limitations>`.
|
||||
Oracle GEOS, GDAL 12.2+ XE not supported.
|
||||
SQLite GEOS, GDAL, PROJ, SpatiaLite 3.8.3+ Requires SpatiaLite 4.3+
|
||||
================== ============================== ================== =========================================
|
||||
|
|
|
@ -300,7 +300,7 @@ MySQL notes
|
|||
Version support
|
||||
---------------
|
||||
|
||||
Django supports MySQL 5.6 and higher.
|
||||
Django supports MySQL 5.7 and higher.
|
||||
|
||||
Django's ``inspectdb`` feature uses the ``information_schema`` database, which
|
||||
contains detailed data on all database schemas.
|
||||
|
@ -479,11 +479,11 @@ Several other `MySQLdb connection options`_ may be useful, such as ``ssl``,
|
|||
Setting ``sql_mode``
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
From MySQL 5.7 onwards and on fresh installs of MySQL 5.6, the default value of
|
||||
the ``sql_mode`` option contains ``STRICT_TRANS_TABLES``. That option escalates
|
||||
warnings into errors when data are truncated upon insertion, so Django highly
|
||||
recommends activating a `strict mode`_ for MySQL to prevent data loss (either
|
||||
``STRICT_TRANS_TABLES`` or ``STRICT_ALL_TABLES``).
|
||||
From MySQL 5.7 onwards, the default value of the ``sql_mode`` option contains
|
||||
``STRICT_TRANS_TABLES``. That option escalates warnings into errors when data
|
||||
are truncated upon insertion, so Django highly recommends activating a
|
||||
`strict mode`_ for MySQL to prevent data loss (either ``STRICT_TRANS_TABLES``
|
||||
or ``STRICT_ALL_TABLES``).
|
||||
|
||||
.. _strict mode: https://dev.mysql.com/doc/refman/en/sql-mode.html#sql-mode-strict
|
||||
|
||||
|
@ -605,9 +605,8 @@ specification without a key length".
|
|||
Fractional seconds support for Time and DateTime fields
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
MySQL 5.6.4 and later can store fractional seconds, provided that the
|
||||
column definition includes a fractional indication (e.g. ``DATETIME(6)``).
|
||||
Earlier versions do not support them at all.
|
||||
MySQL can store fractional seconds, provided that the column definition
|
||||
includes a fractional indication (e.g. ``DATETIME(6)``).
|
||||
|
||||
Django will not upgrade existing columns to include fractional seconds if the
|
||||
database server supports it. If you want to enable them on an existing database,
|
||||
|
|
|
@ -243,6 +243,12 @@ Dropped support for PostgreSQL 9.5
|
|||
Upstream support for PostgreSQL 9.5 ends in February 2021. Django 3.2 supports
|
||||
PostgreSQL 9.6 and higher.
|
||||
|
||||
Dropped support for MySQL 5.6
|
||||
-----------------------------
|
||||
|
||||
The end of upstream support for MySQL 5.6 is April 2021. Django 3.2 supports
|
||||
MySQL 5.7 and higher.
|
||||
|
||||
Miscellaneous
|
||||
-------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue