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

refactor: check mysql constraint schema on join #6851

Merged
merged 1 commit into from
Oct 5, 2020

Conversation

imnotjames
Copy link
Contributor

in #6268 we pulled in a change that fixed the wrong FK
getting loaded in a multi-database / multi-schema environment
but in #6169 the approach was more desirable as it creates
a simpler query that should be easier to change in the future

as such, this pulls over that change from #6169

@imnotjames
Copy link
Contributor Author

Tests are already in place - so as long as the tests pass for the previous PR I think this is good to merge in.

@imnotjames imnotjames force-pushed the refactor/rc-constraint-schema branch from 35a33b0 to 4ca4047 Compare October 5, 2020 08:13
in typeorm#6268 we pulled in a change that fixed the wrong FK
getting loaded in a multi-database / multi-schema environment
but in typeorm#6169 the approach was more desirable as it creates
a simpler query that should be easier to change in the future

as such, this pulls over that change from typeorm#6169
@imnotjames imnotjames force-pushed the refactor/rc-constraint-schema branch from 4ca4047 to bdc7e66 Compare October 5, 2020 08:13
@pleerock
Copy link
Member

pleerock commented Oct 5, 2020

I'm always super scary to merge changes on QueryRunners and SQLs used for schema sync. Let's merge it, but keep track on breaking change issues.

@pleerock pleerock merged commit d2b914d into typeorm:master Oct 5, 2020
@imnotjames
Copy link
Contributor Author

👍

@imnotjames imnotjames deleted the refactor/rc-constraint-schema branch October 5, 2020 17:39
@imnotjames imnotjames added the hacktoberfest-accepted label hacktoberfest label Oct 7, 2020
zaro pushed a commit to zaro/typeorm that referenced this pull request Jan 12, 2021
in typeorm#6268 we pulled in a change that fixed the wrong FK
getting loaded in a multi-database / multi-schema environment
but in typeorm#6169 the approach was more desirable as it creates
a simpler query that should be easier to change in the future

as such, this pulls over that change from typeorm#6169
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted label hacktoberfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants