/** * 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)); if (!$table->rebuild()) { throw new Exception($table->getError()); } } }