Use latin1 charset for ASCII-only columns that need to be short for indexing

This commit is contained in:
Kijin Sung 2021-01-22 00:51:47 +09:00
parent 9d040e10d7
commit f751d59708
4 changed files with 24 additions and 13 deletions

View file

@ -1,7 +1,7 @@
<table name="module_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" />
<column name="trigger_name" type="varchar" size="80" notnull="notnull" unique="idx_trigger" charset="latin1" />
<column name="called_position" type="varchar" size="20" notnull="notnull" unique="idx_trigger" charset="latin1" />
<column name="module" type="varchar" size="80" notnull="notnull" unique="idx_trigger" charset="latin1" />
<column name="type" type="varchar" size="80" notnull="notnull" unique="idx_trigger" charset="latin1" />
<column name="called_method" type="varchar" size="80" notnull="notnull" unique="idx_trigger" charset="latin1" />
</table>