Skip to content

Commit 332a78f

Browse files
committed
docs: handling constraints for databases other than MySQL
1 parent f67babc commit 332a78f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

user_guide_src/source/database/query_builder.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,10 @@ constraint by default. Here is an example using an array:
937937

938938
.. literalinclude:: query_builder/112.php
939939

940+
.. note:: For databases other than MySQL, if a table has multiple keys (primary or unique),
941+
the primary key will be prioritized by default when handling constraints. If you prefer
942+
to use a different unique key instead of the primary key, use the ``onConstraint()`` method.
943+
940944
The first parameter is an associative array of values.
941945

942946
Here is an example using an object:

0 commit comments

Comments
 (0)