Skip to content

Commit 8165354

Browse files
nalekberovjaviereguiluz
authored andcommitted
Update doctrine.rst
1 parent 060649c commit 8165354

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doctrine.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,10 @@ can automatically generate an empty ``test_project`` database for you:
151151

152152
.. caution::
153153

154-
MySQL sets a `limit of 767 bytes for the index key prefix`_. When using
155-
``utf8mb4``, string columns with 255 character length surpass that limit.
154+
There is a `limit of 767 bytes for the index key prefix`_ for InnoDB table on MySQL 5.6
155+
and priort version. In MySQL version 5.7 and upwards this limit has been increased
156+
to 3072 bytes. If you are using MySQL version prior to 5.7 please take this into account:
157+
When using ``utf8mb4``, string columns with 255 character length surpass that limit.
156158
This means that any column of type ``string`` and ``unique=true`` must
157159
set its maximum ``length`` to ``190``. Otherwise, you'll see this error:
158160
*"[PDOException] SQLSTATE[42000]: Syntax error or access violation:

0 commit comments

Comments
 (0)