Skip to content

Commit

Permalink
[BUGIX] cruser_id removed on TYPO3 12
Browse files Browse the repository at this point in the history
  • Loading branch information
Achim Fritz committed Aug 31, 2023
1 parent aadbc34 commit d450534
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Classes/Updates/MigratePremiumFocusKeywords.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Doctrine\DBAL\Exception;
use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\Database\Query\Restriction\DeletedRestriction;
use TYPO3\CMS\Core\Information\Typo3Version;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Install\Updates\DatabaseUpdatedPrerequisite;
use TYPO3\CMS\Install\Updates\UpgradeWizardInterface;
Expand Down Expand Up @@ -50,6 +51,9 @@ public function executeUpdate(): bool
$premiumFocusKeyword['parentid'],
$premiumFocusKeyword['parenttable']
);
if ((GeneralUtility::makeInstance(Typo3Version::class))->getMajorVersion() > 11) {
unset($premiumFocusKeyword['cruser_id']);
}
$this->connectionPool->getConnectionForTable(self::NEW_TABLE)
->insert(self::NEW_TABLE, $premiumFocusKeyword);
}
Expand Down

0 comments on commit d450534

Please sign in to comment.