Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Sources/Maintenance/Tools/Upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/******************
Expand Down