Skip to content

Commit

Permalink
changed to numeric
Browse files Browse the repository at this point in the history
  • Loading branch information
tee8z committed Dec 15, 2022
1 parent eb8cedb commit 1b81494
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion uint32.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (Uint32) GormDBDataType(db *gorm.DB, field *schema.Field) string {
case "sqlite", "mysql":
return "INT UNSIGNED"
case "postgres":
return "bit(32)"
return "numeric"
}
return ""
}
2 changes: 1 addition & 1 deletion uint64.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (Uint64) GormDBDataType(db *gorm.DB, field *schema.Field) string {
case "sqlite", "mysql":
return "BIGINT UNSIGNED"
case "postgres":
return "bytea"
return "numeric"
}
return ""
}

0 comments on commit 1b81494

Please sign in to comment.