mirror of https://github.com/go-gorm/gorm.git
Fix go.mod
This commit is contained in:
parent
1b28c187c0
commit
c5feff1591
|
@ -11,7 +11,7 @@ func TestDefaultValue(t *testing.T) {
|
||||||
gorm.Model
|
gorm.Model
|
||||||
Email string `gorm:"not null;index:,unique"`
|
Email string `gorm:"not null;index:,unique"`
|
||||||
Name string `gorm:"not null;default:'foo'"`
|
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"`
|
Age int `gorm:"default:18"`
|
||||||
Enabled bool `gorm:"default:true"`
|
Enabled bool `gorm:"default:true"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,10 +9,8 @@ require (
|
||||||
gorm.io/driver/mysql v0.2.6
|
gorm.io/driver/mysql v0.2.6
|
||||||
gorm.io/driver/postgres v0.2.3
|
gorm.io/driver/postgres v0.2.3
|
||||||
gorm.io/driver/sqlite v1.0.7
|
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
|
gorm.io/gorm v0.2.9
|
||||||
)
|
)
|
||||||
|
|
||||||
replace gorm.io/gorm => ../
|
replace gorm.io/gorm => ../
|
||||||
|
|
||||||
replace gorm.io/driver/sqlserver => /Users/jinzhu/Projects/sqlserver
|
|
||||||
|
|
Loading…
Reference in New Issue