diff --git a/schema/relationship.go b/schema/relationship.go index 6b019e9e..30f624ef 100644 --- a/schema/relationship.go +++ b/schema/relationship.go @@ -642,7 +642,7 @@ func (rel *Relationship) ToQueryConditions(ctx context.Context, reflectValue ref } func copyableDataType(str DataType) bool { - for _, s := range []string{"increment", "primary key"} { + for _, s := range []string{"auto_increment", "auto_random", "primary key"} { if strings.Contains(strings.ToLower(string(str)), s) { return false }