Migrations: No default value provided when column altered to required #19882
Labels
area-migrations
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
good first issue
This issue should be relatively straightforward to fix.
poachable
type-bug
Milestone
(From @lauxjpn)
Why is an empty default value generated for a required string property for AddColumn, while it is not generated for AlterColumn when an existing non-required string property is made required by the user?
(This is internal EF Core behavior that should be reproducible across all database providers. I tested it with Pomelo and SQL Server.)
Its this inconsistent behavior, that makes me suspicious about the AddColumn generation in the first place (or it could just mean, that is has a purpose that was just missed to be implemented for AlterColumn).
The text was updated successfully, but these errors were encountered: