Skip to content

Commit

Permalink
Dev: Split try-catch to not ignore any drop statement
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Sep 22, 2022
1 parent fb6a7b9 commit 0569c3c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/helpers/update/updates/Update_491.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ public function up()
// Upate 489 belongs with this update. Due to a faulty deployment, we start from scratch here with failed_emails table.
try {
$this->db->createCommand()->dropTable('{{failed_emails}}');
} catch (\Exception $e) {
// Ignore
}
try {
$this->db->createCommand()->dropTable('{{failed_email}}');
} catch (\Exception $e) {
// Ignore
Expand Down

0 comments on commit 0569c3c

Please sign in to comment.