fix: short index keys

This commit is contained in:
Zixin 2022-02-23 23:16:55 +08:00
parent ec4c0310bc
commit 88bf7ab3ac
2 changed files with 2 additions and 2 deletions

View file

@ -366,7 +366,7 @@
<field name="locale" type="string" max-length="10" nullable="false" description="Locale"/>
<field name="name" type="string" max-length="500" nullable="false" description="语言名"/>
<field name="value" type="string" max-length="500" nullable="false" description="语言值"/>
<index field-list="locale,name"/>
<index field-list="locale"/>
</entity>
<entity name="TransformConfig" type-code="037" description="记录转换" queryable="false">

View file

@ -533,7 +533,7 @@ create table if not exists `language` (
`NAME` varchar(500) not null comment '语言名',
`VALUE` varchar(500) not null comment '语言值',
primary key (`LANG_ID`),
index IX0_language (`LOCALE`, `NAME`)
index IX0_language (`LOCALE`)
)Engine=InnoDB;
-- ************ Entity [TransformConfig] DDL ************