-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Confusing migrations after upgrade from 6 to 7 #28962
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
priority-bug
Issues which requires API breaks and have bigger impact hence should be fixed earlier in the release
regression
type-bug
Milestone
Comments
ajcvickers
added
the
priority-bug
Issues which requires API breaks and have bigger impact hence should be fixed earlier in the release
label
Sep 2, 2022
Note from triage: revert the naming breaking change. |
AndriySvyryd
added
the
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
label
Sep 2, 2022
AndriySvyryd
added a commit
that referenced
this issue
Sep 2, 2022
AndriySvyryd
added a commit
that referenced
this issue
Sep 2, 2022
@MoazAlkharfan I've reverted the naming change, but for the other issues I'd need a complete repro. Try the next daily build or the public release of rc2 when it comes out and open a new issue if you are experiencing problems. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
priority-bug
Issues which requires API breaks and have bigger impact hence should be fixed earlier in the release
regression
type-bug
So I've been trying to upgrade ef core to 7 preview to test out the new features
after upgrading the packages I generate a new migration so any changes will be applied
What we're seeing here is multiple problems:
ForeignKeyToAnotherTable
changing toForeignKey1
which is a big no noActivity<User>Id
was renamed toActivityEvent_ActivityId1
FK_Events_UserActivities_Activity<User>Id
was renamed toFK_Events_CompanyActivities_ActivityEvent_ActivityId1
UserActivities
now it points toCompanyActivities
Include your code
No full reproduction, request if needed, it will take at least 3 days before i can provide a trimmed down working reproduction
This is a trimmed down version of the entities so it becomes easier to understand the structure being used
Initial migration that was generated with ef core 6
Migration generated directly after upgrading from ef core 6 to ef core 7-preview
Include provider and version information
EF Core version: 7.0.0-rc.2.22452.1
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET 7.0
The text was updated successfully, but these errors were encountered: