Skip to content

Commit

Permalink
fix make check
Browse files Browse the repository at this point in the history
  • Loading branch information
lance6716 committed Nov 9, 2021
1 parent 290b685 commit e540b72
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions dm/pkg/schema/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -510,12 +510,10 @@ func GetDownStreamTi(ti *model.TableInfo, originTi *model.TableInfo) *Downstream
absoluteUKIndexInfo = indexRedirect
absoluteUKPosition = i
hasPk = true
} else {
} else if absoluteUKIndexInfo == nil && isSpecifiedIndexColumn(idx, fn) {
// second check not null unique key
if absoluteUKIndexInfo == nil && isSpecifiedIndexColumn(idx, fn) {
absoluteUKIndexInfo = indexRedirect
absoluteUKPosition = i
}
absoluteUKIndexInfo = indexRedirect
absoluteUKPosition = i
}
}

Expand Down

0 comments on commit e540b72

Please sign in to comment.