Skip to content

Commit 55efb63

Browse files
committed
minor #10325 Update doctrine.rst (nalekberov)
This PR was submitted for the 4.1 branch but it was merged into the 2.8 branch instead (closes #10325). Discussion ---------- Update doctrine.rst <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 8165354 Update doctrine.rst
2 parents 060649c + 8165354 commit 55efb63

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)