Skip to content

delete-orphaned-repos fails with syntax error (postgresql) #28199

Closed
@pitpalme

Description

@pitpalme

Description

Running gitea doctor --run delete-orphaned-repos against PostgreSQL-driven instance fails with syntax error.

PostgreSQL can't handle unquoted table name for "user" table.
Some source code already contains backtick around table name, modules/doctor/repository.go:29 and modules/doctor/repository.go:49 does not, yet.

Tested with v1.21 and main branch.

Gitea Version

1.21.0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

  • gitea binary
  • docker container
  • self build

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions