src/Sqlsrv/SqlsrvDriver.php
protected function renameConstraints($constraints = array(), $prefix = null, $backup = null)
	{
		$this->connect();

		foreach ($constraints as $constraint)
		{
			$this->setQuery('sp_rename ' . $constraint . ',' . str_replace($prefix, $backup, $constraint));
			$this->execute();
		}
	}
protected function renameConstraints($constraints = array(), $prefix = null, $backup = null)
	{
		$this->connect();

		foreach ($constraints as $constraint)
		{
			$this->setQuery('sp_rename ' . $constraint . ',' . str_replace($prefix, $backup, $constraint));
			$this->execute();
		}
	}
protected function renameConstraints ( $ constraints = array ( ) , $ prefix = null , $ backup = null ) { $ this -> connect ( ) ; foreach ( $ constraints as $ constraint ) { $ this -> setQuery ( 'sp_rename ' . $ constraint . ',' . str_replace ( $ prefix , $ backup , $ constraint ) ) ; $ this -> execute ( ) ; } }
Rename constraints.

@param   array   $constraints  Array(strings) of table constraints
@param   string  $prefix       A string
@param   string  $backup       A string

@return  void

@since   1.0
Rename constraints .