Skip to content

Commit 36522cb

Browse files
committed
fix sqlite
1 parent 667e688 commit 36522cb

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

baseline.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@
9595
<code><![CDATA[archive]]></code>
9696
</UndefinedInterfaceMethod>
9797
</file>
98+
<file src="src/Schema/DoctrineHelper.php">
99+
<InternalMethod>
100+
<code><![CDATA[getParams]]></code>
101+
<code><![CDATA[getParams]]></code>
102+
</InternalMethod>
103+
</file>
98104
<file src="src/Schema/DoctrineSchemaDirector.php">
99105
<InternalMethod>
100106
<code><![CDATA[getName]]></code>

src/Schema/DoctrineHelper.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ public static function sameDatabase(Connection $connectionA, Connection $connect
2020
return true;
2121
}
2222

23+
if ($connectionA->getParams() === $connectionB->getParams()) {
24+
return true;
25+
}
26+
2327
$checkTable = 'same_db_check_' . bin2hex(random_bytes(7));
2428
$connectionA->executeStatement(sprintf('CREATE TABLE %s (id INTEGER NOT NULL)', $checkTable));
2529

0 commit comments

Comments
 (0)