mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 18:54:08 +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:
@@ -443,8 +443,11 @@ CREATE TABLE [phpbb_forums] (
|
||||
[forum_type] [int] DEFAULT (0) NOT NULL ,
|
||||
[forum_status] [int] DEFAULT (0) NOT NULL ,
|
||||
[forum_posts] [int] DEFAULT (0) NOT NULL ,
|
||||
[forum_posts_unapproved] [int] DEFAULT (0) NOT NULL ,
|
||||
[forum_posts_softdeleted] [int] DEFAULT (0) NOT NULL ,
|
||||
[forum_topics] [int] DEFAULT (0) NOT NULL ,
|
||||
[forum_topics_real] [int] DEFAULT (0) NOT NULL ,
|
||||
[forum_topics_unapproved] [int] DEFAULT (0) NOT NULL ,
|
||||
[forum_topics_softdeleted] [int] DEFAULT (0) NOT NULL ,
|
||||
[forum_last_post_id] [int] DEFAULT (0) NOT NULL ,
|
||||
[forum_last_poster_id] [int] DEFAULT (0) NOT NULL ,
|
||||
[forum_last_post_subject] [varchar] (255) DEFAULT ('') NOT NULL ,
|
||||
@@ -1360,8 +1363,9 @@ CREATE TABLE [phpbb_topics] (
|
||||
[topic_time] [int] DEFAULT (0) NOT NULL ,
|
||||
[topic_time_limit] [int] DEFAULT (0) NOT NULL ,
|
||||
[topic_views] [int] DEFAULT (0) NOT NULL ,
|
||||
[topic_replies] [int] DEFAULT (0) NOT NULL ,
|
||||
[topic_replies_real] [int] DEFAULT (0) NOT NULL ,
|
||||
[topic_posts] [int] DEFAULT (0) NOT NULL ,
|
||||
[topic_posts_unapproved] [int] DEFAULT (0) NOT NULL ,
|
||||
[topic_posts_softdeleted] [int] DEFAULT (0) NOT NULL ,
|
||||
[topic_status] [int] DEFAULT (0) NOT NULL ,
|
||||
[topic_type] [int] DEFAULT (0) NOT NULL ,
|
||||
[topic_first_post_id] [int] DEFAULT (0) NOT NULL ,
|
||||
|
Reference in New Issue
Block a user