1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/17010] Change how notification data is passed to push notifications JS

PHPBB3-17010
This commit is contained in:
Marc Alexander
2022-10-28 20:55:37 +02:00
parent d4b6ad5620
commit 7092f24645
3 changed files with 24 additions and 14 deletions

View File

@@ -39,6 +39,8 @@ class add_webpush extends migration
'item_id' => ['ULINT', 0],
'item_parent_id' => ['ULINT', 0],
'user_id' => ['ULINT', 0],
'push_data' => ['MTEXT', ''],
'notification_time' => ['TIMESTAMP', 0]
],
'PRIMARY_KEY' => ['notification_type_id', 'item_id', 'item_parent_id', 'user_id'],
],
@@ -46,11 +48,11 @@ class add_webpush extends migration
'COLUMNS' => [
'subscription_id' => ['ULINT', null, 'auto_increment'],
'user_id' => ['ULINT', 0],
'device_name' => ['VCHAR:64', ''],
// 'device_name' => ['VCHAR:64', ''],
'endpoint' => ['TEXT', ''],
'expiration_time' => ['TIMESTAMP', 0],
'p256dh' => ['VCHAR', ''],
'auth' => ['VCHAR', ''],
'encoding' => ['VCHAR:32', ''],
],
'PRIMARY_KEY' => ['subscription_id', 'user_id'],
]