From 6f311c7e35090957dd93783b71c5d3af7d5329d4 Mon Sep 17 00:00:00 2001 From: Hannes Ljungberg Date: Wed, 20 Apr 2022 11:59:48 +0200 Subject: [PATCH] Refs #33508 -- Corrected note about MySQL/MariaDB support of index ordering. --- docs/ref/models/indexes.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/ref/models/indexes.txt b/docs/ref/models/indexes.txt index 2992d51d2a..6d860ae739 100644 --- a/docs/ref/models/indexes.txt +++ b/docs/ref/models/indexes.txt @@ -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`` --------