aboutsummaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-10-27 19:54:35 +0800
committerGitHub <noreply@github.com>2024-10-27 19:54:35 +0800
commitd70af38447a759d4a935e315e18efa4dd625f655 (patch)
treed509c8b8dc66b58b67293131afcbfaa9311eb6c0 /services
parent7cf611d197ba5d216ea5a05bb40137773e095f74 (diff)
downloadgitea-d70af38447a759d4a935e315e18efa4dd625f655.tar.gz
gitea-d70af38447a759d4a935e315e18efa4dd625f655.zip
Refactor the DB migration system slightly (#32344)
Introduce "idNumber" for each migration, and clarify the difference between the migration ID number and database version.
Diffstat (limited to 'services')
-rw-r--r--services/doctor/dbversion.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/doctor/dbversion.go b/services/doctor/dbversion.go
index 2b20cb2340..2a102b2194 100644
--- a/services/doctor/dbversion.go
+++ b/services/doctor/dbversion.go
@@ -12,7 +12,7 @@ import (
)
func checkDBVersion(ctx context.Context, logger log.Logger, autofix bool) error {
- logger.Info("Expected database version: %d", migrations.ExpectedVersion())
+ logger.Info("Expected database version: %d", migrations.ExpectedDBVersion())
if err := db.InitEngineWithMigration(ctx, migrations.EnsureUpToDate); err != nil {
if !autofix {
logger.Critical("Error: %v during ensure up to date", err)