다른 주제의 인용이 포함된 게시글에서 리맵 오류 발생

Change the domain name or rename your Discourse 에 따라 리맵(remap) 명령어를 입력하면, 다른 주제에 대한 인용문이 포함된 주제에서 다음과 같은 오류가 발생합니다:

Error: ERROR: duplicate key value violates unique constraint “unique_post_links”
DETAIL: Key (topic_id, post_id, url)=(265, 33103, https://my.forum.url/t/my-topic-name/2025/35) already exists.
The remap has only been partially applied due to the error above. Please re-run the script again.

이 상황은 인용문을 포함하는 게시물이 다른 주제로 분리되거나, 인용문이 의도적으로 생성된 경우에 발생합니다.

문제가 되는 주제를 영구 삭제하거나 인용 참조를 수동으로 제거하면 문제가 해결됩니다. 하지만 이는 현실적으로 가능한 방법이 아닙니다.