mirror of
https://github.com/django/django.git
synced 2025-07-21 18:19:12 +00:00
Refs #33508 -- Corrected note about MySQL/MariaDB support of index ordering.
This commit is contained in:
parent
6b53114dd8
commit
6f311c7e35
@ -80,8 +80,12 @@ define an index with a descending order for a column, add a hyphen before the
|
|||||||
field's name.
|
field's name.
|
||||||
|
|
||||||
For example ``Index(fields=['headline', '-pub_date'])`` would create SQL with
|
For example ``Index(fields=['headline', '-pub_date'])`` would create SQL with
|
||||||
``(headline, pub_date DESC)``. Index ordering isn't supported on MySQL. In that
|
``(headline, pub_date DESC)``.
|
||||||
case, a descending index is created as a normal index.
|
|
||||||
|
.. admonition:: MySQL and MariaDB
|
||||||
|
|
||||||
|
Index ordering isn't supported on MySQL < 8.0.1 and MariaDB < 10.8. In that
|
||||||
|
case, a descending index is created as a normal index.
|
||||||
|
|
||||||
``name``
|
``name``
|
||||||
--------
|
--------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user