8000 Catch TableNotFoundException in MySQL delete · symfony/symfony@410bcce · GitHub
[go: up one dir, main page]

Skip to content

Commit 410bcce

Browse files
acbramleyfabpot
authored andcommitted
Catch TableNotFoundException in MySQL delete
1 parent c9bce39 commit 410bcce

File tree

1 file changed

+4
-0
lines changed
  • src/Symfony/Component/Messenger/Bridge/Doctrine/Transport

1 file changed

+4
-0
lines changed

src/Symfony/Component/Messenger/Bridge/Doctrine/Transport/Connection.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ public function get(): ?array
161161
$this->driverConnection->delete($this->configuration['table_name'], ['delivered_at' => '9999-12-31 23:59:59']);
162162
} catch (DriverException $e) {
163163
// Ignore the exception
164+
} catch (TableNotFoundException $e) {
165+
if ($this->autoSetup) {
166+
$this->setup();
167+
}
164168
}
165169
}
166170

0 commit comments

Comments
 (0)
0