From 4f89e2b97d840b06976584247b5285ed54a918c3 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sat, 5 Jul 2025 09:36:53 +0200 Subject: [PATCH] [ticket/17528] Fix migration issue using postgres PHPBB-17528 --- phpBB/phpbb/db/migration/data/v400/remove_jabber.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/phpBB/phpbb/db/migration/data/v400/remove_jabber.php b/phpBB/phpbb/db/migration/data/v400/remove_jabber.php index 12759f5f47..34c4c6a355 100644 --- a/phpBB/phpbb/db/migration/data/v400/remove_jabber.php +++ b/phpBB/phpbb/db/migration/data/v400/remove_jabber.php @@ -101,15 +101,11 @@ class remove_jabber extends migration ]; } - public function move_jabber_to_email_notifications(int|null $start) + public function move_jabber_to_email_notifications() { - $limit = 1000; - $sql = 'UPDATE ' . $this->tables['user_notifications'] . ' SET ' . $this->db->sql_build_array('UPDATE', ['method' => 'notification.method.email']) . " WHERE method = 'notification.method.jabber'"; - $this->db->sql_query_limit($sql, $limit, $start ?: 0); - - return $this->db->sql_affectedrows() < $limit ? true : $start + $limit; + $this->db->sql_query($sql); } }