Browse Source

Add missing check for #11111 backport (#11693)

Co-authored-by: Guillermo Prandi <guillep2k@users.noreply.github.com>
tags/v1.11.6
guillep2k 5 years ago committed by GitHub
parent
commit
161e550200
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      cmd/doctor.go

4
cmd/doctor.go

@ -502,6 +502,10 @@ func runDoctorScriptType(ctx *cli.Context) ([]string, error) {
}
func runDoctorCheckDBConsistency(ctx *cli.Context) ([]string, error) {
// make sure DB version is uptodate
if err := models.NewEngine(context.Background(), migrations.EnsureUpToDate); err != nil {
return nil, fmt.Errorf("model version on the database does not match the current Gitea version. Model consistency will not be checked until the database is upgraded")
}
_, committer, err := models.TxDBContext()
if err != nil {
return nil, err

Loading…
Cancel
Save