diff --git a/model/MySQLDatabase.php b/model/MySQLDatabase.php index 0b8a39aa3..0d3324c40 100644 --- a/model/MySQLDatabase.php +++ b/model/MySQLDatabase.php @@ -526,7 +526,7 @@ class MySQLDatabase extends SS_Database { if($groupedIndexes) { foreach($groupedIndexes as $index => $details) { ksort($details['fields']); - $indexList[$index] = $details['type'] . '(' . implode(',',$details['fields']) . ')'; + $indexList[$index] = $details['type'] . '("' . implode('","',$details['fields']) . '")'; } }