| @@ 564-573 (lines=10) @@ | ||
| 561 | /** |
|
| 562 | * {@inheritdoc} |
|
| 563 | */ |
|
| 564 | public function hasIndexByName($tableName, $indexName) |
|
| 565 | { |
|
| 566 | $indexes = $this->getIndexes($tableName); |
|
| 567 | foreach ($indexes as $name => $index) { |
|
| 568 | if ($name === $indexName) { |
|
| 569 | return true; |
|
| 570 | } |
|
| 571 | } |
|
| 572 | ||
| 573 | return false; |
|
| 574 | } |
|
| 575 | ||
| 576 | /** |
|
| @@ 507-518 (lines=12) @@ | ||
| 504 | /** |
|
| 505 | * {@inheritdoc} |
|
| 506 | */ |
|
| 507 | public function hasIndexByName($tableName, $indexName) |
|
| 508 | { |
|
| 509 | $indexes = $this->getIndexes($tableName); |
|
| 510 | ||
| 511 | foreach ($indexes as $name => $index) { |
|
| 512 | if ($name === $indexName) { |
|
| 513 | return true; |
|
| 514 | } |
|
| 515 | } |
|
| 516 | ||
| 517 | return false; |
|
| 518 | } |
|
| 519 | ||
| 520 | /** |
|
| 521 | * {@inheritdoc} |
|
| @@ 658-669 (lines=12) @@ | ||
| 655 | /** |
|
| 656 | * {@inheritdoc} |
|
| 657 | */ |
|
| 658 | public function hasIndexByName($tableName, $indexName) |
|
| 659 | { |
|
| 660 | $indexes = $this->getIndexes($tableName); |
|
| 661 | ||
| 662 | foreach ($indexes as $name => $index) { |
|
| 663 | if ($name === $indexName) { |
|
| 664 | return true; |
|
| 665 | } |
|
| 666 | } |
|
| 667 | ||
| 668 | return false; |
|
| 669 | } |
|
| 670 | ||
| 671 | /** |
|
| 672 | * {@inheritdoc} |
|
| @@ 546-557 (lines=12) @@ | ||
| 543 | /** |
|
| 544 | * {@inheritdoc} |
|
| 545 | */ |
|
| 546 | public function hasIndexByName($tableName, $indexName) |
|
| 547 | { |
|
| 548 | $indexes = $this->getIndexes($tableName); |
|
| 549 | ||
| 550 | foreach ($indexes as $index) { |
|
| 551 | if ($indexName === $index['index']) { |
|
| 552 | return true; |
|
| 553 | } |
|
| 554 | } |
|
| 555 | ||
| 556 | return false; |
|
| 557 | } |
|
| 558 | ||
| 559 | /** |
|
| 560 | * {@inheritdoc} |
|