@@ -297,7 +297,7 @@ |
||
| 297 | 297 | $this->columns = ['t0.*']; |
| 298 | 298 | $this->modifier = ['DISTINCT']; |
| 299 | 299 | |
| 300 | - return (int)$this->entityManager->getConnection()->query($query)->fetchColumn(); |
|
| 300 | + return (int) $this->entityManager->getConnection()->query($query)->fetchColumn(); |
|
| 301 | 301 | } |
| 302 | 302 | |
| 303 | 303 | /** |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | $result = $this->em->getConnection()->query($query->getQuery()); |
| 63 | 63 | $rawColumns = $result->fetchAll(PDO::FETCH_ASSOC); |
| 64 | 64 | if (count($rawColumns) === 0) { |
| 65 | - throw new Exception('Unknown table ' . $schemaTable); |
|
| 65 | + throw new Exception('Unknown table ' . $schemaTable); |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | $cols = []; |
@@ -74,8 +74,7 @@ |
||
| 74 | 74 | $definition['data_type'] = $this->normalizeType($rawColumn['Type']); |
| 75 | 75 | $definition['column_name'] = $rawColumn['Field']; |
| 76 | 76 | $definition['is_nullable'] = $rawColumn['Null'] === 'YES'; |
| 77 | - $definition['column_default'] = $rawColumn['Default'] !== null ? $rawColumn['Default'] : |
|
| 78 | - ($rawColumn['Extra'] === 'auto_increment' ? 'sequence(AUTO_INCREMENT)' : null); |
|
| 77 | + $definition['column_default'] = $rawColumn['Default'] !== null ? $rawColumn['Default'] : ($rawColumn['Extra'] === 'auto_increment' ? 'sequence(AUTO_INCREMENT)' : null); |
|
| 79 | 78 | $definition['character_maximum_length'] = null; |
| 80 | 79 | $definition['datetime_precision'] = null; |
| 81 | 80 | |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | $rawColumns = $result->fetchAll(\PDO::FETCH_ASSOC); |
| 58 | 58 | |
| 59 | 59 | if (count($rawColumns) === 0) { |
| 60 | - throw new Exception('Unknown table ' . $table); |
|
| 60 | + throw new Exception('Unknown table ' . $table); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | $hasMultiplePrimaryKey = $this->hasMultiplePrimaryKey($rawColumns); |