This commit is contained in:
demoManito 2022-08-24 14:29:36 +08:00
parent f3bc6f5ccb
commit c0d002bd9d

View File

@ -83,7 +83,9 @@ func TestMany2ManyWithDefaultValueUUID(t *testing.T) {
t.Fatalf("Failed to create 'uuid-ossp' extension, but got error %v", err)
}
DB.Migrator().DropTable(&Post{}, &Category{}, "post_categories")
if err := DB.Migrator().DropTable(&Post{}, &Category{}, "post_categories"); err != nil {
t.Error(err)
}
if err := DB.AutoMigrate(&Post{}, &Category{}); err != nil {
t.Error(err)
}