fix: keying SQLite migration

Also run the keying migration when upgrading from Gitea.

Add type change support for SQLite field from TEXT to BLOB.
This commit is contained in:
Earl Warren 2024-12-23 10:15:41 +01:00
parent 2dc167cbb9
commit 9524d6d430
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 26 additions and 0 deletions

View file

@ -365,6 +365,7 @@ func prepareMigrationTasks() []*migration {
// Migration to Forgejo v10
newMigration(303, "Gitea last drop", v1_23.GiteaLastDrop),
newMigration(304, "Migrate `secret` column to store keying material", forgejo_migrations.MigrateTwoFactorToKeying),
}
return preparedMigrations
}