go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.08k stars 5.49k forks source link

Can't update to 1.1.x version : duplicat key #1370

Closed camlafit closed 7 years ago

camlafit commented 7 years ago

Description

When I update binary from dl.gitea.org and overwrite gitea binary, I can't execute it.

2017/03/20 17:30:58 [I] Log Mode: File(Info)
2017/03/20 17:30:58 [I] XORM Log Mode: File(Info)
2017/03/20 17:30:58 [I] Cache Service Enabled
2017/03/20 17:30:58 [I] Session Service Enabled
2017/03/20 17:30:58 [I] Migration: create repo unit table and add units for all repos
2017/03/20 17:30:58 [...itea/routers/init.go:54 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: CreateIndexes RepoUnit: Error 1061: Duplicate key name 'IDX_repo_unit_S'
cez81 commented 7 years ago

I think this is same issue as #1261, just different database.