add mut support

非unique mut支持
This commit is contained in:
xxjwxc
2020-08-21 23:37:36 +08:00
parent ef72597fb9
commit 8eeea201db

View File

@@ -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,
})
}