浏览代码

Fixed #31650 -- Added note uniqueness of constraints names in docs.

Hasan Ramezani 4 年之前
父节点
当前提交
55556e51fb
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      docs/ref/models/constraints.txt

+ 4 - 2
docs/ref/models/constraints.txt

@@ -67,7 +67,8 @@ ensures the age field is never less than 18.
 
 .. attribute:: CheckConstraint.name
 
-The name of the constraint.
+The name of the constraint. You must always specify a unique name for the
+constraint.
 
 ``UniqueConstraint``
 ====================
@@ -93,7 +94,8 @@ date.
 
 .. attribute:: UniqueConstraint.name
 
-The name of the constraint.
+The name of the constraint. You must always specify a unique name for the
+constraint.
 
 ``condition``
 -------------