diff --git a/go.mod b/go.mod index fe07494e..26877c7a 100644 --- a/go.mod +++ b/go.mod @@ -6,9 +6,9 @@ require ( github.com/denisenkom/go-mssqldb v0.0.0-20200428022330-06a60b6afbbc github.com/erikstmartin/go-testdb v0.0.0-20160219214506-8d10e4a1bae5 github.com/go-sql-driver/mysql v1.5.0 - gorm.io/gorm v1.9.12 - gorm.io/inflection v1.0.0 - gorm.io/now v1.1.1 + github.com/jinzhu/inflection v1.0.0 + github.com/jinzhu/now v1.1.1 github.com/lib/pq v1.1.1 github.com/mattn/go-sqlite3 v2.0.1+incompatible + gorm.io/gorm v1.9.12 ) diff --git a/logger/sql_test.go b/logger/sql_test.go index bd852479..8bc48116 100644 --- a/logger/sql_test.go +++ b/logger/sql_test.go @@ -4,8 +4,8 @@ import ( "regexp" "testing" + "github.com/jinzhu/now" "gorm.io/gorm/logger" - "gorm.io/now" ) func TestExplainSQL(t *testing.T) { diff --git a/schema/field.go b/schema/field.go index 438dadab..4f92aae7 100644 --- a/schema/field.go +++ b/schema/field.go @@ -10,8 +10,8 @@ import ( "sync" "time" + "github.com/jinzhu/now" "gorm.io/gorm/utils" - "gorm.io/now" ) type DataType string diff --git a/schema/naming.go b/schema/naming.go index 1af45257..f7c82f32 100644 --- a/schema/naming.go +++ b/schema/naming.go @@ -7,7 +7,7 @@ import ( "sync" "unicode/utf8" - "gorm.io/inflection" + "github.com/jinzhu/inflection" ) // Namer namer interface diff --git a/schema/relationship.go b/schema/relationship.go index f24c6e6d..efa44554 100644 --- a/schema/relationship.go +++ b/schema/relationship.go @@ -6,8 +6,8 @@ import ( "regexp" "strings" + "github.com/jinzhu/inflection" "gorm.io/gorm/clause" - "gorm.io/inflection" ) // RelationshipType relationship type diff --git a/tests/create_test.go b/tests/create_test.go index 4ef14ddb..2f853c61 100644 --- a/tests/create_test.go +++ b/tests/create_test.go @@ -4,9 +4,9 @@ import ( "testing" "time" + "github.com/jinzhu/now" "gorm.io/gorm" . "gorm.io/gorm/tests" - "gorm.io/now" ) func TestCreate(t *testing.T) {