Merge branch 'remove_dead-code_in_sync' of gitea.com:6543/xorm into 6543-remove_dead-code_in_sync

This commit is contained in:
Lunny Xiao 2023-09-16 21:58:07 +08:00
commit 8a4c0a1926
1 changed files with 0 additions and 9 deletions

View File

@ -235,15 +235,6 @@ func (session *Session) SyncWithOptions(opts SyncOptions, beans ...interface{})
} }
} }
if oriIndex != nil && oriIndex.Type != index.Type {
sql := engine.dialect.DropIndexSQL(tbNameWithSchema, oriIndex)
_, err = session.exec(sql)
if err != nil {
return nil, err
}
oriIndex = nil
}
if oriIndex == nil { if oriIndex == nil {
addedNames[name] = index addedNames[name] = index
} }