add more info to code comment

This commit is contained in:
6543 2023-08-05 03:24:10 +02:00
parent 93b9dc3fd9
commit 020a74861b
No known key found for this signature in database
GPG Key ID: B8BE6D610E61C862
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ func (session *Session) SyncWithOptions(opts SyncOptions, beans ...interface{})
} }
} }
// drop all indices that do not exist in new schema // drop all indices that do not exist in new schema or have changed
for name2, index2 := range oriTable.Indexes { for name2, index2 := range oriTable.Indexes {
if _, ok := foundIndexNames[name2]; !ok { if _, ok := foundIndexNames[name2]; !ok {
// ignore based on there type // ignore based on there type