From d9ee47185a211fc23bf84bad73549961490b27fc Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Wed, 10 Dec 2025 14:13:54 +0100 Subject: [PATCH] fix(upgrade-guide-33): Fix copy paste issue Signed-off-by: Carl Schwan --- .../app_upgrade_guide/upgrade_to_33.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_33.rst b/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_33.rst index cfc27498591..aad4bb6195e 100644 --- a/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_33.rst +++ b/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_33.rst @@ -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; }