mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
faceOff코드 사용시 확장변수 테이블에 잠시 설정되었던 잘못된 인덱스를 바꾸는 코드 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5833 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
bec85591be
commit
cc531e7a99
2 changed files with 16 additions and 4 deletions
|
|
@ -28,6 +28,7 @@
|
|||
$oDB->addIndex("documents","idx_module_document_srl", array("module_srl","document_srl"));
|
||||
$oDB->addIndex("documents","idx_module_blamed_count", array("module_srl","blamed_count"));
|
||||
$oDB->addIndex("document_aliases", "idx_module_title", array("module_srl","alias_title"), true);
|
||||
$oDB->addIndex("document_extra_vars", "unique_extra_vars", array("module_srl","document_srl","var_idx","lang_code"), true);
|
||||
|
||||
// 2007. 10. 17 모듈이 삭제될때 등록된 글도 모두 삭제하는 트리거 추가
|
||||
$oModuleController->insertTrigger('module.deleteModule', 'document', 'controller', 'triggerDeleteModuleDocuments', 'after');
|
||||
|
|
@ -95,6 +96,8 @@
|
|||
// 2009. 03. 09 documents에 lang_code 컬럼 추가
|
||||
if(!$oDB->isColumnExists("documents","lang_code")) return true;
|
||||
|
||||
// 2009. 03. 11 확장변수 값 테이블의 인덱스 점검
|
||||
if(!$oDB->isIndexExists("document_extra_vars", "unique_extra_vars")) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
@ -188,6 +191,15 @@
|
|||
executeQuery('document.updateDocumentsLangCode', $obj);
|
||||
}
|
||||
|
||||
// 2009. 03. 11 확장변수 값 테이블의 인덱스 점검
|
||||
if(!$oDB->isIndexExists("document_extra_vars", "unique_extra_vars")) {
|
||||
$oDB->addIndex("document_extra_vars", "unique_extra_vars", array("module_srl","document_srl","var_idx","lang_code"), true);
|
||||
}
|
||||
|
||||
if($oDB->isIndexExists("document_extra_vars", "unique_module_vars")) {
|
||||
$oDB->dropIndex("document_extra_vars", "unique_module_vars", true);
|
||||
}
|
||||
|
||||
return new Object(0,'success_updated');
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<table name="document_extra_vars">
|
||||
<column name="module_srl" type="number" size="11" notnull="notnull" unique="unique_module_vars" />
|
||||
<column name="document_srl" type="number" size="11" notnull="notnull" unique="unique_module_vars" />
|
||||
<column name="var_idx" type="number" size="11" notnull="notnull" unique="unique_module_vars" />
|
||||
<column name="lang_code" type="varchar" size="10" notnull="notnull" unique="unique_module_vars" />
|
||||
<column name="module_srl" type="number" size="11" notnull="notnull" unique="unique_extra_vars" />
|
||||
<column name="document_srl" type="number" size="11" notnull="notnull" unique="unique_extra_vars" />
|
||||
<column name="var_idx" type="number" size="11" notnull="notnull" unique="unique_extra_vars" />
|
||||
<column name="lang_code" type="varchar" size="10" notnull="notnull" unique="unique_extra_vars" />
|
||||
<column name="value" type="bigtext" />
|
||||
</table>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue