Skip to content

Commit

Permalink
Attempt to fix build for MySQL 8.0.30
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Aug 4, 2022
1 parent 923f04a commit b18bdd9
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 b18bdd9

Please sign in to comment.