Skip to content

Commit d9ee471

Browse files
committed
fix(upgrade-guide-33): Fix copy paste issue
Signed-off-by: Carl Schwan <[email protected]>
1 parent ea791a0 commit d9ee471

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_33.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ Should be replaced by the following code:
147147
try {
148148
$qb->insert(...);
149149
$qb->executeStatement();
150-
} catch (\Doctrine\DBAL\Exception\UniqueConstraintViolationException) {
151-
if ($e->getReason() !== Exception::REASON_UNIQUE_CONSTRAINT_VIOLATION) {
150+
} catch (\OCP\DB\Exception $e) {
151+
if ($e->getReason() !== \OCP\DB\Exception::REASON_UNIQUE_CONSTRAINT_VIOLATION) {
152152
throw $e;
153153
}
154154

0 commit comments

Comments
 (0)