Module의 업데이트 필요 현황을 파악하고 업데이트를 할 수 있는 코드 추가. db의 column exists정보와 add column 기능 추가

git-svn-id: http://xe-core.googlecode.com/svn/trunk@1974 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-07-23 07:35:47 +00:00
parent cb2254ef96
commit a2eb5d62bf
38 changed files with 299 additions and 64 deletions

View file

@ -514,8 +514,14 @@
$info->path = $path;
$info->admin_index_act = $info->admin_index_act;
if($table_count > $created_table_count) $info->is_installed = false;
else $info->is_installed = true;
// 설치 유무 체크 (설치는 DB의 설치만 관리)
if($table_count > $created_table_count) $info->need_installed = false;
else $info->need_installed = true;
// 각 모듈의 module.class.php로 upgrade 유무 체크
$oDummy = null;
$oDummy = &getModule($module_name, 'class');
if($oDummy) $info->need_update = $oDummy->checkUpdate();
$list[] = $info;
}