summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-07-12 15:35:24 +0200
committerJoas Schilling <coding@schilljs.com>2017-07-12 15:35:24 +0200
commitc6b7204fcbd4556f7e5c5d7c6b541beed631a86d (patch)
tree595bbbe9dc8f3a6fe0e25e5438af133d237f1af3
parent4153e1de795d0977756583e5845f849662ed6528 (diff)
downloadnextcloud-server-c6b7204fcbd4556f7e5c5d7c6b541beed631a86d.tar.gz
nextcloud-server-c6b7204fcbd4556f7e5c5d7c6b541beed631a86d.zip
Don't throw an error when the table doesn't exist
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--lib/private/Repair/Owncloud/SaveAccountsTableData.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Repair/Owncloud/SaveAccountsTableData.php b/lib/private/Repair/Owncloud/SaveAccountsTableData.php
index 35e5560856b..ae56004020d 100644
--- a/lib/private/Repair/Owncloud/SaveAccountsTableData.php
+++ b/lib/private/Repair/Owncloud/SaveAccountsTableData.php
@@ -24,6 +24,7 @@
namespace OC\Repair\Owncloud;
use Doctrine\DBAL\Exception\InvalidFieldNameException;
+use Doctrine\DBAL\Exception\TableNotFoundException;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IConfig;
use OCP\IDBConnection;
@@ -96,6 +97,8 @@ class SaveAccountsTableData implements IRepairStep {
return true;
} catch (InvalidFieldNameException $e) {
return false;
+ } catch (TableNotFoundException $e) {
+ return false;
}
}