mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/17493] Remove not needed function in migration and fix type hinting
PHPBB-17493
This commit is contained in:
parent
5ab0446eb1
commit
27550ce59b
2 changed files with 1 additions and 15 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue