distinguish between detected and custom type (#6033)
This commit is contained in:
parent
04cbd956eb
commit
2f48ddbea8
@ -56,6 +56,7 @@ type Field struct {
|
||||
BindNames []string
|
||||
DataType DataType
|
||||
GORMDataType DataType
|
||||
CustomDataType DataType
|
||||
PrimaryKey bool
|
||||
AutoIncrement bool
|
||||
AutoIncrementIncrement int64
|
||||
@ -310,6 +311,7 @@ func (schema *Schema) ParseField(fieldStruct reflect.StructField) *Field {
|
||||
default:
|
||||
field.DataType = DataType(val)
|
||||
}
|
||||
field.CustomDataType = DataType(val)
|
||||
}
|
||||
|
||||
if field.Size == 0 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user