Skip to content

Add primary key to repo_topic table #8920

Closed
@mihkelvain

Description

@mihkelvain
  • Git version: 1.9.5
  • Operating system: CentOS 7
  • 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

In MySQL group replication, it is mandatory to that every table has primary key. Gitea schema has repo_topic table that does not have primary key. Please consider adding pk also to that table.
https://dev.mysql.com/doc/refman/8.0/en/group-replication-requirements.html

Currently gitea runs fine in group replicated mysql instance, but for obvious reasons I can't alter repo topics.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions