Skip to content

Commit

Permalink
Merge pull request #4213 from morozov/deprecate-schema-synchronizer
Browse files Browse the repository at this point in the history
Deprecate the Synchronizer package
morozov authored Aug 19, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 278d782 + 7532e41 commit 92419f0
Showing 5 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Upgrade to 2.11

## Deprecated `Synchronizer` package

The `Doctrine\DBAL\Schema\Synchronizer\SchemaSynchronizer` interface and all its implementations are deprecated.

## Deprecated usage of wrapper-level components as implementations of driver-level interfaces

The usage of the wrapper `Connection` and `Statement` classes as implementations of the `Driver\Connection` and `Driver\Statement` interfaces is deprecated.
4 changes: 2 additions & 2 deletions docs/en/reference/sharding.rst
Original file line number Diff line number Diff line change
@@ -269,8 +269,8 @@ you have to sort the data in the application.
$sql = "SELECT * FROM customers";
$rows = $shardManager->queryAll($sql, $params);
Schema Operations: SchemaSynchronizer Interface
-----------------------------------------------
Schema Operations: SchemaSynchronizer Interface (deprecated)
------------------------------------------------------------

Schema Operations in a sharding architecture are tricky. You have to perform
them on all databases instances (shards) at the same time. Also Doctrine
Original file line number Diff line number Diff line change
@@ -7,6 +7,8 @@

/**
* Abstract schema synchronizer with methods for executing batches of SQL.
*
* @deprecated
*/
abstract class AbstractSchemaSynchronizer implements SchemaSynchronizer
{
2 changes: 2 additions & 0 deletions lib/Doctrine/DBAL/Schema/Synchronizer/SchemaSynchronizer.php
Original file line number Diff line number Diff line change
@@ -7,6 +7,8 @@
/**
* The synchronizer knows how to synchronize a schema with the configured
* database.
*
* @deprecated
*/
interface SchemaSynchronizer
{
Original file line number Diff line number Diff line change
@@ -12,6 +12,8 @@

/**
* Schema Synchronizer for Default DBAL Connection.
*
* @deprecated
*/
class SingleDatabaseSynchronizer extends AbstractSchemaSynchronizer
{

0 comments on commit 92419f0

Please sign in to comment.