-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Closed
Labels
Description
- Gitea version (or commit ref): 521d429
- Git version: n.a.
- Operating system: Docker image
- Database (use
[x]):- PostgreSQL
- MySQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Not relevant
- Log gist: https://gist.github.com/mjwwit/08966dde2b08b4ecd941112c3c754d8a
Description
The error in the gist linked above takes place when trying to create a repository after migrating from a sqlite3 database to a postgres database using gitea dump.
The issue is that the sequences aren't set to correct values in the dump. This means that they all start at 0. Any insertions get the next sequence number, 1, which is most likely already taken, causing the conflict.