diff --git a/Classes/UpgradeWizard/PluginImageFieldWizard.php b/Classes/UpgradeWizard/PluginImageFieldWizard.php index c5ef27b..866f759 100644 --- a/Classes/UpgradeWizard/PluginImageFieldWizard.php +++ b/Classes/UpgradeWizard/PluginImageFieldWizard.php @@ -9,6 +9,9 @@ * LICENSE.txt file that was distributed with this source code. */ +use TYPO3\CMS\Install\Attribute\UpgradeWizard; + +#[UpgradeWizard(PluginImageFieldWizard::class)] class PluginImageFieldWizard extends AbstractUpgradeWizard { public function getTitle(): string diff --git a/Classes/UpgradeWizard/PluginListTypeWizard.php b/Classes/UpgradeWizard/PluginListTypeWizard.php index 123c7a9..6c0b8f8 100644 --- a/Classes/UpgradeWizard/PluginListTypeWizard.php +++ b/Classes/UpgradeWizard/PluginListTypeWizard.php @@ -9,13 +9,19 @@ * LICENSE.txt file that was distributed with this source code. */ +use TYPO3\CMS\Install\Attribute\UpgradeWizard; + +#[UpgradeWizard(PluginListTypeWizard::class)] class PluginListTypeWizard extends AbstractUpgradeWizard { public function getTitle(): string { - return 'Generic Gallery: Migrate old plugin list type name'; + return 'Generic Gallery: Migrate old plugin list type name (TYPO3 v6)'; } + /** + * @deprecated Remove this with TYPO3 14 as this migration is ancient. + */ public function executeUpdate(): bool { $table = 'tt_content'; diff --git a/ext_localconf.php b/ext_localconf.php index 494a331..509a834 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -72,10 +72,4 @@ $GLOBALS['TYPO3_CONF_VARS']['SYS']['fal']['registeredCollections']['images'] = StaticFileCollection::class; } - - // Upgrade wizards - $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][UpgradeWizard\PluginListTypeWizard::class] - = UpgradeWizard\PluginListTypeWizard::class; - $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][UpgradeWizard\PluginImageFieldWizard::class] - = UpgradeWizard\PluginImageFieldWizard::class; });