File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,12 @@ Upgrade Driver Versions
20
20
Overview
21
21
--------
22
22
23
- This page describes the changes you must make to your application
24
- when you upgrade to a new version of the {+driver-short+}.
23
+ This page describes how to upgrade your driver to a new version and the changes
24
+ you must make to your application when you upgrade to a new version of the
25
+ {+driver-short+}.
26
+
27
+ How to Upgrade
28
+ --------------
25
29
26
30
Before you upgrade, perform the following actions:
27
31
@@ -39,6 +43,17 @@ Before you upgrade, perform the following actions:
39
43
To ensure compatibility across {+mdb-server+} versions when
40
44
upgrading driver versions, use the :ref:`{+stable-api+} <php-stable-api>`.
41
45
46
+ To upgrade your driver version, replace "version number" with the version number
47
+ you would like to upgrade to and run the following command in your application's
48
+ directory:
49
+
50
+ .. code-block:: bash
51
+
52
+ composer require mongodb/mongodb:<version number>
53
+
54
+ Installation instructions for the ``mongodb`` extension may be found in the
55
+ `PHP.net documentation <https://www.php.net/manual/en/mongodb.installation.php>`__.
56
+
42
57
.. _php-breaking-changes:
43
58
44
59
Breaking Changes
You can’t perform that action at this time.
0 commit comments