From 7a676e12b7ffb19b717aff66e2215185aa487f00 Mon Sep 17 00:00:00 2001 From: zero Date: Mon, 3 Dec 2007 09:00:14 +0000 Subject: [PATCH] check documents.extra_vars column existing git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3146 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/document/document.class.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/document/document.class.php b/modules/document/document.class.php index 3230abce2..bfdf55fb8 100644 --- a/modules/document/document.class.php +++ b/modules/document/document.class.php @@ -84,6 +84,12 @@ // 2007. 11. 20 게시글에 module_srl + is_notice 복합인덱스 만들기 if(!$oDB->isIndexExists("documents","idx_module_notice")) return true; + /** + * 2007. 12. 03 : 확장변수(extra_vars) 컬럼이 없을 경우 추가 + **/ + if(!$oDB->isColumnExists("documents","extra_vars")) return true; + + return false; } @@ -157,6 +163,11 @@ // 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")); + /** + * 2007. 12. 03 : 확장변수(extra_vars) 컬럼이 없을 경우 추가 + **/ + if(!$oDB->isColumnExists("documents","extra_vars")) $oDB->addColumn('documents','extra_vars','text'); + return new Object(0,'success_updated'); }