Skip to content

Commit 2fdc559

Browse files
committed
docs update for v4.6.0
1 parent 325ffdc commit 2fdc559

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

user_guide_src/source/changelogs/v4.5.6.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ Message Changes
2222
Changes
2323
*******
2424

25-
- **Validation:** Rule ``is_unique`` and ``is_not_unique`` now accept an optional
26-
``dbGroup`` as parameter.
27-
2825
************
2926
Deprecations
3027
************

user_guide_src/source/changelogs/v4.6.0.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ Libraries
219219
See :ref:`FileCollection::retainMultiplePatterns() <file-collections-retain-multiple-patterns>`.
220220
- **Validation:** Added ``min_dims`` validation rule to ``FileRules`` class. See
221221
:ref:`Validation <rules-for-file-uploads>`.
222+
- **Validation:** Rule ``is_unique`` and ``is_not_unique`` now accept an optional
223+
``dbGroup`` as parameter. See :ref:`Validation <rules-for-general-use>`.
222224

223225
Helpers and Functions
224226
=====================

user_guide_src/source/libraries/validation.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ Available Rules
886886
.. note:: Rule is a string; there must be **no spaces** between the parameters, especially the ``is_unique`` rule.
887887
There can be no spaces before and after ``ignore_value``.
888888

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``.
890890
This allows specifying which database connection to use during validation, giving you more flexibility when working with multiple databases.
891891
To use ``dbGroup``, you place it before the table name in the validation rule, like this:
892892
``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
959959
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]``
960960
exists. Can ignore records by field/value to
961961
filter (currently accept only one filter).
962-
(Since v4.5.6, you can optionally pass
962+
(Since v4.6.0, you can optionally pass
963963
the dbGroup as a parameter)
964964
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]``
965965
database. Optionally set a column and value
966966
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
968968
optionally pass the dbGroup as a parameter)
969969
less_than Yes Fails if field is greater than or equal to ``less_than[8]``
970970
the parameter value or not numeric.
@@ -1104,7 +1104,7 @@ min_dims Yes Fails if the minimum width and height of an
11041104
parameter is the field name. The second is
11051105
the width, and the third is the height. Will
11061106
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
11081108
v4.6.0.)
11091109
mime_in Yes Fails if the file's mime type is not one ``mime_in[field_name,image/png,image/jpeg]``
11101110
listed in the parameters.

0 commit comments

Comments
 (0)