Skip to content

DB topic.name uses varying(25) which makes mirrors of repos with long topics fail #14108

@michaelx

Description

@michaelx
  • Gitea version: 1.13.0 (also fails on latest dev)
  • Git version: 2.26.2
  • Operating system:
    • docker-compose with the image gitea/gitea:1
  • Database:
    • PostgreSQL

Description

  1. Create new migration
  2. Select GitHub
  3. Clone https://github.com/survivejs/webpack-book as a mirror
  4. Will fail with:
Migrate repository from https://github.com/survivejs/webpack-book failed: pq: value too long for type character varying(25)

Can be solved by using varying(255) on topic.name. Is there a reason it's limited to 25?

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/repo-migrationMigrate repos from other platforms to Gitea, or from Gitea to themtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions