File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/Symfony/Component/Messenger/Bridge/Doctrine/Transport Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 27
27
use Doctrine \DBAL \Schema \AbstractAsset ;
28
28
use Doctrine \DBAL \Schema \AbstractSchemaManager ;
29
29
use Doctrine \DBAL \Schema \Comparator ;
30
+ use Doctrine \DBAL \Schema \ComparatorConfig ;
30
31
use Doctrine \DBAL \Schema \Schema ;
31
32
use Doctrine \DBAL \Schema \SchemaDiff ;
32
33
use Doctrine \DBAL \Schema \Synchronizer \SchemaSynchronizer ;
@@ -614,6 +615,10 @@ private function createSchemaManager(): AbstractSchemaManager
614
615
615
616
private function createComparator (AbstractSchemaManager $ schemaManager ): Comparator
616
617
{
618
+ if (class_exists (ComparatorConfig::class)) {
619
+ return $ schemaManager ->createComparator ((new ComparatorConfig ())->withReportModifiedIndexes (false ));
620
+ }
621
+
617
622
return method_exists ($ schemaManager , 'createComparator ' )
618
623
? $ schemaManager ->createComparator ()
619
624
: new Comparator ();
You can’t perform that action at this time.
0 commit comments