Skip to content

Commit 9a11422

Browse files
authored
Merge pull request #157 from peterkokot/patch-sf3
Fix Symfony 3.0 console path
2 parents 45df539 + 1140fc4 commit 9a11422

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Resources/doc/index.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ You can configure the path, namespace, table_name and name in your ``config.yml`
6262
Usage
6363
-----
6464

65+
.. caution::
66+
67+
If your application is based on Symfony 3, replace ``php app/console`` by
68+
``php bin/console`` before executing any of the console commands included
69+
in this article.
70+
6571
All of the migrations functionality is contained in a few console commands:
6672

6773
.. code-block:: bash
@@ -185,9 +191,9 @@ You can skip single migrations by explicitely adding them to the ``migration_ver
185191
.. code-block:: bash
186192
187193
$ php app/console doctrine:migrations:version YYYYMMDDHHMMSS --add
188-
194+
189195
Doctrine will then assume that this migration has already been run and will ignore it.
190-
196+
191197

192198
Generating Migrations Automatically
193199
-----------------------------------
@@ -289,13 +295,13 @@ to create a fresh database and run your migrations in order to get your database
289295
schema fully up to date. In fact, this is an easy and dependable workflow
290296
for your project.
291297

292-
If you don't want to use this workflow and instead create your schema via
298+
If you don't want to use this workflow and instead create your schema via
293299
``doctrine:schema:create``, you can tell Doctrine to skip all existing migrations:
294300

295301
.. code-block:: bash
296302
297303
$ php app/console doctrine:migrations:version --add --all
298-
304+
299305
Otherwise Doctrine will try to run all migrations, which probably will not work.
300306

301307
Container Aware Migrations

0 commit comments

Comments
 (0)