| @@ 752-763 (lines=12) @@ | ||
| 749 | /** |
|
| 750 | * @inheritDoc |
|
| 751 | */ |
|
| 752 | public function hasIndexByName($tableName, $indexName) |
|
| 753 | { |
|
| 754 | $indexes = $this->getIndexes($tableName); |
|
| 755 | ||
| 756 | foreach ($indexes as $name => $index) { |
|
| 757 | if ($name === $indexName) { |
|
| 758 | return true; |
|
| 759 | } |
|
| 760 | } |
|
| 761 | ||
| 762 | return false; |
|
| 763 | } |
|
| 764 | ||
| 765 | /** |
|
| 766 | * @inheritDoc |
|
| @@ 674-684 (lines=11) @@ | ||
| 671 | /** |
|
| 672 | * @inheritDoc |
|
| 673 | */ |
|
| 674 | public function hasIndexByName($tableName, $indexName) |
|
| 675 | { |
|
| 676 | $indexes = $this->getIndexes($tableName); |
|
| 677 | foreach ($indexes as $name => $index) { |
|
| 678 | if ($name === $indexName) { |
|
| 679 | return true; |
|
| 680 | } |
|
| 681 | } |
|
| 682 | ||
| 683 | return false; |
|
| 684 | } |
|
| 685 | ||
| 686 | /** |
|
| 687 | * @inheritDoc |
|
| @@ 592-603 (lines=12) @@ | ||
| 589 | /** |
|
| 590 | * @inheritDoc |
|
| 591 | */ |
|
| 592 | public function hasIndexByName($tableName, $indexName) |
|
| 593 | { |
|
| 594 | $indexes = $this->getIndexes($tableName); |
|
| 595 | ||
| 596 | foreach ($indexes as $name => $index) { |
|
| 597 | if ($name === $indexName) { |
|
| 598 | return true; |
|
| 599 | } |
|
| 600 | } |
|
| 601 | ||
| 602 | return false; |
|
| 603 | } |
|
| 604 | ||
| 605 | /** |
|
| 606 | * @inheritDoc |
|