Upgrading from 3.2 to 3.8 failed

While upgrading from 3.2 to 3.8, we wiped the attachment table in the
process of moving to a new server, and are now getting the following
error: Duplicate entry ‘0’ for key 1 (/opt/rt3/bin/…/lib/RT/
Attachment_Overlay.pm:186) when attempting to create a new ticket with
email text as an attachment.

Loading any ticket shows all the basic information. However, when
trying to view the ticket body, which comes from email text, it shows
an ‘Attachment ‘’ could not be loaded’ error.

Any help would be greatly appreciated