mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 14:52:24 +09:00
게시글을 삭제할 때 저장기록도 함께 삭제
This commit is contained in:
parent
16f7a76471
commit
9408623120
2 changed files with 14 additions and 0 deletions
|
|
@ -890,6 +890,7 @@ class documentController extends document
|
|||
$this->_deleteDeclaredDocuments($args);
|
||||
$this->_deleteDocumentReadedLog($args);
|
||||
$this->_deleteDocumentVotedLog($args);
|
||||
$this->_deleteDocumentUpdateLog($args);
|
||||
|
||||
// Remove the thumbnail file
|
||||
FileHandler::removeDir(sprintf('files/thumbnails/%s',getNumberingPath($document_srl, 3)));
|
||||
|
|
@ -939,6 +940,11 @@ class documentController extends document
|
|||
executeQuery('document.deleteDocumentVotedLog', $documentSrls);
|
||||
}
|
||||
|
||||
function _deleteDocumentUpdateLog($document_srl)
|
||||
{
|
||||
executeQuery('document.deleteDocumentUpdateLog', $document_srl);
|
||||
}
|
||||
|
||||
/**
|
||||
* Move the doc into the trash
|
||||
* @param object $obj
|
||||
|
|
|
|||
8
modules/document/queries/deleteDocumentUpdateLog.xml
Normal file
8
modules/document/queries/deleteDocumentUpdateLog.xml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<query id="deleteDocumentUpdateLog" action="delete">
|
||||
<tables>
|
||||
<table name="document_update_list" />
|
||||
</tables>
|
||||
<conditions>
|
||||
<condition operation="in" column="document_srl" var="document_srl" filter="number" notnull="notnull" />
|
||||
</conditions>
|
||||
</query>
|
||||
Loading…
Add table
Add a link
Reference in a new issue