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
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.
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
isfalse
, you need to perform aDROP DEFAULT
query.postgres/migrator.go
Lines 383 to 401 in 0d37bf2
The text was updated successfully, but these errors were encountered: