Rhymix 2.1.20 에서 "확장변수에 첨부된 파일은 첨부파일 목록과 첨부 갯수에서 제외" 패치로 인해 upload_target_type 값이 누락된 일부 첨부파일이 표시되지 않는 문제가 있습니다.
해결방법은 다음과 같은 쿼리문을 실행시켜주면 됩니다.
UPDATE rx_files SET upload_target_type='doc' WHERE upload_target_srl IN ( SELECT DISTINCT files.upload_target_srl FROM rx_files AS files JOIN rx_documents AS documents ON files.upload_target_srl = documents.document_srl WHERE files.upload_target_type IS NULL )
관련되지 않았지만, 댓글의 upload_target_type 값도 채워줄 수도 있습니다.
UPDATE rx_files SET upload_target_type='com' WHERE upload_target_srl IN ( SELECT DISTINCT files.upload_target_srl FROM rx_files AS files JOIN rx_comments AS comments ON files.upload_target_srl = comments.comment_srl WHERE files.upload_target_type IS NULL )
upload_target_type 값을 doc 로 넣어서 해결하긴 했는데 앞으로도 별도로 업데이트 해줘야 할까요?