Closed
Description
GORM Playground Link
Sorry, It's such an obvious bug that I don't think there's any need for example code.
Description
The code below does not take some cases into account. I think this is a bug. There is a default value in the existing column property, but if the column property to be changed does not have a default value, no processing is performed. I think if field.HasDefaultValue
is false
, you need to perform a DROP DEFAULT
query.
Lines 383 to 401 in 0d37bf2
Metadata
Metadata
Assignees
Labels
No labels