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

Commit 7b27a81

Browse files
romanmirandamsonowal
authored andcommitted
Update IndexService.php
1 parent 513dd2a commit 7b27a81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Services/IndexService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected function indexAlreadyExists()
8989
$indexName = $this->modelService->indexName;
9090

9191
return !empty(DB::connection($this->modelService->connectionName)->
92-
select("SHOW INDEX FROM `$tableName` WHERE Key_name = ?", [$indexName]));
92+
select("SHOW INDEX FROM `$tableName` WHERE `Key_name` = ?", [$indexName]));
9393
}
9494

9595
protected function indexNeedsUpdate()
@@ -106,7 +106,7 @@ protected function getIndexFields()
106106
$tableName = $this->modelService->tablePrefixedName;
107107

108108
$index = DB::connection($this->modelService->connectionName)->
109-
select("SHOW INDEX FROM `$tableName` WHERE Key_name = ?", [$indexName]);
109+
select("SHOW INDEX FROM `$tableName` WHERE `Key_name` = ?", [$indexName]);
110110

111111
$indexFields = [];
112112

0 commit comments

Comments
 (0)