check documents.extra_vars column existing

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3146 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-12-03 09:00:14 +00:00
parent 4c418919f4
commit 7a676e12b7

View file

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