diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-10-24 13:58:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-24 05:58:11 +0000 |
commit | a1c232cae3d8827691297d02d6f4ba980a805cd2 (patch) | |
tree | d081fd3b51364e9139a9e02685f445809782ed25 /modules/doctor | |
parent | 63512cd15d14254beadc0fe105d4239708fb758d (diff) | |
download | gitea-a1c232cae3d8827691297d02d6f4ba980a805cd2.tar.gz gitea-a1c232cae3d8827691297d02d6f4ba980a805cd2.zip |
Revert "fix orphan check for deleted branch (#27310) (#27320)" (#27763)
Because branch table is created until 1.21
Fix #27508
Diffstat (limited to 'modules/doctor')
-rw-r--r-- | modules/doctor/dbconsistency.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/doctor/dbconsistency.go b/modules/doctor/dbconsistency.go index a0637b8982..5486873556 100644 --- a/modules/doctor/dbconsistency.go +++ b/modules/doctor/dbconsistency.go @@ -168,9 +168,9 @@ func checkDBConsistency(ctx context.Context, logger log.Logger, autofix bool) er // find protected branches without existing repository genericOrphanCheck("Protected Branches without existing repository", "protected_branch", "repository", "protected_branch.repo_id=repository.id"), - // find branches without existing repository - genericOrphanCheck("Branches without existing repository", - "branch", "repository", "branch.repo_id=repository.id"), + // find deleted branches without existing repository + genericOrphanCheck("Deleted Branches without existing repository", + "deleted_branch", "repository", "deleted_branch.repo_id=repository.id"), // find LFS locks without existing repository genericOrphanCheck("LFS locks without existing repository", "lfs_lock", "repository", "lfs_lock.repo_id=repository.id"), |