Skip to content

Commit 583d2ef

Browse files
committed
Minor reword
1 parent 55efb63 commit 583d2ef

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

doctrine.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,11 @@ can automatically generate an empty ``test_project`` database for you:
151151

152152
.. caution::
153153

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.
158-
This means that any column of type ``string`` and ``unique=true`` must
159-
set its maximum ``length`` to ``190``. Otherwise, you'll see this error:
154+
There is a `limit of 767 bytes for the index key prefix`_ when using
155+
InnoDB tables in MySQL 5.6 and earlier versions. String columns with 255
156+
character length and ``utf8mb4`` encoding surpass that limit. This means
157+
that any column of type ``string`` and ``unique=true`` must set its
158+
maximum ``length`` to ``190``. Otherwise, you'll see this error:
160159
*"[PDOException] SQLSTATE[42000]: Syntax error or access violation:
161160
1071 Specified key was too long; max key length is 767 bytes"*.
162161

0 commit comments

Comments
 (0)