Fix test
This commit is contained in:
parent
becdd74179
commit
002d6a3f6a
|
@ -328,7 +328,7 @@ func (db *mssql) SQLType(c *schemas.Column) string {
|
||||||
res = schemas.Int
|
res = schemas.Int
|
||||||
case schemas.Text, schemas.MediumText, schemas.TinyText, schemas.LongText, schemas.Json:
|
case schemas.Text, schemas.MediumText, schemas.TinyText, schemas.LongText, schemas.Json:
|
||||||
res = db.defaultVarchar + "(MAX)"
|
res = db.defaultVarchar + "(MAX)"
|
||||||
case schemas.Double:
|
case schemas.Double, schemas.UnsignedFloat:
|
||||||
res = schemas.Real
|
res = schemas.Real
|
||||||
case schemas.Uuid:
|
case schemas.Uuid:
|
||||||
res = schemas.Varchar
|
res = schemas.Varchar
|
||||||
|
|
|
@ -917,7 +917,7 @@ func (db *postgres) SQLType(c *schemas.Column) string {
|
||||||
return schemas.Uuid
|
return schemas.Uuid
|
||||||
case schemas.Blob, schemas.TinyBlob, schemas.MediumBlob, schemas.LongBlob:
|
case schemas.Blob, schemas.TinyBlob, schemas.MediumBlob, schemas.LongBlob:
|
||||||
return schemas.Bytea
|
return schemas.Bytea
|
||||||
case schemas.Double:
|
case schemas.Double, schemas.UnsignedFloat:
|
||||||
return "DOUBLE PRECISION"
|
return "DOUBLE PRECISION"
|
||||||
default:
|
default:
|
||||||
if c.IsAutoIncrement {
|
if c.IsAutoIncrement {
|
||||||
|
|
Loading…
Reference in New Issue