@@ -79,7 +79,7 @@ the ``status`` command:
7979
8080.. code-block :: bash
8181
82- php app /console doctrine:migrations:status
82+ php bin /console doctrine:migrations:status
8383
8484 == Configuration
8585
@@ -100,7 +100,7 @@ for you.
100100
101101.. code-block :: bash
102102
103- $ php app /console doctrine:migrations:generate
103+ $ php bin /console doctrine:migrations:generate
104104 Generated new migration class to " /path/to/project/app/DoctrineMigrations/Version20100621140655.php"
105105
106106 Have a look at the newly generated migration class and you will see something
@@ -129,7 +129,7 @@ migration to execute:
129129
130130.. code-block :: bash
131131
132- $ php app /console doctrine:migrations:status --show-versions
132+ $ php bin /console doctrine:migrations:status --show-versions
133133
134134 == Configuration
135135
@@ -153,7 +153,7 @@ finally migrate when you're ready:
153153
154154.. code-block :: bash
155155
156- $ php app /console doctrine:migrations:migrate 20100621140655
156+ $ php bin /console doctrine:migrations:migrate 20100621140655
157157
158158 For more information on how to write the migrations themselves (i.e. how to
159159fill in the ``up() `` and ``down() `` methods), see the official Doctrine Migrations
@@ -184,10 +184,10 @@ You can skip single migrations by explicitely adding them to the ``migration_ver
184184
185185.. code-block :: bash
186186
187- $ php app /console doctrine:migrations:version YYYYMMDDHHMMSS --add
188-
187+ $ php bin /console doctrine:migrations:version YYYYMMDDHHMMSS --add
188+
189189 Doctrine will then assume that this migration has already been run and will ignore it.
190-
190+
191191
192192Generating Migrations Automatically
193193-----------------------------------
@@ -268,7 +268,7 @@ running the following command:
268268
269269.. code-block :: bash
270270
271- $ php app /console doctrine:migrations:diff
271+ $ php bin /console doctrine:migrations:diff
272272
273273 You should see a message that a new migration class was generated based on
274274the schema differences. If you open this file, you'll find that it has the
@@ -277,7 +277,7 @@ to add the table to your database:
277277
278278.. code-block :: bash
279279
280- $ php app /console doctrine:migrations:migrate
280+ $ php bin /console doctrine:migrations:migrate
281281
282282 The moral of the story is this: after each change you make to your Doctrine
283283mapping information, run the ``doctrine:migrations:diff `` command to automatically
@@ -289,13 +289,13 @@ to create a fresh database and run your migrations in order to get your database
289289schema fully up to date. In fact, this is an easy and dependable workflow
290290for your project.
291291
292- If you don't want to use this workflow and instead create your schema via
292+ If you don't want to use this workflow and instead create your schema via
293293``doctrine:schema:create ``, you can tell Doctrine to skip all existing migrations:
294294
295295.. code-block :: bash
296296
297- $ php app /console doctrine:migrations:version --add --all
298-
297+ $ php bin /console doctrine:migrations:version --add --all
298+
299299 Otherwise Doctrine will try to run all migrations, which probably will not work.
300300
301301Container Aware Migrations
0 commit comments