fix(upgrade-guide-33): Fix copy paste issue

Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
This commit is contained in:
Carl Schwan
2025-12-10 14:13:54 +01:00
parent ea791a067d
commit d9ee47185a

View File

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