Closed GunnerGuyven closed 3 years ago
Hi @GunnerGuyven Resolved in https://www.nuget.org/packages/EntityFrameworkCore.FSharp/5.0.3-alpha5 if you can confirm?
I can confirm. This appears to be addressed. I have a few edge cases yet to test, but seems good 👍
All cases I have encountered are covered by this fix. Thank you!
Describe the bug The
constraints
argument is missing in most if not all instances of generatedmigrationBuilder.CreateTable
calls. Especiallytable.PrimaryKey
types.I believe #68 may be related to this. That deals with conventional detection of PK, but it seems to be all PK constraints are actually missing in the
5.0.3-alpha2
release, even those that are manually demarked with the[<Key>]
annotation.To Reproduce Steps to reproduce the behavior:
[<Key>]
in type definitionconstraints
argument inCreateTable
callKey
wasint
type observe failure due to the inclusion ofAUTO INCREMENT
that is illegal in many databases engines outside of PK.Expected behavior Inclusion of a clause similar to that seen in older
3.1.12
release