]> source.dussan.org Git - gitea.git/commit
Doctor check & fix db consistency (#11111)
author6543 <6543@obermui.de>
Fri, 29 May 2020 13:24:15 +0000 (15:24 +0200)
committerGitHub <noreply@github.com>
Fri, 29 May 2020 13:24:15 +0000 (14:24 +0100)
commit726e1e5279b6461cad8eee2e461c2c6d8ab0f075
tree36ea94e5a435237af1ff7e7badd057892467fc7a
parentab73b5657597043d0588976ba14a86fb2ce3a413
Doctor check & fix db consistency (#11111)

needed to fix issue as described in #10280

* rename check-db to check-db-version
* add check-db-consistency:
* find issues without existing repository
* find pulls without existing issues
* find tracked times without existing issues/pulls
* find labels without repository or org reference

Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
cmd/doctor.go
models/consistency.go
models/issue.go
models/models.go
models/repo.go