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]);
    }
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]);
    }
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 ] ) ; }
Renames a sequence.

@param string $oldName The old sequence name.
@param string $newName The new sequence name.

@throws \Fridge\DBAL\Exception\SchemaException If the old sequence does not exist or if the new sequence
already exists.
Renames a sequence .