@@ 730-741 (lines=12) @@ | ||
727 | /** |
|
728 | * {@inheritdoc} |
|
729 | */ |
|
730 | public function hasIndexByName($tableName, $indexName) |
|
731 | { |
|
732 | $indexes = $this->getIndexes($tableName); |
|
733 | ||
734 | foreach ($indexes as $name => $index) { |
|
735 | if ($name === $indexName) { |
|
736 | return true; |
|
737 | } |
|
738 | } |
|
739 | ||
740 | return false; |
|
741 | } |
|
742 | ||
743 | /** |
|
744 | * {@inheritdoc} |
@@ 656-665 (lines=10) @@ | ||
653 | /** |
|
654 | * {@inheritdoc} |
|
655 | */ |
|
656 | public function hasIndexByName($tableName, $indexName) |
|
657 | { |
|
658 | $indexes = $this->getIndexes($tableName); |
|
659 | foreach ($indexes as $name => $index) { |
|
660 | if ($name === $indexName) { |
|
661 | return true; |
|
662 | } |
|
663 | } |
|
664 | ||
665 | return false; |
|
666 | } |
|
667 | ||
668 | /** |
@@ 560-571 (lines=12) @@ | ||
557 | /** |
|
558 | * {@inheritdoc} |
|
559 | */ |
|
560 | public function hasIndexByName($tableName, $indexName) |
|
561 | { |
|
562 | $indexes = $this->getIndexes($tableName); |
|
563 | ||
564 | foreach ($indexes as $name => $index) { |
|
565 | if ($name === $indexName) { |
|
566 | return true; |
|
567 | } |
|
568 | } |
|
569 | ||
570 | return false; |
|
571 | } |
|
572 | ||
573 | /** |
|
574 | * {@inheritdoc} |
@@ 695-706 (lines=12) @@ | ||
692 | /** |
|
693 | * {@inheritdoc} |
|
694 | */ |
|
695 | public function hasIndexByName($tableName, $indexName) |
|
696 | { |
|
697 | $indexes = $this->getIndexes($tableName); |
|
698 | ||
699 | foreach ($indexes as $index) { |
|
700 | if ($indexName === $index['index']) { |
|
701 | return true; |
|
702 | } |
|
703 | } |
|
704 | ||
705 | return false; |
|
706 | } |
|
707 | ||
708 | /** |
|
709 | * {@inheritdoc} |