-
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
TPC migration attempts to drop nonexistent table for base type #28298
Comments
Note for triage: repros with latest daily build. |
@AndriySvyryd This still appears to be an issue, tested on |
@pheuter The fix was to store more information in the snapshot, so you'd need to create a new migration and manually remove the drop table operations from it, but the next migration should be fine. |
@AndriySvyryd That's what I did:
And it was after executing step 4 that I got a migration with the |
@pheuter Could you open another issue and share a repro? The one in the initial comment here is fixed. |
@AndriySvyryd My mistake, I updated the SDK and |
Reproducible with: https://github.com/smstromb/efcore-tpc-issue-reproducable
Running
dotnet ef migrations add Initial
creates the expected sql schema with 3 tables for each concrete type but running a second migration, without any changes, results in a migration that attempts to dropAnimal
, a table that doesn't actually exist in the schema:dotnet ef migrations add ExpectedToBeEmpty
EF Core version:
7.0.0-preview.5.22302.2
Database provider:
Microsoft.EntityFrameworkCore.Sqlite
Target framework: 7.0 Preview
The text was updated successfully, but these errors were encountered: