Fix postgres uint32

This commit is contained in:
Lunny Xiao 2021-06-08 23:16:16 +08:00
parent 994c9915aa
commit 83617929ac
1 changed files with 2 additions and 2 deletions

View File

@ -838,12 +838,12 @@ func (db *postgres) SQLType(c *schemas.Column) string {
case schemas.Bit: case schemas.Bit:
res = schemas.Boolean res = schemas.Boolean
return res return res
case schemas.MediumInt, schemas.Int, schemas.Integer, schemas.UnsignedInt: case schemas.MediumInt, schemas.Int, schemas.Integer:
if c.IsAutoIncrement { if c.IsAutoIncrement {
return schemas.Serial return schemas.Serial
} }
return schemas.Integer return schemas.Integer
case schemas.BigInt, schemas.UnsignedBigInt: case schemas.BigInt, schemas.UnsignedBigInt, schemas.UnsignedInt:
if c.IsAutoIncrement { if c.IsAutoIncrement {
return schemas.BigSerial return schemas.BigSerial
} }