From f3d61162237e83cd74cdefb35322037a572af5b2 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 13 Jan 2005 23:06:15 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=5113 --- checkin_notes | 12 ++++++++++++ db/schema.sql | 4 ++++ html/ops/db_update.php | 5 +++++ 3 files changed, 21 insertions(+) diff --git a/checkin_notes b/checkin_notes index 4288d280f7..200038d600 100755 --- a/checkin_notes +++ b/checkin_notes @@ -22666,3 +22666,15 @@ David 13 Jan 2005 user/ explain_state.php info.php + +David 13 Jan 2005 + - add "hidden" fields to thread and post tables, + in preparation for message board moderation features + + NOTE TO PROJECTS: apply this update if you're using current PHP. + It doesn't hurt to apply it anyway. + + db/ + schema.sql + html/ops/ + db_update.php diff --git a/db/schema.sql b/db/schema.sql index 7774f2de6a..ea36f39eae 100644 --- a/db/schema.sql +++ b/db/schema.sql @@ -351,6 +351,8 @@ create table thread ( -- in help desk: # people who indicated they had same problem create_time integer not null, -- when this record was created + hidden integer not null, + -- nonzero if hidden by moderators primary key (id) ); @@ -371,6 +373,8 @@ create table post ( score double not null, votes integer not null, signature tinyint(1) unsigned not null default 0, + hidden integer not null, + -- nonzero if hidden by moderators primary key (id) ); diff --git a/html/ops/db_update.php b/html/ops/db_update.php index 144a7a5512..a511769bc0 100644 --- a/html/ops/db_update.php +++ b/html/ops/db_update.php @@ -214,6 +214,11 @@ function update_1_7_2005() { mysql_query("alter table forum_preferences add ignorelist varchar(254) not null"); } +function update_1_13_2005() { + mysql_query("alter table thread add hidden integer not null"); + mysql_query("alter table post add hidden integer not null"); +} + //update_10_25_2004(); ?>