Skip to content

Port PR 65532: fix Blazor template EF migration baseline#65692

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/port-changes-to-main-manually
Draft

Port PR 65532: fix Blazor template EF migration baseline#65692
Copilot wants to merge 3 commits intomainfrom
copilot/port-changes-to-main-manually

Conversation

Copy link
Contributor

Copilot AI commented Mar 7, 2026

Port PR 65532: fix Blazor template EF migration baseline

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

Summary of the changes (Less than 80 chars)

Port PR 65532: align Blazor template app.db migration baseline

Description

This ports the effective changes from #65532 to main to fix the Blazor Web App (Individual auth + SQLite) migration baseline mismatch that causes dotnet ef database update to fail against the shipped template database.

  • Template DB migration baseline

    • Updated the shipped Blazor template app.db so __EFMigrationsHistory records 00000000000000_CreateIdentitySchema instead of a timestamped migration ID.
  • Regression coverage in template tests

    • Extended BlazorTemplateTest for the Individual-auth SQLite path to run EF update + add migration and assert no schema diff.
if (args.Contains(ArgConstants.IndividualAuth) && !args.Contains(ArgConstants.UseLocalDb))
{
    await project.RunDotNetEfUpdateDatabaseAsync();
    await project.RunDotNetEfCreateMigrationAsync("blazor");
    project.AssertEmptyMigration("blazor");
}

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@github-actions github-actions bot added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Mar 7, 2026
@dotnet-policy-service
Copy link
Contributor

Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at.

Copilot AI changed the title [WIP] Port changes from pull request 65532 to main Port PR 65532: fix Blazor template EF migration baseline Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants