Skip to content

Users become "Ghost" when restoring from dump #14069

@DuckDuckWhale

Description

@DuckDuckWhale
  • Gitea version (or commit ref): 1.13.0
  • Git version: 2.25.1
  • Operating system: Ubuntu Server 20.04 LTS
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • N/A
  • Log gist: N/A

Description

Found this when testing a periodic backup. Seems that the culprit is that the last column (keep_activity_private) becomes NULL for some users in this NOT NULL column after upgrading to Gitea 1.13.0 from 1.12.5, which causes the exported .sql file to be rejected by postgresql and Gitea to display "Ghost" for those users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions