You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user_guide_src/source/libraries/validation.rst
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -886,7 +886,7 @@ Available Rules
886
886
.. note:: Rule is a string; there must be **no spaces** between the parameters, especially the ``is_unique`` rule.
887
887
There can be no spaces before and after ``ignore_value``.
888
888
889
-
.. note:: Since version v4.5.6, you can optionally include ``dbGroup`` in validation rules like ``is_unique`` and ``is_not_unique``.
889
+
.. note:: Since version v4.6.0, you can optionally include ``dbGroup`` in validation rules like ``is_unique`` and ``is_not_unique``.
890
890
This allows specifying which database connection to use during validation, giving you more flexibility when working with multiple databases.
891
891
To use ``dbGroup``, you place it before the table name in the validation rule, like this:
892
892
``is_unique[dbGroup.table.field,ignore_field,ignore_value]`` or ``is_not_unique[dbGroup.table.field,where_field,where_value]``.
@@ -959,12 +959,12 @@ is_natural_no_zero No Fails if field contains anything other than
959
959
is_not_unique Yes Checks the database to see if the given value ``is_not_unique[table.field,where_field,where_value]`` or ``is_not_unique[dbGroup.table.field,where_field,where_value]``
960
960
exists. Can ignore records by field/value to
961
961
filter (currently accept only one filter).
962
-
(Since v4.5.6, you can optionally pass
962
+
(Since v4.6.0, you can optionally pass
963
963
the dbGroup as a parameter)
964
964
is_unique Yes Checks if this field value exists in the ``is_unique[table.field,ignore_field,ignore_value]`` or ``is_unique[dbGroup.table.field,ignore_field,ignore_value]``
965
965
database. Optionally set a column and value
966
966
to ignore, useful when updating records to
967
-
ignore itself. (Since v4.5.6, you can
967
+
ignore itself. (Since v4.6.0, you can
968
968
optionally pass the dbGroup as a parameter)
969
969
less_than Yes Fails if field is greater than or equal to ``less_than[8]``
970
970
the parameter value or not numeric.
@@ -1104,7 +1104,7 @@ min_dims Yes Fails if the minimum width and height of an
1104
1104
parameter is the field name. The second is
1105
1105
the width, and the third is the height. Will
1106
1106
also fail if the file cannot be determined
1107
-
to be an image. (This rule was added in
1107
+
to be an image. (This rule was added in
1108
1108
v4.6.0.)
1109
1109
mime_in Yes Fails if the file's mime type is not one ``mime_in[field_name,image/png,image/jpeg]``
0 commit comments