Skip to content

Commit

Permalink
foreign key back, was removed by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeljesus committed Feb 26, 2018
1 parent 2ac5066 commit 70cac88
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/dumper/generic/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ func (p *sqlDumper) relationshipConfigToOptions(relationshipsConfig []*config.Re
Table: r.Table,
ReferencedTable: r.ReferencedTable,
ReferencedKey: r.ReferencedKey,
ForeignKey: r.ForeignKey,
})
}

Expand Down
1 change: 1 addition & 0 deletions pkg/dumper/query/dumper.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ func (d *textDumper) relationshipConfigToOptions(relationshipsConfig []*config.R
opts = append(opts, &reader.RelationshipOpt{
ReferencedTable: r.ReferencedTable,
ReferencedKey: r.ReferencedKey,
ForeignKey: r.ForeignKey,
})
}

Expand Down
1 change: 1 addition & 0 deletions pkg/reader/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ type (
// RelationshipOpt represents the relationships options
RelationshipOpt struct {
Table string
ForeignKey string
ReferencedTable string
ReferencedKey string
}
Expand Down

0 comments on commit 70cac88

Please sign in to comment.