go-gorm / playground

GORM Playground (Please Create PR for this project to report issues)
MIT License
88 stars 666 forks source link

AutoMigrate will not update a changed `default` value for primary keys #716

Open deefdragon opened 3 months ago

deefdragon commented 3 months ago

Explain your user case and expected results

Automigrate not being updated for primary key.

Used Example and Examples as 2 seperate structs to abuse the adding of s at the end of struct names for table names, so these are detected as the same table.

Example2 struct exists to verify the method of detecting a default is functional.