Skip to content

Commit 9ddfa87

Browse files
fix: Fix unrecognized functional index defined in MySQL
+ The issue leads to crashing dbal. + The column(s) is returned as null when the index is not recognised + The issue is fixed by skipping the creation of index if no columns are provided.
1 parent 369ab24 commit 9ddfa87

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Schema/AbstractSchemaManager.php

+4
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,10 @@ protected function _getPortableTableIndexesList(array $tableIndexes, string $tab
730730

731731
$indexes = [];
732732
foreach ($result as $indexKey => $data) {
733+
if (count($data['columns']) === 0) {
734+
continue;
735+
}
736+
733737
$indexes[$indexKey] = new Index(
734738
$data['name'],
735739
$data['columns'],

0 commit comments

Comments
 (0)