Fix creation of composite unique indexes

This commit is contained in:
Will Glynn 2015-03-17 09:04:12 -05:00
parent a0848909c2
commit 87ff58b598
1 changed files with 1 additions and 1 deletions

View File

@ -570,7 +570,7 @@ func (scope *Scope) autoIndex() *Scope {
if name == "UNIQUE_INDEX" {
name = fmt.Sprintf("uix_%v_%v", scope.TableName(), field.DBName)
}
uniqueIndexes[name] = append(indexes[name], field.DBName)
uniqueIndexes[name] = append(uniqueIndexes[name], field.DBName)
}
}