Postgres (and cockroachDB by inheritance) maps Char to Varchar
Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
parent
d52e8e7e8d
commit
2f656b2211
|
@ -857,6 +857,10 @@ func (db *postgres) SQLType(c *schemas.Column) string {
|
|||
res = schemas.Real
|
||||
case schemas.TinyText, schemas.MediumText, schemas.LongText:
|
||||
res = schemas.Text
|
||||
case schemas.Char:
|
||||
res = schemas.Varchar
|
||||
case schemas.NChar:
|
||||
res = schemas.Varchar
|
||||
case schemas.NVarchar:
|
||||
res = schemas.Varchar
|
||||
case schemas.Uuid:
|
||||
|
|
Loading…
Reference in New Issue