remove dead code

This commit is contained in:
6543 2023-08-09 17:59:19 +02:00
parent db7c264062
commit d764facb5f
No known key found for this signature in database
GPG Key ID: B8BE6D610E61C862
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 {
addedNames[name] = index
}