dialect/sql/schema: revert #463 for int type (#470)

This commit is contained in:
Ariel Mashraki
2020-05-07 08:23:10 +03:00
committed by GitHub
parent f384701c04
commit bcb579106a

View File

@@ -174,7 +174,7 @@ func (d *MySQL) cType(c *Column) (t string) {
case field.TypeUint16:
t = "smallint unsigned"
case field.TypeInt32:
t = c.scanTypeOr("int") // Or mediumint.
t = "int"
case field.TypeUint32:
t = "int unsigned"
case field.TypeInt, field.TypeInt64: