Skip to content

Commit 6f42d09

Browse files
bug #61271 [Messenger] disable detecting modified indexes with DBAL 4.3 (xabbuh)
This PR was merged into the 6.4 branch. Discussion ---------- [Messenger] disable detecting modified indexes with DBAL 4.3 | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #61269 | License | MIT Commits ------- 37a2a80 disable detecting modified indexes with DBAL 4.3
2 parents 1b7d5c8 + 37a2a80 commit 6f42d09

File tree

1 file changed

+5
-0
lines changed
  • src/Symfony/Component/Messenger/Bridge/Doctrine/Transport

1 file changed

+5
-0
lines changed

src/Symfony/Component/Messenger/Bridge/Doctrine/Transport/Connection.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
use Doctrine\DBAL\Schema\AbstractAsset;
2828
use Doctrine\DBAL\Schema\AbstractSchemaManager;
2929
use Doctrine\DBAL\Schema\Comparator;
30+
use Doctrine\DBAL\Schema\ComparatorConfig;
3031
use Doctrine\DBAL\Schema\Schema;
3132
use Doctrine\DBAL\Schema\SchemaDiff;
3233
use Doctrine\DBAL\Schema\Synchronizer\SchemaSynchronizer;
@@ -614,6 +615,10 @@ private function createSchemaManager(): AbstractSchemaManager
614615

615616
private function createComparator(AbstractSchemaManager $schemaManager): Comparator
616617
{
618+
if (class_exists(ComparatorConfig::class)) {
619+
return $schemaManager->createComparator((new ComparatorConfig())->withReportModifiedIndexes(false));
620+
}
621+
617622
return method_exists($schemaManager, 'createComparator')
618623
? $schemaManager->createComparator()
619624
: new Comparator();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy