-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup UPDGRADE.md for the 4.0 release #5587
Conversation
## BC BREAK: Changes in the `Doctrine\DBAL\Schema` API | ||
|
||
- Column precision no longer defaults to 10. The default value is NULL. | ||
- Asset names are no longer nullable. An empty asset name should be represented as an empty string. | ||
- `Doctrine\DBAL\Schema\AbstractSchemaManager::_getPortableTriggersList()` and `::_getPortableTriggerDefinition()` have been removed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #4752 (3.2.0).
@@ -798,27 +694,10 @@ Similarly to `PDOStatement::fetchColumn()`, DBAL statements throw an exception i | |||
|
|||
Similarly to the drivers based on `pdo_pgsql` and `pdo_sqlsrv`, `OCI8Statement::execute()` and `MySQLiStatement::execute()` do not longer ignore redundant parameters. | |||
|
|||
## BC BREAK: `Doctrine\DBAL\Types\Type::getDefaultLength()` removed | |||
|
|||
The `Doctrine\DBAL\Types\Type::getDefaultLength()` method has been removed as it served no purpose. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #4278 (3.0.0).
|
||
## BC BREAK: `Doctrine\DBAL\Types\Type::__toString()` removed | ||
|
||
Relying on string representation was discouraged and has been removed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #4082 (3.0.0).
## BC BREAK: The `NULL` value of `$offset` in LIMIT queries is not allowed | ||
|
||
The `NULL` value of the `$offset` argument in `AbstractPlatform::(do)?ModifyLimitQuery()` methods is no longer allowed. The absence of the offset should be indicated with a `0` which is now the default value. | ||
|
||
## BC BREAK: Removed support for DB-generated UUIDs | ||
|
||
The support for DB-generated UUIDs was removed as non-portable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #4082 (3.0.0).
|
||
## BC BREAK: Removed Doctrine\DBAL\Version | ||
|
||
The Doctrine\DBAL\Version class is no longer available: please refrain from checking the DBAL version at runtime. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #3712 (3.0.0).
|
||
## BC BREAK PostgreSqlPlatform ForeignKeyConstraint support for `feferred` misspelling removed | ||
|
||
`PostgreSqlPlatform::getAdvancedForeignKeyOptionsSQL()` had a typo in it in 2.x. Both the option name | ||
`feferred` and `deferred` were supported in `2.x` but the misspelling was removed in 3.x. | ||
|
||
## BC BREAK `AbstractSchemaManager::extractDoctrineTypeFromComment()` changed, `::removeDoctrineTypeFromComment()` removed | ||
|
||
`AbstractSchemaManager::extractDoctrineTypeFromComment()` made `protected`. It takes the comment by reference, removes the type annotation from it and returns the extracted Doctrine type. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #5107 (4.0.0).
@@ -624,60 +606,14 @@ The `ServerInfoAwareConnection::requiresQueryForServerVersion()` method has been | |||
|
|||
Table columns are no longer indexed by column name. Use the `name` attribute of the column instead. | |||
|
|||
## BC BREAK: Classes made final |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All these classes are already final since 3.0.0 or no longer exist.
|
||
## BC BREAK: Changes in the `Doctrine\DBAL\Connection` API | ||
|
||
- The following methods have been removed as leaking internal implementation details: `::getHost()`, `::getPort()`, `::getUsername()`, `::getPassword()`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #4082 (3.0.0).
|
||
## BC BREAK: Changes in `Doctrine\DBAL\Driver\SQLSrv\LastInsertId` | ||
|
||
- The class stores the last inserted ID as a nullable string, not an integer, which is reflected in the method signatures. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #4514 (3.1.0).
- Removed unused method `Doctrine\DBAL\Schema\AbstractSchemaManager::_getPortableFunctionsList()` | ||
- Removed unused method `Doctrine\DBAL\Schema\AbstractSchemaManager::_getPortableFunctionDefinition()` | ||
- Removed unused method `Doctrine\DBAL\Schema\OracleSchemaManager::_getPortableFunctionDefinition()` | ||
- Removed unused method `Doctrine\DBAL\Schema\SqliteSchemaManager::_getPortableTableIndexDefinition()` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #4082 (3.0.0).
* Removed `SQLParserUtils::getPlaceholderPositions()`. | ||
* Removed `AbstractSchemaManager::getFilterSchemaAssetsExpression()`, `Configuration::getFilterSchemaAssetsExpression()` | ||
and `Configuration::getFilterSchemaAssetsExpression()`. | ||
* `SQLParserUtils::*_TOKEN` constants made private. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #4082 (3.0.0).
## BC BREAK: made parameter type in driver-level `Statement::bind*()` methods required. | ||
## BC BREAK: made parameter type in driver-level `Statement::bindValue()` required. | ||
|
||
The `$type` parameter of the driver-level `Statement::bindParam()` and `::bindValue()` has been made required. | ||
The `$type` parameter of the driver-level `Statement::bindValue()` has been made required. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #5565 (4.0.0).
## Removed the `$driverOptions` argument of `PDO\Statement::bindParam()` and `PDO\SQLSrv\Statement::bindParam()` | ||
|
||
The `$driverOptions` argument of `PDO\Statement::bindParam()` and `PDO\SQLSrv\Statement::bindParam()` has been removed. The specifics of binding a parameter to the statement should be specified using the `$type` argument. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #5565 (4.0.0).
No description provided.