loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: forgejo migrations numbering in comments and rename latest migration file (#6957)

fixes #6955

## 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...
- [ ] 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

- [x] I do not want this change to show in the release notes.
- [ ] 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.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6957
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: floss4good <floss4good@disroot.org>
Co-committed-by: floss4good <floss4good@disroot.org>

authored by

floss4good
floss4good
and committed by
Earl Warren
0989c4c3 d3a125aa

+18 -18
+18 -18
models/forgejo_migrations/migrate.go
··· 58 58 NewMigration("Add the `apply_to_admins` column to the `protected_branch` table", forgejo_v1_22.AddApplyToAdminsSetting), 59 59 // v9 -> v10 60 60 NewMigration("Add pronouns to user", forgejo_v1_22.AddPronounsToUser), 61 + // v10 -> v11 62 + NewMigration("Add the `created` column to the `issue` table", forgejo_v1_22.AddCreatedToIssue), 61 63 // v11 -> v12 62 - NewMigration("Add the `created` column to the `issue` table", forgejo_v1_22.AddCreatedToIssue), 64 + NewMigration("Add repo_archive_download_count table", forgejo_v1_22.AddRepoArchiveDownloadCount), 63 65 // v12 -> v13 64 - NewMigration("Add repo_archive_download_count table", forgejo_v1_22.AddRepoArchiveDownloadCount), 66 + NewMigration("Add `hide_archive_links` column to `release` table", AddHideArchiveLinksToRelease), 65 67 // v13 -> v14 66 - NewMigration("Add `hide_archive_links` column to `release` table", AddHideArchiveLinksToRelease), 67 - // v14 -> v15 68 68 NewMigration("Remove Gitea-specific columns from the repository and badge tables", RemoveGiteaSpecificColumnsFromRepositoryAndBadge), 69 - // v15 -> v16 69 + // v14 -> v15 70 70 NewMigration("Create the `federation_host` table", CreateFederationHostTable), 71 + // v15 -> v16 72 + NewMigration("Create the `federated_user` table", CreateFederatedUserTable), 71 73 // v16 -> v17 72 - NewMigration("Create the `federated_user` table", CreateFederatedUserTable), 74 + NewMigration("Add `normalized_federated_uri` column to `user` table", AddNormalizedFederatedURIToUser), 73 75 // v17 -> v18 74 - NewMigration("Add `normalized_federated_uri` column to `user` table", AddNormalizedFederatedURIToUser), 75 - // v18 -> v19 76 76 NewMigration("Create the `following_repo` table", CreateFollowingRepoTable), 77 - // v19 -> v20 77 + // v18 -> v19 78 78 NewMigration("Add external_url to attachment table", AddExternalURLColumnToAttachmentTable), 79 + // v19 -> v20 80 + NewMigration("Creating Quota-related tables", CreateQuotaTables), 79 81 // v20 -> v21 80 - NewMigration("Creating Quota-related tables", CreateQuotaTables), 82 + NewMigration("Add SSH keypair to `pull_mirror` table", AddSSHKeypairToPushMirror), 81 83 // v21 -> v22 82 - NewMigration("Add SSH keypair to `pull_mirror` table", AddSSHKeypairToPushMirror), 84 + NewMigration("Add `legacy` to `web_authn_credential` table", AddLegacyToWebAuthnCredential), 83 85 // v22 -> v23 84 - NewMigration("Add `legacy` to `web_authn_credential` table", AddLegacyToWebAuthnCredential), 85 - // v23 -> v24 86 86 NewMigration("Add `delete_branch_after_merge` to `auto_merge` table", AddDeleteBranchAfterMergeToAutoMerge), 87 - // v24 -> v25 87 + // v23 -> v24 88 88 NewMigration("Add `purpose` column to `forgejo_auth_token` table", AddPurposeToForgejoAuthToken), 89 + // v24 -> v25 90 + NewMigration("Migrate `secret` column to store keying material", MigrateTwoFactorToKeying), 89 91 // v25 -> v26 90 - NewMigration("Migrate `secret` column to store keying material", MigrateTwoFactorToKeying), 92 + NewMigration("Add `hash_blake2b` column to `package_blob` table", AddHashBlake2bToPackageBlob), 91 93 // v26 -> v27 92 - NewMigration("Add `hash_blake2b` column to `package_blob` table", AddHashBlake2bToPackageBlob), 93 - // v27 -> v28 94 94 NewMigration("Add `created_unix` column to `user_redirect` table", AddCreatedUnixToRedirect), 95 - // v28 -> v29 95 + // v27 -> v28 96 96 NewMigration("Add pronoun privacy settings to user", AddHidePronounsOptionToUser), 97 97 } 98 98
models/forgejo_migrations/v29.go models/forgejo_migrations/v28.go