fix create test
https://github.com/go-gorm/gorm/pull/6127#discussion_r1171214125
This commit is contained in:
parent
76954ccc64
commit
7a1c450bd9
@ -556,6 +556,9 @@ func TestCreateWithAutoIncrementCompositeKey(t *testing.T) {
|
||||
Name string
|
||||
}
|
||||
|
||||
if err := DB.Migrator().DropTable(&CompositeKeyProduct{}); err != nil {
|
||||
t.Fatalf("failed to migrate, got error %v", err)
|
||||
}
|
||||
if err := DB.AutoMigrate(&CompositeKeyProduct{}); err != nil {
|
||||
t.Fatalf("failed to migrate, got error %v", err)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user