Skip to content

Commit

Permalink
chore: relocate the sqlite note block in a better place
Browse files Browse the repository at this point in the history
  • Loading branch information
94noni authored Aug 29, 2024
1 parent 3b2fc15 commit 63c749f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions doctrine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,6 @@ Whoa! You now have a new ``src/Entity/Product.php`` file::
Confused why the price is an integer? Don't worry: this is just an example.
But, storing prices as integers (e.g. 100 = $1 USD) can avoid rounding issues.

.. note::

If you are using an SQLite database, you'll see the following error:
*PDOException: SQLSTATE[HY000]: General error: 1 Cannot add a NOT NULL
column with default value NULL*. Add a ``nullable=true`` option to the
``description`` property to fix the problem.

.. caution::

There is a `limit of 767 bytes for the index key prefix`_ when using
Expand Down Expand Up @@ -323,6 +316,13 @@ The migration system is *smart*. It compares all of your entities with the curre
state of the database and generates the SQL needed to synchronize them! Like
before, execute your migrations:

.. note::

If you are using an SQLite database, you'll see the following error:
*PDOException: SQLSTATE[HY000]: General error: 1 Cannot add a NOT NULL
column with default value NULL*. Add a ``nullable=true`` option to the
``description`` property to fix the problem.

.. code-block:: terminal
$ php bin/console doctrine:migrations:migrate
Expand Down

0 comments on commit 63c749f

Please sign in to comment.