From 8eeea201dbc2f6fd7158994cdba1797f3c04b0c8 Mon Sep 17 00:00:00 2001 From: xxjwxc Date: Fri, 21 Aug 2020 23:37:36 +0800 Subject: [PATCH] add mut support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 非unique mut支持 --- data/view/model/genmysql/genmysql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/view/model/genmysql/genmysql.go b/data/view/model/genmysql/genmysql.go index 7bf0c08..05f2a5f 100644 --- a/data/view/model/genmysql/genmysql.go +++ b/data/view/model/genmysql/genmysql.go @@ -171,7 +171,7 @@ func getTableElement(orm *mysqldb.MySqlDB, tab string) (el []model.ColumnsInfo) } else { // mut tmp.Index = append(tmp.Index, model.KList{ Key: model.ColumnsKeyIndex, - Multi: (keyNameCount[v.KeyName] > 1), + Multi: true, KeyName: v.KeyName, }) }