| @@ 565-576 (lines=12) @@ | ||
| 562 | /** |
|
| 563 | * {@inheritdoc} |
|
| 564 | */ |
|
| 565 | public function hasIndexByName($tableName, $indexName) |
|
| 566 | { |
|
| 567 | $indexes = $this->getIndexes($tableName); |
|
| 568 | ||
| 569 | foreach ($indexes as $name => $index) { |
|
| 570 | if ($name === $indexName) { |
|
| 571 | return true; |
|
| 572 | } |
|
| 573 | } |
|
| 574 | ||
| 575 | return false; |
|
| 576 | } |
|
| 577 | ||
| 578 | /** |
|
| 579 | * {@inheritdoc} |
|
| @@ 662-671 (lines=10) @@ | ||
| 659 | /** |
|
| 660 | * {@inheritdoc} |
|
| 661 | */ |
|
| 662 | public function hasIndexByName($tableName, $indexName) |
|
| 663 | { |
|
| 664 | $indexes = $this->getIndexes($tableName); |
|
| 665 | foreach ($indexes as $name => $index) { |
|
| 666 | if ($name === $indexName) { |
|
| 667 | return true; |
|
| 668 | } |
|
| 669 | } |
|
| 670 | ||
| 671 | return false; |
|
| 672 | } |
|
| 673 | ||
| 674 | /** |
|
| @@ 661-672 (lines=12) @@ | ||
| 658 | /** |
|
| 659 | * {@inheritdoc} |
|
| 660 | */ |
|
| 661 | public function hasIndexByName($tableName, $indexName) |
|
| 662 | { |
|
| 663 | $indexes = $this->getIndexes($tableName); |
|
| 664 | ||
| 665 | foreach ($indexes as $index) { |
|
| 666 | if ($indexName === $index['index']) { |
|
| 667 | return true; |
|
| 668 | } |
|
| 669 | } |
|
| 670 | ||
| 671 | return false; |
|
| 672 | } |
|
| 673 | ||
| 674 | /** |
|
| 675 | * {@inheritdoc} |
|
| @@ 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} |
|