Skip to content

Commit

Permalink
check if includes2 has duplicated table
Browse files Browse the repository at this point in the history
  • Loading branch information
kromiii committed Nov 12, 2024
1 parent 9e7650c commit fb6eb78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions schema/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ func (s *Schema) SepareteTablesThatAreIncludedOrNot(opt *FilterOption) (_ []*Tab
for _, tt := range ts {
if !lo.ContainsBy(includes, func(t *Table) bool {
return tt.Name == t.Name
}) && !lo.ContainsBy(includes2, func(t *Table) bool {
return tt.Name == t.Name
}) {
includes2 = append(includes2, tt)
}
Expand Down

0 comments on commit fb6eb78

Please sign in to comment.