Skip to content

Commit

Permalink
fix SpecRevisionTag foreign key migration query (apigee#1213)
Browse files Browse the repository at this point in the history
  • Loading branch information
theganyo authored Jul 13, 2023
1 parent 680bdef commit 1c8a972
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/registry/internal/storage/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ func (c *Client) ensureForeignKeys(ctx context.Context) (err error) {
Where("spec_revision_tags.project_id = specs.project_id").
Where("spec_revision_tags.api_id = specs.api_id").
Where("spec_revision_tags.version_id = specs.version_id").
Where("spec_revision_tags.spec_id = specs.spec_id")).Error
Where("spec_revision_tags.spec_id = specs.spec_id").
Where("spec_revision_tags.revision_id = specs.revision_id")).Error
if err != nil {
return err
}
Expand Down

0 comments on commit 1c8a972

Please sign in to comment.