File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff 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
323316state of the database and generates the SQL needed to synchronize them! Like
324317before, 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
You can’t perform that action at this time.
0 commit comments