summaryrefslogtreecommitdiffstats
path: root/models/migrations
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-06-23 23:22:43 +0800
committerLauris BH <lauris@nix.lv>2019-06-23 18:22:43 +0300
commitaa7c34cf86081b71f796f6e5da60e62a3cda43ce (patch)
treec9e4b4f1490b43e942fa71b37748072d3fe441e8 /models/migrations
parentbaefea311f1a66a97f9a2779ad3342f4f8167d28 (diff)
downloadgitea-aa7c34cf86081b71f796f6e5da60e62a3cda43ce.tar.gz
gitea-aa7c34cf86081b71f796f6e5da60e62a3cda43ce.zip
Fix error log when loading issues caused by a xorm bug (#7271)
* fix error log when loading issues caused by a xorm bug * upgrade packages * fix fmt * fix Consistency * fix tests
Diffstat (limited to 'models/migrations')
-rw-r--r--models/migrations/v31.go2
-rw-r--r--models/migrations/v38.go2
-rw-r--r--models/migrations/v75.go2
-rw-r--r--models/migrations/v78.go2
-rw-r--r--models/migrations/v85.go2
5 files changed, 5 insertions, 5 deletions
diff --git a/models/migrations/v31.go b/models/migrations/v31.go
index b7ceecfc38..d6cea4c51b 100644
--- a/models/migrations/v31.go
+++ b/models/migrations/v31.go
@@ -8,8 +8,8 @@ import (
"fmt"
"time"
- "github.com/go-xorm/core"
"github.com/go-xorm/xorm"
+ "xorm.io/core"
)
func addLoginSourceSyncEnabledColumn(x *xorm.Engine) error {
diff --git a/models/migrations/v38.go b/models/migrations/v38.go
index eb90f9fbff..6060b70fe8 100644
--- a/models/migrations/v38.go
+++ b/models/migrations/v38.go
@@ -9,8 +9,8 @@ import (
"code.gitea.io/gitea/models"
- "github.com/go-xorm/core"
"github.com/go-xorm/xorm"
+ "xorm.io/core"
)
func removeCommitsUnitType(x *xorm.Engine) (err error) {
diff --git a/models/migrations/v75.go b/models/migrations/v75.go
index 62f92b77db..58d1d34c98 100644
--- a/models/migrations/v75.go
+++ b/models/migrations/v75.go
@@ -5,8 +5,8 @@
package migrations
import (
- "github.com/go-xorm/builder"
"github.com/go-xorm/xorm"
+ "xorm.io/builder"
)
func clearNonusedData(x *xorm.Engine) error {
diff --git a/models/migrations/v78.go b/models/migrations/v78.go
index 310c479d01..511a4f57fa 100644
--- a/models/migrations/v78.go
+++ b/models/migrations/v78.go
@@ -10,8 +10,8 @@ import (
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/log"
- "github.com/go-xorm/core"
"github.com/go-xorm/xorm"
+ "xorm.io/core"
)
func renameRepoIsBareToIsEmpty(x *xorm.Engine) error {
diff --git a/models/migrations/v85.go b/models/migrations/v85.go
index d511628b8d..b8d0ee5443 100644
--- a/models/migrations/v85.go
+++ b/models/migrations/v85.go
@@ -7,8 +7,8 @@ package migrations
import (
"fmt"
- "github.com/go-xorm/core"
"github.com/go-xorm/xorm"
+ "xorm.io/core"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/generate"