diff options
author | Robin Appelman <robin@icewind.nl> | 2021-01-22 16:05:14 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-01-27 16:11:20 +0100 |
commit | 8bd39f081f52a5f2f4051db3743d49c200ef27c4 (patch) | |
tree | 8a8c8521edf5957b22cc64aa2c5f71f91a7390c1 /apps/files/lib | |
parent | 291b72ec5069c0dcf4217d51b262051d48344cd8 (diff) | |
download | nextcloud-server-8bd39f081f52a5f2f4051db3743d49c200ef27c4.tar.gz nextcloud-server-8bd39f081f52a5f2f4051db3743d49c200ef27c4.zip |
also repair storage id
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/Command/RepairTree.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files/lib/Command/RepairTree.php b/apps/files/lib/Command/RepairTree.php index 77b97d7ca0d..d021b59722c 100644 --- a/apps/files/lib/Command/RepairTree.php +++ b/apps/files/lib/Command/RepairTree.php @@ -62,6 +62,7 @@ class RepairTree extends Command { $query->update('filecache') ->set('path', $query->createParameter('path')) ->set('path_hash', $query->func()->md5($query->createParameter('path'))) + ->set('storage', $query->createParameter('storage')) ->where($query->expr()->eq('fileid', $query->createParameter('fileid'))); foreach ($rows as $row) { @@ -71,6 +72,7 @@ class RepairTree extends Command { $query->setParameters([ 'fileid' => $row['fileid'], 'path' => $row['parent_path'] . '/' . $row['name'], + 'storage' => $row['parent_storage'], ]); $query->execute(); } @@ -88,6 +90,7 @@ class RepairTree extends Command { $query->select('f.fileid', 'f.path', 'f.parent', 'f.name') ->selectAlias('p.path', 'parent_path') + ->selectAlias('p.storage', 'parent_storage') ->from('filecache', 'f') ->innerJoin('f', 'filecache', 'p', $query->expr()->eq('f.parent', 'p.fileid')) ->where($query->expr()->orX( |