Try to update 1.4.5 to 1.5 #2200

Closed
opened 2025-11-02 04:26:51 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @kleper on GitHub (Aug 14, 2018).

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

Description

I have this error trying to update to last version:
2018/08/14 18:19:43 [...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: Insert team units: Error 1062: Duplicate entry '1-1' for key 'UQE_team_unit_s'

Originally created by @kleper on GitHub (Aug 14, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): - Git version: - Operating system: - Database (use `[x]`): - [ ] PostgreSQL - [ x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ x] No - [ x] Not relevant - Log gist: ## Description I have this error trying to update to last version: 2018/08/14 18:19:43 [...itea/routers/init.go:60 GlobalInit()] [E] Failed to initialize ORM engine: migrate: do migrate: Insert team units: Error 1062: Duplicate entry '1-1' for key 'UQE_team_unit_s'
Author
Owner

@lunny commented on GitHub (Aug 15, 2018):

just clear table team_unit and restart the gitea should resolve your issue. Your issue is different from others.

see #4663

@lunny commented on GitHub (Aug 15, 2018): >just clear table team_unit and restart the gitea should resolve your issue. Your issue is different from others. see #4663
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2200