mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 19:51:42 +09:00
Fix #144 error while creating module_part_config index in utf8mb4
This commit is contained in:
parent
0b24509356
commit
17c55bb64b
2 changed files with 2 additions and 2 deletions
|
|
@ -597,7 +597,7 @@ class DBMysql extends DB
|
|||
|
||||
// MySQL only supports 767 bytes for indexed columns.
|
||||
// This is 191 characters in utf8mb4 and 255 characters in utf8.
|
||||
if($column->attrs->utf8mb4 === 'false')
|
||||
if($column->attrs->utf8mb4 === 'false' && stripos($type, 'char') !== false)
|
||||
{
|
||||
$column_charset = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue