mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[feature/soft-delete] Append _approved to *_posts and *_topics column names
PHPBB3-9567
This commit is contained in:
@@ -363,10 +363,10 @@ CREATE TABLE phpbb_forums (
|
||||
forum_topics_per_page INTEGER DEFAULT 0 NOT NULL,
|
||||
forum_type INTEGER DEFAULT 0 NOT NULL,
|
||||
forum_status INTEGER DEFAULT 0 NOT NULL,
|
||||
forum_posts INTEGER DEFAULT 0 NOT NULL,
|
||||
forum_posts_approved INTEGER DEFAULT 0 NOT NULL,
|
||||
forum_posts_unapproved INTEGER DEFAULT 0 NOT NULL,
|
||||
forum_posts_softdeleted INTEGER DEFAULT 0 NOT NULL,
|
||||
forum_topics INTEGER DEFAULT 0 NOT NULL,
|
||||
forum_topics_approved INTEGER DEFAULT 0 NOT NULL,
|
||||
forum_topics_unapproved INTEGER DEFAULT 0 NOT NULL,
|
||||
forum_topics_softdeleted INTEGER DEFAULT 0 NOT NULL,
|
||||
forum_last_post_id INTEGER DEFAULT 0 NOT NULL,
|
||||
@@ -1128,7 +1128,7 @@ CREATE TABLE phpbb_topics (
|
||||
topic_time INTEGER DEFAULT 0 NOT NULL,
|
||||
topic_time_limit INTEGER DEFAULT 0 NOT NULL,
|
||||
topic_views INTEGER DEFAULT 0 NOT NULL,
|
||||
topic_posts INTEGER DEFAULT 0 NOT NULL,
|
||||
topic_posts_approved INTEGER DEFAULT 0 NOT NULL,
|
||||
topic_posts_unapproved INTEGER DEFAULT 0 NOT NULL,
|
||||
topic_posts_softdeleted INTEGER DEFAULT 0 NOT NULL,
|
||||
topic_status INTEGER DEFAULT 0 NOT NULL,
|
||||
|
@@ -442,10 +442,10 @@ CREATE TABLE [phpbb_forums] (
|
||||
[forum_topics_per_page] [int] DEFAULT (0) NOT NULL ,
|
||||
[forum_type] [int] DEFAULT (0) NOT NULL ,
|
||||
[forum_status] [int] DEFAULT (0) NOT NULL ,
|
||||
[forum_posts] [int] DEFAULT (0) NOT NULL ,
|
||||
[forum_posts_approved] [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_approved] [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 ,
|
||||
@@ -1363,7 +1363,7 @@ 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_posts] [int] DEFAULT (0) NOT NULL ,
|
||||
[topic_posts_approved] [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 ,
|
||||
|
@@ -249,10 +249,10 @@ CREATE TABLE phpbb_forums (
|
||||
forum_topics_per_page tinyint(4) DEFAULT '0' NOT NULL,
|
||||
forum_type tinyint(4) DEFAULT '0' NOT NULL,
|
||||
forum_status tinyint(4) DEFAULT '0' NOT NULL,
|
||||
forum_posts mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
forum_posts_approved mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
forum_posts_unapproved mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
forum_posts_softdeleted mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
forum_topics mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
forum_topics_approved mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
forum_topics_unapproved mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
forum_topics_softdeleted mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
forum_last_post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
@@ -790,7 +790,7 @@ CREATE TABLE phpbb_topics (
|
||||
topic_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
topic_time_limit int(11) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
topic_views mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
topic_posts mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
topic_posts_approved mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
topic_posts_unapproved mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
topic_posts_softdeleted mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
topic_status tinyint(3) DEFAULT '0' NOT NULL,
|
||||
|
@@ -249,10 +249,10 @@ CREATE TABLE phpbb_forums (
|
||||
forum_topics_per_page tinyint(4) DEFAULT '0' NOT NULL,
|
||||
forum_type tinyint(4) DEFAULT '0' NOT NULL,
|
||||
forum_status tinyint(4) DEFAULT '0' NOT NULL,
|
||||
forum_posts mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
forum_posts_approved mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
forum_posts_unapproved mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
forum_posts_softdeleted mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
forum_topics mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
forum_topics_approved mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
forum_topics_unapproved mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
forum_topics_softdeleted mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
forum_last_post_id mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
@@ -790,7 +790,7 @@ CREATE TABLE phpbb_topics (
|
||||
topic_time int(11) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
topic_time_limit int(11) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
topic_views mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
topic_posts mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
topic_posts_approved mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
topic_posts_unapproved mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
topic_posts_softdeleted mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
|
||||
topic_status tinyint(3) DEFAULT '0' NOT NULL,
|
||||
|
@@ -509,10 +509,10 @@ CREATE TABLE phpbb_forums (
|
||||
forum_topics_per_page number(4) DEFAULT '0' NOT NULL,
|
||||
forum_type number(4) DEFAULT '0' NOT NULL,
|
||||
forum_status number(4) DEFAULT '0' NOT NULL,
|
||||
forum_posts number(8) DEFAULT '0' NOT NULL,
|
||||
forum_posts_approved number(8) DEFAULT '0' NOT NULL,
|
||||
forum_posts_unapproved number(8) DEFAULT '0' NOT NULL,
|
||||
forum_posts_softdeleted number(8) DEFAULT '0' NOT NULL,
|
||||
forum_topics number(8) DEFAULT '0' NOT NULL,
|
||||
forum_topics_approved number(8) DEFAULT '0' NOT NULL,
|
||||
forum_topics_unapproved number(8) DEFAULT '0' NOT NULL,
|
||||
forum_topics_softdeleted number(8) DEFAULT '0' NOT NULL,
|
||||
forum_last_post_id number(8) DEFAULT '0' NOT NULL,
|
||||
@@ -1493,7 +1493,7 @@ CREATE TABLE phpbb_topics (
|
||||
topic_time number(11) DEFAULT '0' NOT NULL,
|
||||
topic_time_limit number(11) DEFAULT '0' NOT NULL,
|
||||
topic_views number(8) DEFAULT '0' NOT NULL,
|
||||
topic_posts number(8) DEFAULT '0' NOT NULL,
|
||||
topic_posts_approved number(8) DEFAULT '0' NOT NULL,
|
||||
topic_posts_unapproved number(8) DEFAULT '0' NOT NULL,
|
||||
topic_posts_softdeleted number(8) DEFAULT '0' NOT NULL,
|
||||
topic_status number(3) DEFAULT '0' NOT NULL,
|
||||
|
@@ -385,10 +385,10 @@ CREATE TABLE phpbb_forums (
|
||||
forum_topics_per_page INT2 DEFAULT '0' NOT NULL,
|
||||
forum_type INT2 DEFAULT '0' NOT NULL,
|
||||
forum_status INT2 DEFAULT '0' NOT NULL,
|
||||
forum_posts INT4 DEFAULT '0' NOT NULL CHECK (forum_posts >= 0),
|
||||
forum_posts_approved INT4 DEFAULT '0' NOT NULL CHECK (forum_posts_approved >= 0),
|
||||
forum_posts_unapproved INT4 DEFAULT '0' NOT NULL CHECK (forum_posts_unapproved >= 0),
|
||||
forum_posts_softdeleted INT4 DEFAULT '0' NOT NULL CHECK (forum_posts_softdeleted >= 0),
|
||||
forum_topics INT4 DEFAULT '0' NOT NULL CHECK (forum_topics >= 0),
|
||||
forum_topics_approved INT4 DEFAULT '0' NOT NULL CHECK (forum_topics_approved >= 0),
|
||||
forum_topics_unapproved INT4 DEFAULT '0' NOT NULL CHECK (forum_topics_unapproved >= 0),
|
||||
forum_topics_softdeleted INT4 DEFAULT '0' NOT NULL CHECK (forum_topics_softdeleted >= 0),
|
||||
forum_last_post_id INT4 DEFAULT '0' NOT NULL CHECK (forum_last_post_id >= 0),
|
||||
@@ -1028,7 +1028,7 @@ CREATE TABLE phpbb_topics (
|
||||
topic_time INT4 DEFAULT '0' NOT NULL CHECK (topic_time >= 0),
|
||||
topic_time_limit INT4 DEFAULT '0' NOT NULL CHECK (topic_time_limit >= 0),
|
||||
topic_views INT4 DEFAULT '0' NOT NULL CHECK (topic_views >= 0),
|
||||
topic_posts INT4 DEFAULT '0' NOT NULL CHECK (topic_posts >= 0),
|
||||
topic_posts_approved INT4 DEFAULT '0' NOT NULL CHECK (topic_posts_approved >= 0),
|
||||
topic_posts_unapproved INT4 DEFAULT '0' NOT NULL CHECK (topic_posts_unapproved >= 0),
|
||||
topic_posts_softdeleted INT4 DEFAULT '0' NOT NULL CHECK (topic_posts_softdeleted >= 0),
|
||||
topic_status INT2 DEFAULT '0' NOT NULL,
|
||||
|
@@ -242,10 +242,10 @@ CREATE TABLE phpbb_forums (
|
||||
forum_topics_per_page tinyint(4) NOT NULL DEFAULT '0',
|
||||
forum_type tinyint(4) NOT NULL DEFAULT '0',
|
||||
forum_status tinyint(4) NOT NULL DEFAULT '0',
|
||||
forum_posts INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
forum_posts_approved INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
forum_posts_unapproved INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
forum_posts_softdeleted INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
forum_topics INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
forum_topics_approved INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
forum_topics_unapproved INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
forum_topics_softdeleted INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
forum_last_post_id INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
@@ -765,7 +765,7 @@ CREATE TABLE phpbb_topics (
|
||||
topic_time INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_time_limit INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_views INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_posts INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_posts_approved INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_posts_unapproved INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_posts_softdeleted INTEGER UNSIGNED NOT NULL DEFAULT '0',
|
||||
topic_status tinyint(3) NOT NULL DEFAULT '0',
|
||||
|
Reference in New Issue
Block a user