Skip to content

The table column content/patch in issue/comment should be longtext #16656

Closed
@wxiaoguang

Description

@wxiaoguang
  • Gitea version (or commit ref): 1.15.0-rc3
  • Git version: N/A
  • Operating system: N/A
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite

Description

When migrating issues with long content, gitea may report error:

2021/08/09 17:53:26 modules/task/task.go:54:handle() [E] Run task failed: Error 1406: Data too long for column 'content' at row 1

Bypass Fix

alter table issue change content content longtext;
alter table `comment` change content content longtext;
alter table `comment` change patch patch longtext;

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementAn improvement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions