Fix excessively long indexes when using utf8mb4 as default charset

This commit is contained in:
Kijin Sung 2016-01-11 13:34:07 +09:00
parent 2409448cec
commit 4416c39fb2
3 changed files with 17 additions and 10 deletions

View file

@ -1,7 +1,7 @@
<table name="module_trigger">
<column name="trigger_name" type="varchar" size="80" notnull="notnull" unique="idx_trigger" />
<column name="called_position" type="varchar" size="15" notnull="notnull" unique="idx_trigger" />
<column name="module" type="varchar" size="80" notnull="notnull" unique="idx_trigger" />
<column name="type" type="varchar" size="15" notnull="notnull" unique="idx_trigger" />
<column name="called_method" type="varchar" size="80" notnull="notnull" unique="idx_trigger" />
<column name="trigger_name" type="varchar" size="80" notnull="notnull" unique="idx_trigger" utf8mb4="false" />
<column name="called_position" type="varchar" size="15" notnull="notnull" unique="idx_trigger" utf8mb4="false" />
<column name="module" type="varchar" size="80" notnull="notnull" unique="idx_trigger" utf8mb4="false" />
<column name="type" type="varchar" size="15" notnull="notnull" unique="idx_trigger" utf8mb4="false" />
<column name="called_method" type="varchar" size="80" notnull="notnull" unique="idx_trigger" utf8mb4="false" />
</table>

View file

@ -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="191" notnull="notnull" />
<column name="domain" type="varchar" size="255" notnull="notnull" unique="unique_domain" utf8mb4="false" />
<column name="default_language" type="varchar" size="255" />
<column name="regdate" type="date" />
</table>