Skip to content

Commit

Permalink
[TASK] Update registration of upgrade wizards
Browse files Browse the repository at this point in the history
  • Loading branch information
fnagel committed Mar 26, 2024
1 parent e5c7a27 commit 1aa67c9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions Classes/UpgradeWizard/PluginImageFieldWizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion Classes/UpgradeWizard/PluginListTypeWizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
6 changes: 0 additions & 6 deletions ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});

0 comments on commit 1aa67c9

Please sign in to comment.