diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-10-27 19:54:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-27 19:54:35 +0800 |
commit | d70af38447a759d4a935e315e18efa4dd625f655 (patch) | |
tree | d509c8b8dc66b58b67293131afcbfaa9311eb6c0 /services | |
parent | 7cf611d197ba5d216ea5a05bb40137773e095f74 (diff) | |
download | gitea-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.go | 2 |
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) |