Closed
Description
Gitea Version
1.16.1
Git Version
2.30.2
Operating System
Debian 11
How are you running Gitea?
Self-compiled from https://codeberg.org/Codeberg/gitea/src/branch/codeberg-1.16
Database
MySQL
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Description
When doing a test migration for coderberg.org to 1.16 in an isolated vm, the migration fails with
022/02/11 13:34:47 ...ations/migrations.go:465:Migrate() [I] Migration[207]: Add webauthn table and migrate u2f data to webauthn
2022/02/11 13:34:47 routers/common/db.go:33:InitDBEngine() [E] ORM engine initialization attempt #1/10 failed. Error: migrate: migration[207]: Add webauthn table and migrate u2f data to webauthn failed: Error 1406: Data too long for column 'credential_id' at row 1
The credential_id is a varchar(255) column.
Relaxing the sql mode would probably work but truncate the data, probably leading to u2f failing for affected users
(Might be related to #18477)
Screenshots
No response