From 7e1ae380975df0afab3fdc04c7a926181e5daba9 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 16 Nov 2021 23:25:33 +0800 Subject: Move migrations into services and base into modules/migration (#17663) * Move migrtions into services and base into modules/migration * Fix imports * Fix lint --- integrations/migrate_test.go | 5 ++--- integrations/mirror_pull_test.go | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'integrations') diff --git a/integrations/migrate_test.go b/integrations/migrate_test.go index 80eb75d404..e22da7db90 100644 --- a/integrations/migrate_test.go +++ b/integrations/migrate_test.go @@ -8,11 +8,10 @@ import ( "os" "testing" - "code.gitea.io/gitea/models/unittest" - "code.gitea.io/gitea/models" - "code.gitea.io/gitea/modules/migrations" + "code.gitea.io/gitea/models/unittest" "code.gitea.io/gitea/modules/setting" + "code.gitea.io/gitea/services/migrations" "github.com/stretchr/testify/assert" ) diff --git a/integrations/mirror_pull_test.go b/integrations/mirror_pull_test.go index d0823a6cdb..277118a595 100644 --- a/integrations/mirror_pull_test.go +++ b/integrations/mirror_pull_test.go @@ -11,7 +11,7 @@ import ( "code.gitea.io/gitea/models" "code.gitea.io/gitea/models/unittest" "code.gitea.io/gitea/modules/git" - migration "code.gitea.io/gitea/modules/migrations/base" + "code.gitea.io/gitea/modules/migration" "code.gitea.io/gitea/modules/repository" mirror_service "code.gitea.io/gitea/services/mirror" release_service "code.gitea.io/gitea/services/release" -- cgit v1.2.3