| @@ 521-532 (lines=12) @@ | ||
| 518 | /** |
|
| 519 | * {@inheritdoc} |
|
| 520 | */ |
|
| 521 | public function hasIndexByName($tableName, $indexName) |
|
| 522 | { |
|
| 523 | $indexes = $this->getIndexes($tableName); |
|
| 524 | ||
| 525 | foreach ($indexes as $name => $index) { |
|
| 526 | if ($name === $indexName) { |
|
| 527 | return true; |
|
| 528 | } |
|
| 529 | } |
|
| 530 | ||
| 531 | return false; |
|
| 532 | } |
|
| 533 | ||
| 534 | /** |
|
| 535 | * {@inheritdoc} |
|
| @@ 580-589 (lines=10) @@ | ||
| 577 | /** |
|
| 578 | * {@inheritdoc} |
|
| 579 | */ |
|
| 580 | public function hasIndexByName($tableName, $indexName) |
|
| 581 | { |
|
| 582 | $indexes = $this->getIndexes($tableName); |
|
| 583 | foreach ($indexes as $name => $index) { |
|
| 584 | if ($name === $indexName) { |
|
| 585 | return true; |
|
| 586 | } |
|
| 587 | } |
|
| 588 | ||
| 589 | return false; |
|
| 590 | } |
|
| 591 | ||
| 592 | /** |
|
| @@ 603-614 (lines=12) @@ | ||
| 600 | /** |
|
| 601 | * {@inheritdoc} |
|
| 602 | */ |
|
| 603 | public function hasIndexByName($tableName, $indexName) |
|
| 604 | { |
|
| 605 | $indexes = $this->getIndexes($tableName); |
|
| 606 | ||
| 607 | foreach ($indexes as $index) { |
|
| 608 | if ($indexName === $index['index']) { |
|
| 609 | return true; |
|
| 610 | } |
|
| 611 | } |
|
| 612 | ||
| 613 | return false; |
|
| 614 | } |
|
| 615 | ||
| 616 | /** |
|
| 617 | * {@inheritdoc} |
|
| @@ 677-688 (lines=12) @@ | ||
| 674 | /** |
|
| 675 | * {@inheritdoc} |
|
| 676 | */ |
|
| 677 | public function hasIndexByName($tableName, $indexName) |
|
| 678 | { |
|
| 679 | $indexes = $this->getIndexes($tableName); |
|
| 680 | ||
| 681 | foreach ($indexes as $name => $index) { |
|
| 682 | if ($name === $indexName) { |
|
| 683 | return true; |
|
| 684 | } |
|
| 685 | } |
|
| 686 | ||
| 687 | return false; |
|
| 688 | } |
|
| 689 | ||
| 690 | /** |
|
| 691 | * {@inheritdoc} |
|