add mut support
非unique mut支持
This commit is contained in:
@@ -171,7 +171,7 @@ func getTableElement(orm *mysqldb.MySqlDB, tab string) (el []model.ColumnsInfo)
|
|||||||
} else { // mut
|
} else { // mut
|
||||||
tmp.Index = append(tmp.Index, model.KList{
|
tmp.Index = append(tmp.Index, model.KList{
|
||||||
Key: model.ColumnsKeyIndex,
|
Key: model.ColumnsKeyIndex,
|
||||||
Multi: (keyNameCount[v.KeyName] > 1),
|
Multi: true,
|
||||||
KeyName: v.KeyName,
|
KeyName: v.KeyName,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user