Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gitea cannot be installed on posgresql schema different to public #7534

Closed
2 of 7 tasks
Rizzen59 opened this issue Jul 19, 2019 · 2 comments
Closed
2 of 7 tasks

Gitea cannot be installed on posgresql schema different to public #7534

Rizzen59 opened this issue Jul 19, 2019 · 2 comments
Labels
issue/duplicate The issue has already been reported.

Comments

@Rizzen59
Copy link

Rizzen59 commented Jul 19, 2019

  • Gitea version (or commit ref): 1.8.3 and 1.9.0-rc2
  • Git version: 2.22.0
  • Operating system: CentOS 7
  • Database (use [x]):
    • PostgreSQL (11)
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • Not relevant
    • No
  • Log gist:

Description

If default schema for user is different of public (the best way), schema is created on gitea on the user default schema.
On boot, the check for existing column id on table version is executed on schema public , then gitea try to add column but column already exist on user's default schema and crash.

Log :
SELECT column_name FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = $1 AND table_name = $2 AND column_name = $3 [public version id]

@Rizzen59 Rizzen59 changed the title Postgre Gitea cannot be install on posgresql schema different to public Jul 19, 2019
@Rizzen59 Rizzen59 changed the title Gitea cannot be install on posgresql schema different to public Gitea cannot be installed on posgresql schema different to public Jul 19, 2019
@lafriks
Copy link
Member

lafriks commented Jul 19, 2019

I think there was issue for this already, there was even draft PR to fix this but it never got finished

@lunny lunny added the issue/duplicate The issue has already been reported. label Jul 20, 2019
@lunny
Copy link
Member

lunny commented Jul 20, 2019

duplicated with #5152

@lunny lunny closed this as completed Jul 20, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/duplicate The issue has already been reported.
Projects
None yet
Development

No branches or pull requests

3 participants