Fix #144 error while creating module_part_config index in utf8mb4

This commit is contained in:
Kijin Sung 2016-01-22 11:46:08 +09:00
parent 0b24509356
commit 17c55bb64b
2 changed files with 2 additions and 2 deletions

View file

@ -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';
}