Skip to content

Commit a43bfb1

Browse files
authored
Merge pull request #262 from pyatnitsev/patch-1
Add description of --db option
2 parents a65cfe2 + 118847d commit a43bfb1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Resources/doc/index.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ For more information on how to write the migrations themselves (i.e. how to
192192
fill in the ``up()`` and ``down()`` methods), see the official Doctrine Migrations
193193
`documentation`_.
194194
195+
.. tip::
196+
If you need to use another database connection to execute migrations you may use option ``--db="doctrine-connection-name"``
197+
where ``doctrine-connection-name`` is valid Doctrine connection defined in doctrine.yaml
198+
195199
Running Migrations during Deployment
196200
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
197201

0 commit comments

Comments
 (0)