mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/17493] Remove not needed function in migration and fix type hinting
PHPBB-17493
This commit is contained in:
@@ -101,7 +101,7 @@ class remove_jabber extends migration
|
||||
];
|
||||
}
|
||||
|
||||
public function move_jabber_to_email_notifications(int $start = 0)
|
||||
public function move_jabber_to_email_notifications(?int $start = 0)
|
||||
{
|
||||
$limit = 1000;
|
||||
|
||||
|
@@ -47,18 +47,4 @@ class remove_notify_type extends migration
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
public function update_data()
|
||||
{
|
||||
return [
|
||||
['custom', [[$this, 'remove_jabber_user_notifications']]],
|
||||
];
|
||||
}
|
||||
|
||||
protected function remove_jabber_user_notifications(): void
|
||||
{
|
||||
$sql = 'DELETE FROM ' . $this->tables['user_notifications'] . "
|
||||
WHERE method = 'notification.method.jabber'";
|
||||
$this->db->sql_query($sql);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user