- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 6.2k
Closed
Description
- Gitea version (or commit ref): 1.3.0
- Git version:
- Operating system: Ubuntu 16.06
- Database (use [x]):- PostgreSQL
- MySQL
- MSSQL
- SQLite
 
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Not relevant
 
- Log gist: 2017/12/01 19:02:23 [...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: DROP COLUMN index: Error 1091: Can't DROP 'index'; check that column/key exists
Description
After upgrading from 1.2.3 to 1.3.0, gitea no longer starts. Inspecting logs shows [...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: DROP COLUMN index: Error 1091: Can't DROP 'index'; check that column/key exists , which seems to be coming from removeIndexColumnFromRepoUnitTable. Might be related to #2650.
One suggestion is to keep the if err != nil check, but if the error code is 1091 ignore it rather than aborting the app.
Metadata
Metadata
Assignees
Labels
No labels