Fix attachment rename processing in upgrade_2-1_mysql.sql

Signed-off-by: Noteworthy Software, Inc <online@noteworthysoftware.com>