| @@ 545-552 (lines=8) @@ | ||
| 542 | $indexes = $this->getIndexes($tableName); |
|
| 543 | $columns = array_map('strtolower', $columns); |
|
| 544 | ||
| 545 | foreach ($indexes as $indexName => $index) { |
|
| 546 | if ($columns == $index['columns']) { |
|
| 547 | return new AlterInstructions([ |
|
| 548 | sprintf( |
|
| 549 | 'DROP INDEX %s', |
|
| 550 | $this->quoteColumnName($indexName) |
|
| 551 | ) |
|
| 552 | ]); |
|
| 553 | } |
|
| 554 | } |
|
| 555 | ||
| @@ 570-577 (lines=8) @@ | ||
| 567 | ||
| 568 | $indexes = $this->getIndexes($tableName); |
|
| 569 | ||
| 570 | foreach ($indexes as $name => $index) { |
|
| 571 | if ($name === $indexName) { |
|
| 572 | return new AlterInstructions([ |
|
| 573 | sprintf( |
|
| 574 | 'DROP INDEX %s', |
|
| 575 | $this->quoteColumnName($indexName) |
|
| 576 | ) |
|
| 577 | ]); |
|
| 578 | } |
|
| 579 | } |
|
| 580 | ||