2002-12-15 02:41:07 +00:00
|
|
|
#
|
|
|
|
# Table structure for table `forum`
|
|
|
|
#
|
|
|
|
|
2002-12-23 11:47:17 +00:00
|
|
|
CREATE TABLE prefix_forum (
|
2002-12-15 02:41:07 +00:00
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
course integer NOT NULL default '0',
|
|
|
|
type varchar(10) CHECK (type IN ('single','news','general','social','eachuser','teacher')) NOT NULL default 'general',
|
|
|
|
name varchar(255) NOT NULL default '',
|
|
|
|
intro text NOT NULL default '',
|
|
|
|
open integer NOT NULL default '2',
|
|
|
|
assessed integer NOT NULL default '0',
|
2003-08-25 07:39:06 +00:00
|
|
|
assesstimestart integer NOT NULL default '0',
|
|
|
|
assesstimefinish integer NOT NULL default '0',
|
2003-08-15 13:59:24 +00:00
|
|
|
scale integer NOT NULL default '0',
|
2002-12-15 02:41:07 +00:00
|
|
|
forcesubscribe integer NOT NULL default '0',
|
|
|
|
timemodified integer NOT NULL default '0'
|
|
|
|
);
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table `forum_discussions`
|
|
|
|
#
|
|
|
|
|
2002-12-23 11:47:17 +00:00
|
|
|
CREATE TABLE prefix_forum_discussions (
|
2002-12-15 02:41:07 +00:00
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
course integer NOT NULL default '0',
|
|
|
|
forum integer NOT NULL default '0',
|
|
|
|
name varchar(255) NOT NULL default '',
|
|
|
|
firstpost integer NOT NULL default '0',
|
|
|
|
assessed integer NOT NULL default '1',
|
|
|
|
timemodified integer NOT NULL default '0'
|
|
|
|
);
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table `forum_posts`
|
|
|
|
#
|
|
|
|
|
2002-12-23 11:47:17 +00:00
|
|
|
CREATE TABLE prefix_forum_posts (
|
2002-12-15 02:41:07 +00:00
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
discussion integer NOT NULL default '0',
|
|
|
|
parent integer NOT NULL default '0',
|
2002-12-23 09:39:26 +00:00
|
|
|
userid integer NOT NULL default '0',
|
2002-12-15 02:41:07 +00:00
|
|
|
created integer NOT NULL default '0',
|
|
|
|
modified integer NOT NULL default '0',
|
|
|
|
mailed integer NOT NULL default '0',
|
|
|
|
subject varchar(255) NOT NULL default '',
|
|
|
|
message text NOT NULL default '',
|
|
|
|
format integer NOT NULL default '0',
|
|
|
|
attachment VARCHAR(100) NOT NULL default '',
|
|
|
|
totalscore integer NOT NULL default '0'
|
|
|
|
);
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table `forum_ratings`
|
|
|
|
#
|
|
|
|
|
2002-12-23 11:47:17 +00:00
|
|
|
CREATE TABLE prefix_forum_ratings (
|
2002-12-15 02:41:07 +00:00
|
|
|
id SERIAL PRIMARY KEY,
|
2002-12-23 09:39:26 +00:00
|
|
|
userid integer NOT NULL default '0',
|
2002-12-15 02:41:07 +00:00
|
|
|
post integer NOT NULL default '0',
|
|
|
|
time integer NOT NULL default '0',
|
|
|
|
rating integer NOT NULL default '0'
|
|
|
|
);
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
#
|
|
|
|
# Table structure for table `forum_subscriptions`
|
|
|
|
#
|
|
|
|
|
2002-12-23 11:47:17 +00:00
|
|
|
CREATE TABLE prefix_forum_subscriptions (
|
2002-12-15 02:41:07 +00:00
|
|
|
id SERIAL PRIMARY KEY,
|
2002-12-23 09:39:26 +00:00
|
|
|
userid integer NOT NULL default '0',
|
2002-12-15 02:41:07 +00:00
|
|
|
forum integer NOT NULL default '0'
|
|
|
|
);
|
|
|
|
# --------------------------------------------------------
|
|
|
|
|
|
|
|
#
|
|
|
|
# Dumping data for table `log_display`
|
|
|
|
#
|
|
|
|
|
2002-12-23 11:47:17 +00:00
|
|
|
INSERT INTO prefix_log_display VALUES ('forum', 'add', 'forum', 'name');
|
|
|
|
INSERT INTO prefix_log_display VALUES ('forum', 'update', 'forum', 'name');
|
|
|
|
INSERT INTO prefix_log_display VALUES ('forum', 'add discussion', 'forum_discussions', 'name');
|
|
|
|
INSERT INTO prefix_log_display VALUES ('forum', 'add post', 'forum_posts', 'subject');
|
|
|
|
INSERT INTO prefix_log_display VALUES ('forum', 'update post', 'forum_posts', 'subject');
|
2003-04-24 08:45:27 +00:00
|
|
|
INSERT INTO prefix_log_display VALUES ('forum', 'move discussion', 'forum_discussions', 'name');
|
2002-12-23 11:47:17 +00:00
|
|
|
INSERT INTO prefix_log_display VALUES ('forum', 'view subscribers', 'forum', 'name');
|
|
|
|
INSERT INTO prefix_log_display VALUES ('forum', 'view discussion', 'forum_discussions', 'name');
|
|
|
|
INSERT INTO prefix_log_display VALUES ('forum', 'view forum', 'forum', 'name');
|
|
|
|
INSERT INTO prefix_log_display VALUES ('forum', 'subscribe', 'forum', 'name');
|
|
|
|
INSERT INTO prefix_log_display VALUES ('forum', 'unsubscribe', 'forum', 'name');
|
2002-12-15 02:41:07 +00:00
|
|
|
|