jojo/routers/web/repo/setting
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
..
avatar.go fix: skip repo avatar upload when no file is selected (#11335) 2026-03-07 20:53:23 +01:00
collaboration.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
default_branch.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
deploy_key.go fix: cleanup data before migration retry (#12370) 2026-05-05 12:41:42 +02:00
git_hooks.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
lfs.go chore: add modernizer linter (#11936) 2026-04-02 03:29:37 +02:00
main_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
protected_branch.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
protected_tag.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
secrets.go feat: allow renaming and replacing secrets (#11732) 2026-03-23 03:30:02 +01:00
setting.go fix: store pull mirror creds encrypted with keying (#11909) 2026-04-04 13:53:22 +02:00
settings_test.go chore: QoL improvements to tests (#7917) 2025-05-21 15:45:56 +02:00
variables.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
webhook.go chore: flag suspicious OwnerID comparisons (#12184) 2026-04-19 04:24:09 +02:00