aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/files/cache/upgrade.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/files/cache/upgrade.php b/lib/files/cache/upgrade.php
index ebac387de96..9219deebef5 100644
--- a/lib/files/cache/upgrade.php
+++ b/lib/files/cache/upgrade.php
@@ -29,7 +29,13 @@ class Upgrade {
return;
}
+ $checkExistingQuery = \OC_DB::prepare('SELECT `fileid` FROM `*PREFIX*filecache` WHERE `fileid` = ?');
+
while ($row = $oldEntriesResult->fetchRow()) {
+ if($checkExistingQuery->execute(array($row['id']))->fetchRow()){
+ continue;
+ }
+
list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($row['path']);
/**
* @var \OC\Files\Storage\Storage $storage