private function detectRenamedColumns(array &$createdColumns, array &$droppedColumns, array &$alteredColumns)
    {
        foreach ($createdColumns as $createdIndex => $createdColumn) {
            foreach ($droppedColumns as $droppedIndex => $droppedColumn) {
                $columnDiff = $this->columnComparator->compare($droppedColumn, $createdColumn);

                if ($columnDiff->hasNameDifferenceOnly()) {
                    $alteredColumns[] = $columnDiff;

                    unset($createdColumns[$createdIndex]);
                    unset($droppedColumns[$droppedIndex]);

                    break;
                }
            }
        }
    }
private function detectRenamedColumns(array &$createdColumns, array &$droppedColumns, array &$alteredColumns)
    {
        foreach ($createdColumns as $createdIndex => $createdColumn) {
            foreach ($droppedColumns as $droppedIndex => $droppedColumn) {
                $columnDiff = $this->columnComparator->compare($droppedColumn, $createdColumn);

                if ($columnDiff->hasNameDifferenceOnly()) {
                    $alteredColumns[] = $columnDiff;

                    unset($createdColumns[$createdIndex]);
                    unset($droppedColumns[$droppedIndex]);

                    break;
                }
            }
        }
    }
private function detectRenamedColumns ( array & $ createdColumns , array & $ droppedColumns , array & $ alteredColumns ) { foreach ( $ createdColumns as $ createdIndex => $ createdColumn ) { foreach ( $ droppedColumns as $ droppedIndex => $ droppedColumn ) { $ columnDiff = $ this -> columnComparator -> compare ( $ droppedColumn , $ createdColumn ) ; if ( $ columnDiff -> hasNameDifferenceOnly ( ) ) { $ alteredColumns [ ] = $ columnDiff ; unset ( $ createdColumns [ $ createdIndex ] ) ; unset ( $ droppedColumns [ $ droppedIndex ] ) ; break ; } } } }
Detects and rewrites renamed columns.

@param array &$createdColumns The create columns.
@param array &$droppedColumns The dropped columns.
@param array &$alteredColumns The altered columns.
Detects and rewrites renamed columns .