private function detectRenamedTables(array &$createdTables, array &$droppedTables, array &$alteredTables)
    {
        foreach ($createdTables as $createdIndex => $createdTable) {
            foreach ($droppedTables as $droppedIndex => $droppedTable) {
                $tableDiff = $this->tableComparator->compare($droppedTable, $createdTable);

                if ($tableDiff->hasNameDifferenceOnly()) {
                    $alteredTables[] = $tableDiff;

                    unset($createdTables[$createdIndex]);
                    unset($droppedTables[$droppedIndex]);

                    break;
                }
            }
        }
    }
private function detectRenamedTables(array &$createdTables, array &$droppedTables, array &$alteredTables)
    {
        foreach ($createdTables as $createdIndex => $createdTable) {
            foreach ($droppedTables as $droppedIndex => $droppedTable) {
                $tableDiff = $this->tableComparator->compare($droppedTable, $createdTable);

                if ($tableDiff->hasNameDifferenceOnly()) {
                    $alteredTables[] = $tableDiff;

                    unset($createdTables[$createdIndex]);
                    unset($droppedTables[$droppedIndex]);

                    break;
                }
            }
        }
    }
private function detectRenamedTables ( array & $ createdTables , array & $ droppedTables , array & $ alteredTables ) { foreach ( $ createdTables as $ createdIndex => $ createdTable ) { foreach ( $ droppedTables as $ droppedIndex => $ droppedTable ) { $ tableDiff = $ this -> tableComparator -> compare ( $ droppedTable , $ createdTable ) ; if ( $ tableDiff -> hasNameDifferenceOnly ( ) ) { $ alteredTables [ ] = $ tableDiff ; unset ( $ createdTables [ $ createdIndex ] ) ; unset ( $ droppedTables [ $ droppedIndex ] ) ; break ; } } } }
Detects and rewrites renamed tables.

@param array &$createdTables The create tables.
@param array &$droppedTables The dropped tables.
@param array &$alteredTables The altered tables.
Detects and rewrites renamed tables .