I am trying to import tens of thousands of posts from Wordpress Site 1 into Wordpress Site 2. I used WP-CLI to export and import. For import, i used the "--skip=attachment" flag, as the tens of thousands of images files were being downloaded. We are keeping the images on the original server and having them symlinked on the new site. However, the attachment ids have not changed, which means the already-extant photos on Wordpress Site 2 are being referenced.
How can I change the post ids of the attachments and in the referenced posts from Wordpress Site 2 without having to download all the files?
Thank you, in advance.