Skip to content

Commit

Permalink
Merge pull request #10131 from colemanw/CRM-20367
Browse files Browse the repository at this point in the history
CRM-20367 - Allow addIndex $column to be an array
  • Loading branch information
colemanw authored Apr 8, 2017
2 parents bc02e80 + b48a316 commit aea3dc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Upgrade/Incremental/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ public static function dropColumn($ctx, $table, $column) {
*
* @param CRM_Queue_TaskContext $ctx
* @param string $table
* @param string $column
* @param string|array $column
* @return bool
*/
public static function addIndex($ctx, $table, $column) {
$tables = array($table => array($column));
$tables = array($table => (array) $column);
CRM_Core_BAO_SchemaHandler::createIndexes($tables);

return TRUE;
Expand Down

0 comments on commit aea3dc5

Please sign in to comment.