summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2017-07-13 13:28:52 +0200
committerGitHub <noreply@github.com>2017-07-13 13:28:52 +0200
commitf71457782b1c0e6aa66ba6b2aac126aa5a2bc9dc (patch)
treec201784737f16ee88461886674b564c1e9eb9af1 /lib
parent598835b06fdd12a46253a44729eb602bc170b76b (diff)
parentc6b7204fcbd4556f7e5c5d7c6b541beed631a86d (diff)
downloadnextcloud-server-f71457782b1c0e6aa66ba6b2aac126aa5a2bc9dc.tar.gz
nextcloud-server-f71457782b1c0e6aa66ba6b2aac126aa5a2bc9dc.zip
Merge pull request #5695 from nextcloud/dont-error-when-the-table-doesnt-exist
Don't throw an error when the table doesn't exist
Diffstat (limited to 'lib')
-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;
}
}