Skip to content

Commit

Permalink
Deprecate the functionality of dropping client connections when dropp…
Browse files Browse the repository at this point in the history
…ing a database
  • Loading branch information
morozov committed Aug 26, 2020
1 parent 53b101b commit 5c2a367
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 4 additions & 0 deletions lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5c2a367

Please sign in to comment.