mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
issue 666 add index in document table (idx_module_status)
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9730 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ecd528672b
commit
3208e90f5c
1 changed files with 6 additions and 0 deletions
|
|
@ -109,6 +109,9 @@
|
|||
//2011. 06. 07 check comment status update
|
||||
if($oDB->isColumnExists('documents', 'allow_comment') || $oDB->isColumnExists('documents', 'lock_comment')) return true;
|
||||
|
||||
// 2011. 10. 25 status index check
|
||||
if(!$oDB->isIndexExists("documents", "idx_module_status")) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -287,6 +290,9 @@
|
|||
if($oDB->isColumnExists('documents', 'lock_comment') && $oDB->isColumnExists('documents', 'comment_status'))
|
||||
$oDB->dropColumn('documents', 'lock_comment');
|
||||
|
||||
if(!$oDB->isIndexExists("documents", "idx_module_status"))
|
||||
$oDB->addIndex("documents", "idx_module_status", array("module_srl","status"));
|
||||
|
||||
return new Object(0,'success_updated');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue