Skip to content

Commit

Permalink
[TASK] Use non deprecated database connection options (tableoptions, …
Browse files Browse the repository at this point in the history
…collate)
  • Loading branch information
thomashohn authored and sbuerk committed Oct 29, 2024
1 parent cd23e9f commit f807ce8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Core/Acceptance/Extension/BackendEnvironment.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ public function bootstrapTypo3Environment(SuiteEvent $suiteEvent)
$testbase->testDatabaseNameIsNotTooLong($originalDatabaseName, $localConfiguration);
if ($dbDriver === 'mysqli' || $dbDriver === 'pdo_mysql') {
$localConfiguration['DB']['Connections']['Default']['charset'] = 'utf8mb4';
$localConfiguration['DB']['Connections']['Default']['tableoptions']['charset'] = 'utf8mb4';
$localConfiguration['DB']['Connections']['Default']['tableoptions']['collate'] = 'utf8mb4_unicode_ci';
$localConfiguration['DB']['Connections']['Default']['defaultTableOptions']['charset'] = 'utf8mb4';
$localConfiguration['DB']['Connections']['Default']['defaultTableOptions']['collation'] = 'utf8mb4_unicode_ci';
}
} else {
// sqlite dbs of all tests are stored in a dir parallel to instance roots. Allows defining this path as tmpfs.
Expand Down

0 comments on commit f807ce8

Please sign in to comment.