Skip to content

Commit f5c1ee5

Browse files
committed
[BUGFIX] restoreRelations must execute select query on the database to restore #9402 #9499
1 parent 3173d8f commit f5c1ee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Service/DataRestorer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ private function restoreRelations(): void
189189

190190
$query = <<<SQL
191191
SELECT CONCAT("UPDATE IGNORE `$tableName` SET `$columnName` = $id WHERE `$primaryKey` IN (",GROUP_CONCAT(DISTINCT $primaryKey SEPARATOR ','),");")
192-
FROM `$tableName`
192+
FROM `$this->databaseToRestore`.`$tableName`
193193
WHERE $columnName = $id
194194
GROUP BY $columnName;
195195
SQL;

0 commit comments

Comments
 (0)