diff --git a/UPGRADE.md b/UPGRADE.md index 6479312d553..8d5273a206c 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -1,5 +1,10 @@ # Upgrade to 2.11 +## Deprecated the functionality of dropping client connections when dropping a database + +The corresponding `getDisallowDatabaseConnectionsSQL()` and `getCloseActiveDatabaseConnectionsSQL` methods +of the `PostgreSqlPlatform` class have been deprecated. + ## Deprecated `Synchronizer` package The `Doctrine\DBAL\Schema\Synchronizer\SchemaSynchronizer` interface and all its implementations are deprecated. diff --git a/lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php b/lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php index db9bec13d52..0000284173c 100644 --- a/lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php +++ b/lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php @@ -442,6 +442,8 @@ public function getCreateDatabaseSQL($name) * * This is useful to force DROP DATABASE operations which could fail because of active connections. * + * @deprecated + * * @param string $database The name of the database to disallow new connections for. * * @return string @@ -456,6 +458,8 @@ public function getDisallowDatabaseConnectionsSQL($database) * * This is useful to force DROP DATABASE operations which could fail because of active connections. * + * @deprecated + * * @param string $database The name of the database to close currently active connections for. * * @return string