mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/11103] Store the item's parent id for marking things read
Mark topics/posts read from the markread() function. Identify unread items by a grey background in the header (for now) PHPBB3-11103
This commit is contained in:
@@ -1109,6 +1109,7 @@ function database_update_info()
|
||||
'COLUMNS' => array(
|
||||
'item_type' => array('VCHAR:25', ''),
|
||||
'item_id' => array('UINT', 0),
|
||||
'item_parent_id' => array('UINT', 0),
|
||||
'user_id' => array('UINT', 0),
|
||||
'unread' => array('BOOL', 1),
|
||||
'time' => array('TIMESTAMP', 1),
|
||||
@@ -1122,8 +1123,10 @@ function database_update_info()
|
||||
'KEYS' => array(
|
||||
'item_type' => array('INDEX', 'item_type'),
|
||||
'item_id' => array('INDEX', 'item_id'),
|
||||
'item_pid' => array('INDEX', 'item_parent_id'),
|
||||
'user_id' => array('INDEX', 'user_id'),
|
||||
'time' => array('INDEX', 'time'),
|
||||
'unread' => array('INDEX', 'unread'),
|
||||
),
|
||||
),
|
||||
USER_NOTIFICATIONS_TABLE => array(
|
||||
|
Reference in New Issue
Block a user