1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-03 23:37:39 +02:00

added auto_prune

git-svn-id: file:///svn/phpbb/trunk@516 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
the_systech
2001-06-19 17:38:00 +00:00
parent 7d6c996092
commit bc5c16ae82
5 changed files with 151 additions and 12 deletions

View File

@@ -114,7 +114,8 @@ CREATE TABLE phpbb_config (
default_dateformat varchar(14) DEFAULT 'd M Y H:i' NOT NULL,
system_timezone int(11) DEFAULT '0' NOT NULL,
sys_template varchar(100) DEFAULT 'Default' NOT NULL,
PRIMARY KEY (config_id),
prune_enable tinyint(1) DEFAULT '1' NOT NULL,
PRIMARY KEY (config_id),
UNIQUE selected (selected)
);
@@ -145,6 +146,19 @@ CREATE TABLE phpbb_forum_access (
PRIMARY KEY (forum_id, user_id)
);
# --------------------------------------------------------
#
# Table structure for table 'phpbb_forum_prune'
#
DROP TABLE IF EXISTS phpbb_forum_prune;
CREATE TABLE phpbb_forum_prune (
prune_id int(10) NOT NULL auto_increment,
forum_id int(11) NOT NULL,
prune_days int(3) NOT NULL,
prune_freq int(3) NOT NULL,
PRIMARY KEY(prune_id)
);
# --------------------------------------------------------
#
@@ -174,7 +188,9 @@ CREATE TABLE phpbb_forums (
auth_votecreate tinyint(4) DEFAULT '0' NOT NULL,
auth_vote tinyint(4) DEFAULT '0' NOT NULL,
auth_attachments tinyint(4) DEFAULT '0' NOT NULL,
PRIMARY KEY (forum_id),
prune_next int(11),
prune_enable tinyint(1) DEFAULT '1' NOT NULL,
PRIMARY KEY (forum_id),
KEY forum_id (forum_id),
KEY forums_order (forum_order),
KEY cat_id (cat_id)