mirror of
1
Fork 0
Commit Graph

3 Commits

Author SHA1 Message Date
Giteabot c5ac659d1b
Initalize stroage for orphaned repository doctor () ()
Backport  by @earl-warren

- When a repository is orphaned and has objects stored in any of the
storages such as repository avatar or attachments the delete function
would error, because the storage module wasn't initalized.
- Add code to initialize the storage module.

Refs: https://codeberg.org/forgejo/forgejo/pulls/1954

Co-authored-by: Earl Warren <109468362+earl-warren@users.noreply.github.com>
Co-authored-by: Gusted <postmaster@gusted.xyz>
(cherry picked from commit 8ee1ed877b)
2023-12-22 12:05:11 +01:00
pitpalme 453ff1a57d
Fix delete-orphaned-repos () ()
Backport 

gitea doctor failed at checking and fixing 'delete-orphaned-repos',
because table name 'user' needs quoting to be correctly recognized by at
least PostgreSQL.

fixes 

(cherry picked from commit 7cae4dfc00)
2023-11-25 07:27:39 +01:00
6543 aabcf2d7ad
Add doctor dbconsistency fix to delete repos with no owner () ()
Backport 
2023-10-22 02:21:41 +02:00