From c6b7204fcbd4556f7e5c5d7c6b541beed631a86d Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 12 Jul 2017 15:35:24 +0200 Subject: [PATCH] Don't throw an error when the table doesn't exist Signed-off-by: Joas Schilling --- lib/private/Repair/Owncloud/SaveAccountsTableData.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/private/Repair/Owncloud/SaveAccountsTableData.php b/lib/private/Repair/Owncloud/SaveAccountsTableData.php index 35e5560856b54..ae56004020dc0 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 @@ protected function shouldRun() { return true; } catch (InvalidFieldNameException $e) { return false; + } catch (TableNotFoundException $e) { + return false; } }