mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +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']))
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<table name="module_config">
|
||||
<column name="module" type="varchar" size="80" notnull="notnull" primary_key="primary_key" />
|
||||
<column name="module" type="varchar" size="80" notnull="notnull" primary_key="primary_key" charset="latin1" />
|
||||
<column name="site_srl" type="number" size="11" notnull="notnull" />
|
||||
<column name="config" type="bigtext" />
|
||||
<column name="regdate" type="date" />
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<table name="module_part_config">
|
||||
<column name="module" type="varchar" size="80" notnull="notnull" unique="unique_module_part_config" utf8mb4="false" />
|
||||
<column name="module" type="varchar" size="80" notnull="notnull" unique="unique_module_part_config" charset="latin1" />
|
||||
<column name="module_srl" type="number" size="11" notnull="notnull" unique="unique_module_part_config" />
|
||||
<column name="config" type="bigtext" />
|
||||
<column name="regdate" type="date" />
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<table name="sites">
|
||||
<column name="site_srl" type="number" size="11" notnull="notnull" primary_key="primary_key" />
|
||||
<column name="index_module_srl" type="number" size="11" default="0" />
|
||||
<column name="domain" type="varchar" size="255" notnull="notnull" unique="unique_domain" utf8mb4="false" />
|
||||
<column name="default_language" type="varchar" size="255" />
|
||||
<column name="domain" type="varchar" size="191" notnull="notnull" unique="unique_domain" />
|
||||
<column name="default_language" type="varchar" size="191" />
|
||||
<column name="regdate" type="date" />
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<table name="spamfilter_denied_ip">
|
||||
<column name="ipaddress" type="varchar" size="60" utf8mb4="false" notnull="notnull" primary_key="primary_key" />
|
||||
<column name="ipaddress" type="varchar" size="60" notnull="notnull" primary_key="primary_key" />
|
||||
<column name="hit" type="number" notnull="notnull" default="0" index="idx_hit" />
|
||||
<column name="latest_hit" type="date" index="idx_latest_hit" />
|
||||
<column name="description" type="varchar" size="255" />
|
||||
<column name="description" type="varchar" size="191" />
|
||||
<column name="regdate" type="date" index="idx_regdate" />
|
||||
</table>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<table name="spamfilter_denied_word">
|
||||
<column name="word" type="varchar" size="180" utf8mb4="false" notnull="notnull" primary_key="primary_key" />
|
||||
<column name="word" type="varchar" size="100" notnull="notnull" primary_key="primary_key" />
|
||||
<column name="hit" type="number" notnull="notnull" default="0" index="idx_hit" />
|
||||
<column name="latest_hit" type="date" index="idx_latest_hit" />
|
||||
<column name="regdate" type="date" index="idx_regdate" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue