summaryrefslogtreecommitdiffstats
path: root/modules/migrations/update.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/migrations/update.go')
-rw-r--r--modules/migrations/update.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/migrations/update.go b/modules/migrations/update.go
index e7a57ceca8..ddc9401ead 100644
--- a/modules/migrations/update.go
+++ b/modules/migrations/update.go
@@ -8,6 +8,7 @@ import (
"context"
"code.gitea.io/gitea/models"
+ "code.gitea.io/gitea/models/db"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/structs"
)
@@ -18,7 +19,7 @@ func UpdateMigrationPosterID(ctx context.Context) error {
select {
case <-ctx.Done():
log.Warn("UpdateMigrationPosterID aborted before %s", gitService.Name())
- return models.ErrCancelledf("during UpdateMigrationPosterID before %s", gitService.Name())
+ return db.ErrCancelledf("during UpdateMigrationPosterID before %s", gitService.Name())
default:
}
if err := updateMigrationPosterIDByGitService(ctx, gitService); err != nil {