better english
This commit is contained in:
parent
020a74861b
commit
33765faf2f
3
sync.go
3
sync.go
|
@ -259,8 +259,7 @@ func (session *Session) SyncWithOptions(opts SyncOptions, beans ...interface{})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// add new indices because either they did not exist before or
|
// Add new indices because either they did not exist before or were dropped to update them
|
||||||
// where dropt first to update them
|
|
||||||
for name, index := range addedNames {
|
for name, index := range addedNames {
|
||||||
if index.Type == schemas.UniqueType && !opts.IgnoreConstrains {
|
if index.Type == schemas.UniqueType && !opts.IgnoreConstrains {
|
||||||
session.statement.RefTable = table
|
session.statement.RefTable = table
|
||||||
|
|
Loading…
Reference in New Issue