Skip to content

Commit 1f8ec8c

Browse files
committed
minor #20174 chore: relocate the sqlite note block in a better place (94noni)
This PR was merged into the 7.1 branch. Discussion ---------- chore: relocate the sqlite note block in a better place the `description` property written in this note is only written on this page after, so I propose to move this block next to it to avoid confusing reader (I am reading on sqlite lately) Commits ------- 63c749f chore: relocate the sqlite note block in a better place
2 parents 3b2fc15 + 63c749f commit 1f8ec8c

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
@@ -323,6 +316,13 @@ The migration system is *smart*. It compares all of your entities with the curre
323316
state of the database and generates the SQL needed to synchronize them! Like
324317
before, execute your migrations:
325318

319+
.. note::
320+
321+
If you are using an SQLite database, you'll see the following error:
322+
*PDOException: SQLSTATE[HY000]: General error: 1 Cannot add a NOT NULL
323+
column with default value NULL*. Add a ``nullable=true`` option to the
324+
``description`` property to fix the problem.
325+
326326
.. code-block:: terminal
327327
328328
$ php bin/console doctrine:migrations:migrate

0 commit comments

Comments
 (0)