From fb6eb78104bb3ef60ae624d4ffa084dfd964d729 Mon Sep 17 00:00:00 2001 From: Hiroyuki Kuromiya <15026387+kromiii@users.noreply.github.com> Date: Tue, 12 Nov 2024 21:11:20 +0900 Subject: [PATCH] check if includes2 has duplicated table --- schema/filter.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/schema/filter.go b/schema/filter.go index 32d87747..086b1659 100644 --- a/schema/filter.go +++ b/schema/filter.go @@ -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) }