Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(postgres): removed erroneous duplicates in FK discovery query #5376

Merged
merged 2 commits into from
Mar 25, 2024

Conversation

jaichinger
Copy link
Contributor

This PR fixes an issue introduced in v6.1.12 (2dff96b).

The query used to discover foreign keys was returning erroneous duplicate rows. The fixed query removes the duplicates and ensures FK columns are returned in the correct order.

This PR also reverses changes to the SchemaHelper, which are no longer needed.

Copy link

codecov bot commented Mar 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.70%. Comparing base (ccb0a3c) to head (3dd27f6).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5376      +/-   ##
==========================================
- Coverage   99.70%   99.70%   -0.01%     
==========================================
  Files         222      222              
  Lines       17047    17045       -2     
  Branches     4190     3668     -522     
==========================================
- Hits        16997    16995       -2     
  Misses         50       50              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@B4nan
Copy link
Member

B4nan commented Mar 25, 2024

thanks!

@B4nan B4nan merged commit eec2b38 into mikro-orm:master Mar 25, 2024
11 checks passed
@jaichinger jaichinger deleted the fix/foreign-key-discovery-query branch March 25, 2024 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants