Skip to content

Commit 8482514

Browse files
committed
how to upgrade sections
1 parent 9670327 commit 8482514

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

source/upgrade.txt

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ Upgrade Driver Versions
2020
Overview
2121
--------
2222

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+
--------------
2529

2630
Before you upgrade, perform the following actions:
2731

@@ -39,6 +43,17 @@ Before you upgrade, perform the following actions:
3943
To ensure compatibility across {+mdb-server+} versions when
4044
upgrading driver versions, use the :ref:`{+stable-api+} <php-stable-api>`.
4145

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+
4257
.. _php-breaking-changes:
4358

4459
Breaking Changes

0 commit comments

Comments
 (0)