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 add and drop fk relationships with involved primary key columns not named 'id' #20537

Conversation

OmarHawk
Copy link
Contributor

@OmarHawk OmarHawk commented Dec 7, 2022

Fix #20536


Please make sure the below checklist is followed for Pull Requests.

When you are still working on the PR, consider converting it to Draft (below reviewers) and adding skip-ci label, you can still see CI build result at your branch.

@OmarHawk OmarHawk force-pushed the bugfix-drop-relationship-column-with-id-columns-not-named-id branch 2 times, most recently from ff1de5b to ed3cedf Compare December 7, 2022 14:56
@OmarHawk
Copy link
Contributor Author

OmarHawk commented Dec 8, 2022

I'll continue working on this. ;-)

@OmarHawk OmarHawk force-pushed the bugfix-drop-relationship-column-with-id-columns-not-named-id branch from ed3cedf to 1a3f3ac Compare December 8, 2022 16:44
@OmarHawk OmarHawk force-pushed the bugfix-drop-relationship-column-with-id-columns-not-named-id branch 4 times, most recently from e636795 to 267e07a Compare January 20, 2023 12:58
@OmarHawk OmarHawk changed the title support add and drop fk relationship columns fix add and drop fk relationships with involved primary key columns not named 'id' Jan 20, 2023
@OmarHawk OmarHawk force-pushed the bugfix-drop-relationship-column-with-id-columns-not-named-id branch from 1c23405 to ce967ab Compare January 20, 2023 15:26
@OmarHawk OmarHawk marked this pull request as ready for review January 20, 2023 15:51
@mshima
Copy link
Member

mshima commented Jan 20, 2023

mshima
mshima previously approved these changes Jan 20, 2023
@OmarHawk
Copy link
Contributor Author

I'll add one

I added @Id fields where there is already a relationship removal in the existing test case. It is named 'rename field' but relationship removal is also already in there... Maybe, we should rename that test. ;-)

@OmarHawk OmarHawk force-pushed the bugfix-drop-relationship-column-with-id-columns-not-named-id branch from ce967ab to 0899215 Compare January 23, 2023 10:38
@OmarHawk
Copy link
Contributor Author

I'll add one

Done.

@DanielFran DanielFran requested a review from mshima January 23, 2023 16:23
Copy link
Member

@mshima mshima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@OmarHawk can you test this change?

during update, where primary key columns are not named id

Fix jhipster#20536
@OmarHawk OmarHawk force-pushed the bugfix-drop-relationship-column-with-id-columns-not-named-id branch from ee638d3 to 47256ab Compare January 24, 2023 08:07
@mshima mshima merged commit a2b074d into jhipster:main Jan 24, 2023
@mshima
Copy link
Member

mshima commented Jan 24, 2023

Thanks @OmarHawk

@OmarHawk
Copy link
Contributor Author

@DanielFran
Copy link
Member

@OmarHawk Approved

@DanielFran DanielFran added this to the 8.0.0-beta.1 milestone Jun 9, 2023
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.

drop relationship column not working for id columns not named "id"
3 participants