Update "storage" console command

add support to move data in 'attach' table
This commit is contained in:
fabrixxm 2019-01-03 22:35:46 +01:00 committed by Hypolite Petovan
parent 651834f7d1
commit 24d7ffa3fe
3 changed files with 21 additions and 5 deletions

View file

@ -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;