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:
ovclas 2011-10-25 10:23:30 +00:00
parent ecd528672b
commit 3208e90f5c

View file

@ -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');
}