forgejo/models/migrations/fixtures
Gergely Nagy 8fdffc94ca Add a migration to remove SSH signatures from release notes
Because the `git` module did not recognize SSH signed tags, those
signatures ended up in the `notes` column of the `release` table. While
future signatures will not end up there, Forgejo should clean up the old
ones.

This migration does just that: finds all releases that have an SSH
signature, and removes those signatures, preserving the rest of the
note (if any).

While this may seem like an expensive operation, it's only done once,
and even on the largest known Forgejo instance as of this
writing (Codeberg), the number of affected rows are just over a hundred,
a tiny amount all things considered.

Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
2024-03-26 08:09:36 +00:00
..
Test_AddCombinedIndexToIssueUser [CI] Fix false positive in database migration 2024-02-05 13:33:59 +01:00
Test_AddConfidentialClientColumnToOAuth2ApplicationTable Move migration test fixtures to the correct directories (#21901) 2022-11-23 18:24:55 +08:00
Test_AddHeaderAuthorizationEncryptedColWebhook Move migration test fixtures to the correct directories (#21901) 2022-11-23 18:24:55 +08:00
Test_AddIssueResourceIndexTable Fix bug hidden on CI and make ci failed if tests failure (#29254) 2024-03-11 23:36:59 +07:00
Test_AddPayloadVersionToHookTaskTable add test for webhook migration 2024-03-11 23:37:00 +07:00
Test_AddRepoIDForAttachment Fix bug hidden on CI and make ci failed if tests failure (#29254) 2024-03-11 23:36:59 +07:00
Test_DeleteOrphanedIssueLabels Fix more yaml lint errors (#27284) 2023-09-26 12:56:42 -04:00
Test_RemigrateU2FCredentials Move migration test fixtures to the correct directories (#21901) 2022-11-23 18:24:55 +08:00
Test_RemoveInvalidLabels Fix more yaml lint errors (#27284) 2023-09-26 12:56:42 -04:00
Test_RemoveSSHSignaturesFromReleaseNotes Add a migration to remove SSH signatures from release notes 2024-03-26 08:09:36 +00:00
Test_RepositoryFormat Fix bug hidden on CI and make ci failed if tests failure (#29254) 2024-03-11 23:36:59 +07:00
Test_StoreWebauthnCredentialIDAsBytes Fix more yaml lint errors (#27284) 2023-09-26 12:56:42 -04:00
Test_UnwrapLDAPSourceCfg Move migration test fixtures to the correct directories (#21901) 2022-11-23 18:24:55 +08:00
Test_UpdateBadgeColName Fix bug hidden on CI and make ci failed if tests failure (#29254) 2024-03-11 23:36:59 +07:00
Test_UpdateOpenMilestoneCounts Move migration test fixtures to the correct directories (#21901) 2022-11-23 18:24:55 +08:00