- Gitea version (or commit ref): 1.11.5 P
- Git version: 2.x
- Operating system: Debian
- Database (use
[x]):
- Can you reproduce the bug at https://try.gitea.io:
- Log gist:
Description
gitea convert` break on conversion with oauth_* tables about key length.
Server is correctly set with mysqld options :
- innodb_large_prefix=true
- innodb_file_format=barracuda
- innodb_file_per_table=1
Gitea can't alter charset because row_format is not updated.
To solve
To allow gitea to convert without error, could be nice to set row_format=dynamic before all charset/collate change.
alter table oauth_table ROW_FORMAT=DYNAMIC; is enough.
Second point when conversion is done , a link to https://github.com/go-gitea/gitea/blob/master/custom/conf/app.example.ini#L378-L380 could usefull to administrator to know how to change gitea config.
thanks
[x]):Description
gitea convert` break on conversion with oauth_* tables about key length.
Server is correctly set with mysqld options :
Gitea can't alter charset because row_format is not updated.
To solve
To allow gitea to convert without error, could be nice to set row_format=dynamic before all charset/collate change.
alter table oauth_table ROW_FORMAT=DYNAMIC; is enough.Second point when conversion is done , a link to https://github.com/go-gitea/gitea/blob/master/custom/conf/app.example.ini#L378-L380 could usefull to administrator to know how to change gitea config.
thanks