/** * The public entry point for the class. * * @return void * @since 0.5.6 * @throws Exception */ public function upgrade() { if (parent::upgrade()) { // Rebuild the categories table $table = JTable::getInstance('Category', 'JTable', array('dbo' => $this->db_new)); if (!$table->rebuild()) { echo JError::raiseError(500, $table->getError()); } } }
/** * The public entry point for the class. * * @return void * @since 0.4.4 * @throws Exception */ public function upgrade() { if (parent::upgrade()) { // Rebuild the usergroup nested set values. $table = JTable::getInstance('Usergroup', 'JTable', array('dbo' => $this->db_new)); if (!$table->rebuild()) { echo JError::raiseError(500, $table->getError()); } } }