jojo/services/doctor
Gusted c07ea09050 fix: cleanup data before migration retry (#12370)
In the case you hit some API error (Github ratelimit was often a problem) or the instance restarted in the middle of your migration, you would be left with data on the disk and/or database. Upon retrying the migration the migration code would (rightfully) fail because it's trying to migrate stuff that already exists.

This was hit so often on Codeberg it was better to force people to delete and start whole migration process again: 28ee60c91f

Delete the repository data before retrying to solve this.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12370
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
2026-05-05 12:41:42 +02:00
..
actions.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
authorizedkeys.go feat: ensure only expected ssh public keys are in authorized_keys file (#10010) 2025-11-09 01:06:04 +01:00
breaking.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
checkOldArchives.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
dbconsistency.go chore: rename 'migrations' to 'gitea_migrations' 2025-10-14 14:40:49 -06:00
dbversion.go chore: rename 'migrations' to 'gitea_migrations' 2025-10-14 14:40:49 -06:00
doctor.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
fix8312.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
fix16961.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
fix16961_test.go Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) 2025-03-28 22:22:21 +00:00
heads.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
lfs.go chore: fix typos throughout the codebase (#10753) 2026-01-26 22:57:33 +01:00
misc.go feat: replace repo based server-side hooks with centralised hooks (#10397) 2026-04-27 22:34:46 +02:00
packages_nuget.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
paths.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
push_mirror_consistency.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
repository.go fix: cleanup data before migration retry (#12370) 2026-05-05 12:41:42 +02:00
storage.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
usertype.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00