Skip to content

Commit

Permalink
remove redundant NOT NULL (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
alresvor committed Feb 18, 2023
1 parent 70d48fe commit 7ba6a0e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -460,9 +460,6 @@ func (dialector Dialector) getSchemaIntAndUnitType(field *schema.Field) string {
if field.DataType == schema.Uint {
sqlType += " unsigned"
}
if field.NotNull {
sqlType += " NOT NULL"
}
if field.AutoIncrement {
sqlType += " AUTO_INCREMENT"
}
Expand Down

0 comments on commit 7ba6a0e

Please sign in to comment.