We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a6834a commit 17e41a2Copy full SHA for 17e41a2
tests/scan_test.go
@@ -303,6 +303,8 @@ func TestScanRowsNullValuesScanToFieldDefault(t *testing.T) {
303
}
304
305
func TestScanToEmbedded(t *testing.T) {
306
+ // TODO: Fix the issue that PersonAddress is skipped when dropping the tables together with Person and Address
307
+ DB.Migrator().DropTable(&PersonAddress{})
308
DB.Migrator().DropTable(&Person{}, &Address{}, &PersonAddress{})
309
if err := DB.AutoMigrate(&Person{}, &Address{}, &PersonAddress{}); err != nil {
310
t.Fatalf("Failed to migrate, got %v", err)
0 commit comments