From: Joas Schilling Date: Wed, 12 Jul 2017 13:35:24 +0000 (+0200) Subject: Don't throw an error when the table doesn't exist X-Git-Tag: v12.0.3RC1~94^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F6001%2Fhead;p=nextcloud-server.git Don't throw an error when the table doesn't exist Signed-off-by: Joas Schilling --- 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; } }