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

View file

@ -1,5 +1,5 @@
<table name="module_part_config">
<column name="module" type="varchar" size="250" notnull="notnull" />
<column name="module" type="varchar" size="180" notnull="notnull" utf8mb4="false" />
<column name="module_srl" type="number" size="11" notnull="notnull" />
<column name="config" type="text" />
<column name="regdate" type="date" />