mirror of
https://github.com/nextcloud/documentation.git
synced 2025-12-12 07:29:47 +07:00
Merge pull request #13930 from nextcloud/carl/fix-typo
fix(upgrade-guide-33): Fix copy paste issue
This commit is contained in:
@@ -147,8 +147,8 @@ Should be replaced by the following code:
|
||||
try {
|
||||
$qb->insert(...);
|
||||
$qb->executeStatement();
|
||||
} catch (\Doctrine\DBAL\Exception\UniqueConstraintViolationException) {
|
||||
if ($e->getReason() !== Exception::REASON_UNIQUE_CONSTRAINT_VIOLATION) {
|
||||
} catch (\OCP\DB\Exception $e) {
|
||||
if ($e->getReason() !== \OCP\DB\Exception::REASON_UNIQUE_CONSTRAINT_VIOLATION) {
|
||||
throw $e;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user