浏览代码

Refs #33508 -- Corrected note about MySQL/MariaDB support of index ordering.

Hannes Ljungberg 2 年之前
父节点
当前提交
6f311c7e35
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      docs/ref/models/indexes.txt

+ 6 - 2
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``
 --------