From 020a74861be3b513bc86ca5ba47d690465136a4a Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sat, 5 Aug 2023 03:24:10 +0200 Subject: [PATCH] add more info to code comment --- sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sync.go b/sync.go index 433c3538..cb3ccc53 100644 --- a/sync.go +++ b/sync.go @@ -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 { if _, ok := foundIndexNames[name2]; !ok { // ignore based on there type