jojo/models/migrations
Mathieu Fenniak b3fc543af4 [v11.0/forgejo] fix: strict error handling on corrupted DB migration tracking tables (#9775)
**Backport:** #9773

## Checklist

The [contributor guide](https://forgejo.org/docs/next/contributor/) contains information that will be helpful to first time contributors. There also are a few [conditions for merging Pull Requests in Forgejo repositories](https://codeberg.org/forgejo/governance/src/branch/main/PullRequestsAgreement.md). You are also welcome to join the [Forgejo development chatroom](https://matrix.to/#/#forgejo-development:matrix.org).

### Tests

- I added test coverage for Go changes...
  - [x] in their respective `*_test.go` for unit tests.
  - [ ] in the `tests/integration` directory if it involves interactions with a live Forgejo server.
- I added test coverage for JavaScript changes...
  - [ ] in `web_src/js/*.test.js` if it can be unit tested.
  - [ ] in `tests/e2e/*.test.e2e.js` if it requires interactions with a live Forgejo server (see also the [developer guide for JavaScript testing](https://codeberg.org/forgejo/forgejo/src/branch/forgejo/tests/e2e/README.md#end-to-end-tests)).

### Documentation

- [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change.
- [x] I did not document these changes and I do not expect someone else to do it.

### Release notes

- [ ] I do not want this change to show in the release notes.
- [x] I want the title to show in the release notes with a link to this pull request.
- [ ] I want the content of the `release-notes/<pull request number>.md` to be be used for the release notes instead of the title.

<!--start release-notes-assistant-->

## Release notes
<!--URL:https://codeberg.org/forgejo/forgejo-->
- Bug fixes
  - [PR](https://codeberg.org/forgejo/forgejo/pulls/9775): <!--number 9775 --><!--line 0 --><!--description Zml4OiBzdHJpY3QgZXJyb3IgaGFuZGxpbmcgb24gY29ycnVwdGVkIERCIG1pZ3JhdGlvbiB0cmFja2luZyB0YWJsZXM=-->fix: strict error handling on corrupted DB migration tracking tables<!--description-->
<!--end release-notes-assistant-->

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9775
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Mathieu Fenniak <mathieu@fenniak.net>
Co-committed-by: Mathieu Fenniak <mathieu@fenniak.net>
2025-10-20 19:13:47 +02:00
..
base [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
fixtures fix: discard v25 secrets migrations errors instead of failing (#7251) 2025-03-17 16:25:37 +00:00
test [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
v1_6 [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
v1_7 Rename Sync2 -> Sync (#26479) 2023-08-13 21:17:21 +02:00
v1_8 [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
v1_9 [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
v1_10 [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
v1_11 [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
v1_12 [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
v1_13 [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
v1_14 [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
v1_15 [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
v1_16 [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
v1_17 [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
v1_18 [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
v1_19 [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
v1_20 [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
v1_21 [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
v1_22 [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
v1_23 [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
main_test.go [v11.0/forgejo] fix: strict error handling on corrupted DB migration tracking tables (#9775) 2025-10-20 19:13:47 +02:00
migrations.go [v11.0/forgejo] fix: strict error handling on corrupted DB migration tracking tables (#9775) 2025-10-20 19:13:47 +02:00
migrations_test.go [v11.0/forgejo] fix: strict error handling on corrupted DB migration tracking tables (#9775) 2025-10-20 19:13:47 +02:00