Skip to content

Commit ce6e820

Browse files
committed
Minor tweak
1 parent 1f8ec8c commit ce6e820

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doctrine.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -316,17 +316,17 @@ The migration system is *smart*. It compares all of your entities with the curre
316316
state of the database and generates the SQL needed to synchronize them! Like
317317
before, execute your migrations:
318318

319-
.. note::
319+
.. code-block:: terminal
320+
321+
$ php bin/console doctrine:migrations:migrate
322+
323+
.. caution::
320324

321325
If you are using an SQLite database, you'll see the following error:
322326
*PDOException: SQLSTATE[HY000]: General error: 1 Cannot add a NOT NULL
323327
column with default value NULL*. Add a ``nullable=true`` option to the
324328
``description`` property to fix the problem.
325329

326-
.. code-block:: terminal
327-
328-
$ php bin/console doctrine:migrations:migrate
329-
330330
This will only execute the *one* new migration file, because DoctrineMigrationsBundle
331331
knows that the first migration was already executed earlier. Behind the scenes, it
332332
manages a ``migration_versions`` table to track this.

0 commit comments

Comments
 (0)