aboutsummaryrefslogtreecommitdiffstats
path: root/modules/task
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-11-16 23:25:33 +0800
committerGitHub <noreply@github.com>2021-11-16 23:25:33 +0800
commit7e1ae380975df0afab3fdc04c7a926181e5daba9 (patch)
treea6fa4eb2d15b88fc4ff953d748ee3937ff10446b /modules/task
parent48ccd325a1b81a58ac6d1d5d94fc4e90974599ea (diff)
downloadgitea-7e1ae380975df0afab3fdc04c7a926181e5daba9.tar.gz
gitea-7e1ae380975df0afab3fdc04c7a926181e5daba9.zip
Move migrations into services and base into modules/migration (#17663)
* Move migrtions into services and base into modules/migration * Fix imports * Fix lint
Diffstat (limited to 'modules/task')
-rw-r--r--modules/task/migrate.go4
-rw-r--r--modules/task/task.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/task/migrate.go b/modules/task/migrate.go
index 715e76b4ad..100aac1967 100644
--- a/modules/task/migrate.go
+++ b/modules/task/migrate.go
@@ -14,13 +14,13 @@ import (
"code.gitea.io/gitea/modules/graceful"
"code.gitea.io/gitea/modules/json"
"code.gitea.io/gitea/modules/log"
- "code.gitea.io/gitea/modules/migrations"
- migration "code.gitea.io/gitea/modules/migrations/base"
+ "code.gitea.io/gitea/modules/migration"
"code.gitea.io/gitea/modules/notification"
"code.gitea.io/gitea/modules/process"
"code.gitea.io/gitea/modules/structs"
"code.gitea.io/gitea/modules/timeutil"
"code.gitea.io/gitea/modules/util"
+ "code.gitea.io/gitea/services/migrations"
)
func handleCreateError(owner *models.User, err error) error {
diff --git a/modules/task/task.go b/modules/task/task.go
index 51377df78c..f538b36efc 100644
--- a/modules/task/task.go
+++ b/modules/task/task.go
@@ -11,7 +11,7 @@ import (
"code.gitea.io/gitea/modules/graceful"
"code.gitea.io/gitea/modules/json"
"code.gitea.io/gitea/modules/log"
- "code.gitea.io/gitea/modules/migrations/base"
+ base "code.gitea.io/gitea/modules/migration"
"code.gitea.io/gitea/modules/queue"
repo_module "code.gitea.io/gitea/modules/repository"
"code.gitea.io/gitea/modules/secret"