|
@@ 612-619 (lines=8) @@
|
| 609 |
|
$indexes = $this->getIndexes($tableName); |
| 610 |
|
$columns = array_map('strtolower', $columns); |
| 611 |
|
|
| 612 |
|
foreach ($indexes as $indexName => $index) { |
| 613 |
|
if ($columns == $index['columns']) { |
| 614 |
|
return new AlterInstructions([sprintf( |
| 615 |
|
'DROP INDEX %s', |
| 616 |
|
$this->quoteColumnName($indexName) |
| 617 |
|
)]); |
| 618 |
|
} |
| 619 |
|
} |
| 620 |
|
|
| 621 |
|
throw new \InvalidArgumentException(sprintf( |
| 622 |
|
"The specified index on columns '%s' does not exist", |
|
@@ 635-642 (lines=8) @@
|
| 632 |
|
|
| 633 |
|
$indexes = $this->getIndexes($tableName); |
| 634 |
|
|
| 635 |
|
foreach ($indexes as $name => $index) { |
| 636 |
|
if ($name === $indexName) { |
| 637 |
|
return new AlterInstructions([sprintf( |
| 638 |
|
'DROP INDEX %s', |
| 639 |
|
$this->quoteColumnName($indexName) |
| 640 |
|
)]); |
| 641 |
|
} |
| 642 |
|
} |
| 643 |
|
|
| 644 |
|
throw new \InvalidArgumentException(sprintf( |
| 645 |
|
"The specified index name '%s' does not exist", |