jojo/models/forgejo_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
..
v1_20 [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
main_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
migrate.go [v11.0/forgejo] fix: strict error handling on corrupted DB migration tracking tables (#9775) 2025-10-20 19:13:47 +02:00
migrate_test.go [v11.0/forgejo] fix: strict error handling on corrupted DB migration tracking tables (#9775) 2025-10-20 19:13:47 +02:00
v13.go [FEAT]Add Option to hide Release Archive links (#3139) 2024-04-24 15:15:55 +00:00
v14.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
v15.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
v16.go add migration & enhance int-test 2024-05-16 18:25:16 +02:00
v17.go add migration & enhance int-test 2024-05-16 18:25:16 +02:00
v18.go fix: Use correct table in migration v18 (#7114) 2025-03-04 16:44:37 +00:00
v19.go Implement external assets 2024-07-29 20:35:55 +02:00
v20.go feat(quota): Humble beginnings of a quota engine 2024-08-02 11:10:34 +02:00
v21.go [FEAT] Allow pushmirror to use publickey authentication 2024-08-22 17:05:07 +02:00
v22.go [FEAT] Add support for webauthn credential level 3 2024-08-29 10:05:03 +02:00
v23.go Add branch auto deletion for scheduled PRs 2024-10-31 03:49:15 +01:00
v24.go fix: extend forgejo_auth_token table (part two) 2024-11-16 10:53:46 +01:00
v25.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
v25_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
v26.go [v11.0/forgejo] fix: match PackageBlob.HashBlake2b definition and migration (#7544) 2025-04-15 07:40:53 +00:00
v27.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
v28.go fix: forgejo migrations numbering in comments and rename latest migration file (#6957) 2025-02-16 08:17:33 +00:00