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

Commit 68a428a

Browse files
authored
Merge pull request #30 from crishellco/master
Wraps index fields with backticks
2 parents 4073770 + 2a36d34 commit 68a428a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Services/IndexService.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ protected function createIndex()
6464
{
6565
$indexName = $this->modelService->indexName;
6666
$tableName = $this->modelService->tableName;
67-
$indexFields = implode(',', $this->modelService->getFullTextIndexFields());
67+
$indexFields = implode(',', array_map(function($indexField) {
68+
return "`$indexField`";
69+
}, $this->modelService->getFullTextIndexFields()));
6870

6971
if (empty($indexFields)) {
7072
return;

0 commit comments

Comments
 (0)