Skip to content

refactor: check mysql constraint schema on join#6851

Merged
pleerock merged 1 commit intotypeorm:masterfrom
imnotjames:refactor/rc-constraint-schema
Oct 5, 2020
Merged

refactor: check mysql constraint schema on join#6851
pleerock merged 1 commit intotypeorm:masterfrom
imnotjames:refactor/rc-constraint-schema

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.

2 participants