sforkowany z mirror/friendica
Part of bugfix for storage move problem
@fabrixxm is this already good to change?2022.09-rc
rodzic
60a74fd5dc
commit
e20e62ffd6
|
@ -311,7 +311,7 @@ class StorageManager
|
|||
|
||||
if ($destinationRef !== '') {
|
||||
$this->logger->info('update row');
|
||||
if ($this->dba->update($table, ['backend-class' => $destination, 'backend-ref' => $destinationRef, 'data' => ''], ['id' => $id])) {
|
||||
if ($this->dba->update($table, ['backend-class' => $destination::getName(), 'backend-ref' => $destinationRef, 'data' => ''], ['id' => $id])) {
|
||||
if (!empty($source)) {
|
||||
$this->logger->info('Delete data from old backend.', ['oldBackend' => $source, 'oldReference' => $sourceRef]);
|
||||
$source->delete($sourceRef);
|
||||
|
|
Ładowanie…
Reference in New Issue