you can run a sql query to update replace your post table with something like
[attach
to
[attach type="full"
run some tests first in a sample db table. there is no undo and i typed that up from memory. check the bbcode in your message col
'UPDATE xf_post SET message = REPLACE(message, 'oldstring', 'newstring');