Skip to content

Commit 2927474

Browse files
committed
Merge branch 'master' into merge-3.2
2 parents 8617bb2 + babc7b6 commit 2927474

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Query/Processors/PostgresProcessor.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function processIndexes(array $results): array
7272

7373
return [
7474
'name' => strtolower($result->name),
75-
'columns' => explode(',', $result->columns),
75+
'columns' => explode(',', $result->columns ?: ''),
7676
'type' => strtolower($result->type),
7777
'unique' => (bool) $result->unique,
7878
'primary' => (bool) $result->primary,
@@ -90,10 +90,10 @@ public function processForeignKeys(array $results): array
9090

9191
return [
9292
'name' => $result->name,
93-
'columns' => explode(',', $result->columns),
93+
'columns' => explode(',', $result->columns ?: ''),
9494
'foreign_schema' => $result->foreign_schema,
9595
'foreign_table' => $result->foreign_table,
96-
'foreign_columns' => explode(',', $result->foreign_columns),
96+
'foreign_columns' => explode(',', $result->foreign_columns ?: ''),
9797
'on_update' => match (strtolower($result->on_update)) {
9898
'a' => 'no action',
9999
'r' => 'restrict',

0 commit comments

Comments
 (0)