[NFC] Update Schema Handler to use the standard create table syntax of using ROW_FORM...
authorSeamus Lee <seamuslee001@gmail.com>
Mon, 1 Mar 2021 20:27:32 +0000 (07:27 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Mon, 1 Mar 2021 20:27:32 +0000 (07:27 +1100)
tests/phpunit/CRM/Core/BAO/SchemaHandlerTest.php

index 756ba9bc5bb25a1dbfd50acadc6267a8e80694ef..d94421f28927b3517accecd84786a7b7bbf915f8 100644 (file)
@@ -215,7 +215,7 @@ class CRM_Core_BAO_SchemaHandlerTest extends CiviUnitTestCase {
       ],
     ];
     CRM_Core_DAO::executeQuery('DROP table if exists `test_table`');
-    CRM_Core_DAO::executeQuery('CREATE table `test_table` (`title` varchar(255), `name` varchar(255))');
+    CRM_Core_DAO::executeQuery('CREATE table `test_table` (`title` varchar(255), `name` varchar(255)) ROW_FORMAT=DYNAMIC');
     CRM_Core_BAO_SchemaHandler::createMissingIndices($indices);
     $actualIndices = CRM_Core_BAO_SchemaHandler::getIndexes(['test_table']);
     $this->assertEquals($actualIndices, $indices);