Skip to content

Control over migration script generation #35576

Open
@yzinc

Description

Question

After migration to .net 9 I faced with unexpected result in migration script.
Context, I'm generating sql migration script using next command

dotnet ef migrations script --project <project-name> --configuration Release --idempotent --startup-project <start-up-project> --output migration.sql --context <context-name>

Using .net8 I get

migration8.txt

but, using .net9 I get

migration9.txt

All migrations performs in SINGLE transaction, with only ONE GO statement. I didn't found any information about this changes and how it can be reconfigured. Honestly those changes are breaking for my project and I forced to looking some kind of workaround.

Highly appreciate for any advice/information.

Your code

Stack traces


Verbose output


EF Core version

9.0.1

Database provider

No response

Target framework

No response

Operating system

No response

IDE

No response

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions