diff --git a/Sources/Maintenance/Tools/Upgrade.php b/Sources/Maintenance/Tools/Upgrade.php index 2b3a633535..baa53e3982 100644 --- a/Sources/Maintenance/Tools/Upgrade.php +++ b/Sources/Maintenance/Tools/Upgrade.php @@ -1380,7 +1380,10 @@ public function backupRecommended(): bool */ public function doBackupTable($table): bool { - return Db::$db->backup_table($table, 'backup_' . $table); + // The database layer answers with whatever its query returned, which is + // a result object on PostgreSQL and true on MySQL. Only an outright + // false means the table was not copied. + return Db::$db->backup_table($table, 'backup_' . $table) !== false; } /******************