@@ 531-542 (lines=12) @@ | ||
528 | /** |
|
529 | * {@inheritdoc} |
|
530 | */ |
|
531 | public function hasIndexByName($tableName, $indexName) |
|
532 | { |
|
533 | $indexes = $this->getIndexes($tableName); |
|
534 | ||
535 | foreach ($indexes as $index) { |
|
536 | if ($indexName === $index['index']) { |
|
537 | return true; |
|
538 | } |
|
539 | } |
|
540 | ||
541 | return false; |
|
542 | } |
|
543 | ||
544 | /** |
|
545 | * {@inheritdoc} |
@@ 657-668 (lines=12) @@ | ||
654 | /** |
|
655 | * {@inheritdoc} |
|
656 | */ |
|
657 | public function hasIndexByName($tableName, $indexName) |
|
658 | { |
|
659 | $indexes = $this->getIndexes($tableName); |
|
660 | ||
661 | foreach ($indexes as $name => $index) { |
|
662 | if ($name === $indexName) { |
|
663 | return true; |
|
664 | } |
|
665 | } |
|
666 | ||
667 | return false; |
|
668 | } |
|
669 | ||
670 | /** |
|
671 | * {@inheritdoc} |
@@ 519-530 (lines=12) @@ | ||
516 | /** |
|
517 | * {@inheritdoc} |
|
518 | */ |
|
519 | public function hasIndexByName($tableName, $indexName) |
|
520 | { |
|
521 | $indexes = $this->getIndexes($tableName); |
|
522 | ||
523 | foreach ($indexes as $name => $index) { |
|
524 | if ($name === $indexName) { |
|
525 | return true; |
|
526 | } |
|
527 | } |
|
528 | ||
529 | return false; |
|
530 | } |
|
531 | ||
532 | /** |
|
533 | * {@inheritdoc} |
@@ 560-569 (lines=10) @@ | ||
557 | /** |
|
558 | * {@inheritdoc} |
|
559 | */ |
|
560 | public function hasIndexByName($tableName, $indexName) |
|
561 | { |
|
562 | $indexes = $this->getIndexes($tableName); |
|
563 | foreach ($indexes as $name => $index) { |
|
564 | if ($name === $indexName) { |
|
565 | return true; |
|
566 | } |
|
567 | } |
|
568 | ||
569 | return false; |
|
570 | } |
|
571 | ||
572 | /** |