forgejo-federation/models/forgejo_migrations
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
..
v1_20 [SECURITY] Rework long-term authentication 2024-02-05 15:06:15 +01:00
v1_22 Add a migration to remove SSH signatures from release notes 2024-03-26 08:09:36 +00:00
main_test.go [DB] Forgejo database migrations 2024-02-05 14:44:33 +01:00
migrate.go Add a migration to remove SSH signatures from release notes 2024-03-26 08:09:36 +00:00
migrate_test.go [DB] Forgejo database migrations 2024-02-05 14:44:33 +01:00