Fix postgress data type issue
This commit is contained in:
parent
2d8738b353
commit
b5c340f85e
@ -53,7 +53,9 @@ func (m Migrator) DataTypeOf(field *schema.Field) string {
|
||||
}
|
||||
|
||||
if field.DataType == "raw_json" {
|
||||
return "string"
|
||||
field = &schema.Field{
|
||||
DataType: schema.String,
|
||||
}
|
||||
}
|
||||
|
||||
return m.Dialector.DataTypeOf(field)
|
||||
|
Loading…
x
Reference in New Issue
Block a user