@@ 641-653 (lines=13) @@ | ||
638 | * |
|
639 | * @return self |
|
640 | */ |
|
641 | protected function dropIndexes(): AbstractTable |
|
642 | { |
|
643 | foreach ($this->comparator->droppedIndexes() as $index) { |
|
644 | $this->logger()->debug('Dropping index [{statement}] from table {table}.', [ |
|
645 | 'statement' => $index->sqlStatement(), |
|
646 | 'table' => $this->getName(true), |
|
647 | ]); |
|
648 | ||
649 | $this->commander->dropIndex($this, $index); |
|
650 | } |
|
651 | ||
652 | return $this; |
|
653 | } |
|
654 | ||
655 | /** |
|
656 | * Synchronise indexes. |
|
@@ 695-707 (lines=13) @@ | ||
692 | * |
|
693 | * @return self |
|
694 | */ |
|
695 | protected function dropForeigns(): AbstractTable |
|
696 | { |
|
697 | foreach ($this->comparator->droppedForeigns() as $foreign) { |
|
698 | $this->logger()->debug('Dropping foreign key [{statement}] from table {table}.', [ |
|
699 | 'statement' => $foreign->sqlStatement(), |
|
700 | 'table' => $this->getName(true), |
|
701 | ]); |
|
702 | ||
703 | $this->commander->dropForeign($this, $foreign); |
|
704 | } |
|
705 | ||
706 | return $this; |
|
707 | } |
|
708 | ||
709 | /** |
|
710 | * Synchronise foreign keys. |