-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Open
Copy link
Labels
area-identityIncludes: Identity and providersIncludes: Identity and providersbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.
Milestone
Description
It seems that the EF Core migration for the identity schema hasn't been correctly applied to the app.db that we generate with the Blazor Web App template when auth with ASP.NET Core Identity is enabled. If you try to update the database using the template included migration you get an error that the identity tables are already there.
Repro steps:
- Install .NET 10 SDK
dotnet tool install --global dotnet-efdotnet new blazor -au Individualdotnet ef database update
Expected result: Updating the database works without errors
Actual result: Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'table "AspNetRoles" already exists'.
Workaround:
- Delete the app.db that comes with the template.
- Run
dotnet ef database updateto regenerate it. - Running
dotnet ef database updateagain succeeds without error.
Metadata
Metadata
Assignees
Labels
area-identityIncludes: Identity and providersIncludes: Identity and providersbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.