File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -151,12 +151,11 @@ can automatically generate an empty ``test_project`` database for you:
151
151
152
152
.. caution ::
153
153
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:
160
159
*"[PDOException] SQLSTATE[42000]: Syntax error or access violation:
161
160
1071 Specified key was too long; max key length is 767 bytes" *.
162
161
You can’t perform that action at this time.
0 commit comments