CRM-17974 - fix typo in createIndexes
authoreug48 <eug48@users.noreply.github.com>
Sun, 14 Feb 2016 10:43:46 +0000 (21:43 +1100)
committereug48 <eug48@users.noreply.github.com>
Sun, 14 Feb 2016 10:43:46 +0000 (21:43 +1100)
CRM/Core/BAO/SchemaHandler.php

index a92572c03a7fbe530f5d3aa92367354e37b4d723..ccba643f8003902a97ed89237a9e3eae8bc13850 100644 (file)
@@ -449,7 +449,7 @@ ADD UNIQUE INDEX `unique_entity_id` ( `entity_id` )";
         else {
           // handle indices over substrings, CRM-6245
           // $lengthName is appended to index name, $lengthSize is the field size modifier
-          $lengthName = isset($substrLenghts[$table][$fieldName]) ? "_{$substrLenghts[$table][$fieldName]})" : '';
+          $lengthName = isset($substrLenghts[$table][$fieldName]) ? "_{$substrLenghts[$table][$fieldName]}" : '';
           $lengthSize = isset($substrLenghts[$table][$fieldName]) ? "({$substrLenghts[$table][$fieldName]})" : '';
         }