Merge pull request #5695 from nextcloud/dont-error-when-the-table-doesnt-exist

Don't throw an error when the table doesn't exist
pull/5708/head
Roeland Jago Douma 2017-07-13 13:28:52 +07:00 committed by GitHub
commit f71457782b
1 changed files with 3 additions and 0 deletions

@ -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;
}
}