| 1 | {{{#!div class="trac-recent-changes" |
| 2 | {{{#!SQLTable |
| 3 | SELECT name as '항목', author as '작성자', DATE_FORMAT(FROM_UNIXTIME(time / 1000000), '%Y-%m-%d %H:%i') as '시간', description as '설명' |
| 4 | FROM ( |
| 5 | (SELECT CONCAT('[', type, ':"', id, '"]의 첨부 파일 [attachment:"', filename, ':', type, ':', id, '" ', filename, ']') as name, author, time, description |
| 6 | FROM attachment) |
| 7 | UNION |
| 8 | (SELECT CONCAT('[milestone:"', name, '"]') as name, '' as author, completed as time, description |
| 9 | FROM milestone |
| 10 | WHERE completed != 0) |
| 11 | UNION |
| 12 | (SELECT CONCAT(repository.value, '의 변경사항 [changeset:', rev * 1, '/', repository.value, ' "[', rev * 1, ']"]') as name, author, time, message as description |
| 13 | FROM revision |
| 14 | JOIN repository ON repos = id AND name='name') |
| 15 | UNION |
| 16 | (SELECT CONCAT('티켓 #', id) as name, reporter as author, time, summary as description |
| 17 | FROM ticket) |
| 18 | UNION |
| 19 | (SELECT CONCAT('티켓 #', ticket) as name, author, time, newvalue as description |
| 20 | FROM ticket_change |
| 21 | WHERE field = 'comment') |
| 22 | UNION |
| 23 | (SELECT CONCAT('[wiki:', name, ']') as name, author, time, comment as description |
| 24 | FROM wiki |
| 25 | WHERE author != 'trac') |
| 26 | ORDER BY (UNIX_TIMESTAMP() * 1000000 - time) |
| 27 | ) AS X |
| 28 | LIMIT 5 |
| 29 | }}} |
| 30 | }}} |