From 7c8a1b332fd09ddb046dccfba9e92c463a18a414 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 18 Dec 2020 19:33:23 +0100 Subject: [PATCH] Fix DatabaseTableChangeProcessor::getColumnByName() for WSC < 5.4 See #3792 --- .../database/table/DatabaseTableChangeProcessor.class.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wcfsetup/install/files/lib/system/database/table/DatabaseTableChangeProcessor.class.php b/wcfsetup/install/files/lib/system/database/table/DatabaseTableChangeProcessor.class.php index 3e420faaa4..36afed94e3 100644 --- a/wcfsetup/install/files/lib/system/database/table/DatabaseTableChangeProcessor.class.php +++ b/wcfsetup/install/files/lib/system/database/table/DatabaseTableChangeProcessor.class.php @@ -1154,10 +1154,7 @@ class DatabaseTableChangeProcessor { */ protected function getColumnByName($columnName, DatabaseTable $updateTable, DatabaseTable $existingTable = null) { foreach ($updateTable->getColumns() as $column) { - if ( - ($column->getNewName() === $columnName) - || ($column->getName() === $columnName && !$column->getNewName()) - ) { + if ($column->getName() === $columnName) { return $column; } } -- 2.20.1