We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8617bb2 + babc7b6 commit 2927474Copy full SHA for 2927474
1 file changed
src/Query/Processors/PostgresProcessor.php
@@ -72,7 +72,7 @@ public function processIndexes(array $results): array
72
73
return [
74
'name' => strtolower($result->name),
75
- 'columns' => explode(',', $result->columns),
+ 'columns' => explode(',', $result->columns ?: ''),
76
'type' => strtolower($result->type),
77
'unique' => (bool) $result->unique,
78
'primary' => (bool) $result->primary,
@@ -90,10 +90,10 @@ public function processForeignKeys(array $results): array
90
91
92
'name' => $result->name,
93
94
'foreign_schema' => $result->foreign_schema,
95
'foreign_table' => $result->foreign_table,
96
- 'foreign_columns' => explode(',', $result->foreign_columns),
+ 'foreign_columns' => explode(',', $result->foreign_columns ?: ''),
97
'on_update' => match (strtolower($result->on_update)) {
98
'a' => 'no action',
99
'r' => 'restrict',
0 commit comments