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;
                }
            }
        }
    }