/** * Register index schema supplied by database. * * @param string $name Index name. * @param mixed $schema Driver specific index information schema. * @return AbstractIndex */ protected function registerIndex($name, $schema) { $index = $this->driver->indexSchema($this, $name, $schema); $this->dbIndexes[$name] = clone $index; return $this->indexes[$name] = $index; }