Merge pull request #6001 from nextcloud/backport-5695-dont-throw-when-table-is-missing
[stable12] Don't throw an error when the table doesn't exist
This commit is contained in:
commit
cb4c37498d
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue