private function collectIndexes(TableDiff $tableDiff)
    {
        foreach ($tableDiff->getCreatedIndexes() as $index) {
            $this->createIndexQueries = array_merge(
                $this->createIndexQueries,
                $this->platform->getCreateIndexSQLQueries($index, $tableDiff->getNewAsset()->getName())
            );
        }

        foreach ($tableDiff->getDroppedIndexes() as $index) {
            $this->dropIndexQueries = array_merge(
                $this->dropIndexQueries,
                $this->platform->getDropIndexSQLQueries($index, $tableDiff->getNewAsset()->getName())
            );
        }
    }
private function collectIndexes(TableDiff $tableDiff)
    {
        foreach ($tableDiff->getCreatedIndexes() as $index) {
            $this->createIndexQueries = array_merge(
                $this->createIndexQueries,
                $this->platform->getCreateIndexSQLQueries($index, $tableDiff->getNewAsset()->getName())
            );
        }

        foreach ($tableDiff->getDroppedIndexes() as $index) {
            $this->dropIndexQueries = array_merge(
                $this->dropIndexQueries,
                $this->platform->getDropIndexSQLQueries($index, $tableDiff->getNewAsset()->getName())
            );
        }
    }
private function collectIndexes ( TableDiff $ tableDiff ) { foreach ( $ tableDiff -> getCreatedIndexes ( ) as $ index ) { $ this -> createIndexQueries = array_merge ( $ this -> createIndexQueries , $ this -> platform -> getCreateIndexSQLQueries ( $ index , $ tableDiff -> getNewAsset ( ) -> getName ( ) ) ) ; } foreach ( $ tableDiff -> getDroppedIndexes ( ) as $ index ) { $ this -> dropIndexQueries = array_merge ( $ this -> dropIndexQueries , $ this -> platform -> getDropIndexSQLQueries ( $ index , $ tableDiff -> getNewAsset ( ) -> getName ( ) ) ) ; } }
Collects queries about indexes to alter a table.

@param \Fridge\DBAL\Schema\Diff\TableDiff $tableDiff The table difference.
Collects queries about indexes to alter a table .