Skip to content

Update template migrations#65051

Merged
MackinnonBuck merged 2 commits intomainfrom
mbuck/update-template-migrations
Jan 15, 2026
Merged

Update template migrations#65051
MackinnonBuck merged 2 commits intomainfrom
mbuck/update-template-migrations

Conversation

@MackinnonBuck
Copy link
Member

Updates the default migrations included in the Blazor Web App template to account for the changes in #65028

Fixes #65018

@MackinnonBuck MackinnonBuck requested review from Copilot and roji January 14, 2026 01:03
@github-actions github-actions bot added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Jan 14, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Entity Framework migrations in the Blazor Web App template to reflect changes in how passkey data is stored. The migration changes from using OwnsOne to ComplexProperty for the IdentityPasskeyData model, aligning with updates from PR #65028.

Changes:

  • Updated SQL Server and SQLite migration snapshots and designer files to use ComplexProperty instead of OwnsOne for passkey data storage
  • Regenerated the SQLite database file (app.db) with the new schema structure
  • Simplified the passkey data model configuration by removing the separate owned entity structure

Reviewed changes

Copilot reviewed 2 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
app.db Regenerated SQLite database file with updated schema using the new ComplexProperty approach for passkey data
SqlServer/ApplicationDbContextModelSnapshot.cs Updated model snapshot to use ComplexProperty for passkey data instead of OwnsOne configuration
SqlServer/00000000000000_CreateIdentitySchema.Designer.cs Updated migration designer file to reflect ComplexProperty structure for passkey data
SqlLite/ApplicationDbContextModelSnapshot.cs Updated SQLite model snapshot with ComplexProperty configuration for passkey data
SqlLite/00000000000000_CreateIdentitySchema.Designer.cs Updated SQLite migration designer file with new passkey data structure
Files not reviewed (2)
  • src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/Data/SqlLite/00000000000000_CreateIdentitySchema.Designer.cs: Language not supported
  • src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWebCSharp.1/Data/SqlServer/00000000000000_CreateIdentitySchema.Designer.cs: Language not supported

Copy link
Member

@roji roji left a comment

Choose a reason for hiding this comment

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

LGTM.

/cc @AndriySvyryd in case you want to take a quick look.

@AndriySvyryd
Copy link
Member

Why do you need to the database file?

@MackinnonBuck
Copy link
Member Author

The new database file isn't strictly necessary. It doesn't contain schema changes or data differences, just different metadata from being created/touched at different times. I can undo that.

@MackinnonBuck MackinnonBuck merged commit 26ec531 into main Jan 15, 2026
25 checks passed
@MackinnonBuck MackinnonBuck deleted the mbuck/update-template-migrations branch January 15, 2026 00:07
@dotnet-policy-service dotnet-policy-service bot added this to the 11.0-preview1 milestone Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates

Projects

None yet

5 participants