Import of Gitlab export fails with PG::UniqueViolation error
I was trying to move the project https://dev.gitlab.org/gitlab/payment_app
to https://gitlab.com/gitlab-com/customers-gitlab-com
and got the following error
PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_issues_on_project_id_and_iid"
DETAIL: Key (project_id, iid)=(2670515, 84) already exists.
: INSERT INTO "issues" ("title", "assignee_id", "author_id", "created_at", "updated_at", "description", "state", "iid", "updated_by_id", "lock_version", "time_estimate", "project_id", "title_html", "description_html") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id"