Skip to content

Commit e1831b1

Browse files
authored
Add description of --db option
That's useful for using migrations on another doctrine connection.
1 parent a65cfe2 commit e1831b1

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)