public function renameSequence($oldName, $newName)
    {
        if (!$this->hasSequence($oldName)) {
            throw SchemaException::schemaSequenceDoesNotExist($this->getName(), $oldName);
        }

        if ($this->hasSequence($newName)) {
            throw SchemaException::schemaSequenceAlreadyExists($this->getName(), $newName);
        }

        $this->sequences[$oldName]->setName($newName);
        $this->sequences[$newName] = $this->sequences[$oldName];

        unset($this->sequences[$oldName]);
    }