mirror of https://github.com/django/django.git
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.
|
||||
|
||||
For example ``Index(fields=['headline', '-pub_date'])`` would create SQL with
|
||||
``(headline, pub_date DESC)``. Index ordering isn't supported on MySQL. In that
|
||||
case, a descending index is created as a normal index.
|
||||
``(headline, pub_date DESC)``.
|
||||
|
||||
.. 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``
|
||||
--------
|
||||
|
|
Loading…
Reference in New Issue