Skip to content

Commit b6e939c

Browse files
committed
fix: avoid exact relation tag being redeclared
1 parent 92180c2 commit b6e939c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/generator/model.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package generator
33
import (
44
"fmt"
55
"path/filepath"
6-
"reflect"
76
"sort"
87
"strings"
98
"text/template"
@@ -255,7 +254,7 @@ func buildColumnTag(c objects.Column, mapPk map[string]bool, validationTags stat
255254

256255
func containsRelation(relations []state.Relation, r state.Relation) bool {
257256
for _, rel := range relations {
258-
if reflect.DeepEqual(rel, r) {
257+
if rel.Tag == r.Tag {
259258
return true
260259
}
261260
}

0 commit comments

Comments
 (0)