Skip to content

Commit eb4739e

Browse files
jason-price-mongodbjason-price-mongodb
andauthored
DOCSP-21874 index-support-reverse-replication (#3225)
* DOCSP-21874-index-support-reverse-replication * DOCSP-21874-index-support-reverse-replication * DOCSP-21874-index-support-reverse-replication * DOCSP-21874-index-support-reverse-replication * DOCSP-21874-index-support-reverse-replication * DOCSP-21874-index-support-reverse-replication * DOCSP-21874-index-support-reverse-replication * DOCSP-21874-index-support-reverse-replication --------- Co-authored-by: jason-price-mongodb <[email protected]>
1 parent c7fa2c3 commit eb4739e

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

source/reference/command/collMod.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ Change Index Properties
121121

122122
* - ``unique``
123123
- A boolean that determines whether or not the index is unique.
124+
125+
.. note::
126+
127+
Must be set to ``true``. ``false`` is not supported.
124128

125129
When ``unique`` is ``true``, ``collMod`` scans the
126130
``keyPattern`` index for duplicates and then converts it to

source/reference/command/validate.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,13 @@ consistent sessions <causal-consistency>`. Starting in MongoDB 4.2, the
157157
associated with :ref:`causally consistent sessions
158158
<causal-consistency>`.
159159

160+
Index Key Format
161+
~~~~~~~~~~~~~~~~
162+
163+
Starting in MongoDB 6.0, the ``validate`` command returns a message if a
164+
:ref:`unique index <index-type-unique>` has a key format that is
165+
incompatible. The message indicates an old format is used.
166+
160167
Examples
161168
--------
162169

source/release-notes/6.0-compatibility.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ single document.
7979

8080
See :parameter:`indexMaxNumGeneratedKeysPerDocument`.
8181

82+
Index Key Format
83+
~~~~~~~~~~~~~~~~
84+
85+
Starting in MongoDB 6.0, a change to the :ref:`unique index
86+
<index-type-unique>` key format was introduced. If you create a unique
87+
index in MongoDB 6.0, the index won't work with MongoDB versions earlier
88+
than 5.3.2 or 5.0.7.
89+
8290
Legacy ``mongo`` Shell Removed
8391
------------------------------
8492

0 commit comments

Comments
 (0)