From 0476de0674f1a1bdd229a9d8c212915868204402 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 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; } } -- 2.39.5