From 1606dda0633667d3c7dcb0d8b473aa9975b6e38a Mon Sep 17 00:00:00 2001 From: Ernesto Baschny Date: Mon, 25 Sep 2023 22:44:45 +0200 Subject: [PATCH] Fix upgrade wizard Avoid SQL errors in the Upgrade Wizard --- Classes/Upgrades/GlossaryUpgradeWizard.php | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/Classes/Upgrades/GlossaryUpgradeWizard.php b/Classes/Upgrades/GlossaryUpgradeWizard.php index 09595a98..0d6e9e65 100644 --- a/Classes/Upgrades/GlossaryUpgradeWizard.php +++ b/Classes/Upgrades/GlossaryUpgradeWizard.php @@ -65,10 +65,21 @@ public function executeUpdate(): bool $updateGlossary = []; foreach ($result as $item) { - unset($item['description']); - unset($item['starttime']); - unset($item['endtime']); - $updateGlossary[] = $item; + $updateGlossary[] = [ + 'uid' => $item['uid'], + 'pid' => $item['pid'], + 'tstamp' => $item['tstamp'], + 'crdate' => $item['crdate'], + 'cruser_id' => $item['cruser_id'], + 'deleted' => $item['deleted'], + 'hidden' => $item['hidden'], + 'sys_language_uid' => $item['sys_language_uid'], + 'l10n_parent' => $item['l10n_parent'], + 'l10n_source' => $item['l10n_source'], + 'l10n_state' => $item['l10n_state'], + 'l10n_diffsource' => $item['l10n_diffsource'], + 'term' => $item['term'], + ]; } $insert = GeneralUtility::makeInstance(ConnectionPool::class)