]> source.dussan.org Git - nextcloud-server.git/commitdiff
Don't throw an error when the table doesn't exist 6001/head
authorJoas Schilling <coding@schilljs.com>
Wed, 12 Jul 2017 13:35:24 +0000 (15:35 +0200)
committerJoas Schilling <coding@schilljs.com>
Mon, 7 Aug 2017 07:43:45 +0000 (09:43 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Repair/Owncloud/SaveAccountsTableData.php

index 35e5560856b54b26250dca997eda32a2772008c5..ae56004020dc0dcb4377983380c02b60cbc19ad1 100644 (file)
@@ -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;
                }
        }