| @@ 590-602 (lines=13) @@ | ||
| 587 | * |
|
| 588 | * @return $this |
|
| 589 | */ |
|
| 590 | protected function dropIndexes() |
|
| 591 | { |
|
| 592 | foreach ($this->comparator->droppedIndexes() as $index) { |
|
| 593 | $this->logger()->debug("Dropping index [{statement}] from table {table}.", [ |
|
| 594 | 'statement' => $index->sqlStatement(), |
|
| 595 | 'table' => $this->getName(true) |
|
| 596 | ]); |
|
| 597 | ||
| 598 | $this->commander->dropIndex($this, $index); |
|
| 599 | } |
|
| 600 | ||
| 601 | return $this; |
|
| 602 | } |
|
| 603 | ||
| 604 | /** |
|
| 605 | * Synchronise indexes. |
|
| @@ 644-656 (lines=13) @@ | ||
| 641 | * |
|
| 642 | * @return $this |
|
| 643 | */ |
|
| 644 | protected function dropForeigns() |
|
| 645 | { |
|
| 646 | foreach ($this->comparator->droppedForeigns() as $foreign) { |
|
| 647 | $this->logger()->debug("Dropping foreign key [{statement}] from table {table}.", [ |
|
| 648 | 'statement' => $foreign->sqlStatement(), |
|
| 649 | 'table' => $this->getName(true) |
|
| 650 | ]); |
|
| 651 | ||
| 652 | $this->commander->dropForeign($this, $foreign); |
|
| 653 | } |
|
| 654 | ||
| 655 | return $this; |
|
| 656 | } |
|
| 657 | ||
| 658 | /** |
|
| 659 | * Synchronise foreign keys. |
|