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