Skip to content

Commit f0188d2

Browse files
committed
Register upgrade wizard on TYPO3 v13
1 parent 683832d commit f0188d2

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

Classes/UpgradeWizard/StatusTableUpgradeWizard.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use TYPO3\CMS\Core\Database\Query\QueryBuilder;
99
use TYPO3\CMS\Core\Package\PackageManager;
1010
use TYPO3\CMS\Core\Utility\GeneralUtility;
11+
use TYPO3\CMS\Install\Attribute\UpgradeWizard;
1112
use TYPO3\CMS\Install\Updates\DatabaseUpdatedPrerequisite;
1213
use TYPO3\CMS\Install\Updates\UpgradeWizardInterface;
1314

@@ -20,6 +21,7 @@
2021
*
2122
* Requires the database:updateschema to have been aplied before (increases column size)!
2223
*/
24+
#[UpgradeWizard('migration_statustable')]
2325
class StatusTableUpgradeWizard implements UpgradeWizardInterface
2426
{
2527
private string $tableName = 'doctrine_migrationstatus';

Configuration/Services.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
services:
2+
_defaults:
3+
autowire: true
4+
autoconfigure: true
5+
public: false
6+
7+
KayStrobach\Migrations\:
8+
resource: '../Classes/*'
9+
210
KayStrobach\Migrations\Service\DoctrineService:
311
arguments:
412
- '@TYPO3\CMS\Core\Package\PackageManager'

0 commit comments

Comments
 (0)