From fe2600353b3d49a28445a70e938f9cdddbb58437 Mon Sep 17 00:00:00 2001 From: alexweissman Date: Sat, 2 Dec 2017 15:19:46 -0500 Subject: [PATCH] only rename tables if name has changed --- src/Bakery/Upgrade.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Bakery/Upgrade.php b/src/Bakery/Upgrade.php index 73f754f..4b169e5 100644 --- a/src/Bakery/Upgrade.php +++ b/src/Bakery/Upgrade.php @@ -398,7 +398,9 @@ protected function mapOldTableNames($legacyTables) $newName = $this->newPrefix . $baseName; } - $renamedSourceTables[$oldName] = $newName; + if ($oldName != $newName) { + $renamedSourceTables[$oldName] = $newName; + } } return $renamedSourceTables;