diff options
author | Earl Warren <109468362+earl-warren@users.noreply.github.com> | 2023-09-28 04:07:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-28 02:07:33 +0000 |
commit | 98f02203f9ed7308686995c2b93e7e35f0c0b412 (patch) | |
tree | c0f7d47e19dfdb16023ba337d0251ea9b94bd37e /modules | |
parent | 673cf6af763fe7fd4301382f7b059b0799fca396 (diff) | |
download | gitea-98f02203f9ed7308686995c2b93e7e35f0c0b412.tar.gz gitea-98f02203f9ed7308686995c2b93e7e35f0c0b412.zip |
fix orphan check for deleted branch (#27310)
- Modify the deleted branch orphan check to check for the new table
instead.
- Regression from 6e19484f4d3bf372212f2da462110a1a8c10cbf2
- Resolves https://codeberg.org/forgejo/forgejo/issues/1522
(cherry picked from commit c1d888686fe445e4edecb9d835c5b3893b574b75)
Co-authored-by: Gusted <postmaster@gusted.xyz>
Diffstat (limited to 'modules')
-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 5486873556..a0637b8982 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 deleted branches without existing repository - genericOrphanCheck("Deleted Branches without existing repository", - "deleted_branch", "repository", "deleted_branch.repo_id=repository.id"), + // find branches without existing repository + genericOrphanCheck("Branches without existing repository", + "branch", "repository", "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"), |