mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 05:20:56 +02:00
[feature/soft-delete] Add new fields for topic/post counts for softdelete
We can not use the replies vs replies_real anymore, as we need to be able to determinate whether the posts are unapproved or softdeleted. So we need to add a new field and there by change the second one for consistency. We also add the posts_* fields for forums, which are a missing feature. PHPBB3-9567
This commit is contained in:
@@ -1096,9 +1096,12 @@ function get_schema_struct()
|
||||
'forum_topics_per_page' => array('TINT:4', 0),
|
||||
'forum_type' => array('TINT:4', 0),
|
||||
'forum_status' => array('TINT:4', 0),
|
||||
'forum_posts' => array('UINT', 0),
|
||||
'forum_topics' => array('UINT', 0),
|
||||
'forum_topics_real' => array('UINT', 0),
|
||||
'forum_posts' => array('UINT', 0),
|
||||
'forum_posts_unapproved' => array('UINT', 0),
|
||||
'forum_posts_softdeleted' => array('UINT', 0),
|
||||
'forum_topics' => array('UINT', 0),
|
||||
'forum_topics_unapproved' => array('UINT', 0),
|
||||
'forum_topics_softdeleted' => array('UINT', 0),
|
||||
'forum_last_post_id' => array('UINT', 0),
|
||||
'forum_last_poster_id' => array('UINT', 0),
|
||||
'forum_last_post_subject' => array('STEXT_UNI', ''),
|
||||
@@ -1683,8 +1686,9 @@ function get_schema_struct()
|
||||
'topic_time' => array('TIMESTAMP', 0),
|
||||
'topic_time_limit' => array('TIMESTAMP', 0),
|
||||
'topic_views' => array('UINT', 0),
|
||||
'topic_replies' => array('UINT', 0),
|
||||
'topic_replies_real' => array('UINT', 0),
|
||||
'topic_posts' => array('UINT', 0),
|
||||
'topic_posts_unapproved' => array('UINT', 0),
|
||||
'topic_posts_softdeleted' => array('UINT', 0),
|
||||
'topic_status' => array('TINT:3', 0),
|
||||
'topic_type' => array('TINT:3', 0),
|
||||
'topic_first_post_id' => array('UINT', 0),
|
||||
|
Reference in New Issue
Block a user