Skip to content

routers/init.go:86:GlobalInit() [F] ORM engine initialization failed: migrate: do migrate: Error 1091: Can't DROP INDEX ``; check that it exists #8067

Closed
@SomeStrangeName

Description

@SomeStrangeName
  • Gitea version (or commit ref):
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL (MariaDB)
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • [ x] Not relevant
  • Log gist:

Description

I tried to upgrade from gitea-1.4.3-linux-amd64 to gitea-1.9.2-linux-amd64 by replacing the binary. Now I got the message:

routers/init.go:86:GlobalInit() [F] ORM engine initialization failed: migrate: do migrate: Error 1091: Can't DROP INDEX ``; check that it exists

I noticed this ticket: #3056 but in my case there is an empty string instead of index.

Adding the index to the database as described in the other ticket was also not working:
ALTER TABLE repo_unit ADD COLUMN index INT;

So currently I can't run gitea.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions