Data migration removes hanging attachments