Skip to content

Complete convert method (add alter ROW_FORMAT=DYNAMIC) #12019

@camlafit

Description

@camlafit
  • Gitea version (or commit ref): 1.11.5 P
  • Git version: 2.x
  • Operating system: Debian
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/enhancementAn improvement of existing functionality

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions