Skip to content

Commit 1b24254

Browse files
committed
changed the index reconstruction at applying column indexes
1 parent 171a84e commit 1b24254

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Blueprint/BlueprintDiff.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,9 @@ public function applyColumnIndexes(bool $reverse = false)
4343

4444
foreach ($this->getAddedIndexes($reverse) as $index) {
4545
$addedIndex = $blueprint->{$index->name}($index->columns, $index->index, $index->algorithm);
46-
if ($index->on) {
47-
$addedIndex->on($index->on);
48-
}
4946

50-
if ($index->references) {
51-
$addedIndex->references($index->references);
47+
foreach (array_keys($index->getAttributes()) as $attribute) {
48+
$addedIndex->{$attribute} = $index->{$attribute};
5249
}
5350
}
5451

0 commit comments

Comments
 (0)