- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestAlterColumnDataType (0.17 sec)
-
tests/postgres_test.go
t.Errorf("Failed, got error: %v", err) } if len(things) > 1 { t.Errorf("expected 1 thing got more") } } type CompanyNew struct { ID int Name int } func TestAlterColumnDataType(t *testing.T) { DB.AutoMigrate(Company{}) if err := DB.Table("companies").Migrator().AlterColumn(CompanyNew{}, "name"); err != nil { t.Fatalf("failed to alter column from string to int, got error %v", err)
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Sat Oct 08 09:16:32 UTC 2022 - 6.4K bytes - Viewed (0)