Skip to content

Commit

Permalink
only rename tables if name has changed
Browse files Browse the repository at this point in the history
  • Loading branch information
alexweissman committed Dec 2, 2017
1 parent cc6bc44 commit fe26003
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Bakery/Upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,9 @@ protected function mapOldTableNames($legacyTables)
$newName = $this->newPrefix . $baseName;
}

$renamedSourceTables[$oldName] = $newName;
if ($oldName != $newName) {
$renamedSourceTables[$oldName] = $newName;
}
}

return $renamedSourceTables;
Expand Down

0 comments on commit fe26003

Please sign in to comment.