Skip to content

Commit 1ba9781

Browse files
authored
Merge pull request #171 from rustagir/DOCSP-44238-v2-remove-autoIndex
DOCSP-44238: v2 remove autoindex
2 parents 918de56 + 2c12c1c commit 1ba9781

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

source/reference/method/MongoDBDatabase-createCollection.txt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,6 @@ Parameters
5757
- Type
5858
- Description
5959

60-
* - autoIndexId
61-
- boolean
62-
- Specify ``false`` to disable the automatic creation of an index on the
63-
``_id`` field.
64-
65-
.. important::
66-
67-
For replica sets, do not set ``autoIndexId`` to ``false``.
68-
69-
.. deprecated:: 1.4
70-
As of MongoDB 4.0, this option cannot be ``false`` when creating a replicated
71-
collection (i.e. a collection outside of the ``local`` database in
72-
any mongod mode).
73-
7460
* - capped
7561
- boolean
7662
- To create a capped collection, specify ``true``. If you specify

source/whats-new.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ What's New in 2.0
6060
The {+library-short+} v2.0 release includes the following features,
6161
improvements, and fixes:
6262

63-
- Removal of deprecated fields in GridFS types.
63+
- Removes deprecated fields in GridFS types.
6464

6565
- The library does not calculate the ``md5`` field when a file is
6666
uploaded to GridFS. If your application requires a file digest, you
@@ -83,7 +83,10 @@ improvements, and fixes:
8383
:phpmethod:`MongoDB\Collection::find()` or
8484
:phpmethod:`MongoDB\Collection::findOne()` API documentation.
8585

86-
- Removal of the deprecated ``IndexInfo::isGeoHaystack()`` method.
86+
- Removes the deprecated ``IndexInfo::isGeoHaystack()`` method.
87+
88+
- Removes the deprecated ``autoIndexId`` option for the
89+
``MongoDB\\Database::createCollection()`` method.
8790

8891
- Drops support for map-reduce functionality by removing the following
8992
deprecated methods and types:

0 commit comments

Comments
 (0)