Merge pull request #13930 from nextcloud/carl/fix-typo

fix(upgrade-guide-33): Fix copy paste issue
This commit is contained in:
Carl Schwan
2025-12-10 14:22:21 +01:00
committed by GitHub

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