File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -316,17 +316,17 @@ The migration system is *smart*. It compares all of your entities with the curre
316316state of the database and generates the SQL needed to synchronize them! Like
317317before, 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-
330330This will only execute the *one * new migration file, because DoctrineMigrationsBundle
331331knows that the first migration was already executed earlier. Behind the scenes, it
332332manages a ``migration_versions `` table to track this.
You can’t perform that action at this time.
0 commit comments