| @@ 728-739 (lines=12) @@ | ||
| 725 | /** |
|
| 726 | * {@inheritdoc} |
|
| 727 | */ |
|
| 728 | public function hasIndexByName($tableName, $indexName) |
|
| 729 | { |
|
| 730 | $indexes = $this->getIndexes($tableName); |
|
| 731 | ||
| 732 | foreach ($indexes as $name => $index) { |
|
| 733 | if ($name === $indexName) { |
|
| 734 | return true; |
|
| 735 | } |
|
| 736 | } |
|
| 737 | ||
| 738 | return false; |
|
| 739 | } |
|
| 740 | ||
| 741 | /** |
|
| 742 | * {@inheritdoc} |
|
| @@ 558-569 (lines=12) @@ | ||
| 555 | /** |
|
| 556 | * {@inheritdoc} |
|
| 557 | */ |
|
| 558 | public function hasIndexByName($tableName, $indexName) |
|
| 559 | { |
|
| 560 | $indexes = $this->getIndexes($tableName); |
|
| 561 | ||
| 562 | foreach ($indexes as $name => $index) { |
|
| 563 | if ($name === $indexName) { |
|
| 564 | return true; |
|
| 565 | } |
|
| 566 | } |
|
| 567 | ||
| 568 | return false; |
|
| 569 | } |
|
| 570 | ||
| 571 | /** |
|
| 572 | * {@inheritdoc} |
|
| @@ 664-675 (lines=12) @@ | ||
| 661 | /** |
|
| 662 | * {@inheritdoc} |
|
| 663 | */ |
|
| 664 | public function hasIndexByName($tableName, $indexName) |
|
| 665 | { |
|
| 666 | $indexes = $this->getIndexes($tableName); |
|
| 667 | ||
| 668 | foreach ($indexes as $index) { |
|
| 669 | if ($indexName === $index['index']) { |
|
| 670 | return true; |
|
| 671 | } |
|
| 672 | } |
|
| 673 | ||
| 674 | return false; |
|
| 675 | } |
|
| 676 | ||
| 677 | /** |
|
| 678 | * {@inheritdoc} |
|
| @@ 660-669 (lines=10) @@ | ||
| 657 | /** |
|
| 658 | * {@inheritdoc} |
|
| 659 | */ |
|
| 660 | public function hasIndexByName($tableName, $indexName) |
|
| 661 | { |
|
| 662 | $indexes = $this->getIndexes($tableName); |
|
| 663 | foreach ($indexes as $name => $index) { |
|
| 664 | if ($name === $indexName) { |
|
| 665 | return true; |
|
| 666 | } |
|
| 667 | } |
|
| 668 | ||
| 669 | return false; |
|
| 670 | } |
|
| 671 | ||
| 672 | /** |
|