File tree 1 file changed +5
-5
lines changed
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
316
316
state of the database and generates the SQL needed to synchronize them! Like
317
317
before, execute your migrations:
318
318
319
- .. note ::
319
+ .. code-block :: terminal
320
+
321
+ $ php bin/console doctrine:migrations:migrate
322
+
323
+ .. caution ::
320
324
321
325
If you are using an SQLite database, you'll see the following error:
322
326
*PDOException: SQLSTATE[HY000]: General error: 1 Cannot add a NOT NULL
323
327
column with default value NULL *. Add a ``nullable=true `` option to the
324
328
``description `` property to fix the problem.
325
329
326
- .. code-block :: terminal
327
-
328
- $ php bin/console doctrine:migrations:migrate
329
-
330
330
This will only execute the *one * new migration file, because DoctrineMigrationsBundle
331
331
knows that the first migration was already executed earlier. Behind the scenes, it
332
332
manages a ``migration_versions `` table to track this.
You can’t perform that action at this time.
0 commit comments