mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 06:42:14 +09:00
Clean up utf8mb4 setting in default table schema
This commit is contained in:
parent
f751d59708
commit
2cec4ea6b4
6 changed files with 11 additions and 7 deletions
|
|
@ -87,6 +87,10 @@ class DBTableParser extends BaseParser
|
|||
{
|
||||
$column->charset = toBool($attribs['utf8mb4']) ? 'utf8mb4' : 'utf8';
|
||||
}
|
||||
elseif ($column->xetype === 'date' || ($column->name === 'ipaddress' && $column->size >= 60))
|
||||
{
|
||||
$column->charset = 'latin1';
|
||||
}
|
||||
|
||||
// Get the default value.
|
||||
if (isset($attribs['default']))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue