mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-30 21:45:41 +08:00
Because branch table is created until 1.21 Fix #27508
This commit is contained in:
parent
63512cd15d
commit
a1c232cae3
|
@ -168,9 +168,9 @@ func checkDBConsistency(ctx context.Context, logger log.Logger, autofix bool) er
|
||||||
// find protected branches without existing repository
|
// find protected branches without existing repository
|
||||||
genericOrphanCheck("Protected Branches without existing repository",
|
genericOrphanCheck("Protected Branches without existing repository",
|
||||||
"protected_branch", "repository", "protected_branch.repo_id=repository.id"),
|
"protected_branch", "repository", "protected_branch.repo_id=repository.id"),
|
||||||
// find branches without existing repository
|
// find deleted branches without existing repository
|
||||||
genericOrphanCheck("Branches without existing repository",
|
genericOrphanCheck("Deleted Branches without existing repository",
|
||||||
"branch", "repository", "branch.repo_id=repository.id"),
|
"deleted_branch", "repository", "deleted_branch.repo_id=repository.id"),
|
||||||
// find LFS locks without existing repository
|
// find LFS locks without existing repository
|
||||||
genericOrphanCheck("LFS locks without existing repository",
|
genericOrphanCheck("LFS locks without existing repository",
|
||||||
"lfs_lock", "repository", "lfs_lock.repo_id=repository.id"),
|
"lfs_lock", "repository", "lfs_lock.repo_id=repository.id"),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user