#81264Doctrine exception prevents display of Install tool
Description
When using TYPO3 8.7 on PostgreSQL/PostGIS and having a geometry column on a table registered in TCA leads to
Uncaught TYPO3 Exception
Unknown database type geometry requested, Doctrine\DBAL\Platforms\PostgreSQL92Platform may not support it.
Doctrine\DBAL\DBALException thrown in file
/typo3_src-8.7.1/vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php in line 423.
14 Doctrine\DBAL\Platforms\AbstractPlatform::getDoctrineTypeMapping("geometry")
/typo3_src-8.7.1/vendor/doctrine/dbal/lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php:
00347: }
00348:
00349: $type = $this->_platform->getDoctrineTypeMapping($dbType);
00350: $type = $this->extractDoctrineTypeFromComment($tableColumn['comment'], $type);
00351: $tableColumn['comment'] = $this->removeDoctrineTypeFromComment($tableColumn['comment'], $type);
13 Doctrine\DBAL\Schema\PostgreSqlSchemaManager::_getPortableTableColumnDefinition(array)
/typo3_src-8.7.1/vendor/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:
00818:
00819: if ( ! $defaultPrevented) {
00820: $column = $this->_getPortableTableColumnDefinition($tableColumn);
00821: }
00822:
12 Doctrine\DBAL\Schema\AbstractSchemaManager::_getPortableTableColumnList("tx_myextension_mytable", "myschema", array)
/typo3_src-8.7.1/vendor/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:
00173: $tableColumns = $this->_conn->fetchAll($sql);
00174:
00175: return $this->_getPortableTableColumnList($table, $database, $tableColumns);
00176: }
00177:
11 Doctrine\DBAL\Schema\AbstractSchemaManager::listTableColumns("tx_myextension_mytable")
/typo3_src-8.7.1/vendor/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:
00279: public function listTableDetails($tableName)
00280: {
00281: $columns = $this->listTableColumns($tableName);
00282: $foreignKeys = array();
00283: if ($this->_platform->supportsForeignKeyConstraints()) {
10 Doctrine\DBAL\Schema\AbstractSchemaManager::listTableDetails("tx_myextension_mytable")
/typo3_src-8.7.1/vendor/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:
00266: $tables = array();
00267: foreach ($tableNames as $tableName) {
00268: $tables[] = $this->listTableDetails($tableName);
00269: }
00270:
9 Doctrine\DBAL\Schema\AbstractSchemaManager::listTables()
/typo3_src-8.7.1/typo3/sysext/install/Classes/Controller/Action/Tool/ImportantActions.php:
00098: 'port' => $connection->getPort(),
00099: 'socket' => $connectionParameters['unix_socket'] ?? '',
00100: 'numberOfTables' => count($connection->getSchemaManager()->listTables()),
00101: 'numberOfMappedTables' => 0,
00102: ];
8 TYPO3\CMS\Install\Controller\Action\Tool\ImportantActions::executeAction()
/typo3_src-8.7.1/typo3/sysext/install/Classes/Controller/Action/AbstractAction.php:
00066: {
00067: $this->initializeHandle();
00068: return $this->executeAction();
00069: }
00070:
Having table columns Doctrine\DBAL does not recognize must not lead to a completely unusable Install tool.
How to reproduce:
ALTER TABLE tx_myextension_mytable ADD COLUMN koordinate geometry(Point,3857);