Project

General

Profile

Actions

Bug #100428

closed

TYPO3 v12 Database Upgrade is never fulfilled

Added by Alexander Opitz about 1 year ago. Updated 11 months ago.

Status:
Resolved
Priority:
Should have
Category:
Install Tool
Target version:
-
Start date:
2023-04-04
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

On TYPO3 12.3.0 running the command 'vendor/bin/typo3 upgrade:run' leads to the error message

"Error running Database Up-to-Date. Please ensure this prerequisite manually and try again."

This is repetitive, as we only "add" database changes here but no indexes. The issue was introduced in https://review.typo3.org/c/Packages/TYPO3.CMS/+/58128 in file https://review.typo3.org/c/Packages/TYPO3.CMS/+/58128/10/typo3/sysext/install/Classes/Updates/DatabaseUpdatedPrerequisite.php and function ensure()

        $result = null;
        if (count($adds) > 0) {
            $this->output->writeln('Performing ' . count($adds) . ' database operations.');
            $result = $this->upgradeWizardsService->addMissingTablesAndFields();
        }
        return $result === null;

The addMissingTablesAndFields() returns an empty array, if no errors exists, so we try to check empty array against null. Uncool.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #100491: Improve some type annotations in DB-upgrade-related classesClosedOliver Klee2023-04-05

Actions
Actions

Also available in: Atom PDF