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 unexpected null in principal columns of foreign key #23694

Merged
merged 1 commit into from
Jan 5, 2021
Merged

Fix unexpected null in principal columns of foreign key #23694

merged 1 commit into from
Jan 5, 2021

Conversation

carlreinke
Copy link
Contributor

MigrationsSqlGenerator expects PrincipalColumns to be null, not a null element.

@carlreinke carlreinke changed the base branch from main to release/3.1 December 15, 2020 23:42
@ajcvickers
Copy link
Member

@carlreinke Thanks for your interest in fixing this. Two comments. First, please target this PR to the main branch. Fixes can be considered for porting back to a patch release, but we need to have a solid fix in main first.

Second, please add tests that fail before this change and pass afterwards. This will verify that the issue is really fixed and help prevent regressions in the future.

@carlreinke carlreinke changed the base branch from release/3.1 to main December 19, 2020 00:26
@carlreinke
Copy link
Contributor Author

@ajcvickers Where are the tests for MigrationBuilder?

@AndriySvyryd
Copy link
Member

@carlreinke
Copy link
Contributor Author

There were indeed more changes needed to make it work end-to-end.

I tidied up the AddForeignKeyOperation tests so that the ordering of properties, parameters, and assertions are consistent, but I can put them back if you prefer a smaller diff.

@AndriySvyryd AndriySvyryd merged commit 1eca120 into dotnet:main Jan 5, 2021
@AndriySvyryd
Copy link
Member

Thanks for your contribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants