mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
복구를 위한 쿼리 추가.
This commit is contained in:
parent
f2c17bf310
commit
9886c92d2b
2 changed files with 15 additions and 1 deletions
|
|
@ -995,7 +995,7 @@ class commentController extends comment
|
|||
$obj->member_srl = 0;
|
||||
// use to query default
|
||||
unset($obj->last_update);
|
||||
$output = executeQuery('comment.updateCommentByDelete', $obj);
|
||||
$output = executeQuery('comment.updateCommentByRestore', $obj);
|
||||
if(!$output->toBool())
|
||||
{
|
||||
$oDB->rollback();
|
||||
|
|
|
|||
14
modules/comment/queries/updateCommentByRestore.xml
Normal file
14
modules/comment/queries/updateCommentByRestore.xml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<query id="updateCommentByRestore" action="update">
|
||||
<tables>
|
||||
<table name="comments" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="member_srl" var="member_srl" />
|
||||
<column name="content" var="content" notnull="notnull" />
|
||||
<column name="last_update" var="last_update" default="curdate()" />
|
||||
<column name="status" var="status" default="1" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="comment_srl" var="comment_srl" filter="number" notnull="notnull" />
|
||||
</conditions>
|
||||
</query>
|
||||
Loading…
Add table
Add a link
Reference in a new issue