Skip to content

Commit

Permalink
Add json type for mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
Eren Akpinar committed Nov 8, 2019
1 parent dc0ba3d commit 47e3fd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils_mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func mysqlTypeToGoType(mysqlType string, nullable bool, gureguTypes bool) string
return sqlNullInt
}
return golangInt64
case "char", "enum", "varchar", "longtext", "mediumtext", "text", "tinytext":
case "char", "enum", "varchar", "longtext", "mediumtext", "text", "tinytext", "json":
if nullable {
if gureguTypes {
return gureguNullString
Expand Down

0 comments on commit 47e3fd9

Please sign in to comment.