/** * @return Status */ public function createTables() { $status = parent::createTables(); return $this->setupSearchIndex($status); }
public function createTables() { $status = parent::createTables(); // Do last-minute stuff like fulltext indexes (since they can't be inside a transaction) if ($status->isOk()) { $searchindex = $this->db->tableName('searchindex'); $schema = $this->db->addIdentifierQuotes($this->getVar('wgDBmwschema')); try { $this->db->query("CREATE FULLTEXT INDEX ON {$searchindex} (si_title, si_text) KEY INDEX si_page ON {$schema}"); } catch (DBQueryError $dqe) { $status->fatal('config-install-tables-failed', $dqe->getText()); } } return $status; }
/** * Overload: after this action field info table has to be rebuilt */ public function createTables() { $this->setupSchemaVars(); $this->db->selectDB($this->getVar('wgDBuser')); $this->db->setFlag(DBO_DDLMODE); $status = parent::createTables(); $this->db->clearFlag(DBO_DDLMODE); $this->db->query('BEGIN fill_wiki_info; END;'); return $status; }