dont insert and entry in the filecache during upgrade if the id already exists in the filecache
most likely the result from an incompelte upgrade
This commit is contained in:
parent
c6a5ce54a7
commit
bc52f12162
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue