diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
index a0b64bfa..733b7fe5 100644
--- a/.github/ISSUE_TEMPLATE.md
+++ b/.github/ISSUE_TEMPLATE.md
@@ -1,4 +1,4 @@
-Your issue may already be reported! Please search on the [issue track](https://github.com/jinzhu/gorm/issues) before creating one.
+Your issue may already be reported! Please search on the [issue track](https://github.com/charm-jp/gorm/issues) before creating one.
### What version of Go are you using (`go version`)?
@@ -8,17 +8,17 @@ Your issue may already be reported! Please search on the [issue track](https://g
### Please provide a complete runnable program to reproduce your issue. **IMPORTANT**
-Need to runnable with [GORM's docker compose config](https://github.com/jinzhu/gorm/blob/master/docker-compose.yml) or please provides your config.
+Need to runnable with [GORM's docker compose config](https://github.com/charm-jp/gorm/blob/master/docker-compose.yml) or please provides your config.
```go
package main
import (
- "github.com/jinzhu/gorm"
- _ "github.com/jinzhu/gorm/dialects/mssql"
- _ "github.com/jinzhu/gorm/dialects/mysql"
- _ "github.com/jinzhu/gorm/dialects/postgres"
- _ "github.com/jinzhu/gorm/dialects/sqlite"
+ "github.com/charm-jp/gorm"
+ _ "github.com/charm-jp/gorm/dialects/mssql"
+ _ "github.com/charm-jp/gorm/dialects/mysql"
+ _ "github.com/charm-jp/gorm/dialects/postgres"
+ _ "github.com/charm-jp/gorm/dialects/sqlite"
)
var db *gorm.DB
diff --git a/.idea/gorm.iml b/.idea/gorm.iml
new file mode 100644
index 00000000..5e764c4f
--- /dev/null
+++ b/.idea/gorm.iml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 00000000..28a804d8
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 00000000..1ff239ec
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 00000000..94a25f7f
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/README.md b/README.md
index 6d231103..caa8d6b9 100644
--- a/README.md
+++ b/README.md
@@ -2,14 +2,14 @@
The fantastic ORM library for Golang, aims to be developer friendly.
-[](https://goreportcard.com/report/github.com/jinzhu/gorm)
+[](https://goreportcard.com/report/github.com/charm-jp/gorm)
[](https://app.wercker.com/project/byKey/8596cace912c9947dd9c8542ecc8cb8b)
[](https://codecov.io/gh/jinzhu/gorm)
[](https://gitter.im/jinzhu/gorm?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[](https://opencollective.com/gorm)
[](https://opencollective.com/gorm)
[](https://opensource.org/licenses/MIT)
-[](https://godoc.org/github.com/jinzhu/gorm)
+[](https://godoc.org/github.com/charm-jp/gorm)
## Overview
@@ -38,4 +38,4 @@ The fantastic ORM library for Golang, aims to be developer friendly.
© Jinzhu, 2013~time.Now
-Released under the [MIT License](https://github.com/jinzhu/gorm/blob/master/License)
+Released under the [MIT License](https://github.com/charm-jp/gorm/blob/master/License)
diff --git a/association_test.go b/association_test.go
index 60d0cf48..026e90a0 100644
--- a/association_test.go
+++ b/association_test.go
@@ -7,7 +7,7 @@ import (
"sort"
"testing"
- "github.com/jinzhu/gorm"
+ "github.com/charm-jp/gorm"
)
func TestBelongsTo(t *testing.T) {
diff --git a/callbacks_test.go b/callbacks_test.go
index c1a1d5e4..e3631c2e 100644
--- a/callbacks_test.go
+++ b/callbacks_test.go
@@ -5,7 +5,7 @@ import (
"reflect"
"testing"
- "github.com/jinzhu/gorm"
+ "github.com/charm-jp/gorm"
)
func (s *Product) BeforeCreate() (err error) {
diff --git a/customize_column_test.go b/customize_column_test.go
index c236ac24..07c565c4 100644
--- a/customize_column_test.go
+++ b/customize_column_test.go
@@ -4,7 +4,7 @@ import (
"testing"
"time"
- "github.com/jinzhu/gorm"
+ "github.com/charm-jp/gorm"
)
type CustomizeColumn struct {
diff --git a/dialects/mssql/mssql.go b/dialects/mssql/mssql.go
index 8c2360fc..88a084cb 100644
--- a/dialects/mssql/mssql.go
+++ b/dialects/mssql/mssql.go
@@ -10,9 +10,9 @@ import (
"strings"
"time"
+ "github.com/charm-jp/gorm"
// Importing mssql driver package only in dialect file, otherwide not needed
_ "github.com/denisenkom/go-mssqldb"
- "github.com/jinzhu/gorm"
)
func setIdentityInsert(scope *gorm.Scope) {
diff --git a/errors_test.go b/errors_test.go
index 9a428dec..e971f531 100644
--- a/errors_test.go
+++ b/errors_test.go
@@ -4,7 +4,7 @@ import (
"errors"
"testing"
- "github.com/jinzhu/gorm"
+ "github.com/charm-jp/gorm"
)
func TestErrorsCanBeUsedOutsideGorm(t *testing.T) {
diff --git a/field_test.go b/field_test.go
index 715661f0..5ca8eed4 100644
--- a/field_test.go
+++ b/field_test.go
@@ -6,7 +6,7 @@ import (
"fmt"
"testing"
- "github.com/jinzhu/gorm"
+ "github.com/charm-jp/gorm"
)
type CalculateField struct {
diff --git a/join_table_test.go b/join_table_test.go
index 6d5f427d..1be9d781 100644
--- a/join_table_test.go
+++ b/join_table_test.go
@@ -6,7 +6,7 @@ import (
"testing"
"time"
- "github.com/jinzhu/gorm"
+ "github.com/charm-jp/gorm"
)
type Person struct {
diff --git a/main.go b/main.go
index 7294de9a..95ae72f1 100644
--- a/main.go
+++ b/main.go
@@ -51,10 +51,10 @@ const (
// db, err := gorm.Open("mysql", "user:password@/dbname?charset=utf8&parseTime=True&loc=Local")
// }
// GORM has wrapped some drivers, for easier to remember driver's import path, so you could import the mysql driver with
-// import _ "github.com/jinzhu/gorm/dialects/mysql"
-// // import _ "github.com/jinzhu/gorm/dialects/postgres"
-// // import _ "github.com/jinzhu/gorm/dialects/sqlite"
-// // import _ "github.com/jinzhu/gorm/dialects/mssql"
+// import _ "github.com/charm-jp/gorm/dialects/mysql"
+// // import _ "github.com/charm-jp/gorm/dialects/postgres"
+// // import _ "github.com/charm-jp/gorm/dialects/sqlite"
+// // import _ "github.com/charm-jp/gorm/dialects/mssql"
func Open(dialect string, args ...interface{}) (db *DB, err error) {
if len(args) == 0 {
err = errors.New("invalid database source")
diff --git a/main_test.go b/main_test.go
index 68bf7419..f03ff46d 100644
--- a/main_test.go
+++ b/main_test.go
@@ -18,12 +18,12 @@ import (
"testing"
"time"
+ "github.com/charm-jp/gorm"
+ _ "github.com/charm-jp/gorm/dialects/mssql"
+ _ "github.com/charm-jp/gorm/dialects/mysql"
+ "github.com/charm-jp/gorm/dialects/postgres"
+ _ "github.com/charm-jp/gorm/dialects/sqlite"
"github.com/erikstmartin/go-testdb"
- "github.com/jinzhu/gorm"
- _ "github.com/jinzhu/gorm/dialects/mssql"
- _ "github.com/jinzhu/gorm/dialects/mysql"
- "github.com/jinzhu/gorm/dialects/postgres"
- _ "github.com/jinzhu/gorm/dialects/sqlite"
"github.com/jinzhu/now"
)
diff --git a/migration_test.go b/migration_test.go
index d94ec9ec..1b7b2faf 100644
--- a/migration_test.go
+++ b/migration_test.go
@@ -11,7 +11,7 @@ import (
"testing"
"time"
- "github.com/jinzhu/gorm"
+ "github.com/charm-jp/gorm"
)
type User struct {
diff --git a/naming_test.go b/naming_test.go
index 0c6f7713..f3aaafb7 100644
--- a/naming_test.go
+++ b/naming_test.go
@@ -3,7 +3,7 @@ package gorm_test
import (
"testing"
- "github.com/jinzhu/gorm"
+ "github.com/charm-jp/gorm"
)
func TestTheNamingStrategy(t *testing.T) {
diff --git a/preload_test.go b/preload_test.go
index dd29fb5e..b978ea07 100644
--- a/preload_test.go
+++ b/preload_test.go
@@ -7,7 +7,7 @@ import (
"reflect"
"testing"
- "github.com/jinzhu/gorm"
+ "github.com/charm-jp/gorm"
)
func getPreloadUser(name string) *User {
diff --git a/query_test.go b/query_test.go
index 2b7e0dff..f0b3dd71 100644
--- a/query_test.go
+++ b/query_test.go
@@ -4,7 +4,7 @@ import (
"fmt"
"reflect"
- "github.com/jinzhu/gorm"
+ "github.com/charm-jp/gorm"
"testing"
"time"
diff --git a/scaner_test.go b/scaner_test.go
index 9e251dd6..03f9071f 100644
--- a/scaner_test.go
+++ b/scaner_test.go
@@ -6,7 +6,7 @@ import (
"errors"
"testing"
- "github.com/jinzhu/gorm"
+ "github.com/charm-jp/gorm"
)
func TestScannableSlices(t *testing.T) {
diff --git a/scope_test.go b/scope_test.go
index f7f1ed08..b794fbcf 100644
--- a/scope_test.go
+++ b/scope_test.go
@@ -6,7 +6,7 @@ import (
"strings"
"testing"
- "github.com/jinzhu/gorm"
+ "github.com/charm-jp/gorm"
)
func NameIn1And2(d *gorm.DB) *gorm.DB {
diff --git a/update_test.go b/update_test.go
index 85d53e5f..f192897b 100644
--- a/update_test.go
+++ b/update_test.go
@@ -4,7 +4,7 @@ import (
"testing"
"time"
- "github.com/jinzhu/gorm"
+ "github.com/charm-jp/gorm"
)
func TestUpdate(t *testing.T) {