mirror of
https://github.com/friendica/friendica
synced 2025-04-19 10:30:10 +00:00
Update "storage" console command
add support to move data in 'attach' table
This commit is contained in:
parent
651834f7d1
commit
24d7ffa3fe
3 changed files with 21 additions and 5 deletions
|
@ -110,7 +110,7 @@ class StorageManager
|
|||
* This method cannot move to legacy in-table `data` field.
|
||||
*
|
||||
* @param string $dest Destination storage class name
|
||||
* @param array $tables Tables to look in for resources. Optional, defaults to ['photo']
|
||||
* @param array $tables Tables to look in for resources. Optional, defaults to ['photo', 'attach']
|
||||
*
|
||||
* @retur int Number of moved resources
|
||||
*/
|
||||
|
@ -121,7 +121,7 @@ class StorageManager
|
|||
}
|
||||
|
||||
if (is_null($tables)) {
|
||||
$tables = ['photo'];
|
||||
$tables = ['photo', 'attach'];
|
||||
}
|
||||
|
||||
$moved = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue