Skip to content

Commit

Permalink
Merge pull request #16670 from cakephp/fix-build
Browse files Browse the repository at this point in the history
Attempt to fix build for MySQL 8.0.30
  • Loading branch information
markstory committed Aug 5, 2022
2 parents 923f04a + b18bdd9 commit 4210057
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/TestCase/Database/Schema/MysqlSchemaTest.php
Expand Up @@ -413,9 +413,12 @@ public function testDescribeTable(): void
],
];

if (ConnectionManager::get('test')->getDriver()->isMariadb()) {
$driver = ConnectionManager::get('test')->getDriver();
if ($driver->isMariaDb()) {
$expected['created_with_precision']['default'] = 'current_timestamp(3)';
$expected['created_with_precision']['comment'] = '';
}
if ($driver->isMariaDb() || version_compare($driver->version(), '8.0.30', '>=')) {
$expected['title']['collate'] = 'utf8mb3_general_ci';
$expected['body']['collate'] = 'utf8mb3_general_ci';
}
Expand Down

0 comments on commit 4210057

Please sign in to comment.