Skip to content

Commit

Permalink
Prevents using different databases for checking and updating the schema
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Nov 7, 2018
1 parent 08585f0 commit aec6bef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mshoplib/setup/TablesCreateMShop.php
Expand Up @@ -170,7 +170,7 @@ protected function setupSchema( array $files, $clean = false )
{
$this->msg( 'Using schema from ' . basename( $relpath ), 1 ); $this->status( '' );

$conn = $this->acquire();
$conn = $this->acquire( $rname );
$dbal = $conn->getRawObject();

if( !( $dbal instanceof \Doctrine\DBAL\Connection ) ) {
Expand Down Expand Up @@ -215,7 +215,7 @@ protected function setupSchema( array $files, $clean = false )
}
}

$this->release( $conn );
$this->release( $conn, $rname );
}
}

Expand Down

0 comments on commit aec6bef

Please sign in to comment.