Skip to content

Commit

Permalink
Fix migration in case notification app is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
R0Wi committed Sep 10, 2023
1 parent 7345ded commit 1c68e97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Migration/Version2702Date20230908170345.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ private function deleteNonDeliverableNotifications() {
* notifications). Therefore, such a notification will be processed
* over and over again.
*/
if (!$this->db->tableExists('notifications')) {
return;
}
$builder = $this->db->getQueryBuilder();
$builder->delete('notifications')
->where($builder->expr()->eq('app', $builder->createNamedParameter(Application::APP_NAME)))
Expand Down

0 comments on commit 1c68e97

Please sign in to comment.