mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Also restrict the charset if a column is defined as char(1)
This commit is contained in:
parent
2cec4ea6b4
commit
09a292440c
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ class DBTableParser extends BaseParser
|
|||
{
|
||||
$column->charset = toBool($attribs['utf8mb4']) ? 'utf8mb4' : 'utf8';
|
||||
}
|
||||
elseif ($column->xetype === 'date' || ($column->name === 'ipaddress' && $column->size >= 60))
|
||||
elseif ($column->xetype === 'date' || ($column->name === 'ipaddress' && $column->size >= 60) || ($column->type === 'char' && $column->size === 1))
|
||||
{
|
||||
$column->charset = 'latin1';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue