From c5feff1591518ba500898dc6d1a5b8eb7bee1092 Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Thu, 25 Jun 2020 08:08:37 +0800 Subject: [PATCH] Fix go.mod --- tests/default_value_test.go | 2 +- tests/go.mod | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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