Project

General

Profile

Actions

Bug #104316

open

DB compare results in error with SQLite in TYPO3 13.2

Added by Stefan Froemken 5 months ago. Updated about 1 month ago.

Status:
Accepted
Priority:
Should have
Assignee:
Category:
Database API (Doctrine DBAL)
Start date:
2024-07-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
13
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hello,

for testing TYPO3 13.2 I have set DB to SQLite. After upgrading from TYPO3 13.1 I get following error in DB compare:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: Doctrine\DBAL\Schema\Index::_addColumn(): Argument #1 ($column) must be of type string, null given, called in /var/www/vhosts/jweiland-hosting.de/httpdocs/typo3retter.de/13.4/vendor/doctrine/dbal/src/Schema/Index.php on line 60 | TypeError thrown in file /var/www/vhosts/jweiland-hosting.de/httpdocs/typo3retter.de/13.4/vendor/doctrine/dbal/src/Schema/Index.php in line 68. Requested URL: https://nix-da.typo3retter.de/typo3/install.php?install%5Bcontroller%5D=maintenance&install%5Bcontext%5D=backend&install%5Baction%5D=databaseAnalyzerAnalyze

Seems that DB compare tries to create a new index:

at Doctrine\DBAL\Schema\Index->__construct()
in /var/www/vhosts/900410.jweiland-hosting.de/httpdocs/typo3retter.de/13.4/vendor/doctrine/dbal/src/Schema/AbstractSchemaManager.php line 733
        }

        $indexes = [];
        foreach ($result as $indexKey => $data) {
            $indexes[$indexKey] = new Index(
                $data['name'],
                $data['columns'],
                $data['unique'],
                $data['primary'],

Stefan


Files

cms-dc1190ef.sqlite.gz (39 KB) cms-dc1190ef.sqlite.gz Stefan Froemken, 2024-07-05 18:15
Bildschirmfoto 2024-07-05 um 21.29.33.png (202 KB) Bildschirmfoto 2024-07-05 um 21.29.33.png Index contains non existing columns Stefan Froemken, 2024-07-05 19:39
Bildschirmfoto 2024-07-05 um 21.37.10.png (441 KB) Bildschirmfoto 2024-07-05 um 21.37.10.png DB Compare after removing index. Apply results in error again Stefan Froemken, 2024-07-05 19:39

Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #95577: Database compare fails on index creation when disabling file metadata translationAccepted2021-10-12

Actions
Actions

Also available in: Atom PDF