Skip to content

Commit

Permalink
fixed index issue in v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Solender committed Jun 1, 2021
1 parent 369819f commit 0dc9f90
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index_v3.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ func dropAllIndexesAndConstraintsV3(gogm *Gogm) error {
return err
}

if vals == nil || len(vals) == 0 {
// nothing to drop if no constraints exist
return nil
}

constraints, err := resultToStringArrV3(vals)
if err != nil {
return err
Expand Down

0 comments on commit 0dc9f90

Please sign in to comment.