aboutsummaryrefslogtreecommitdiffstats
path: root/models/migrations
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2021-11-17 20:34:35 +0800
committerGitHub <noreply@github.com>2021-11-17 20:34:35 +0800
commit750a8465f547e9f08a87612c75898d56b8ec1f88 (patch)
treef3eed8b40971c01a75617675a24014233b9f1cc7 /models/migrations
parent29cc169d20fc995072a819da6f996717a9899b3b (diff)
downloadgitea-750a8465f547e9f08a87612c75898d56b8ec1f88.tar.gz
gitea-750a8465f547e9f08a87612c75898d56b8ec1f88.zip
A better go code formatter, and now `make fmt` can run in Windows (#17684)
* go build / format tools * re-format imports
Diffstat (limited to 'models/migrations')
-rw-r--r--models/migrations/v142.go1
-rw-r--r--models/migrations/v144.go1
-rw-r--r--models/migrations/v175.go1
-rw-r--r--models/migrations/v177_test.go1
-rw-r--r--models/migrations/v191.go1
5 files changed, 5 insertions, 0 deletions
diff --git a/models/migrations/v142.go b/models/migrations/v142.go
index 1abdd34961..d8ccc112d6 100644
--- a/models/migrations/v142.go
+++ b/models/migrations/v142.go
@@ -6,6 +6,7 @@ package migrations
import (
"code.gitea.io/gitea/modules/log"
+
"xorm.io/builder"
"xorm.io/xorm"
)
diff --git a/models/migrations/v144.go b/models/migrations/v144.go
index 311bb93e3b..81279a54c9 100644
--- a/models/migrations/v144.go
+++ b/models/migrations/v144.go
@@ -6,6 +6,7 @@ package migrations
import (
"code.gitea.io/gitea/modules/log"
+
"xorm.io/builder"
"xorm.io/xorm"
)
diff --git a/models/migrations/v175.go b/models/migrations/v175.go
index 0044ed1845..2dfefe987b 100644
--- a/models/migrations/v175.go
+++ b/models/migrations/v175.go
@@ -10,6 +10,7 @@ import (
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
+
"xorm.io/xorm"
)
diff --git a/models/migrations/v177_test.go b/models/migrations/v177_test.go
index 02cb1d2652..f5fc793aa4 100644
--- a/models/migrations/v177_test.go
+++ b/models/migrations/v177_test.go
@@ -8,6 +8,7 @@ import (
"testing"
"code.gitea.io/gitea/modules/timeutil"
+
"github.com/stretchr/testify/assert"
)
diff --git a/models/migrations/v191.go b/models/migrations/v191.go
index 10dfad4f04..c91990e0f3 100644
--- a/models/migrations/v191.go
+++ b/models/migrations/v191.go
@@ -6,6 +6,7 @@ package migrations
import (
"code.gitea.io/gitea/modules/setting"
+
"xorm.io/xorm"
)