Skip to content

Commit b13c1c3

Browse files
authored
fix: Update TableFieldsGenerator.php (InfyOmLabs#1084)
* Update TableFieldsGenerator.php /** * For Avoiding * Doctrine\DBAL\Exception * * Unknown database type enum requested, Doctrine\DBAL\Platforms\MySQL80Platform may not support it. */ * Update TableFieldsGenerator.php Fix --fromTable enum datatype problem
1 parent a05bf0f commit b13c1c3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Utils/TableFieldsGenerator.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,16 @@ public function __construct($tableName, $ignoredFields, $connection = '')
7777
'bit' => 'boolean',
7878
];
7979

80-
$this->tableDetails = $this->schemaManager->listTableDetails($this->tableName);
80+
// $this->tableDetails = $this->schemaManager->listTableDetails($this->tableName);
8181

8282
$mappings = config('laravel_generator.from_table.doctrine_mappings', []);
8383
$mappings = array_merge($mappings, $defaultMappings);
8484
foreach ($mappings as $dbType => $doctrineType) {
8585
$platform->registerDoctrineTypeMapping($dbType, $doctrineType);
8686
}
87-
87+
// Added
88+
$this->tableDetails = $this->schemaManager->listTableDetails($this->tableName);
89+
8890
$columns = $this->schemaManager->listTableColumns($tableName);
8991

9092
$this->columns = [];

0 commit comments

Comments
 (0)