alter table attached_file add attached_type varchar (20) not null;
update attached_file set attached_type = 'ISSUE_ATTACHED';