mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
#113 documents 테이블에 결합인덱스 적용하도록 코드 수정. update해야함
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2391 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
988645a6a3
commit
3aba4c14af
1 changed files with 33 additions and 0 deletions
|
|
@ -24,6 +24,12 @@
|
||||||
$oModuleController->insertActionForward('document', 'view', 'dispDocumentAdminList');
|
$oModuleController->insertActionForward('document', 'view', 'dispDocumentAdminList');
|
||||||
$oModuleController->insertActionForward('document', 'view', 'dispDocumentPrint');
|
$oModuleController->insertActionForward('document', 'view', 'dispDocumentPrint');
|
||||||
|
|
||||||
|
$oDB = &DB::getInstance();
|
||||||
|
$oDB->addIndex("documents","idx_module_list_order", array("module_srl","list_order"));
|
||||||
|
$oDB->addIndex("documents","idx_module_update_order", array("module_srl","update_order"));
|
||||||
|
$oDB->addIndex("documents","idx_module_readed_count", array("module_srl","readed_count"));
|
||||||
|
$oDB->addIndex("documents","idx_module_voted_count", array("module_srl","voted_count"));
|
||||||
|
|
||||||
return new Object();
|
return new Object();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -43,6 +49,14 @@
|
||||||
**/
|
**/
|
||||||
if(!$oDB->isColumnExists("documents","notify_message")) return true;
|
if(!$oDB->isColumnExists("documents","notify_message")) return true;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 2007. 8. 23 : document테이블에 결합 인덱스 적용
|
||||||
|
**/
|
||||||
|
if(!$oDB->isIndexExists("documents","idx_module_list_order")) return true;
|
||||||
|
if(!$oDB->isIndexExists("documents","idx_module_update_order")) return true;
|
||||||
|
if(!$oDB->isIndexExists("documents","idx_module_readed_count")) return true;
|
||||||
|
if(!$oDB->isIndexExists("documents","idx_module_voted_count")) return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -69,6 +83,25 @@
|
||||||
$oDB->addColumn('documents',"notify_message","char",1);
|
$oDB->addColumn('documents',"notify_message","char",1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 2007. 8. 23 : document테이블에 결합 인덱스 적용
|
||||||
|
**/
|
||||||
|
if(!$oDB->isIndexExists("documents","idx_module_list_order")) {
|
||||||
|
$oDB->addIndex("documents","idx_module_list_order", array("module_srl","list_order"));
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!$oDB->isIndexExists("documents","idx_module_update_order")) {
|
||||||
|
$oDB->addIndex("documents","idx_module_update_order", array("module_srl","update_order"));
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!$oDB->isIndexExists("documents","idx_module_readed_count")) {
|
||||||
|
$oDB->addIndex("documents","idx_module_readed_count", array("module_srl","readed_count"));
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!$oDB->isIndexExists("documents","idx_module_voted_count")) {
|
||||||
|
$oDB->addIndex("documents","idx_module_voted_count", array("module_srl","voted_count"));
|
||||||
|
}
|
||||||
|
|
||||||
return new Object(0,'success_updated');
|
return new Object(0,'success_updated');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue