public function renameCheck($oldName, $newName)
    {
        if (!$this->hasCheck($oldName)) {
            throw SchemaException::tableCheckDoesNotExist($this->getName(), $oldName);
        }

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

        $this->checks[$oldName]->setName($newName);
        $this->checks[$newName] = $this->checks[$oldName];
        unset($this->checks[$oldName]);
    }
public function renameCheck($oldName, $newName)
    {
        if (!$this->hasCheck($oldName)) {
            throw SchemaException::tableCheckDoesNotExist($this->getName(), $oldName);
        }

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

        $this->checks[$oldName]->setName($newName);
        $this->checks[$newName] = $this->checks[$oldName];
        unset($this->checks[$oldName]);
    }
public function renameCheck ( $ oldName , $ newName ) { if ( ! $ this -> hasCheck ( $ oldName ) ) { throw SchemaException :: tableCheckDoesNotExist ( $ this -> getName ( ) , $ oldName ) ; } if ( $ this -> hasCheck ( $ newName ) ) { throw SchemaException :: tableCheckAlreadyExists ( $ this -> getName ( ) , $ newName ) ; } $ this -> checks [ $ oldName ] -> setName ( $ newName ) ; $ this -> checks [ $ newName ] = $ this -> checks [ $ oldName ] ; unset ( $ this -> checks [ $ oldName ] ) ; }
Renames a check.

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

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