Commit ea1b8643 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Add exception handling to UPGRADE and rename to UPGRADE.md

parent 1dbd6d38
# Upgrade to 2.5
A new method was added to `Doctrine\DBAL\Driver` interface that you need to implement
if your project contains custom drivers.
```php
/**
* @param \Exception $exception
*
* @return int
*/
public function convertExceptionCode(\Exception $exception);
```
The most basic implementation for this method just returns 0:
```php
/**
* @param \Exception $exception
*
* @return int
*/
public function convertExceptionCode(\Exception $exception)
{
return 0;
}
```
You can see the MySQL, SQLite and PostgreSQL drivers for sample implementations with
the new feature and take a look at `tests/Doctrine/Tests/DBAL/Functional/ExceptionTest.php`
for testing this functionality.
# Upgrade to 2.4
## Doctrine\DBAL\Schema\Constraint
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment