Fix postgress data type issue

This commit is contained in:
Leonid Bugaev 2021-04-09 20:11:39 +03:00
parent 2d8738b353
commit b5c340f85e

View File

@ -53,7 +53,9 @@ func (m Migrator) DataTypeOf(field *schema.Field) string {
} }
if field.DataType == "raw_json" { if field.DataType == "raw_json" {
return "string" field = &schema.Field{
DataType: schema.String,
}
} }
return m.Dialector.DataTypeOf(field) return m.Dialector.DataTypeOf(field)