1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 14:30:32 +02:00

[ticket/17010] Add Webpush settings and language entries

PHPBB3-17010
This commit is contained in:
Marc Alexander
2022-08-30 20:21:03 +02:00
parent d05e2dd043
commit 873a22176d
5 changed files with 35 additions and 3 deletions

View File

@@ -13,9 +13,10 @@
namespace phpbb\db\migration\data\v400;
use Minishlink\WebPush\VAPID;
use phpbb\db\migration\migration;
class add_notification_push_table extends migration
class add_webpush extends migration
{
public static function depends_on(): array
{
@@ -56,6 +57,7 @@ class add_notification_push_table extends migration
public function update_data(): array
{
return [
['config.add', ['webpush_enable', false]],
['config.add', ['webpush_vapid_public', '']],
['config.add', ['webpush_vapid_private', '']],
['module.add', [
@@ -75,8 +77,10 @@ class add_notification_push_table extends migration
public function revert_data(): array
{
return [
['config.remove', ['webpush_enable']],
['config.remove', ['webpush_vapid_public']],
['config.remove', ['webpush_vapid_private']],
['module.remove', ['acp', 'ACP_BOARD_CONFIGURATION', 'ACP_WEBPUSH_SETTINGS']]
];
}
}