Skip to content

Commit 5e070af

Browse files
authored
Merge pull request #75 from pagemachine/typo3v13
Support TYPO3v13
2 parents 306dc47 + 8a2e0ab commit 5e070af

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@ jobs:
2020
strategy:
2121
matrix:
2222
php:
23-
- '8.1'
2423
- '8.2'
2524
- '8.3'
2625
typo3:
2726
- ^12.4
27+
- ^13.4
28+
include:
29+
- php: 8.1
30+
typo3: ^12.4
2831

2932
steps:
3033
- uses: actions/checkout@v4

Classes/EventListeners/AlterTableDefinitionStatementsEventListener.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ public function __construct(private readonly Connection $connection) {}
1515

1616
public function addPhinxMigrationTableSchema(AlterTableDefinitionStatementsEvent $event): void
1717
{
18-
$schemaManager = $this->connection->getSchemaManager();
18+
$schemaManager = $this->connection->createSchemaManager();
1919

20-
if (!$schemaManager->tablesExist(PhinxConfiguration::MIGRATION_TABLE_NAME)) {
20+
if (!$schemaManager->tablesExist([PhinxConfiguration::MIGRATION_TABLE_NAME])) {
2121
return;
2222
}
2323

24-
$table = $schemaManager->listTableDetails(PhinxConfiguration::MIGRATION_TABLE_NAME);
24+
$table = $schemaManager->introspectTable(PhinxConfiguration::MIGRATION_TABLE_NAME);
2525
$schemaTableSQL = $this->buildSchemaTableSQL($this->removeColumnCollations($table));
2626

2727
$event->addSqlData($schemaTableSQL);

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"doctrine/dbal": "^3.0 || ^4.0",
1515
"robmorgan/phinx": ">= 0.11.0 < 1.0",
1616
"symfony/console": "^6.4 || ^7.0",
17-
"typo3/cms-core": "^12.4"
17+
"typo3/cms-core": "^12.4 || ^13.4"
1818
},
1919
"require-dev": {
2020
"ergebnis/composer-normalize": "^2.3",

rector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
->withPhpSets()
1616
->withSets([
1717
Typo3SetList::TYPO3_12,
18-
Typo3LevelSetList::UP_TO_TYPO3_12,
18+
Typo3LevelSetList::UP_TO_TYPO3_13,
1919
DowngradeLevelSetList::DOWN_TO_PHP_81,
2020
])
2121
;

0 commit comments

Comments
 (0)