Skip to content

Commit

Permalink
fix: update schema.Field names
Browse files Browse the repository at this point in the history
BaseFields -> BasePKs and JoinFields -> JoinPKs were updated in
8648d6f
  • Loading branch information
bevzzz committed Oct 27, 2024
1 parent 5f6d494 commit 9b810de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migrate/sqlschema/inspector.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ func (si *SchemaInspector) Inspect(ctx context.Context) (State, error) {
}

var fromCols, toCols []string
for _, f := range rel.BaseFields {
for _, f := range rel.BasePKs {
fromCols = append(fromCols, f.Name)
}
for _, f := range rel.JoinFields {
for _, f := range rel.JoinPKs {
toCols = append(toCols, f.Name)
}

Expand Down

0 comments on commit 9b810de

Please sign in to comment.