Skip to content

Commit

Permalink
Add bc layer for postgress SchemaManager
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Jul 5, 2024
1 parent cf0a55e commit fda77d5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/Oro/Tests/Connection/SetupTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ class SetupTest extends TestCase
public function testSchemaUp(): void
{
$this->entityManager = TestUtil::getEntityManager();
$schemaManager = $this->entityManager->getConnection()->createSchemaManager();
$connection = $this->entityManager->getConnection();

$schemaManager = \method_exists($connection, 'getSchemaManager')
? $connection->getSchemaManager()
: $this->entityManager->getConnection()->createSchemaManager();

$schemaTool = new SchemaTool($this->entityManager);
$tables = $schemaManager->listTableNames();
Expand Down

0 comments on commit fda77d5

Please sign in to comment.