fix upgrade error for instances not upgraded from 4.5
This commit is contained in:
parent
8231f657d9
commit
22c8194cc8
|
@ -36,11 +36,15 @@ if (OC::checkUpgrade(false)) {
|
|||
* @param UpdateWatcher $watcher
|
||||
*/
|
||||
function __doFileCacheUpgrade($watcher) {
|
||||
$query = \OC_DB::prepare('
|
||||
SELECT DISTINCT user
|
||||
FROM`*PREFIX*fscache`
|
||||
');
|
||||
$result = $query->execute();
|
||||
try {
|
||||
$query = \OC_DB::prepare('
|
||||
SELECT DISTINCT user
|
||||
FROM`*PREFIX*fscache`
|
||||
');
|
||||
$result = $query->execute();
|
||||
} catch (\Exception $e) {
|
||||
return;
|
||||
}
|
||||
$users = $result->fetchAll();
|
||||
if(count($users) == 0) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue