Fix go.mod

This commit is contained in:
Jinzhu 2020-06-25 08:08:37 +08:00
parent 1b28c187c0
commit c5feff1591
2 changed files with 2 additions and 4 deletions

View File

@ -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"`
}

View File

@ -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