Update model.go

master
谢小军 4 years ago
parent a89988d711
commit a6b0dc33ea

@ -174,7 +174,7 @@ func (m *_Model) getColumnsKeyMulti(tableName, col string) (isMulti bool, isFind
switch v2.Key {
case ColumnsKeyPrimary, ColumnsKeyUnique, ColumnsKeyUniqueIndex: // primary key unique key . 主键,唯一索引
{
if !v2.Multi {
if !v2.Multi { // 唯一索引
return false, true, v.Notes
}
}

Loading…
Cancel
Save