Skip to content

Commit cb501e1

Browse files
committed
Merge branch '7.1' into 7.2
* 7.1: chore: relocate the sqlite note block in a better place
2 parents a115c79 + ce6e820 commit cb501e1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doctrine.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,6 @@ Whoa! You now have a new ``src/Entity/Product.php`` file::
174174
Confused why the price is an integer? Don't worry: this is just an example.
175175
But, storing prices as integers (e.g. 100 = $1 USD) can avoid rounding issues.
176176

177-
.. note::
178-
179-
If you are using an SQLite database, you'll see the following error:
180-
*PDOException: SQLSTATE[HY000]: General error: 1 Cannot add a NOT NULL
181-
column with default value NULL*. Add a ``nullable=true`` option to the
182-
``description`` property to fix the problem.
183-
184177
.. caution::
185178

186179
There is a `limit of 767 bytes for the index key prefix`_ when using
@@ -327,6 +320,13 @@ before, execute your migrations:
327320
328321
$ php bin/console doctrine:migrations:migrate
329322
323+
.. caution::
324+
325+
If you are using an SQLite database, you'll see the following error:
326+
*PDOException: SQLSTATE[HY000]: General error: 1 Cannot add a NOT NULL
327+
column with default value NULL*. Add a ``nullable=true`` option to the
328+
``description`` property to fix the problem.
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)