Skip to content

Commit

Permalink
Fix uninitialized $sql array in AbstractPlatform::_getCreateTableSQL()
Browse files Browse the repository at this point in the history
  • Loading branch information
jwage committed May 29, 2019
1 parent f8237be commit 372d49b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -1436,7 +1436,7 @@ protected function _getCreateTableSQL(string $tableName, array $columns, array $
}
$query .= ')';

$sql[] = $query;
$sql = [$query];

if (isset($options['foreignKeys'])) {
foreach ((array) $options['foreignKeys'] as $definition) {
Expand Down

0 comments on commit 372d49b

Please sign in to comment.