Skip to content
Snippets Groups Projects
Unverified Commit 33da7777 authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #17586 from seamuslee001/wip_56_test_fixes

[REF] Fix unit test failures on MySQL 5.6 due to Custom Field table being created without Dynamic Row Format
parents 7bbe5e3a 80ad1850
Branches
Tags
No related merge requests found
......@@ -1631,6 +1631,12 @@ SELECT $columnName
],
];
// If on MySQL 5.6 include ROW_FORMAT=DYNAMIC to fix unit tests
$databaseVersion = CRM_Utils_SQL::getDatabaseVersion();
if (version_compare($databaseVersion, '5.7', '<') && version_compare($databaseVersion, '5.6', '>=')) {
$table['attributes'] = $table['attributes'] . ' ROW_FORMAT=DYNAMIC';
}
if (!$params['is_multiple']) {
$table['indexes'] = [
[
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment