This commit is contained in:
Lunny Xiao 2023-09-16 22:12:16 +08:00
parent becdd74179
commit 002d6a3f6a
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
2 changed files with 2 additions and 2 deletions

View File

@ -328,7 +328,7 @@ func (db *mssql) SQLType(c *schemas.Column) string {
res = schemas.Int
case schemas.Text, schemas.MediumText, schemas.TinyText, schemas.LongText, schemas.Json:
res = db.defaultVarchar + "(MAX)"
case schemas.Double:
case schemas.Double, schemas.UnsignedFloat:
res = schemas.Real
case schemas.Uuid:
res = schemas.Varchar

View File

@ -917,7 +917,7 @@ func (db *postgres) SQLType(c *schemas.Column) string {
return schemas.Uuid
case schemas.Blob, schemas.TinyBlob, schemas.MediumBlob, schemas.LongBlob:
return schemas.Bytea
case schemas.Double:
case schemas.Double, schemas.UnsignedFloat:
return "DOUBLE PRECISION"
default:
if c.IsAutoIncrement {