#18549056 : shorten table name

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7190 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2010-01-20 06:25:21 +00:00
parent 92be400c27
commit bd47ed941f
16 changed files with 37 additions and 17 deletions

View file

@ -45,6 +45,16 @@
* @brief 설치가 이상이 없는지 체크하는 method
**/
function checkUpdate() {
$oDB =& DB::getInstance();
if($oDB->isTableExists("autoinstall_installed_packages"))
{
return true;
}
if($oDB->isTableExists("autoinstall_remote_categories"))
{
return true;
}
return false;
}
@ -52,6 +62,15 @@
* @brief 업데이트 실행
**/
function moduleUpdate() {
$oDB =& DB::getInstance();
if($oDB->isTableExists("autoinstall_installed_packages"))
{
$oDB->dropTable("autoinstall_installed_packages");
}
if($oDB->isTableExists("autoinstall_remote_categories"))
{
$oDB->dropTable("autoinstall_remote_categories");
}
return new Object(0, 'success_updated');
}