From 1c4b901fc587ac11479460f4a5e49ad1d74cbe32 Mon Sep 17 00:00:00 2001 From: zero Date: Tue, 20 Nov 2007 04:08:46 +0000 Subject: [PATCH] =?UTF-8?q?=EB=B2=84=EC=A0=84=EC=9D=84=200.2.6=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EC=98=AC=EB=A6=BC.=20=EA=B2=8C=EC=8B=9C=EA=B8=80?= =?UTF-8?q?=20=EC=A1=B0=ED=9A=8C=EC=8B=9C=20module=5Fsrl+is=5Fnotice=20?= =?UTF-8?q?=EA=B2=B0=ED=95=A9=EC=9D=B8=EB=8D=B1=EC=8A=A4=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3020 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- config/config.inc.php | 2 +- modules/document/document.class.php | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/config/config.inc.php b/config/config.inc.php index f14832924..f2db7ee5a 100644 --- a/config/config.inc.php +++ b/config/config.inc.php @@ -23,7 +23,7 @@ * 2 : 1 + DB 쿼리 * 3 : 모든 로그 **/ - define('__DEBUG__', 3); + define('__DEBUG__', 0); /** * @brief 디버그 메세지의 출력 장소 diff --git a/modules/document/document.class.php b/modules/document/document.class.php index 83f74c13e..3230abce2 100644 --- a/modules/document/document.class.php +++ b/modules/document/document.class.php @@ -29,11 +29,11 @@ $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")); + $oDB->addIndex("documents","idx_module_notice", array("module_srl","is_notice")); // 2007. 10. 17 모듈이 삭제될때 등록된 글도 모두 삭제하는 트리거 추가 $oModuleController->insertTrigger('module.deleteModule', 'document', 'controller', 'triggerDeleteModuleDocuments', 'after'); - return new Object(); } @@ -81,6 +81,9 @@ if(!$oDB->isColumnExists("document_categories","expand")) return true; if(!$oDB->isColumnExists("document_categories","group_srls")) return true; + // 2007. 11. 20 게시글에 module_srl + is_notice 복합인덱스 만들기 + if(!$oDB->isIndexExists("documents","idx_module_notice")) return true; + return false; } @@ -151,6 +154,9 @@ if(!$oDB->isColumnExists("document_categories","expand")) $oDB->addColumn('document_categories',"expand","char",1,"N"); if(!$oDB->isColumnExists("document_categories","group_srls")) $oDB->addColumn('document_categories',"group_srls","text"); + // 2007. 11. 20 게시글에 module_srl + is_notice 복합인덱스 만들기 + if(!$oDB->isIndexExists("documents","idx_module_notice")) $oDB->addIndex("documents","idx_module_notice", array("module_srl","is_notice")); + return new Object(0,'success_updated'); }