We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 590bacd commit 2f7730eCopy full SHA for 2f7730e
db/schema.go
@@ -28,7 +28,7 @@ func (s *Schema) ToErd(showIndex bool) string {
28
29
for _, table := range s.Tables {
30
for _, foreignKey := range table.ForeignKeys {
31
- toTable := strings.ToLower(foreignKey.ToTable)
+ toTable := strings.ToLower(foreignKey.ToTable)
32
if tableNames.Contains(toTable) {
33
lines = append(lines, fmt.Sprintf("%s }-- %s", table.Name, toTable))
34
}
0 commit comments