Skip to content

Commit c07e0a8

Browse files
author
Marius
committed
fix maria db
1 parent e6a9bb6 commit c07e0a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Models/BaseModel.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ public function retrieveIndexesFromTable(): Collection
186186
function () use ($driver): array {
187187
$tableName = $this->getConnection()->getTablePrefix() . $this->getTable();
188188
return DB::connection($this->getConnectionName())->select([
189-
'mariadb', 'mysql' => 'SHOW INDEX FROM ' . $tableName,
189+
'mariadb' => 'SHOW INDEX FROM ' . $tableName,
190+
'mysql' => 'SHOW INDEX FROM ' . $tableName,
190191
'pgsql' => "SELECT
191192
array_position(ix.indkey, a.attnum) + 1 as Seq_in_index,
192193
i.relname as Key_name,

0 commit comments

Comments
 (0)