File tree 1 file changed +7
-7
lines changed
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::
174
174
Confused why the price is an integer? Don't worry: this is just an example.
175
175
But, storing prices as integers (e.g. 100 = $1 USD) can avoid rounding issues.
176
176
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
-
184
177
.. caution ::
185
178
186
179
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
323
316
state of the database and generates the SQL needed to synchronize them! Like
324
317
before, execute your migrations:
325
318
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
+
326
326
.. code-block :: terminal
327
327
328
328
$ php bin/console doctrine:migrations:migrate
You can’t perform that action at this time.
0 commit comments