mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Use latin1 charset for ASCII-only columns that need to be short for indexing
This commit is contained in:
parent
9d040e10d7
commit
f751d59708
4 changed files with 24 additions and 13 deletions
|
|
@ -78,10 +78,14 @@ class DBTableParser extends BaseParser
|
|||
// Get all attributes.
|
||||
$attribs = self::_getAttributes($column_info);
|
||||
|
||||
// Get the utf8mb4 attribute.
|
||||
if (isset($attribs['utf8mb4']))
|
||||
// Get the charset/utf8mb4 attribute.
|
||||
if (isset($attribs['charset']))
|
||||
{
|
||||
$column->utf8mb4 = toBool($attribs['utf8mb4']);
|
||||
$column->charset = $attribs['charset'];
|
||||
}
|
||||
elseif (isset($attribs['utf8mb4']))
|
||||
{
|
||||
$column->charset = toBool($attribs['utf8mb4']) ? 'utf8mb4' : 'utf8';
|
||||
}
|
||||
|
||||
// Get the default value.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue