Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #30 from crishellco/master
Browse files Browse the repository at this point in the history
Wraps index fields with backticks
  • Loading branch information
msonowal authored Jun 21, 2017
2 parents 4073770 + 2a36d34 commit 68a428a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Services/IndexService.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ protected function createIndex()
{
$indexName = $this->modelService->indexName;
$tableName = $this->modelService->tableName;
$indexFields = implode(',', $this->modelService->getFullTextIndexFields());
$indexFields = implode(',', array_map(function($indexField) {
return "`$indexField`";
}, $this->modelService->getFullTextIndexFields()));

if (empty($indexFields)) {
return;
Expand Down

0 comments on commit 68a428a

Please sign in to comment.