Skip to content

Commit

Permalink
Fix for PostgreSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Dec 16, 2019
1 parent 6c3e2d3 commit 1e66061
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/mshoplib/setup/TablesCreateMShop.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,7 @@ protected function setupSchema( array $files, $clean = false )
{
$this->msg( sprintf( 'Checking table "%1$s": ', $name ), 2 );

$table = $dbalManager->listTableDetails( $name );
$tables = ( $table->getColumns() !== [] ? array( $table ) : [] );

$tables = ( $dbalManager->tablesExist( [$name] ) ? $dbalManager->listTableDetails( $name ) : [] );
$tableSchema = new \Doctrine\DBAL\Schema\Schema( $tables, [], $config );
$schemaDiff = \Doctrine\DBAL\Schema\Comparator::compareSchemas( $tableSchema, $dbalschema );
$stmts = $this->remove( $this->exclude( $schemaDiff, $relpath ), $clean )->toSaveSql( $platform );
Expand Down

0 comments on commit 1e66061

Please sign in to comment.