Turn on IDENTITY_INSERT when attempting to insert an id for an attachment. Fixes issue with attachments not being uploaded when post parent exists.