set field.IsNormal = false for duplicated column struct field

This commit is contained in:
edv1n 2019-10-18 10:45:36 +02:00 committed by GitHub
parent 51ac582a7a
commit afef5813d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -627,6 +627,7 @@ func (scope *Scope) GetModelStruct() *ModelStruct {
} }
if field.DBName == column { if field.DBName == column {
field.IsIgnored = true field.IsIgnored = true
field.IsNormal = false
} }
} }
} }