Skip to content
Snippets Groups Projects
Commit 80ad1850 authored by Seamus Lee's avatar Seamus Lee
Browse files

Fix unit test failures on MySQL 5.6 due to Custom Field table being created...

Fix unit test failures on MySQL 5.6 due to Custom Field table being created without Dynamic Row Format
parent 1bdf47d5
No related branches found
No related tags found
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