Merge pull request '[DB] Ensure forgejo migration up to date (squash)' (#1850) from Gusted/forgejo:forgejo-bp-1849 into v1.21/forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/1850
This commit is contained in:
Gusted 2023-11-28 23:04:45 +00:00
commit 1327ca7178

View file

@ -587,7 +587,7 @@ func EnsureUpToDate(x *xorm.Engine) error {
return fmt.Errorf(`Current database version %d is not equal to the expected version %d. Please run "forgejo [--config /path/to/app.ini] migrate" to update the database version`, currentDB, expected)
}
return nil
return forgejo_migrations.EnsureUpToDate(x)
}
// Migrate database to current version