Skip to content

Restoring a db dump from sqlite to postgres is incomplete #740

Closed
@mjwwit

Description

@mjwwit

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions