diff --git a/tests/default_value_test.go b/tests/default_value_test.go index 28a456d3..7a7790bc 100644 --- a/tests/default_value_test.go +++ b/tests/default_value_test.go @@ -11,7 +11,7 @@ func TestDefaultValue(t *testing.T) { gorm.Model Email string `gorm:"not null;index:,unique"` Name string `gorm:"not null;default:'foo'"` - Name2 string `gorm:"not null;default:'foo'"` + Name2 string `gorm:"size:233;not null;default:'foo'"` Age int `gorm:"default:18"` Enabled bool `gorm:"default:true"` } diff --git a/tests/go.mod b/tests/go.mod index d43ee8f1..955bafe2 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -9,10 +9,8 @@ require ( gorm.io/driver/mysql v0.2.6 gorm.io/driver/postgres v0.2.3 gorm.io/driver/sqlite v1.0.7 - gorm.io/driver/sqlserver v0.2.2 + gorm.io/driver/sqlserver v0.2.3 gorm.io/gorm v0.2.9 ) replace gorm.io/gorm => ../ - -replace gorm.io/driver/sqlserver => /Users/jinzhu/Projects/sqlserver