protected function stageRestoreDBIndexes() { $step = $this->getStep(); if ($step == 0) { WordTable::createIndex(); } elseif ($step == 1) { ChainTable::createIndex(); } elseif ($step == 2) { SiteLinkTable::createIndex(); } if ($step >= 2) { $this->nextStage(); } else { $this->nextStep(); } }