Skip to content

Commit

Permalink
Fixes #918 (#919)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrdasur authored Aug 2, 2023
1 parent c4dd631 commit 3e1ce90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/model/tbl_column.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (c *Column) ToField(nullable, coverable, signable bool) *Field {
fieldType = "gorm.DeletedAt"
case coverable && c.needDefaultTag(c.defaultTagValue()):
fieldType = "*" + fieldType
case nullable:
case nullable && !strings.HasPrefix(fieldType, "*"):
if n, ok := c.Nullable(); ok && n {
fieldType = "*" + fieldType
}
Expand Down

0 comments on commit 3e1ce90

Please sign in to comment.