You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix to #11502 - Allow to specify constraint name for default values
Adding model builder API to allow specifying explicit constraint name when adding default value (sql) to a column.
Also added switch on the model level (opt-in) to switch from system-generated constraints to generating them automatically by name and storing in the model.
This is opt-in because we don't want to cause unnecessary migrations.
Added de-duplication logic in the finalize model step, in case our generated names happen to clash with ones specified explicitly by user.
Also split temporal tables migration tests for SqlServer into a separate file - there were way to many tests in MigrationsSqlServerTest
Fixes#11502
0 commit comments