isColumnExists('menu', 'site_srl')) return true; // 2012. 02. 01 title index check if(!$oDB->isIndexExists("menu", "idx_title")) return true; return false; } /** * Execute update * @return Object */ function moduleUpdate() { $oDB = &DB::getInstance(); // 2009. 02. 11 menu added to the table site_srl if(!$oDB->isColumnExists('menu', 'site_srl')) { $oDB->addColumn('menu','site_srl','number',11,0,true); } // 2012. 02. 01 title index check if(!$oDB->isIndexExists("menu","idx_title")) { $oDB->addIndex('menu', 'idx_title', array('title')); } return new Object(0, 'success_updated'); } /** * Re-generate the cache file * @return void */ function recompileCache() { $oMenuAdminController = &getAdminController('menu'); // Wanted list of all the blog module $output = executeQueryArray("menu.getMenus"); $list = $output->data; if(!count($list)) return; // The menu module is used in the re-create all the menu list foreach($list as $menu_item) { $menu_srl = $menu_item->menu_srl; $oMenuAdminController->makeXmlFile($menu_srl); } } } ?>