cvsimport fixups - remove obsolete files

This commit is contained in:
Martin Langhoff
2007-05-09 22:01:21 +12:00
parent d27de862a6
commit 48cc1a0e6a
77 changed files with 0 additions and 7687 deletions
-75
View File
@@ -1,75 +0,0 @@
#
# Table structure for table `prefix_backup_files`
#
CREATE TABLE `prefix_backup_files` (
`id` int(10) unsigned NOT NULL auto_increment,
`backup_code` int(10) unsigned NOT NULL default '0',
`file_type` varchar(10) NOT NULL default '',
`path` varchar(255) NOT NULL default '',
`old_id` int(10) unsigned NOT NULL default '0',
`new_id` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `backup_files_uk` (`backup_code`,`file_type`,`path`)
) TYPE=MyISAM COMMENT='To store and recode ids to user and course files.';
# --------------------------------------------------------
#
# Table structure for table `prefix_backup_ids`
#
CREATE TABLE `prefix_backup_ids` (
`id` int(10) unsigned NOT NULL auto_increment,
`backup_code` int(12) unsigned NOT NULL default '0',
`table_name` varchar(30) NOT NULL default '',
`old_id` int(10) unsigned NOT NULL default '0',
`new_id` int(10) unsigned NOT NULL default '0',
`info` mediumtext NOT NULL default '',
PRIMARY KEY (`id`),
UNIQUE KEY `backup_ids_uk` (`backup_code` ,`table_name`,`old_id`)
) TYPE=MyISAM COMMENT='To store and convert ids in backup/restore';
# --------------------------------------------------------
#
# Table structure for table `prefix_backup_config`
#
CREATE TABLE `prefix_backup_config` (
`id` int(10) unsigned NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`value` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) TYPE=MyISAM COMMENT='To store backup configuration variables';
# --------------------------------------------------------
#
# Table structure for table `prefix_backup_courses`
#
CREATE TABLE `prefix_backup_courses` (
`id` int(10) unsigned NOT NULL auto_increment,
`courseid` int(10) unsigned NOT NULL default '0',
`laststarttime` int(10) unsigned NOT NULL default '0',
`lastendtime` int(10) unsigned NOT NULL default '0',
`laststatus` varchar(1) NOT NULL default '0',
`nextstarttime` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `courseid` (`courseid`)
) TYPE=MyISAM COMMENT='To store every course backup status';
# --------------------------------------------------------
#
# Table structure for table `prefix_backup_log`
#
CREATE TABLE `prefix_backup_log` (
`id` int(10) unsigned NOT NULL auto_increment,
`courseid` int(10) unsigned NOT NULL default '0',
`time` int(10) unsigned NOT NULL default '0',
`laststarttime` int(10) unsigned NOT NULL default '0',
`info` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=MyISAM COMMENT='To store every course backup log info';
# --------------------------------------------------------
-67
View File
@@ -1,67 +0,0 @@
#
# Table structure for table prefix_backup_files
#
CREATE TABLE prefix_backup_files (
id SERIAL PRIMARY KEY,
backup_code integer NOT NULL default '0',
file_type varchar(10) NOT NULL default '',
path varchar(255) NOT NULL default '',
old_id integer default NULL,
new_id integer default NULL,
CONSTRAINT prefix_backup_files_uk UNIQUE (backup_code, file_type, path)
);
#
# Table structure for table prefix_backup_ids
#
CREATE TABLE prefix_backup_ids (
id SERIAL PRIMARY KEY,
backup_code integer NOT NULL default '0',
table_name varchar(30) NOT NULL default '',
old_id integer NOT NULL default '0',
new_id integer default NULL,
info text,
CONSTRAINT prefix_backup_ids_uk UNIQUE (backup_code, table_name, old_id)
);
#
# Table structure for table prefix_backup_config
#
CREATE TABLE prefix_backup_config (
id SERIAL PRIMARY KEY,
name varchar(255) UNIQUE NOT NULL default '',
value varchar(255) NOT NULL default ''
);
#
# Table structure for table prefix_backup_courses
#
CREATE TABLE prefix_backup_courses (
id SERIAL PRIMARY KEY,
courseid integer UNIQUE NOT NULL default '0',
laststarttime integer NOT NULL default '0',
lastendtime integer NOT NULL default '0',
laststatus varchar(1) NOT NULL default '0',
nextstarttime integer NOT NULL default '0'
);
#
# Table structure for table prefix_backup_log
#
CREATE TABLE prefix_backup_log (
id SERIAL PRIMARY KEY,
courseid integer NOT NULL default '0',
time integer NOT NULL default '0',
laststarttime integer NOT NULL default '0',
info varchar(255) NOT NULL default ''
);
-45
View File
@@ -1,45 +0,0 @@
# $Id$
#
# Table structure for table `blocks`
#
CREATE TABLE `prefix_block` (
`id` int(10) unsigned NOT NULL auto_increment,
`name` varchar(40) NOT NULL default '',
`version` int(10) NOT NULL default '0',
`cron` int(10) unsigned NOT NULL default '0',
`lastcron` int(10) unsigned NOT NULL default '0',
`visible` tinyint(1) NOT NULL default '1',
`multiple` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM;
CREATE TABLE `prefix_block_instance` (
`id` int(10) not null auto_increment,
`blockid` int(10) not null default '0',
`pageid` int(10) not null default '0',
`pagetype` varchar(20) not null default '',
`position` varchar(10) not null default '',
`weight` tinyint(3) not null default '0',
`visible` tinyint(1) not null default '0',
`configdata` text not null default '',
PRIMARY KEY(`id`),
INDEX pageid(`pageid`),
INDEX pagetype(`pagetype`)
) TYPE=MyISAM;
CREATE TABLE `prefix_block_pinned` (
`id` int(10) not null auto_increment,
`blockid` int(10) not null default '0',
`pagetype` varchar(20) not null default '',
`position` varchar(10) not null default '',
`weight` tinyint(3) not null default '0',
`visible` tinyint(1) not null default '0',
`configdata` text not null default '',
PRIMARY KEY(`id`),
INDEX pagetype(`pagetype`)
) TYPE=MyISAM;
# --------------------------------------------------------
-41
View File
@@ -1,41 +0,0 @@
# $Id$
#
# Table structure for table blocks
#
CREATE TABLE prefix_block (
id SERIAL8 PRIMARY KEY,
name varchar(40) NOT NULL default '',
version INT8 NOT NULL default '0',
cron INT8 NOT NULL default '0',
lastcron INT8 NOT NULL default '0',
visible int NOT NULL default '1',
multiple int NOT NULL default '0'
) ;
CREATE TABLE prefix_block_instance (
id SERIAL8 PRIMARY KEY,
blockid INT8 not null default '0',
pageid INT8 not null default '0',
pagetype varchar(20) not null default '',
position varchar(10) not null default '',
weight int not null default '0',
visible int not null default '0',
configdata text not null default ''
) ;
CREATE INDEX prefix_block_instance_pageid_idx ON prefix_block_instance (pageid);
CREATE INDEX prefix_block_instance_pagetype_idx ON prefix_block_instance (pagetype);
CREATE TABLE prefix_block_pinned (
id SERIAL8 PRIMARY KEY,
blockid INT8 NOT NULL default 0,
pagetype varchar(20) NOT NULL default '',
position varchar(10) NOT NULL default '',
weight INT NOT NULL default 0,
visible INT NOT NULL default 0,
configdata text NOT NULL default 0
) ;
CREATE INDEX prefix_block_pinned_pagetype_idx ON prefix_block_pinned (pagetype);
# --------------------------------------------------------
-23
View File
@@ -1,23 +0,0 @@
# $Id$
# This file contains a complete database schema for all the
# tables used by this module, written in SQL
# It may also contain INSERT statements for particular data
# that may be used, especially new entries in the table log_display
# --------------------------------------------------------
#
# Table structure for table `prefix_block_rss_client`
#
CREATE TABLE prefix_block_rss_client (
`id` int(11) NOT NULL auto_increment,
`userid` int(11) NOT NULL default '0',
`title` text NOT NULL default '',
`preferredtitle` varchar(64) NOT NULL default '',
`description` text NOT NULL default '',
`shared` int(2) NOT NULL default '0',
`url` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=MyISAM COMMENT='Remote news feed information. Contains the news feed id, the userid of the user who added the feed, the title of the feed itself and a description of the feed contents along with the url used to access the remote feed. Preferredtitle is a field for future use - intended to allow for custom titles rather than those found in the feed.';
-20
View File
@@ -1,20 +0,0 @@
# $Id$
# This file contains a complete database schema for all the
# tables used by this module, written in SQL
# It may also contain INSERT statements for particular data
# that may be used, especially new entries in the table log_display
#
# Table structure for table `block_rss_client`
#
CREATE TABLE prefix_block_rss_client (
id SERIAL PRIMARY KEY,
userid INTEGER NOT NULL default '0',
title text NOT NULL default '',
preferredtitle varchar(64) NOT NULL default '',
description text NOT NULL default '',
shared INTEGER NOT NULL default '0',
url varchar(255) NOT NULL default ''
);
-31
View File
@@ -1,31 +0,0 @@
CREATE TABLE `prefix_enrol_authorize` (
`id` int(10) unsigned NOT NULL auto_increment,
`paymentmethod` enum('cc', 'echeck') NOT NULL default 'cc',
`cclastfour` int(4) unsigned NOT NULL default '0',
`ccname` varchar(255) NOT NULL default '',
`courseid` int(10) unsigned NOT NULL default '0',
`userid` int(10) unsigned NOT NULL default '0',
`transid` int(10) unsigned NOT NULL default '0',
`status` int(10) unsigned NOT NULL default '0',
`timecreated` int(10) unsigned NOT NULL default '0',
`settletime` int(10) unsigned NOT NULL default '0',
`amount` varchar(10) NOT NULL default '',
`currency` varchar(3) NOT NULL default 'USD',
PRIMARY KEY (`id`),
KEY `courseid` (`courseid`),
KEY `userid` (`userid`),
KEY `status` (`status`),
KEY `transid` (`transid`)
) TYPE=MyISAM COMMENT='Holds all known information about authorize.net transactions';
CREATE TABLE `prefix_enrol_authorize_refunds` (
`id` int(10) unsigned NOT NULL auto_increment,
`orderid` int(10) unsigned NOT NULL default '0',
`status` int(1) unsigned NOT NULL default '0',
`amount` varchar(10) NOT NULL default '',
`transid` int(10) unsigned default '0',
`settletime` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `orderid` (`orderid`),
KEY `transid` (`transid`)
) TYPE=MyISAM COMMENT='Authorize.net refunds';
-32
View File
@@ -1,32 +0,0 @@
CREATE TABLE prefix_enrol_authorize (
id SERIAL PRIMARY KEY,
paymentmethod varchar(6) default 'cc' NOT NULL,
cclastfour integer DEFAULT 0 NOT NULL,
ccname varchar(255) DEFAULT '',
courseid integer DEFAULT 0 NOT NULL,
userid integer DEFAULT 0 NOT NULL,
transid integer DEFAULT 0 NOT NULL,
status integer DEFAULT 0 NOT NULL,
timecreated integer DEFAULT 0 NOT NULL,
settletime integer DEFAULT 0 NOT NULL,
amount varchar(10) DEFAULT '0' NOT NULL,
currency varchar(3) DEFAULT 'USD' NOT NULL,
CONSTRAINT enroauth_pay_ck CHECK (paymentmethod IN ('cc', 'echeck'))
);
CREATE INDEX prefix_enrol_authorize_courseid_idx ON prefix_enrol_authorize(courseid);
CREATE INDEX prefix_enrol_authorize_userid_idx ON prefix_enrol_authorize(userid);
CREATE INDEX prefix_enrol_authorize_status_idx ON prefix_enrol_authorize(status);
CREATE INDEX prefix_enrol_authorize_transid_idx ON prefix_enrol_authorize(transid);
CREATE TABLE prefix_enrol_authorize_refunds (
id SERIAL PRIMARY KEY,
orderid integer DEFAULT 0 NOT NULL,
status integer DEFAULT 0 NOT NULL,
amount varchar(10) DEFAULT '' NOT NULL,
transid integer DEFAULT 0,
settletime integer DEFAULT 0 NOT NULL
);
CREATE INDEX prefix_enrol_authorize_refunds_orderid_idx ON prefix_enrol_authorize_refunds(orderid);
CREATE INDEX prefix_enrol_authorize_refunds_transid_idx ON prefix_enrol_authorize_refunds(transid);
-23
View File
@@ -1,23 +0,0 @@
CREATE TABLE `prefix_enrol_paypal` (
`id` int(10) unsigned NOT NULL auto_increment,
`business` varchar(255) NOT NULL default '',
`receiver_email` varchar(255) NOT NULL default '',
`receiver_id` varchar(255) NOT NULL default '',
`item_name` varchar(255) NOT NULL default '',
`courseid` int(10) unsigned NOT NULL default '0',
`userid` int(10) unsigned NOT NULL default '0',
`memo` varchar(255) NOT NULL default '',
`tax` varchar(255) NOT NULL default '',
`option_name1` varchar(255) NOT NULL default '',
`option_selection1_x` varchar(255) NOT NULL default '',
`option_name2` varchar(255) NOT NULL default '',
`option_selection2_x` varchar(255) NOT NULL default '',
`payment_status` varchar(255) NOT NULL default '',
`pending_reason` varchar(255) NOT NULL default '',
`reason_code` varchar(30) NOT NULL default '',
`txn_id` varchar(255) NOT NULL default '',
`parent_txn_id` varchar(255) NOT NULL default '',
`payment_type` varchar(30) NOT NULL default '',
`timeupdated` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM COMMENT='Holds all known information about PayPal transactions' ;
-22
View File
@@ -1,22 +0,0 @@
CREATE TABLE prefix_enrol_paypal (
id SERIAL PRIMARY KEY,
business varchar(255) NOT NULL default '',
receiver_email varchar(255) NOT NULL default '',
receiver_id varchar(255) NOT NULL default '',
item_name varchar(255) NOT NULL default '',
courseid integer NOT NULL default '0',
userid integer NOT NULL default '0',
memo varchar(255) NOT NULL default '',
tax varchar(255) NOT NULL default '',
option_name1 varchar(255) NOT NULL default '',
option_selection1_x varchar(255) NOT NULL default '',
option_name2 varchar(255) NOT NULL default '',
option_selection2_x varchar(255) NOT NULL default '',
payment_status varchar(255) NOT NULL default '',
pending_reason varchar(255) NOT NULL default '',
reason_code varchar(30) NOT NULL default '',
txn_id varchar(255) NOT NULL default '',
parent_txn_id varchar(255) NOT NULL default '',
payment_type varchar(30) NOT NULL default '',
timeupdated integer NOT NULL default '0'
);
-117
View File
@@ -1,117 +0,0 @@
# phpMyAdmin SQL Dump
# version 2.8.1
# http://www.phpmyadmin.net
#
# Host: localhost
# Generation Time: Oct 24, 2006 at 05:23 PM
# Server version: 5.0.21
# PHP Version: 4.4.2-pl1
#
# Database: `moodle`
#
# --------------------------------------------------------
#
# Table structure for table `mdl_groups_courses_groupings`
#
CREATE TABLE `prefix_groups_courses_groupings` (
`id` int(10) unsigned NOT NULL auto_increment,
`courseid` int(10) unsigned NOT NULL default '0',
`groupingid` mediumint(9) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`),
KEY `courseid` (`courseid`)
) ENGINE=MyISAM ;
# --------------------------------------------------------
#
# Table structure for table `prefix_groups_courses_groups`
#
CREATE TABLE `prefix_groups_courses_groups` (
`id` int(10) unsigned NOT NULL auto_increment,
`courseid` int(10) unsigned NOT NULL default '0',
`groupid` int(11) NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`),
KEY `courseid` (`courseid`)
) ENGINE=MyISAM ;
# --------------------------------------------------------
#
# Table structure for table `prefix_groups_groupings`
#
CREATE TABLE `prefix_groups_groupings` (
`id` int(10) unsigned NOT NULL auto_increment,
`name` varchar(254) NOT NULL,
`description` text NOT NULL default '',
`timecreated` int(10) unsigned NOT NULL default '0',
`viewowngroup` tinyint(1) NOT NULL default 1,
`viewallgroupsmembers` tinyint(1) NOT NULL default 0,
`viewallgroupsactivities` tinyint(1) NOT NULL default 0,
`teachersgroupmark` tinyint(1) NOT NULL default 0,
`teachersgroupview` binary(1) NOT NULL default 0,
`teachersoverride` binary(1) NOT NULL default 0,
`teacherdeletable` binary(1) NOT NULL default 0,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM ;
# --------------------------------------------------------
#
# Table structure for table `prefix_groups_groupings_groups`
#
CREATE TABLE `prefix_groups_groupings_groups` (
`id` int(10) unsigned NOT NULL auto_increment,
`groupingid` int(10) unsigned default '0',
`groupid` int(10) NOT NULL default '0',
`timeadded` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`),
KEY `courseid` (`groupingid`)
) ENGINE=MyISAM AUTO_INCREMENT=67 ;
# --------------------------------------------------------
#
# Table structure for table `prefix_groups`
#
CREATE TABLE `prefix_groups` (
`id` int(10) unsigned NOT NULL auto_increment,
`name` varchar(255) NOT NULL,
`description` text NOT NULL default '',
`enrolmentkey` varchar(50) NOT NULL default '',
`lang` varchar(10) NOT NULL default 'en',
`theme` varchar(50) NOT NULL default '',
`picture` int(10) unsigned NOT NULL default '0',
`hidepicture` int(1) unsigned NOT NULL default '0',
`timecreated` int(10) unsigned NOT NULL default '0',
`timemodified` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM ;
# --------------------------------------------------------
#
# Table structure for table `prefix_groups_members`
#
CREATE TABLE `prefix_groups_members` (
`id` int(10) unsigned NOT NULL auto_increment,
`groupid` int(10) unsigned NOT NULL default '0',
`userid` int(10) unsigned NOT NULL default '0',
`timeadded` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`),
KEY `groupid` (`groupid`),
KEY `userid` (`userid`)
) ENGINE=MyISAM ;
-65
View File
@@ -1,65 +0,0 @@
CREATE TABLE prefix_groups_courses_groupings (
id SERIAL PRIMARY KEY,
courseid integer NOT NULL default 0,
groupingid integer NOT NULL default 0
);
CREATE INDEX prefix_groups_courses_groupings_courseid_idx ON prefix_groups_courses_groupings (courseid);
COMMENT ON TABLE prefix_groups_courses_groupings IS 'New groupings (OU).';
CREATE TABLE prefix_groups_courses_groups (
id SERIAL PRIMARY KEY,
courseid integer NOT NULL default '0',
groupid integer NOT NULL default '0'
);
CREATE INDEX prefix_groups_courses_groups_courseid_idx ON prefix_groups_courses_groups (courseid);
CREATE TABLE prefix_groups_groupings (
id SERIAL PRIMARY KEY,
name varchar(254) NOT NULL,
description text NOT NULL default '',
timecreated integer NOT NULL default 0,
viewowngroup integer NOT NULL default 1,
viewallgroupsmembers integer NOT NULL default 0,
viewallgroupsactivities integer NOT NULL default 0,
teachersgroupmark integer NOT NULL default 0,
teachersgroupview integer NOT NULL default 0,
teachersoverride integer NOT NULL default 0
);
CREATE TABLE prefix_groups_groupings_groups (
id SERIAL PRIMARY KEY,
groupingid integer NOT NULL default 0,
groupid integer NOT NULL default 0,
timeadded integer NOT NULL default 0
);
CREATE INDEX prefix_groups_groupings_groups_groupingid_idx ON prefix_groups_groupings_groups (groupingid);
CREATE TABLE prefix_groups (
id SERIAL PRIMARY KEY,
name varchar(255) NOT NULL,
description text NOT NULL default '',
enrolmentkey varchar(50) NOT NULL default '',
lang varchar(10) NOT NULL default 'en',
theme varchar(50) NOT NULL default '',
picture integer NOT NULL default '0',
hidepicture integer NOT NULL default '0',
timecreated integer NOT NULL default '0',
timemodified integer NOT NULL default '0'
);
CREATE TABLE prefix_groups_members (
id SERIAL PRIMARY KEY,
groupid integer NOT NULL default '0',
userid integer NOT NULL default '0',
timeadded integer NOT NULL default '0'
);
CREATE INDEX prefix_groups_members_groupid_idx ON prefix_groups_members (groupid);
CREATE INDEX prefix_groups_members_userid_idx ON prefix_groups_members (userid);
COMMENT ON TABLE prefix_groups_members IS 'New groupings (OU).';
-1009
View File
File diff suppressed because it is too large Load Diff
-789
View File
@@ -1,789 +0,0 @@
CREATE TABLE prefix_config (
id SERIAL PRIMARY KEY,
name varchar(255) NOT NULL default '',
value text NOT NULL default '',
CONSTRAINT prefix_config_name_uk UNIQUE (name)
);
CREATE TABLE prefix_config_plugins (
id SERIAL PRIMARY KEY,
plugin varchar(100) NOT NULL default 'core',
name varchar(100) NOT NULL default '',
value text NOT NULL default '',
CONSTRAINT prefix_config_plugins_plugin_name_uk UNIQUE (plugin, name)
);
CREATE TABLE prefix_course (
id SERIAL PRIMARY KEY,
category integer NOT NULL default '0',
sortorder integer NOT NULL default '0',
password varchar(50) NOT NULL default '',
fullname varchar(254) NOT NULL default '',
shortname varchar(15) NOT NULL default '',
idnumber varchar(100) NOT NULL default '',
summary text NOT NULL default '',
format varchar(10) NOT NULL default 'topics',
showgrades integer NOT NULL default '1',
modinfo text,
newsitems integer NOT NULL default '1',
teacher varchar(100) NOT NULL default 'Teacher',
teachers varchar(100) NOT NULL default 'Teachers',
student varchar(100) NOT NULL default 'Student',
students varchar(100) NOT NULL default 'Students',
guest integer NOT NULL default '0',
startdate integer NOT NULL default '0',
enrolperiod integer NOT NULL default '0',
numsections integer NOT NULL default '1',
marker integer NOT NULL default '0',
maxbytes integer NOT NULL default '0',
showreports integer NOT NULL default '0',
visible integer NOT NULL default '1',
hiddensections integer NOT NULL default '0',
groupmode integer NOT NULL default '0',
groupmodeforce integer NOT NULL default '0',
lang varchar(10) NOT NULL default '',
theme varchar(50) NOT NULL default '',
cost varchar(10) NOT NULL default '',
currency varchar(3) NOT NULL default 'USD',
timecreated integer NOT NULL default '0',
timemodified integer NOT NULL default '0',
metacourse integer NOT NULL default '0',
requested integer NOT NULL default '0',
restrictmodules integer NOT NULL default '0',
expirynotify integer NOT NULL default '0',
expirythreshold integer NOT NULL default '0',
notifystudents integer NOT NULL default '0',
enrollable integer NOT NULL default '1',
enrolstartdate integer NOT NULL default '0',
enrolenddate integer NOT NULL default '0',
enrol varchar(20) NOT NULL default '',
defaultrole integer NOT NULL default '0'
);
CREATE UNIQUE INDEX prefix_course_category_sortorder_uk ON prefix_course (category,sortorder);
CREATE INDEX prefix_course_idnumber_idx ON prefix_course (idnumber);
CREATE INDEX prefix_course_shortname_idx ON prefix_course (shortname);
CREATE TABLE prefix_course_categories (
id SERIAL PRIMARY KEY,
name varchar(255) NOT NULL default '',
description text,
parent integer NOT NULL default '0',
sortorder integer NOT NULL default '0',
coursecount integer NOT NULL default '0',
visible integer NOT NULL default '1',
timemodified integer NOT NULL default '0',
depth integer NOT NULL default '0',
path varchar(255) NOT NULL default ''
);
CREATE TABLE prefix_course_display (
id SERIAL PRIMARY KEY,
course integer NOT NULL default '0',
userid integer NOT NULL default '0',
display integer NOT NULL default '0'
);
CREATE INDEX prefix_course_display_courseuserid_idx ON prefix_course_display (course,userid);
CREATE TABLE prefix_course_meta (
id SERIAL primary key,
parent_course integer NOT NULL,
child_course integer NOT NULL
);
CREATE INDEX prefix_course_meta_parent_idx ON prefix_course_meta (parent_course);
CREATE INDEX prefix_course_meta_child_idx ON prefix_course_meta (child_course);
CREATE TABLE prefix_course_modules (
id SERIAL PRIMARY KEY,
course integer NOT NULL default '0',
module integer NOT NULL default '0',
instance integer NOT NULL default '0',
section integer NOT NULL default '0',
added integer NOT NULL default '0',
score integer NOT NULL default '0',
indent integer NOT NULL default '0',
visible integer NOT NULL default '1',
visibleold integer NOT NULL default '1',
groupmode integer NOT NULL default '0'
);
CREATE INDEX prefix_course_modules_visible_idx ON prefix_course_modules (visible);
CREATE INDEX prefix_course_modules_course_idx ON prefix_course_modules (course);
CREATE INDEX prefix_course_modules_module_idx ON prefix_course_modules (module);
CREATE INDEX prefix_course_modules_instance_idx ON prefix_course_modules (instance);
CREATE TABLE prefix_course_sections (
id SERIAL PRIMARY KEY,
course integer NOT NULL default '0',
section integer NOT NULL default '0',
summary text,
sequence text,
visible integer NOT NULL default '1'
);
CREATE INDEX prefix_course_sections_coursesection_idx ON prefix_course_sections (course,section);
CREATE TABLE prefix_course_request (
id SERIAL PRIMARY KEY,
fullname varchar(254) NOT NULL default '',
shortname varchar(15) NOT NULL default '',
summary text NOT NULL default '',
reason text NOT NULL default '',
requester INTEGER NOT NULL default 0,
password varchar(50) NOT NULL default ''
);
CREATE INDEX prefix_course_request_shortname_idx ON prefix_course_request (shortname);
CREATE TABLE prefix_course_allowed_modules (
id SERIAL PRIMARY KEY,
course INTEGER NOT NULL default 0,
module INTEGER NOT NULL default 0
);
CREATE INDEX prefix_course_allowed_modules_course_idx ON prefix_course_allowed_modules (course);
CREATE INDEX prefix_course_allowed_modules_module_idx ON prefix_course_allowed_modules (module);
CREATE TABLE prefix_event (
id SERIAL PRIMARY KEY,
name varchar(255) NOT NULL default '',
description text,
format integer NOT NULL default '0',
courseid integer NOT NULL default '0',
groupid integer NOT NULL default '0',
userid integer NOT NULL default '0',
repeatid integer NOT NULL default '0',
modulename varchar(20) NOT NULL default '',
instance integer NOT NULL default '0',
eventtype varchar(20) NOT NULL default '',
timestart integer NOT NULL default '0',
timeduration integer NOT NULL default '0',
visible integer NOT NULL default '1',
uuid char(36) NOT NULL default '',
sequence integer NOT NULL default '1',
timemodified integer NOT NULL default '0'
);
CREATE INDEX prefix_event_courseid_idx ON prefix_event (courseid);
CREATE INDEX prefix_event_userid_idx ON prefix_event (userid);
CREATE INDEX prefix_event_timestart_idx ON prefix_event (timestart);
CREATE INDEX prefix_event_timeduration_idx ON prefix_event (timeduration);
CREATE TABLE prefix_grade_category (
id SERIAL PRIMARY KEY,
name varchar(64) default NULL,
courseid integer NOT NULL default '0',
drop_x_lowest integer NOT NULL default '0',
bonus_points integer NOT NULL default '0',
hidden integer NOT NULL default '0',
weight decimal(5,2) default '0.00'
);
CREATE INDEX prefix_grade_category_courseid_idx ON prefix_grade_category (courseid);
CREATE TABLE prefix_grade_exceptions (
id SERIAL PRIMARY KEY,
courseid integer NOT NULL default '0',
grade_itemid integer NOT NULL default '0',
userid integer NOT NULL default '0'
);
CREATE INDEX prefix_grade_exceptions_courseid_idx ON prefix_grade_exceptions (courseid);
CREATE TABLE prefix_grade_item (
id SERIAL PRIMARY KEY,
courseid integer default NULL,
category integer default NULL,
modid integer default NULL,
cminstance integer default NULL,
scale_grade float(11) default '1.0000000000',
extra_credit integer NOT NULL default '0',
sort_order integer NOT NULL default '0'
);
CREATE INDEX prefix_grade_item_courseid_idx ON prefix_grade_item (courseid);
CREATE TABLE prefix_grade_letter (
id SERIAL PRIMARY KEY,
courseid integer NOT NULL default '0',
letter varchar(8) NOT NULL default 'NA',
grade_high decimal(6,2) NOT NULL default '100.00',
grade_low decimal(6,2) NOT NULL default '0.00'
);
CREATE INDEX prefix_grade_letter_courseid_idx ON prefix_grade_letter (courseid);
CREATE TABLE prefix_grade_preferences (
id SERIAL PRIMARY KEY,
courseid integer default NULL,
preference integer NOT NULL default '0',
value integer NOT NULL default '0'
);
CREATE UNIQUE INDEX prefix_grade_prefs_courseidpref_uk ON prefix_grade_preferences (courseid,preference);
CREATE TABLE prefix_log (
id SERIAL PRIMARY KEY,
time integer NOT NULL default '0',
userid integer NOT NULL default '0',
ip varchar(15) NOT NULL default '',
course integer NOT NULL default '0',
module varchar(20) NOT NULL default '',
cmid integer NOT NULL default '0',
action varchar(40) NOT NULL default '',
url varchar(100) NOT NULL default '',
info varchar(255) NOT NULL default ''
);
CREATE INDEX prefix_log_coursemoduleaction_idx ON prefix_log (course,module,action);
CREATE INDEX prefix_log_timecoursemoduleaction_idx ON prefix_log (time,course,module,action);
CREATE INDEX prefix_log_courseuserid_idx ON prefix_log (course,userid);
CREATE INDEX prefix_log_userid_idx ON prefix_log (userid);
CREATE INDEX prefix_log_info_idx ON prefix_log (info);
CREATE TABLE prefix_log_display (
id SERIAL PRIMARY KEY,
module varchar(20) NOT NULL default '',
action varchar(40) NOT NULL default '',
mtable varchar(30) NOT NULL default '',
field varchar(200) NOT NULL default ''
);
CREATE INDEX prefix_log_display_moduleaction ON prefix_log_display (module,action);
CREATE TABLE prefix_message (
id SERIAL PRIMARY KEY,
useridfrom integer NOT NULL default '0',
useridto integer NOT NULL default '0',
message text,
format integer NOT NULL default '0',
timecreated integer NOT NULL default '0',
messagetype varchar(50) NOT NULL default ''
);
CREATE INDEX prefix_message_useridfrom_idx ON prefix_message (useridfrom);
CREATE INDEX prefix_message_useridto_idx ON prefix_message (useridto);
CREATE TABLE prefix_message_read (
id SERIAL PRIMARY KEY,
useridfrom integer NOT NULL default '0',
useridto integer NOT NULL default '0',
message text,
format integer NOT NULL default '0',
timecreated integer NOT NULL default '0',
timeread integer NOT NULL default '0',
messagetype varchar(50) NOT NULL default '',
mailed integer NOT NULL default '0'
);
CREATE INDEX prefix_message_read_useridfrom_idx ON prefix_message_read (useridfrom);
CREATE INDEX prefix_message_read_useridto_idx ON prefix_message_read (useridto);
CREATE TABLE prefix_message_contacts (
id SERIAL PRIMARY KEY,
userid integer NOT NULL default '0',
contactid integer NOT NULL default '0',
blocked integer NOT NULL default '0'
);
CREATE INDEX prefix_message_contacts_useridcontactid_idx ON prefix_message_contacts (userid,contactid);
CREATE TABLE prefix_modules (
id SERIAL PRIMARY KEY,
name varchar(20) NOT NULL default '',
version integer NOT NULL default '0',
cron integer NOT NULL default '0',
lastcron integer NOT NULL default '0',
search varchar(255) NOT NULL default '',
visible integer NOT NULL default '1'
);
CREATE INDEX prefix_modules_name_idx ON prefix_modules (name);
CREATE TABLE prefix_scale (
id SERIAL PRIMARY KEY,
courseid integer NOT NULL default '0',
userid integer NOT NULL default '0',
name varchar(255) NOT NULL default '',
scale text,
description text,
timemodified integer NOT NULL default '0'
);
CREATE TABLE prefix_sessions2 (
sesskey VARCHAR(255) NOT NULL default '',
expiry TIMESTAMP NOT NULL,
expireref VARCHAR(255),
created TIMESTAMP NOT NULL,
modified TIMESTAMP NOT NULL,
sessdata TEXT,
CONSTRAINT prefix_sess_ses_pk PRIMARY KEY (sesskey)
);
CREATE INDEX prefix_sess_exp_ix ON prefix_sessions2 (expiry);
CREATE INDEX prefix_sess_exp2_ix ON prefix_sessions2 (expireref);
CREATE TABLE prefix_timezone (
id SERIAL PRIMARY KEY,
name varchar(100) NOT NULL default '',
year integer NOT NULL default '0',
tzrule varchar(20) NOT NULL default '',
gmtoff integer NOT NULL default '0',
dstoff integer NOT NULL default '0',
dst_month integer NOT NULL default '0',
dst_startday integer NOT NULL default '0',
dst_weekday integer NOT NULL default '0',
dst_skipweeks integer NOT NULL default '0',
dst_time varchar(5) NOT NULL default '00:00',
std_month integer NOT NULL default '0',
std_startday integer NOT NULL default '0',
std_weekday integer NOT NULL default '0',
std_skipweeks integer NOT NULL default '0',
std_time varchar(5) NOT NULL default '00:00'
);
CREATE TABLE prefix_cache_filters (
id SERIAL PRIMARY KEY,
filter varchar(32) NOT NULL default '',
version integer NOT NULL default '0',
md5key varchar(32) NOT NULL default '',
rawtext text,
timemodified integer NOT NULL default '0'
);
CREATE INDEX prefix_cache_filters_filtermd5key_idx ON prefix_cache_filters (filter,md5key);
CREATE INDEX prefix_scale_courseid_idx ON prefix_scale (courseid);
CREATE TABLE prefix_cache_text (
id SERIAL PRIMARY KEY,
md5key varchar(32) NOT NULL default '',
formattedtext text,
timemodified integer NOT NULL default '0'
);
CREATE INDEX prefix_cache_text_md5key_idx ON prefix_cache_text (md5key);
--
-- Table structure for table `user`
--
-- When updating field length, modify
-- truncate_userinfo() in moodlelib.php
--
CREATE TABLE prefix_user (
id SERIAL PRIMARY KEY,
auth varchar(20) NOT NULL default 'manual',
confirmed integer NOT NULL default '0',
policyagreed integer NOT NULL default '0',
deleted integer NOT NULL default '0',
username varchar(100) NOT NULL default '',
password varchar(32) NOT NULL default '',
idnumber varchar(64) default NULL,
firstname varchar(20) NOT NULL default '',
lastname varchar(20) NOT NULL default '',
email varchar(100) NOT NULL default '',
emailstop integer NOT NULL default '0',
icq varchar(15) default NULL,
skype varchar(50) default NULL,
yahoo varchar(50) default NULL,
aim varchar(50) default NULL,
msn varchar(50) default NULL,
phone1 varchar(20) default NULL,
phone2 varchar(20) default NULL,
institution varchar(40) default NULL,
department varchar(30) default NULL,
address varchar(70) default NULL,
city varchar(20) default NULL,
country char(2) default NULL,
lang varchar(10) NOT NULL default '',
theme varchar(50) NOT NULL default '',
timezone varchar(100) NOT NULL default '99',
firstaccess integer NOT NULL default '0',
lastaccess integer NOT NULL default '0',
lastlogin integer NOT NULL default '0',
currentlogin integer NOT NULL default '0',
lastip varchar(15) default NULL,
secret varchar(15) default NULL,
picture integer default NULL,
url varchar(255) default NULL,
description text,
mailformat integer NOT NULL default '1',
maildigest integer NOT NULL default '0',
maildisplay integer NOT NULL default '2',
htmleditor integer NOT NULL default '1',
ajax integer NOT NULL default '1',
autosubscribe integer NOT NULL default '1',
trackforums integer NOT NULL default '0',
timemodified integer NOT NULL default '0'
);
CREATE UNIQUE INDEX prefix_user_username_uk ON prefix_user (username);
CREATE INDEX prefix_user_idnumber_idx ON prefix_user (idnumber);
CREATE INDEX prefix_user_auth_idx ON prefix_user (auth);
CREATE INDEX prefix_user_deleted_idx ON prefix_user (deleted);
CREATE INDEX prefix_user_confirmed_idx ON prefix_user (confirmed);
CREATE INDEX prefix_user_firstname_idx ON prefix_user (firstname);
CREATE INDEX prefix_user_lastname_idx ON prefix_user (lastname);
CREATE INDEX prefix_user_city_idx ON prefix_user (city);
CREATE INDEX prefix_user_country_idx ON prefix_user (country);
CREATE INDEX prefix_user_lastaccess_idx ON prefix_user (lastaccess);
CREATE INDEX prefix_user_email_idx ON prefix_user (email);
CREATE TABLE prefix_user_admins (
id SERIAL PRIMARY KEY,
userid integer NOT NULL default '0'
);
CREATE INDEX prefix_user_admins_userid_idx ON prefix_user_admins (userid);
CREATE TABLE prefix_user_preferences (
id SERIAL PRIMARY KEY,
userid integer NOT NULL default '0',
name varchar(50) NOT NULL default '',
value varchar(255) NOT NULL default ''
);
CREATE INDEX prefix_user_preferences_useridname_idx ON prefix_user_preferences (userid,name);
CREATE TABLE prefix_user_students (
id SERIAL PRIMARY KEY,
userid integer NOT NULL default '0',
course integer NOT NULL default '0',
timestart integer NOT NULL default '0',
timeend integer NOT NULL default '0',
time integer NOT NULL default '0',
timeaccess integer NOT NULL default '0',
enrol varchar (20) NOT NULL default ''
);
CREATE UNIQUE INDEX prefix_user_students_courseuserid_uk ON prefix_user_students (course,userid);
CREATE INDEX prefix_user_students_userid_idx ON prefix_user_students (userid);
CREATE INDEX prefix_user_students_enrol_idx ON prefix_user_students (enrol);
CREATE INDEX prefix_user_students_timeaccess_idx ON prefix_user_students (timeaccess);
CREATE TABLE prefix_user_teachers (
id SERIAL PRIMARY KEY,
userid integer NOT NULL default '0',
course integer NOT NULL default '0',
authority integer NOT NULL default '3',
role varchar(40) NOT NULL default '',
editall integer NOT NULL default '1',
timestart integer NOT NULL default '0',
timeend integer NOT NULL default '0',
timemodified integer NOT NULL default '0',
timeaccess integer NOT NULL default '0',
enrol varchar (20) NOT NULL default ''
);
CREATE UNIQUE INDEX prefix_user_teachers_courseuserid_uk ON prefix_user_teachers (course,userid);
CREATE INDEX prefix_user_teachers_userid_idx ON prefix_user_teachers (userid);
CREATE INDEX prefix_user_teachers_enrol_idx ON prefix_user_teachers (enrol);
CREATE TABLE prefix_user_coursecreators (
id SERIAL8 PRIMARY KEY,
userid int8 NOT NULL default '0'
);
CREATE INDEX prefix_user_coursecreators_userid_idx ON prefix_user_coursecreators (userid);
CREATE TABLE adodb_logsql (
created timestamp NOT NULL,
sql0 varchar(250) NOT NULL,
sql1 text NOT NULL,
params text NOT NULL,
tracer text NOT NULL,
timer decimal(16,6) NOT NULL
);
CREATE TABLE prefix_stats_daily (
id SERIAL PRIMARY KEY,
courseid INTEGER NOT NULL default 0,
roleid INTEGER NOT NULL default 0,
timeend INTEGER NOT NULL default 0,
stattype varchar(20) NOT NULL default 'activity',
stat1 INTEGER NOT NULL default 0,
stat2 INTEGER NOT NULL default 0,
CHECK (stattype::text = 'enrolments' OR stattype::text = 'activity' OR stattype::text = 'logins')
);
CREATE INDEX prefix_stats_daily_courseid_idx ON prefix_stats_daily (courseid);
CREATE INDEX prefix_stats_daily_timeend_idx ON prefix_stats_daily (timeend);
CREATE TABLE prefix_stats_weekly (
id SERIAL PRIMARY KEY,
courseid INTEGER NOT NULL default 0,
roleid INTEGER NOT NULL default 0,
timeend INTEGER NOT NULL default 0,
stattype varchar(20) NOT NULL default 'activity',
stat1 INTEGER NOT NULL default 0,
stat2 INTEGER NOT NULL default 0,
CHECK (stattype::text = 'enrolments' OR stattype::text = 'activity' OR stattype::text = 'logins')
);
CREATE INDEX prefix_stats_weekly_courseid_idx ON prefix_stats_weekly (courseid);
CREATE INDEX prefix_stats_weekly_timeend_idx ON prefix_stats_weekly (timeend);
CREATE TABLE prefix_stats_monthly (
id SERIAL PRIMARY KEY,
courseid INTEGER NOT NULL default 0,
roleid INTEGER NOT NULL default 0,
timeend INTEGER NOT NULL default 0,
stattype varchar(20) NOT NULL default 'activity',
stat1 INTEGER NOT NULL default 0,
stat2 INTEGER NOT NULL default 0,
CHECK (stattype::text = 'enrolments' OR stattype::text = 'activity' OR stattype::text = 'logins')
);
CREATE INDEX prefix_stats_monthly_courseid_idx ON prefix_stats_monthly (courseid);
CREATE INDEX prefix_stats_monthly_timeend_idx ON prefix_stats_monthly (timeend);
CREATE TABLE prefix_stats_user_daily (
id SERIAL PRIMARY KEY,
courseid INTEGER NOT NULL default 0,
userid INTEGER NOT NULL default 0,
roleid INTEGER NOT NULL default 0,
timeend INTEGER NOT NULL default 0,
statsreads INTEGER NOT NULL default 0,
statswrites INTEGER NOT NULL default 0,
stattype varchar(30) NOT NULL default ''
);
CREATE INDEX prefix_stats_user_daily_courseid_idx ON prefix_stats_user_daily (courseid);
CREATE INDEX prefix_stats_user_daily_userid_idx ON prefix_stats_user_daily (userid);
CREATE INDEX prefix_stats_user_daily_roleid_idx ON prefix_stats_user_daily (roleid);
CREATE INDEX prefix_stats_user_daily_timeend_idx ON prefix_stats_user_daily (timeend);
CREATE TABLE prefix_stats_user_weekly (
id SERIAL PRIMARY KEY,
courseid INTEGER NOT NULL default 0,
userid INTEGER NOT NULL default 0,
roleid INTEGER NOT NULL default 0,
timeend INTEGER NOT NULL default 0,
statsreads INTEGER NOT NULL default 0,
statswrites INTEGER NOT NULL default 0,
stattype varchar(30) NOT NULL default ''
);
CREATE INDEX prefix_stats_user_weekly_courseid_idx ON prefix_stats_user_weekly (courseid);
CREATE INDEX prefix_stats_user_weekly_userid_idx ON prefix_stats_user_weekly (userid);
CREATE INDEX prefix_stats_user_weekly_roleid_idx ON prefix_stats_user_weekly (roleid);
CREATE INDEX prefix_stats_user_weekly_timeend_idx ON prefix_stats_user_weekly (timeend);
CREATE TABLE prefix_stats_user_monthly (
id SERIAL PRIMARY KEY,
courseid INTEGER NOT NULL default 0,
userid INTEGER NOT NULL default 0,
roleid INTEGER NOT NULL default 0,
timeend INTEGER NOT NULL default 0,
statsreads INTEGER NOT NULL default 0,
statswrites INTEGER NOT NULL default 0,
stattype varchar(30) NOT NULL default ''
);
CREATE INDEX prefix_stats_user_monthly_courseid_idx ON prefix_stats_user_monthly (courseid);
CREATE INDEX prefix_stats_user_monthly_userid_idx ON prefix_stats_user_monthly (userid);
CREATE INDEX prefix_stats_user_monthly_roleid_idx ON prefix_stats_user_monthly (roleid);
CREATE INDEX prefix_stats_user_monthly_timeend_idx ON prefix_stats_user_monthly (timeend);
CREATE TABLE prefix_post (
id SERIAL PRIMARY KEY,
module varchar(20) NOT NULL default '',
userid INTEGER NOT NULL default 0,
courseid INTEGER NOT NULL default 0,
groupid INTEGER NOT NULL default 0,
moduleid INTEGER NOT NULL default 0,
coursemoduleid INTEGER NOT NULL default 0,
subject varchar(128) NOT NULL default '',
summary text,
content text,
uniquehash varchar(128) NOT NULL default '',
rating INTEGER NOT NULL default 0,
format INTEGER NOT NULL default 0,
publishstate varchar(10) CHECK (publishstate IN ('draft','site','public')) NOT NULL default 'draft',
lastmodified INTEGER NOT NULL default '0',
created INTEGER NOT NULL default '0'
);
CREATE INDEX prefix_id_user_idx ON prefix_post (id, courseid);
CREATE INDEX prefix_post_lastmodified_idx ON prefix_post (lastmodified);
CREATE INDEX prefix_post_module_idx ON prefix_post (moduleid);
CREATE INDEX prefix_post_subject_idx ON prefix_post (subject);
CREATE TABLE prefix_tags (
id SERIAL PRIMARY KEY,
type varchar(255) NOT NULL default 'official',
userid INTEGER NOT NULL default 0,
text varchar(255) NOT NULL default ''
);
CREATE INDEX prefix_tags_typeuserid_idx ON prefix_tags (type, userid);
CREATE INDEX prefix_tags_text_idx ON prefix_tags (text);
CREATE TABLE prefix_blog_tag_instance (
id SERIAL PRIMARY KEY,
entryid integer NOT NULL default 0,
tagid integer NOT NULL default 0,
groupid integer NOT NULL default 0,
courseid integer NOT NULL default 0,
userid integer NOT NULL default 0,
timemodified integer NOT NULL default 0
);
CREATE INDEX prefix_bti_entryid_idx ON prefix_blog_tag_instance (entryid);
CREATE INDEX prefix_bti_tagid_idx ON prefix_blog_tag_instance (tagid);
# Roles tables
CREATE TABLE prefix_role (
id SERIAL PRIMARY KEY,
name varchar(255) NOT NULL default '',
shortname varchar(100) NOT NULL default '',
description text NOT NULL default '',
sortorder integer NOT NULL default '0'
);
CREATE INDEX prefix_role_sortorder_idx ON prefix_role (sortorder);
CREATE TABLE prefix_context (
id SERIAL PRIMARY KEY,
contextlevel integer NOT NULL default 0,
instanceid integer NOT NULL default 0
);
CREATE INDEX prefix_context_instanceid_idx ON prefix_context (instanceid);
CREATE UNIQUE INDEX prefix_context_contextlevelinstanceid_idx ON prefix_context (contextlevel, instanceid);
CREATE TABLE prefix_role_assignments (
id SERIAL PRIMARY KEY,
roleid integer NOT NULL default 0,
contextid integer NOT NULL default 0,
userid integer NOT NULL default 0,
hidden integer NOT NULL default 0,
timestart integer NOT NULL default 0,
timeend integer NOT NULL default 0,
timemodified integer NOT NULL default 0,
modifierid integer NOT NULL default 0,
enrol varchar(20) NOT NULL default '',
sortorder integer NOT NULL default '0'
);
CREATE INDEX prefix_role_assignments_roleid_idx ON prefix_role_assignments (roleid);
CREATE INDEX prefix_role_assignments_contextidid_idx ON prefix_role_assignments (contextid);
CREATE INDEX prefix_role_assignments_userid_idx ON prefix_role_assignments (userid);
CREATE UNIQUE INDEX prefix_role_assignments_contextidroleiduserid_idx ON prefix_role_assignments (contextid, roleid, userid);
CREATE INDEX prefix_role_assignments_sortorder_idx ON prefix_role_assignments (sortorder);
CREATE TABLE prefix_role_capabilities (
id SERIAL PRIMARY KEY,
contextid integer NOT NULL default 0,
roleid integer NOT NULL default 0,
capability varchar(255) NOT NULL default '',
permission integer NOT NULL default 0,
timemodified integer NOT NULL default 0,
modifierid integer NOT NULL default 0
);
CREATE INDEX prefix_role_capabilities_roleid_idx ON prefix_role_capabilities (roleid);
CREATE INDEX prefix_role_capabilities_contextid_idx ON prefix_role_capabilities (contextid);
CREATE INDEX prefix_role_capabilities_modifierid_idx ON prefix_role_capabilities (modifierid);
CREATE UNIQUE INDEX prefix_role_capabilities_roleidcontextidcapability_idx ON prefix_role_capabilities (roleid, contextid, capability);
CREATE TABLE prefix_role_allow_assign (
id SERIAL PRIMARY KEY,
roleid integer NOT NULL default '0',
allowassign integer NOT NULL default '0'
);
CREATE INDEX prefix_role_allow_assign_roleid_idx ON prefix_role_allow_assign (roleid);
CREATE INDEX prefix_role_allow_assign_allowassign_idx ON prefix_role_allow_assign (allowassign);
CREATE UNIQUE INDEX prefix_role_allow_assign_roleidallowassign_idx ON prefix_role_allow_assign (roleid, allowassign);
CREATE TABLE prefix_role_allow_override (
id SERIAL PRIMARY KEY,
roleid integer NOT NULL default '0',
allowoverride integer NOT NULL default '0'
);
CREATE INDEX prefix_role_allow_override_roleid_idx ON prefix_role_allow_override (roleid);
CREATE INDEX prefix_role_allow_override_allowoverride_idx ON prefix_role_allow_override (allowoverride);
CREATE UNIQUE INDEX prefix_role_allow_override_roleidallowoverride_idx ON prefix_role_allow_override (roleid, allowoverride);
CREATE TABLE prefix_capabilities (
id SERIAL PRIMARY KEY,
name varchar(255) NOT NULL default '',
captype varchar(50) NOT NULL default '',
contextlevel integer NOT NULL default 0,
component varchar(100) NOT NULL default '',
riskbitmask integer NOT NULL default 0
);
CREATE UNIQUE INDEX prefix_capabilities_name_idx ON prefix_capabilities (name);
CREATE TABLE prefix_role_names (
id SERIAL PRIMARY KEY,
roleid integer NOT NULL default 0,
contextid integer NOT NULL default 0,
text text NOT NULL default ''
);
CREATE INDEX prefix_role_names_roleid_idx ON prefix_role_names (roleid);
CREATE INDEX prefix_role_names_contextid_idx ON prefix_role_names (contextid);
CREATE UNIQUE INDEX prefix_role_names_roleidcontextid_idx ON prefix_role_names (roleid, contextid);
CREATE TABLE prefix_user_lastaccess (
id SERIAL PRIMARY KEY,
userid integer NOT NULL default 0,
courseid integer NOT NULL default 0,
timeaccess integer NOT NULL default 0
);
CREATE INDEX prefix_user_lastaccess_userid_idx ON prefix_user_lastaccess (userid);
CREATE INDEX prefix_user_lastaccess_courseid_idx ON prefix_user_lastaccess (courseid);
CREATE UNIQUE INDEX prefix_user_lastaccess_useridcourseid_idx ON prefix_user_lastaccess (userid, courseid);
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('user', 'view', 'user', 'firstname||\' \'||lastname');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('course', 'user report', 'user', 'firstname||\' \'||lastname');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('course', 'view', 'course', 'fullname');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('course', 'update', 'course', 'fullname');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('course', 'enrol', 'course', 'fullname');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('course', 'report log', 'course', 'fullname');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('course', 'report live', 'course', 'fullname');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('course', 'report outline', 'course', 'fullname');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('course', 'report participation', 'course', 'fullname');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('course', 'report stats', 'course', 'fullname');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('message', 'write', 'user', 'firstname||\' \'||lastname');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('message', 'read', 'user', 'firstname||\' \'||lastname');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('message', 'add contact', 'user', 'firstname||\' \'||lastname');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('message', 'remove contact', 'user', 'firstname||\' \'||lastname');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('message', 'block contact', 'user', 'firstname||\' \'||lastname');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('message', 'unblock contact', 'user', 'firstname||\' \'||lastname');
CREATE TABLE prefix_user_info_field (
id BIGSERIAL,
name VARCHAR(255) NOT NULL default '',
datatype VARCHAR(255) NOT NULL default '',
categoryid BIGINT NOT NULL default 0,
sortorder BIGINT NOT NULL default 0,
required SMALLINT NOT NULL default 0,
locked SMALLINT NOT NULL default 0,
visible SMALLINT NOT NULL default 0,
defaultdata TEXT,
CONSTRAINT prefix_userinfofiel_id_pk PRIMARY KEY (id)
);
COMMENT ON TABLE prefix_user_info_field IS 'Customisable user profile fields';
CREATE TABLE prefix_user_info_category (
id BIGSERIAL,
name VARCHAR(255) NOT NULL default '',
sortorder BIGINT NOT NULL default 0,
CONSTRAINT prefix_userinfocate_id_pk PRIMARY KEY (id)
);
COMMENT ON TABLE prefix_user_info_category IS 'Customisable fields categories';
CREATE TABLE prefix_user_info_data (
id BIGSERIAL,
userid BIGINT NOT NULL default 0,
fieldid BIGINT NOT NULL default 0,
data TEXT NOT NULL,
CONSTRAINT prefix_userinfodata_id_pk PRIMARY KEY (id)
);
COMMENT ON TABLE prefix_user_info_data IS 'Data for the customisable user fields';
-63
View File
@@ -1,63 +0,0 @@
#
# Table structure for table `assignment`
#
CREATE TABLE `prefix_assignment` (
`id` int(10) unsigned NOT NULL auto_increment,
`course` int(10) unsigned NOT NULL default '0',
`name` varchar(255) NOT NULL default '',
`description` text NOT NULL default '',
`format` tinyint(4) unsigned NOT NULL default '0',
`assignmenttype` varchar(50) NOT NULL default '',
`resubmit` tinyint(2) unsigned NOT NULL default '0',
`preventlate` tinyint(2) unsigned NOT NULL default '0',
`emailteachers` tinyint(2) unsigned NOT NULL default '0',
`var1` int(10) default '0',
`var2` int(10) default '0',
`var3` int(10) default '0',
`var4` int(10) default '0',
`var5` int(10) default '0',
`maxbytes` int(10) unsigned NOT NULL default '100000',
`timedue` int(10) unsigned NOT NULL default '0',
`timeavailable` int(10) unsigned NOT NULL default '0',
`grade` int(10) NOT NULL default '0',
`timemodified` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `course` (`course`)
) COMMENT='Defines assignments';
# --------------------------------------------------------
#
# Table structure for table `assignment_submissions`
#
CREATE TABLE `prefix_assignment_submissions` (
`id` int(10) unsigned NOT NULL auto_increment,
`assignment` int(10) unsigned NOT NULL default '0',
`userid` int(10) unsigned NOT NULL default '0',
`timecreated` int(10) unsigned NOT NULL default '0',
`timemodified` int(10) unsigned NOT NULL default '0',
`numfiles` int(10) unsigned NOT NULL default '0',
`data1` text NOT NULL default '',
`data2` text NOT NULL default '',
`grade` int(11) NOT NULL default '0',
`submissioncomment` text NOT NULL default '',
`format` tinyint(4) unsigned NOT NULL default '0',
`teacher` int(10) unsigned NOT NULL default '0',
`timemarked` int(10) unsigned NOT NULL default '0',
`mailed` tinyint(1) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `assignment` (`assignment`),
KEY `userid` (`userid`),
KEY `mailed` (`mailed`),
KEY `timemarked` (`timemarked`)
) COMMENT='Info about submitted assignments';
# --------------------------------------------------------
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('assignment', 'view', 'assignment', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('assignment', 'add', 'assignment', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('assignment', 'update', 'assignment', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('assignment', 'view submission', 'assignment', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('assignment', 'upload', 'assignment', 'name');
-66
View File
@@ -1,66 +0,0 @@
#
# Table structure for table assignment
#
CREATE TABLE prefix_assignment (
id SERIAL PRIMARY KEY,
course integer NOT NULL default '0',
name varchar(255) NOT NULL default '',
description text NOT NULL default '',
format integer NOT NULL default '0',
assignmenttype varchar(50) NOT NULL default '',
resubmit integer NOT NULL default '0',
preventlate integer NOT NULL default '0',
emailteachers integer NOT NULL default '0',
var1 integer default '0',
var2 integer default '0',
var3 integer default '0',
var4 integer default '0',
var5 integer default '0',
maxbytes integer NOT NULL default '100000',
timedue integer NOT NULL default '0',
timeavailable integer NOT NULL default '0',
grade integer NOT NULL default '0',
timemodified integer NOT NULL default '0'
);
CREATE INDEX prefix_assignment_course_idx ON prefix_assignment (course);
# --------------------------------------------------------
#
# Table structure for table assignment_submissions
#
CREATE TABLE prefix_assignment_submissions (
id SERIAL PRIMARY KEY,
assignment integer NOT NULL default '0',
userid integer NOT NULL default '0',
timecreated integer NOT NULL default '0',
timemodified integer NOT NULL default '0',
numfiles integer NOT NULL default '0',
data1 text NOT NULL default '',
data2 text NOT NULL default '',
grade integer NOT NULL default '0',
submissioncomment text NOT NULL default '',
format integer NOT NULL default '0',
teacher integer NOT NULL default '0',
timemarked integer NOT NULL default '0',
mailed integer NOT NULL default '0'
);
CREATE INDEX prefix_assignment_submissions_assignment_idx ON prefix_assignment_submissions (assignment);
CREATE INDEX prefix_assignment_submissions_userid_idx ON prefix_assignment_submissions (userid);
CREATE INDEX prefix_assignment_submissions_mailed_idx ON prefix_assignment_submissions (mailed);
CREATE INDEX prefix_assignment_submissions_timemarked_idx ON prefix_assignment_submissions (timemarked);
# --------------------------------------------------------
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('assignment', 'view', 'assignment', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('assignment', 'add', 'assignment', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('assignment', 'update', 'assignment', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('assignment', 'view submission', 'assignment', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('assignment', 'upload', 'assignment', 'name');
-70
View File
@@ -1,70 +0,0 @@
#
# Table structure for table `chat`
#
CREATE TABLE `prefix_chat` (
`id` int(10) unsigned NOT NULL auto_increment,
`course` int(10) unsigned NOT NULL default '0',
`name` varchar(255) NOT NULL default '',
`intro` text NOT NULL default '',
`keepdays` int(11) NOT NULL default '0',
`studentlogs` int(4) NOT NULL default '0',
`chattime` int(10) unsigned NOT NULL default '0',
`schedule` int(4) NOT NULL default '0',
`timemodified` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `course` (`course`)
) TYPE=MyISAM COMMENT='Each of these is a chat room';
# --------------------------------------------------------
#
# Table structure for table `chat_messages`
#
CREATE TABLE `prefix_chat_messages` (
`id` int(10) unsigned NOT NULL auto_increment,
`chatid` int(10) NOT NULL default '0',
`userid` int(10) NOT NULL default '0',
`groupid` int(10) NOT NULL default '0',
`system` int(1) unsigned NOT NULL default '0',
`message` text NOT NULL default '',
`timestamp` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `timemodifiedchat` (`timestamp`,`chatid`),
KEY `chatid` (`chatid`),
KEY `userid` (`userid`),
KEY `groupid` (`groupid`)
) TYPE=MyISAM COMMENT='Stores all the actual chat messages';
# --------------------------------------------------------
#
# Table structure for table `chat_users`
#
CREATE TABLE `prefix_chat_users` (
`id` int(10) unsigned NOT NULL auto_increment,
`chatid` int(11) NOT NULL default '0',
`userid` int(11) NOT NULL default '0',
`groupid` int(11) NOT NULL default '0',
`version` varchar(16) NOT NULL default '',
`ip` varchar(15) NOT NULL default '',
`firstping` int(10) unsigned NOT NULL default '0',
`lastping` int(10) unsigned NOT NULL default '0',
`lastmessageping` int(10) unsigned NOT NULL default '0',
`sid` varchar(32) NOT NULL default '',
`course` int(10) NOT NULL default '0',
`lang` varchar(10) NOT NULL default '',
PRIMARY KEY (`id`),
KEY `userid` (`userid`),
KEY `lastping` (`lastping`),
KEY `chatid` (`chatid`),
KEY `groupid` (`groupid`)
) TYPE=MyISAM COMMENT='Keeps track of which users are in which chat rooms';
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('chat', 'view', 'chat', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('chat', 'add', 'chat', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('chat', 'update', 'chat', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('chat', 'report', 'chat', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('chat', 'talk', 'chat', 'name');
-73
View File
@@ -1,73 +0,0 @@
#
# Table structure for table `chat`
#
CREATE TABLE prefix_chat (
id SERIAL,
course INTEGER NOT NULL default '0',
name varchar(255) NOT NULL default '',
intro text NOT NULL default '',
keepdays INTEGER NOT NULL default '0',
studentlogs INTEGER NOT NULL default '0',
chattime INTEGER NOT NULL default '0',
schedule INTEGER NOT NULL default '0',
timemodified INTEGER NOT NULL default '0',
PRIMARY KEY (id)
);
CREATE INDEX prefix_chat_course_idx ON prefix_chat(course);
# --------------------------------------------------------
#
# Table structure for table `chat_messages`
#
CREATE TABLE prefix_chat_messages (
id SERIAL,
chatid integer NOT NULL default '0',
userid integer NOT NULL default '0',
groupid integer NOT NULL default '0',
system integer NOT NULL default '0',
message text NOT NULL default '',
timestamp integer NOT NULL default '0',
PRIMARY KEY (id)
);
CREATE INDEX prefix_chat_messages_chatid_idx ON prefix_chat_messages (chatid);
CREATE INDEX prefix_chat_messages_userid_idx ON prefix_chat_messages (userid);
CREATE INDEX prefix_chat_messages_groupid_idx ON prefix_chat_messages (groupid);
CREATE INDEX prefix_chat_messages_timemodifiedchatid_idx ON prefix_chat_messages(timestamp,chatid);
# --------------------------------------------------------
#
# Table structure for table `chat_users`
#
CREATE TABLE prefix_chat_users (
id SERIAL,
chatid integer NOT NULL default '0',
userid integer NOT NULL default '0',
groupid integer NOT NULL default '0',
version varchar(16) NOT NULL default '',
ip varchar(15) NOT NULL default '',
firstping integer NOT NULL default '0',
lastping integer NOT NULL default '0',
lastmessageping integer NOT NULL default '0',
sid varchar(32) NOT NULL default '',
course integer NOT NULL default '0',
lang varchar(10) NOT NULL default '',
PRIMARY KEY (id)
);
CREATE INDEX prefix_chat_users_chatid_idx ON prefix_chat_users (chatid);
CREATE INDEX prefix_chat_users_userid_idx ON prefix_chat_users (userid);
CREATE INDEX prefix_chat_users_groupid_idx ON prefix_chat_users (groupid);
CREATE INDEX prefix_chat_users_lastping_idx ON prefix_chat_users (lastping);
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('chat', 'view', 'chat', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('chat', 'add', 'chat', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('chat', 'update', 'chat', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('chat', 'report', 'chat', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('chat', 'talk', 'chat', 'name');
-85
View File
@@ -1,85 +0,0 @@
# phpMyAdmin MySQL-Dump
# version 2.2.1
# http://phpwizard.net/phpMyAdmin/
# http://phpmyadmin.sourceforge.net/ (download page)
#
# Host: localhost
# Generation Time: Nov 14, 2001 at 04:44 PM
# Server version: 3.23.36
# PHP Version: 4.0.6
# Database : `moodle`
# --------------------------------------------------------
#
# Table structure for table `choice`
#
CREATE TABLE prefix_choice (
id int(10) unsigned NOT NULL auto_increment,
course int(10) unsigned NOT NULL default '0',
name varchar(255) NOT NULL default '',
text text NOT NULL default '',
format tinyint(2) unsigned NOT NULL default '0',
publish tinyint(2) unsigned NOT NULL default '0',
showresults tinyint(2) unsigned NOT NULL default '0',
display tinyint(4) unsigned NOT NULL default '0',
allowupdate tinyint(2) unsigned NOT NULL default '0',
showunanswered tinyint(2) unsigned NOT NULL default '0',
limitanswers tinyint(2) unsigned NOT NULL default '0',
timeopen int(10) unsigned NOT NULL default '0',
timeclose int(10) unsigned NOT NULL default '0',
timemodified int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id),
UNIQUE KEY id (id),
KEY course (course)
) TYPE=MyISAM COMMENT='Available choices are stored here.';
# --------------------------------------------------------
#
# Table structure for table `choice_answers`
#
CREATE TABLE prefix_choice_answers (
id int(10) unsigned NOT NULL auto_increment,
choiceid int(10) unsigned NOT NULL default '0',
userid int(10) unsigned NOT NULL default '0',
optionid int(10) NOT NULL default '0',
timemodified int(10) NOT NULL default '0',
PRIMARY KEY (id),
UNIQUE KEY id (id),
KEY userid (userid),
KEY choiceid (choiceid)
) TYPE=MyISAM;
# --------------------------------------------------------
#
# Table structure for table `choice_options`
#
CREATE TABLE prefix_choice_options (
id int(10) unsigned NOT NULL auto_increment,
choiceid int(10) unsigned NOT NULL default '0',
`text` text default '',
maxanswers int(10) unsigned NULL default '0',
timemodified int(10) NOT NULL default '0',
PRIMARY KEY (id),
UNIQUE KEY id (id),
KEY choiceid (choiceid)
) TYPE=MyISAM;
#
# Dumping data for table `log_display`
#
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('choice', 'view', 'choice', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('choice', 'update', 'choice', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('choice', 'add', 'choice', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('choice', 'report', 'choice', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('choice', 'choose', 'choice', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('choice', 'choose again', 'choice', 'name');
-79
View File
@@ -1,79 +0,0 @@
# phpMyAdmin MySQL-Dump
# version 2.2.1
# http://phpwizard.net/phpMyAdmin/
# http://phpmyadmin.sourceforge.net/ (download page)
#
# Host: localhost
# Generation Time: Nov 14, 2001 at 04:44 PM
# Server version: 3.23.36
# PHP Version: 4.0.6
# Database : `moodle`
# --------------------------------------------------------
#
# Table structure for table `choice`
#
CREATE TABLE prefix_choice (
id SERIAL PRIMARY KEY,
course integer NOT NULL default '0',
name varchar(255) NOT NULL default '',
text text NOT NULL default '',
format integer NOT NULL default '0',
showunanswered integer NOT NULL default '0',
limitanswers integer NOT NULL default '0',
publish integer NOT NULL default '0',
showresults integer NOT NULL default '0',
display integer NOT NULL default '0',
allowupdate integer NOT NULL default '0',
timeopen integer NOT NULL default '0',
timeclose integer NOT NULL default '0',
timemodified integer NOT NULL default '0'
);
CREATE INDEX prefix_choice_course_idx ON prefix_choice (course);
# --------------------------------------------------------
#
# Table structure for table `choice_answers`
#
CREATE TABLE prefix_choice_answers (
id SERIAL PRIMARY KEY,
choiceid integer NOT NULL default '0',
userid integer NOT NULL default '0',
optionid integer NOT NULL default '0',
timemodified integer NOT NULL default '0'
);
CREATE INDEX prefix_choice_answers_choice_idx ON prefix_choice_answers (choiceid);
CREATE INDEX prefix_choice_answers_userid_idx ON prefix_choice_answers (userid);
# --------------------------------------------------------
#
# Table structure for table `choice_options`
#
CREATE TABLE prefix_choice_options (
id SERIAL PRIMARY KEY,
choiceid integer NOT NULL default '0',
text TEXT,
maxanswers integer NULL default '0',
timemodified integer NOT NULL default '0'
);
CREATE INDEX prefix_choice_options_choice_idx ON prefix_choice_options (choiceid);
#
# Dumping data for table `log_display`
#
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('choice', 'view', 'choice', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('choice', 'update', 'choice', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('choice', 'add', 'choice', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('choice', 'report', 'choice', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('choice', 'choose', 'choice', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('choice', 'choose again', 'choice', 'name');
-118
View File
@@ -1,118 +0,0 @@
# -- phpMyAdmin SQL Dump
# -- version 2.6.2
# -- http://www.phpmyadmin.net
# --
# -- Host: localhost
# -- Generation Time: Aug 25, 2005 at 03:52 PM
# -- Server version: 3.23.54
# -- PHP Version: 4.2.2
# --
# -- --------------------------------------------------------
CREATE TABLE prefix_data (
id int(10) unsigned NOT NULL auto_increment,
course int(10) unsigned NOT NULL default '0',
name varchar(255) NOT NULL default '',
intro text NOT NULL default '',
comments int(4) unsigned NOT NULL default '0',
timeavailablefrom int(10) unsigned NOT NULL default '0',
timeavailableto int(10) unsigned NOT NULL default '0',
timeviewfrom int(10) unsigned NOT NULL default '0',
timeviewto int(10) unsigned NOT NULL default '0',
requiredentries int(8) unsigned NOT NULL default '0',
requiredentriestoview int(8) unsigned NOT NULL default '0',
maxentries int(8) unsigned NOT NULL default '0',
rssarticles int(4) unsigned NOT NULL default '0',
singletemplate text,
listtemplate text,
listtemplateheader text,
listtemplatefooter text,
addtemplate text,
rsstemplate text,
rsstitletemplate text,
csstemplate text,
jstemplate text,
approval tinyint(4) unsigned NOT NULL default '0',
scale int(10) NOT NULL default '0',
assessed int(10) unsigned NOT NULL default '0',
defaultsort int(10) unsigned NOT NULL default '0',
defaultsortdir tinyint(4) unsigned NOT NULL default '0',
editany tinyint(4) unsigned NOT NULL default '0',
PRIMARY KEY (id)
) TYPE=MyISAM COMMENT='Defines settings for each Database activity';
CREATE TABLE prefix_data_content (
id int(10) unsigned NOT NULL auto_increment,
fieldid int(10) unsigned NOT NULL default '0',
recordid int(10) unsigned NOT NULL default '0',
content longtext,
content1 longtext,
content2 longtext,
content3 longtext,
content4 longtext,
PRIMARY KEY (id)
) TYPE=MyISAM;
CREATE TABLE prefix_data_fields (
id int(10) unsigned NOT NULL auto_increment,
dataid int(10) unsigned NOT NULL default '0',
type varchar(255) NOT NULL default '',
name varchar(255) NOT NULL default '',
description text NOT NULL default '',
param1 text,
param2 text,
param3 text,
param4 text,
param5 text,
param6 text,
param7 text,
param8 text,
param9 text,
param10 text,
PRIMARY KEY (id)
) TYPE=MyISAM;
CREATE TABLE prefix_data_records (
id int(10) unsigned NOT NULL auto_increment,
userid int(10) unsigned NOT NULL default '0',
groupid int(10) unsigned NOT NULL default '0',
dataid int(10) unsigned NOT NULL default '0',
timecreated int(10) unsigned NOT NULL default '0',
timemodified int(10) unsigned NOT NULL default '0',
approved tinyint(4) unsigned NOT NULL default '0',
PRIMARY KEY (id)
) TYPE=MyISAM;
CREATE TABLE prefix_data_comments (
id int(10) unsigned NOT NULL auto_increment,
userid int(10) unsigned NOT NULL default '0',
recordid int(10) unsigned NOT NULL default '0',
content text NOT NULL default '',
created int(10) unsigned NOT NULL default '0',
modified int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id)
) TYPE=MyISAM;
CREATE TABLE prefix_data_ratings (
id int(10) unsigned NOT NULL auto_increment,
userid int(10) unsigned NOT NULL default '0',
recordid int(10) unsigned NOT NULL default '0',
rating int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id)
) TYPE=MyISAM;
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('data', 'view', 'data', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('data', 'add', 'data', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('data', 'update', 'data', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('data', 'record delete', 'data', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('data', 'fields add', 'data_fields', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('data', 'fields update', 'data_fields', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('data', 'templates saved', 'data', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('data', 'templates def', 'data', 'name');
-100
View File
@@ -1,100 +0,0 @@
CREATE TABLE prefix_data (
id SERIAL PRIMARY KEY,
course integer NOT NULL default '0',
name varchar(255) NOT NULL default '',
intro text NOT NULL default '',
comments integer NOT NULL default '0',
timeavailablefrom integer NOT NULL default '0',
timeavailableto integer NOT NULL default '0',
timeviewfrom integer NOT NULL default '0',
timeviewto integer NOT NULL default '0',
requiredentries integer NOT NULL default '0',
requiredentriestoview integer NOT NULL default '0',
maxentries integer NOT NULL default '0',
rssarticles integer NOT NULL default '0',
singletemplate text,
listtemplate text,
listtemplateheader text,
listtemplatefooter text,
addtemplate text,
rsstemplate text,
rsstitletemplate text,
csstemplate text,
jstemplate text,
approval integer NOT NULL default '0',
scale integer NOT NULL default '0',
assessed integer NOT NULL default '0',
defaultsort integer NOT NULL default '0',
defaultsortdir integer NOT NULL default '0',
editany integer NOT NULL default '0'
);
CREATE TABLE prefix_data_content (
id SERIAL PRIMARY KEY,
fieldid integer NOT NULL default '0',
recordid integer NOT NULL default '0',
content text,
content1 text,
content2 text,
content3 text,
content text4
);
CREATE TABLE prefix_data_fields (
id SERIAL PRIMARY KEY,
dataid integer NOT NULL default '0',
type varchar(255) NOT NULL default '',
name varchar(255) NOT NULL default '',
description text NOT NULL default '',
param1 text,
param2 text,
param3 text,
param4 text,
param5 text,
param6 text,
param7 text,
param8 text,
param9 text,
param10 text
);
CREATE TABLE prefix_data_records (
id SERIAL PRIMARY KEY,
userid integer NOT NULL default '0',
groupid integer NOT NULL default '0',
dataid integer NOT NULL default '0',
timecreated integer NOT NULL default '0',
timemodified integer NOT NULL default '0',
approved integer NOT NULL default '0'
);
CREATE TABLE prefix_data_comments (
id SERIAL PRIMARY KEY,
userid integer NOT NULL default '0',
recordid integer NOT NULL default '0',
content text NOT NULL default '',
created integer NOT NULL default '0',
modified integer NOT NULL default '0'
);
CREATE TABLE prefix_data_ratings (
id SERIAL PRIMARY KEY,
userid integer NOT NULL default '0',
recordid integer NOT NULL default '0',
rating integer NOT NULL default '0'
);
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('data', 'view', 'data', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('data', 'add', 'data', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('data', 'update', 'data', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('data', 'record delete', 'data', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('data', 'fields add', 'data_fields', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('data', 'fields update', 'data_fields', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('data', 'templates saved', 'data', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('data', 'templates def', 'data', 'name');
-128
View File
@@ -1,128 +0,0 @@
#
# Table structure for table `exercise`
#
CREATE TABLE `prefix_exercise` (
`id` int(10) unsigned NOT NULL auto_increment,
`course` int(10) unsigned NOT NULL default '0',
`name` varchar(255) NOT NULL default '',
`nelements` tinyint(3) unsigned NOT NULL default '1',
`phase` tinyint(3) unsigned NOT NULL default '0',
`gradingstrategy` tinyint(3) unsigned NOT NULL default '1',
`usemaximum` tinyint(3) unsigned NOT NULL default '0',
`assessmentcomps` tinyint(3) unsigned NOT NULL default '2',
`anonymous` tinyint(3) unsigned NOT NULL default '1',
`maxbytes` int(10) unsigned NOT NULL default '100000',
`deadline` int(10) unsigned NOT NULL default '0',
`timemodified` int(10) unsigned NOT NULL default '0',
`grade` tinyint(3) NOT NULL default '0',
`gradinggrade` tinyint(3) NOT NULL default '0',
`showleaguetable` tinyint(3) unsigned NOT NULL default '0',
`usepassword` tinyint(3) unsigned NOT NULL default '0',
`password` varchar(32) NOT NULL default '',
PRIMARY KEY (`id`),
KEY `course` (`course`)
) COMMENT='Defines exercise';
# --------------------------------------------------------
#
# Table structure for table `exercise_submissions`
#
CREATE TABLE `prefix_exercise_submissions` (
`id` int(10) unsigned NOT NULL auto_increment,
`exerciseid` int(10) unsigned NOT NULL default '0',
`userid` int(10) unsigned NOT NULL default '0',
`title` varchar(100) NOT NULL default '',
`timecreated` int(10) unsigned NOT NULL default '0',
`resubmit` tinyint(3) unsigned NOT NULL default '0',
`mailed` tinyint(3) unsigned NOT NULL default '0',
`isexercise` tinyint(3) unsigned NOT NULL default '0',
`late` tinyint(3) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
INDEX `userid` (`userid`),
INDEX `exerciseid` (`exerciseid`)
) COMMENT='Info about submitted work from teacher and students';
# --------------------------------------------------------
#
# Table structure for table `exercise_assessments`
#
CREATE TABLE `prefix_exercise_assessments` (
`id` int(10) unsigned NOT NULL auto_increment,
`exerciseid` int(10) unsigned NOT NULL default '0',
`submissionid` int(10) unsigned NOT NULL default '0',
`userid` int(10) unsigned NOT NULL default '0',
`timecreated` int(10) unsigned NOT NULL default '0',
`timegraded` int(10) unsigned NOT NULL default '0',
`grade` float NOT NULL default '0',
`gradinggrade` int(3) NOT NULL default '0',
`mailed` tinyint(2) unsigned NOT NULL default '0',
`generalcomment` text NOT NULL default '',
`teachercomment` text NOT NULL default '',
PRIMARY KEY (`id`),
INDEX (`submissionid`),
INDEX (`userid`),
INDEX (`exerciseid`)
) COMMENT='Info about assessments by teacher and students';
# --------------------------------------------------------
#
# Table structure for table `exercise_elements`
#
CREATE TABLE `prefix_exercise_elements` (
`id` int(10) unsigned NOT NULL auto_increment,
`exerciseid` int(10) unsigned NOT NULL default '0',
`elementno` tinyint(3) unsigned NOT NULL default '0',
`description` text NOT NULL default '',
`scale` tinyint(3) unsigned NOT NULL default '0',
`maxscore` tinyint(3) unsigned NOT NULL default '1',
`weight` tinyint(3) unsigned NOT NULL default '11',
PRIMARY KEY (`id`),
KEY `exerciseid` (`exerciseid`)
) COMMENT='Info about marking scheme of assignment';
# --------------------------------------------------------
#
# Table structure for table `exercise_rubrics`
#
CREATE TABLE `prefix_exercise_rubrics` (
`id` int(10) unsigned NOT NULL auto_increment,
`exerciseid` int(10) unsigned NOT NULL default '0',
`elementno` int(10) unsigned NOT NULL default '0',
`rubricno` tinyint(3) unsigned NOT NULL default '0',
`description` text NOT NULL default '',
PRIMARY KEY (`id`),
KEY `exerciseid` (`exerciseid`)
) COMMENT='Info about the rubrics marking scheme';
# --------------------------------------------------------
#
# Table structure for table `exercise_grades`
#
CREATE TABLE `prefix_exercise_grades` (
`id` int(10) unsigned NOT NULL auto_increment,
`exerciseid` int(10) unsigned NOT NULL default '0',
`assessmentid` int(10) unsigned NOT NULL default '0',
`elementno` int(10) unsigned NOT NULL default '0',
`feedback` text NOT NULL default '',
`grade` tinyint(3) NOT NULL default '0',
PRIMARY KEY (`id`),
INDEX (`assessmentid`),
INDEX `exerciseid` (`exerciseid`)
) COMMENT='Info about individual grades given to each element';
# --------------------------------------------------------
INSERT INTO `prefix_log_display` (module, action, mtable, field) VALUES ('exercise', 'close', 'exercise', 'name');
INSERT INTO `prefix_log_display` (module, action, mtable, field) VALUES ('exercise', 'open', 'exercise', 'name');
INSERT INTO `prefix_log_display` (module, action, mtable, field) VALUES ('exercise', 'submit', 'exercise', 'name');
INSERT INTO `prefix_log_display` (module, action, mtable, field) VALUES ('exercise', 'view', 'exercise', 'name');
INSERT INTO `prefix_log_display` (module, action, mtable, field) VALUES ('exercise', 'update', 'exercise', 'name');
-127
View File
@@ -1,127 +0,0 @@
#
# Table structure for table exercise
#
CREATE TABLE prefix_exercise (
id SERIAL8 PRIMARY KEY,
course INT8 NOT NULL default '0',
name varchar(255) NOT NULL default '',
nelements INT NOT NULL default '1',
phase INT NOT NULL default '0',
gradingstrategy INT NOT NULL default '1',
usemaximum INT NOT NULL default '0',
assessmentcomps INT NOT NULL default '2',
anonymous INT NOT NULL default '0',
maxbytes INT8 NOT NULL default '100000',
deadline INT8 NOT NULL default '0',
timemodified INT8 NOT NULL default '0',
grade INT NOT NULL default '0',
gradinggrade INT NOT NULL default '0',
showleaguetable INT NOT NULL default '0',
usepassword INT4 NOT NULL default '0',
password VARCHAR(32) NOT NULL default ''
);
CREATE INDEX prefix_exercise_course_idx ON prefix_exercise (course);
# --------------------------------------------------------
#
# Table structure for table exercise_submissions
#
CREATE TABLE prefix_exercise_submissions (
id SERIAL8 PRIMARY KEY,
exerciseid INT8 NOT NULL default '0',
userid INT8 NOT NULL default '0',
title varchar(100) NOT NULL default '',
timecreated INT8 NOT NULL default '0',
resubmit INT NOT NULL default '0',
mailed INT NOT NULL default '0',
isexercise INT NOT NULL default '0'
);
CREATE INDEX prefix_exercise_submissions_userid_idx ON prefix_exercise_submissions (userid);
CREATE INDEX prefix_exercise_submissions_exerciseid_idx ON prefix_exercise_submissions (exerciseid);
# --------------------------------------------------------
#
# Table structure for table exercise_assessments
#
CREATE TABLE prefix_exercise_assessments (
id SERIAL8 PRIMARY KEY,
exerciseid INT8 NOT NULL default '0',
submissionid INT8 NOT NULL default '0',
userid INT8 NOT NULL default '0',
timecreated INT8 NOT NULL default '0',
timegraded INT8 NOT NULL default '0',
grade float NOT NULL default '0',
gradinggrade INT NOT NULL default '0',
mailed INT2 NOT NULL default '0',
generalcomment text NOT NULL default '',
teachercomment text NOT NULL default ''
);
# --------------------------------------------------------
CREATE INDEX prefix_exercise_assessments_submissionid_idx ON prefix_exercise_assessments (submissionid);
CREATE INDEX prefix_exercise_assessments_userid_idx ON prefix_exercise_assessments (userid);
CREATE INDEX prefix_exercise_assessments_exerciseid_idx ON prefix_exercise_assessments (exerciseid);
# Table structure for table exercise_elements
#
CREATE TABLE prefix_exercise_elements (
id SERIAL8 PRIMARY KEY,
exerciseid INT8 NOT NULL default '0',
elementno INT NOT NULL default '0',
description text NOT NULL,
scale INT NOT NULL default '0',
maxscore INT NOT NULL default '1',
weight INT NOT NULL default '11'
);
# --------------------------------------------------------
#
# Table structure for table exercise_rubrics
#
CREATE TABLE prefix_exercise_rubrics (
id SERIAL8 PRIMARY KEY,
exerciseid INT8 NOT NULL default '0',
elementno INT8 NOT NULL default '0',
rubricno INT NOT NULL default '0',
description text NOT NULL
);
CREATE INDEX prefix_exercise_rubrics_exerciseid_idx ON prefix_exercise_rubrics (exerciseid);
# --------------------------------------------------------
#
# Table structure for table exercise_grades
#
CREATE TABLE prefix_exercise_grades (
id SERIAL8 PRIMARY KEY,
exerciseid INT8 NOT NULL default '0',
assessmentid INT8 NOT NULL default '0',
elementno INT8 NOT NULL default '0',
feedback text NOT NULL default '',
grade INT NOT NULL default '0'
);
CREATE INDEX prefix_exercise_grades_assessmentid_idx ON prefix_exercise_grades (assessmentid);
CREATE INDEX prefix_exercise_grades_exerciseid_idx ON prefix_exercise_grades (exerciseid);
# --------------------------------------------------------
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('exercise', 'close', 'exercise', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('exercise', 'open', 'exercise', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('exercise', 'submit', 'exercise', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('exercise', 'view', 'exercise', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('exercise', 'update', 'exercise', 'name');
-170
View File
@@ -1,170 +0,0 @@
#
# Table structure for table `forum`
#
CREATE TABLE prefix_forum (
id int(10) unsigned NOT NULL auto_increment,
course int(10) unsigned NOT NULL default '0',
type enum('single','news','general','social','eachuser','teacher','qanda') NOT NULL default 'general',
name varchar(255) NOT NULL default '',
intro text NOT NULL default '',
assessed int(10) unsigned NOT NULL default '0',
assesstimestart int(10) unsigned NOT NULL default '0',
assesstimefinish int(10) unsigned NOT NULL default '0',
scale int(10) NOT NULL default '0',
maxbytes int(10) unsigned NOT NULL default '0',
forcesubscribe tinyint(1) unsigned NOT NULL default '0',
trackingtype tinyint(2) unsigned NOT NULL default '1',
rsstype tinyint(2) unsigned NOT NULL default '0',
rssarticles tinyint(2) unsigned NOT NULL default '0',
timemodified int(10) unsigned NOT NULL default '0',
warnafter int(10) unsigned NOT NULL default '0',
blockafter int(10) unsigned NOT NULL default '0',
blockperiod int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id),
UNIQUE KEY id (id),
KEY course (course)
) COMMENT='Forums contain and structure discussion';
# --------------------------------------------------------
#
# Table structure for table `forum_discussions`
#
CREATE TABLE prefix_forum_discussions (
id int(10) unsigned NOT NULL auto_increment,
course int(10) unsigned NOT NULL default '0',
forum int(10) unsigned NOT NULL default '0',
name varchar(255) NOT NULL default '',
firstpost int(10) unsigned NOT NULL default '0',
userid int(10) unsigned NOT NULL default '0',
groupid int(10) NOT NULL default '-1',
assessed tinyint(1) NOT NULL default '1',
timemodified int(10) unsigned NOT NULL default '0',
usermodified int(10) unsigned NOT NULL default '0',
timestart int(10) unsigned NOT NULL default '0',
timeend int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id),
KEY prefix_forum_discussions_forum_idx (forum),
KEY prefix_forum_discussions_userid_idx (userid)
) COMMENT='Forums are composed of discussions';
# --------------------------------------------------------
#
# Table structure for table `forum_posts`
#
CREATE TABLE prefix_forum_posts (
id int(10) unsigned NOT NULL auto_increment,
discussion int(10) unsigned NOT NULL default '0',
parent int(10) unsigned NOT NULL default '0',
userid int(10) unsigned NOT NULL default '0',
created int(10) unsigned NOT NULL default '0',
modified int(10) unsigned NOT NULL default '0',
mailed tinyint(2) unsigned NOT NULL default '0',
subject varchar(255) NOT NULL default '',
message text NOT NULL default '',
format tinyint(2) NOT NULL default '0',
attachment VARCHAR(100) NOT NULL default '',
totalscore tinyint(4) NOT NULL default '0',
mailnow int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id),
KEY prefix_forum_posts_parent_idx (parent),
KEY prefix_forum_posts_discussion_idx (discussion),
KEY prefix_forum_posts_userid_idx (userid),
KEY prefix_forum_posts_created_idx (created),
KEY prefix_forum_posts_mailed_idx (mailed)
) COMMENT='All posts are stored in this table';
# --------------------------------------------------------
#
# Table structure for table `forum_queue`
#
CREATE TABLE prefix_forum_queue (
id int(10) unsigned NOT NULL auto_increment,
userid int(10) unsigned NOT NULL default 0,
discussionid int(10) unsigned NOT NULL default 0,
postid int(10) unsigned NOT NULL default 0,
PRIMARY KEY (id),
KEY user (userid),
KEY post (postid)
) COMMENT='For keeping track of posts that will be mailed in digest form';
# --------------------------------------------------------
#
# Table structure for table `forum_ratings`
#
CREATE TABLE prefix_forum_ratings (
id int(10) unsigned NOT NULL auto_increment,
userid int(10) unsigned NOT NULL default '0',
post int(10) unsigned NOT NULL default '0',
time int(10) unsigned NOT NULL default '0',
rating tinyint(4) NOT NULL default '0',
PRIMARY KEY (id),
KEY userid (userid),
KEY post (post)
) COMMENT='Contains user ratings for individual posts';
# --------------------------------------------------------
#
# Table structure for table `forum_subscriptions`
#
CREATE TABLE prefix_forum_subscriptions (
id int(10) unsigned NOT NULL auto_increment,
userid int(10) unsigned NOT NULL default '0',
forum int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id),
UNIQUE KEY id (id),
KEY userid (userid),
KEY forum (forum)
) COMMENT='Keeps track of who is subscribed to what forum';
# --------------------------------------------------------
#
# Table structure for table `forum_read`
#
CREATE TABLE prefix_forum_read (
`id` int(10) unsigned NOT NULL auto_increment,
`userid` int(10) NOT NULL default '0',
`forumid` int(10) NOT NULL default '0',
`discussionid` int(10) NOT NULL default '0',
`postid` int(10) NOT NULL default '0',
`firstread` int(10) NOT NULL default '0',
`lastread` int(10) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `prefix_forum_user_forum_idx` (`userid`,`forumid`),
KEY `prefix_forum_user_discussion_idx` (`userid`,`discussionid`),
KEY `prefix_forum_user_post_idx` (`userid`,`postid`)
) COMMENT='Tracks each users read posts';
#
# Table structure for table `forum_track_prefs`
#
CREATE TABLE prefix_forum_track_prefs (
`id` int(10) unsigned NOT NULL auto_increment,
`userid` int(10) NOT NULL default '0',
`forumid` int(10) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `user_forum_idx` (`userid`,`forumid`)
) COMMENT='Tracks each users untracked forums.';
#
# Dumping data for table `log_display`
#
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('forum', 'add', 'forum', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('forum', 'update', 'forum', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('forum', 'add discussion', 'forum_discussions', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('forum', 'add post', 'forum_posts', 'subject');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('forum', 'update post', 'forum_posts', 'subject');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('forum', 'user report', 'user', 'CONCAT(firstname,\' \',lastname)');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('forum', 'move discussion', 'forum_discussions', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('forum', 'view subscribers', 'forum', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('forum', 'view discussion', 'forum_discussions', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('forum', 'view forum', 'forum', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('forum', 'subscribe', 'forum', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('forum', 'unsubscribe', 'forum', 'name');
-182
View File
@@ -1,182 +0,0 @@
#
# Table structure for table `forum`
#
CREATE TABLE prefix_forum (
id SERIAL PRIMARY KEY,
course integer NOT NULL default '0',
type varchar(10) CHECK (type IN ('single','news','general','social','eachuser','teacher','qanda')) NOT NULL default 'general',
name varchar(255) NOT NULL default '',
intro text NOT NULL default '',
assessed integer NOT NULL default '0',
assesstimestart integer NOT NULL default '0',
assesstimefinish integer NOT NULL default '0',
scale integer NOT NULL default '0',
maxbytes integer NOT NULL default '0',
forcesubscribe integer NOT NULL default '0',
trackingtype integer NOT NULL default '1',
rsstype integer NOT NULL default '0',
rssarticles integer NOT NULL default '0',
timemodified integer NOT NULL default '0',
warnafter integer NOT NULL default '0',
blockafter integer NOT NULL default '0',
blockperiod integer NOT NULL default '0'
);
CREATE INDEX prefix_forum_course_idx ON prefix_forum (course);
# --------------------------------------------------------
#
# Table structure for table `forum_discussions`
#
CREATE TABLE prefix_forum_discussions (
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',
userid integer NOT NULL default '0',
groupid integer NOT NULL default '0',
assessed integer NOT NULL default '1',
timemodified integer NOT NULL default '0',
usermodified integer NOT NULL default '0',
timestart integer NOT NULL default '0',
timeend integer NOT NULL default '0'
);
CREATE INDEX prefix_forum_discussions_forum_idx ON prefix_forum_discussions (forum);
CREATE INDEX prefix_forum_discussions_userid_idx ON prefix_forum_discussions (userid);
# --------------------------------------------------------
#
# Table structure for table `forum_posts`
#
CREATE TABLE prefix_forum_posts (
id SERIAL PRIMARY KEY,
discussion integer NOT NULL default '0',
parent integer NOT NULL default '0',
userid integer NOT NULL default '0',
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',
mailnow integer NOT NULL default '0'
);
CREATE INDEX prefix_forum_posts_discussion_idx ON prefix_forum_posts (discussion);
CREATE INDEX prefix_forum_posts_parent_idx ON prefix_forum_posts (parent);
CREATE INDEX prefix_forum_posts_userid_idx ON prefix_forum_posts (userid);
CREATE INDEX prefix_forum_posts_created_idx ON prefix_forum_posts (created);
CREATE INDEX prefix_forum_posts_mailed_idx ON prefix_forum_posts (mailed);
# --------------------------------------------------------
#
# Table structure for table `forum_queue`
#
CREATE TABLE prefix_forum_queue (
id SERIAL PRIMARY KEY,
userid integer default 0 NOT NULL,
discussionid integer default 0 NOT NULL,
postid integer default 0 NOT NULL
);
CREATE INDEX prefix_forum_queue_userid_idx ON prefix_forum_queue (userid);
CREATE INDEX prefix_forum_queue_discussion_idx ON prefix_forum_queue (discussionid);
CREATE INDEX prefix_forum_queue_postid_idx ON prefix_forum_queue (postid);
# --------------------------------------------------------
#
# Table structure for table `forum_ratings`
#
CREATE TABLE prefix_forum_ratings (
id SERIAL PRIMARY KEY,
userid integer NOT NULL default '0',
post integer NOT NULL default '0',
time integer NOT NULL default '0',
rating integer NOT NULL default '0'
);
CREATE INDEX prefix_forum_ratings_userid_idx ON prefix_forum_ratings (userid);
CREATE INDEX prefix_forum_ratings_post_idx ON prefix_forum_ratings (post);
# --------------------------------------------------------
#
# Table structure for table `forum_subscriptions`
#
CREATE TABLE prefix_forum_subscriptions (
id SERIAL PRIMARY KEY,
userid integer NOT NULL default '0',
forum integer NOT NULL default '0'
);
CREATE INDEX prefix_forum_subscriptions_userid_idx ON prefix_forum_subscriptions (userid);
CREATE INDEX prefix_forum_subscriptions_forum_idx ON prefix_forum_subscriptions (forum);
# --------------------------------------------------------
#
# Table structure for table `forum_read`
#
CREATE TABLE prefix_forum_read (
id SERIAL PRIMARY KEY,
userid integer NOT NULL default '0',
forumid integer NOT NULL default '0',
discussionid integer NOT NULL default '0',
postid integer NOT NULL default '0',
firstread integer NOT NULL default '0',
lastread integer NOT NULL default '0'
);
CREATE INDEX prefix_forum_user_forum_idx ON prefix_forum_read (userid, forumid);
CREATE INDEX prefix_forum_user_discussion_idx ON prefix_forum_read (userid, discussionid);
CREATE INDEX prefix_forum_user_post_idx ON prefix_forum_read (userid, postid);
# --------------------------------------------------------
#
# Table structure for table `forum_track_prefs`
#
CREATE TABLE prefix_forum_track_prefs (
id SERIAL PRIMARY KEY,
userid integer NOT NULL default '0',
forumid integer NOT NULL default '0'
);
CREATE INDEX prefix_forum_track_user_forum_idx ON prefix_forum_track_prefs (userid, forumid);
# --------------------------------------------------------
#
# Dumping data for table `log_display`
#
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('forum', 'add', 'forum', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('forum', 'update', 'forum', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('forum', 'add discussion', 'forum_discussions', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('forum', 'add post', 'forum_posts', 'subject');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('forum', 'update post', 'forum_posts', 'subject');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('forum', 'user report', 'user', 'firstname||\' \'||lastname');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('forum', 'move discussion', 'forum_discussions', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('forum', 'view subscribers', 'forum', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('forum', 'view discussion', 'forum_discussions', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('forum', 'view forum', 'forum', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('forum', 'subscribe', 'forum', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('forum', 'unsubscribe', 'forum', 'name');
-165
View File
@@ -1,165 +0,0 @@
# This file contains a complete database schema for all the
# tables used by this module, written in SQL
# It may also contain INSERT statements for particular data
# that may be used, especially new entries in the table log_display
#
# Table structure for table `glossary`
#
CREATE TABLE prefix_glossary (
id int(10) unsigned NOT NULL auto_increment,
course int(10) unsigned NOT NULL default '0',
name varchar(255) NOT NULL default '',
intro text NOT NULL default '',
studentcanpost tinyint(2) unsigned NOT NULL default '0',
allowduplicatedentries tinyint(2) unsigned NOT NULL default '0',
displayformat varchar(50) NOT NULL default 'dictionary',
mainglossary tinyint(2) unsigned NOT NULL default '0',
showspecial tinyint(2) unsigned NOT NULL default '1',
showalphabet tinyint(2) unsigned NOT NULL default '1',
showall tinyint(2) unsigned NOT NULL default '1',
allowcomments tinyint(2) unsigned NOT NULL default '0',
allowprintview tinyint(2) unsigned NOT NULL default '1',
usedynalink tinyint(2) unsigned NOT NULL default '1',
defaultapproval tinyint(2) unsigned NOT NULL default '1',
globalglossary tinyint(2) unsigned NOT NULL default '0',
entbypage tinyint(3) unsigned NOT NULL default '10',
editalways tinyint(2) unsigned NOT NULL default '0',
rsstype tinyint(2) unsigned NOT NULL default '0',
rssarticles tinyint(2) unsigned NOT NULL default '0',
assessed int(10) unsigned NOT NULL default '0',
assesstimestart int(10) unsigned NOT NULL default '0',
assesstimefinish int(10) unsigned NOT NULL default '0',
scale int(10) NOT NULL default '0',
timecreated int(10) unsigned NOT NULL default '0',
timemodified int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id),
KEY course (course)
) TYPE=MyISAM COMMENT='all glossaries';
#
# Table structure for table `glossary_entries`
#
CREATE TABLE prefix_glossary_entries (
id int(10) unsigned NOT NULL auto_increment,
glossaryid int(10) unsigned NOT NULL default '0',
userid int(10) unsigned NOT NULL default '0',
concept varchar(255) NOT NULL default '',
definition text NOT NULL default '',
format tinyint(2) unsigned NOT NULL default '0',
attachment VARCHAR(100) NOT NULL default '',
timecreated int(10) unsigned NOT NULL default '0',
timemodified int(10) unsigned NOT NULL default '0',
teacherentry tinyint(2) unsigned NOT NULL default '0',
sourceglossaryid int(10) unsigned NOT NULL default '0',
usedynalink tinyint(2) unsigned NOT NULL default '1',
casesensitive tinyint(2) unsigned NOT NULL default '0',
fullmatch tinyint(2) unsigned NOT NULL default '1',
approved tinyint(2) unsigned NOT NULL default '1',
PRIMARY KEY (id),
KEY glossaryid (glossaryid),
KEY userid (userid),
KEY concept (concept)
) TYPE=MyISAM COMMENT='all glossary entries';
#
# Table structure for table `glossary_alias`
#
CREATE TABLE prefix_glossary_alias (
id int(10) unsigned NOT NULL auto_increment,
entryid int(10) unsigned NOT NULL default '0',
alias varchar(255) NOT NULL default '',
PRIMARY KEY (id),
KEY entryid (entryid)
) TYPE=MyISAM COMMENT='entries alias';
#
# Table structure for table `glossary_cageories`
#
CREATE TABLE prefix_glossary_categories (
id int(10) unsigned NOT NULL auto_increment,
glossaryid int(10) unsigned NOT NULL default '0',
name varchar(255) NOT NULL default '',
usedynalink tinyint(2) unsigned NOT NULL default '1',
PRIMARY KEY (id),
KEY glossaryid (glossaryid)
) TYPE=MyISAM COMMENT='all categories for glossary entries';
#
# Table structure for table `glossary_entries_category`
#
CREATE TABLE prefix_glossary_entries_categories (
id int(10) unsigned NOT NULL auto_increment,
categoryid int(10) unsigned NOT NULL default '0',
entryid int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id),
KEY entryid (entryid),
KEY categoryid (categoryid)
) TYPE=MyISAM COMMENT='categories of each glossary entry';
CREATE TABLE prefix_glossary_comments (
id int(10) unsigned NOT NULL auto_increment,
entryid int(10) unsigned NOT NULL default '0',
userid int(10) unsigned NOT NULL default '0',
entrycomment text NOT NULL default '',
format tinyint(2) unsigned NOT NULL default '0',
timemodified int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id),
KEY userid (userid),
KEY entryid (entryid)
) TYPE=MyISAM COMMENT='comments on glossary entries';
CREATE TABLE prefix_glossary_formats (
id int(10) unsigned NOT NULL auto_increment,
name varchar(50) NOT NULL default '',
popupformatname varchar(50) NOT NULL default '',
visible tinyint(2) unsigned NOT NULL default '1',
showgroup tinyint(2) unsigned NOT NULL default '1',
defaultmode varchar(50) NOT NULL default '',
defaulthook varchar(50) NOT NULL default '',
sortkey varchar(50) NOT NULL default '',
sortorder varchar(50) NOT NULL default '',
PRIMARY KEY (id)
) TYPE=MyISAM COMMENT='Setting of the display formats';
#
# Table structure for table `forum_ratings`
#
CREATE TABLE prefix_glossary_ratings (
id int(10) unsigned NOT NULL auto_increment,
userid int(10) unsigned NOT NULL default '0',
entryid int(10) unsigned NOT NULL default '0',
time int(10) unsigned NOT NULL default '0',
rating tinyint(4) NOT NULL default '0',
PRIMARY KEY (id),
KEY userid (userid),
KEY entryid (entryid)
) COMMENT='Contains user ratings for entries';
# --------------------------------------------------------
#
# Dumping data for table `log_display`
#
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'add', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'update', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'view', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'view all', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'add entry', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'update entry', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'add category', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'update category', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'delete category', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'add comment', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'update comment', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'delete comment', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'approve entry', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'view entry', 'glossary_entries', 'concept');
-180
View File
@@ -1,180 +0,0 @@
# This file contains a complete database schema for all the
# tables used by this module, written in SQL
# It may also contain INSERT statements for particular data
# that may be used, especially new entries in the table log_display
#
# Table structure for table `glossary`
#
CREATE TABLE prefix_glossary (
id SERIAL,
course int4 NOT NULL default '0',
name varchar(255) NOT NULL default '',
intro text NOT NULL default '',
studentcanpost int2 NOT NULL default '0',
allowduplicatedentries int2 NOT NULL default '0',
displayformat varchar(50) NOT NULL default 'dictionary',
mainglossary int2 NOT NULL default '0',
showspecial int2 NOT NULL default '1',
showalphabet int2 NOT NULL default '1',
showall int2 NOT NULL default '1',
allowcomments int2 NOT NULL default '0',
allowprintview int2 NOT NULL default '1',
usedynalink int2 NOT NULL default '1',
defaultapproval int2 NOT NULL default '1',
globalglossary int2 NOT NULL default '0',
entbypage int NOT NULL default '10',
editalways integer NOT NULL default '0',
rsstype integer NOT NULL default '0',
rssarticles integer NOT NULL default '0',
assessed int4 NOT NULL default '0',
assesstimestart int4 NOT NULL default '0',
assesstimefinish int4 NOT NULL default '0',
scale int4 NOT NULL default '0',
timecreated int4 NOT NULL default '0',
timemodified int4 NOT NULL default '0',
PRIMARY KEY (id)
);
CREATE INDEX prefix_glossary_course_idx ON prefix_glossary (course);
#
# Table structure for table `glossary_entries`
#
CREATE TABLE prefix_glossary_entries (
id SERIAL,
glossaryid int4 NOT NULL default '0',
userid int4 NOT NULL default '0',
concept varchar(255) NOT NULL default '',
definition text NOT NULL,
format int2 NOT NULL default '0',
attachment VARCHAR(100) NOT NULL default '',
timecreated int4 NOT NULL default '0',
timemodified int4 NOT NULL default '0',
teacherentry int2 NOT NULL default '0',
sourceglossaryid int4 NOT NULL default '0',
usedynalink int2 NOT NULL default '1',
casesensitive int2 NOT NULL default '0',
fullmatch int2 NOT NULL default '1',
approved int2 NOT NULL default '1',
PRIMARY KEY(id)
);
CREATE INDEX prefix_glossary_entries_glossaryid_idx ON prefix_glossary_entries (glossaryid);
CREATE INDEX prefix_glossary_entries_userid_idx ON prefix_glossary_entries (userid);
CREATE INDEX prefix_glossary_entries_concept_idx ON prefix_glossary_entries (concept);
#
# Table structure for table `glossary_cageories`
#
CREATE TABLE prefix_glossary_categories (
id SERIAL,
glossaryid int4 NOT NULL default '0',
name varchar(255) NOT NULL default '',
usedynalink int2 NOT NULL default '1',
PRIMARY KEY (id)
);
CREATE INDEX prefix_glossary_categories_glossaryid_idx ON prefix_glossary_categories (glossaryid);
#
# Table structure for table `glossary_alias`
#
CREATE TABLE prefix_glossary_alias (
id SERIAL,
entryid int4 NOT NULL default '0',
alias varchar(255) NOT NULL,
PRIMARY KEY (id)
);
CREATE INDEX prefix_glossary_alias_entryid_idx ON prefix_glossary_alias (entryid);
#
# Table structure for table `glossary_entries_category`
#
CREATE TABLE prefix_glossary_entries_categories (
id SERIAL,
categoryid int4 NOT NULL default '0',
entryid int4 NOT NULL default '0',
PRIMARY KEY (id)
);
CREATE INDEX prefix_glossary_entries_categories_category_idx ON prefix_glossary_entries_categories (categoryid);
CREATE INDEX prefix_glossary_entries_categories_entryid_idx ON prefix_glossary_entries_categories (entryid);
#
# Table structure for table `glossary_comments`
#
CREATE TABLE prefix_glossary_comments (
id SERIAL,
entryid int4 NOT NULL default '0',
userid int4 NOT NULL default '0',
entrycomment text NOT NULL,
format int2 NOT NULL default '0',
timemodified int4 NOT NULL default '0',
PRIMARY KEY (id)
);
CREATE INDEX prefix_glossary_comments_entryid_idx ON prefix_glossary_comments (entryid);
CREATE INDEX prefix_glossary_comments_userid_idx ON prefix_glossary_comments (userid);
#
# Table structure for table `glossary_formats`
#
CREATE TABLE prefix_glossary_formats (
id SERIAL,
name varchar(50) NOT NULL,
popupformatname varchar(50) NOT NULL,
visible int2 NOT NULL default '1',
showgroup int2 NOT NULL default '1',
defaultmode varchar(50) NOT NULL default '',
defaulthook varchar(50) NOT NULL default '',
sortkey varchar(50) NOT NULL default '',
sortorder varchar(50) NOT NULL default '',
PRIMARY KEY (id)
);
#
# Table structure for table `glossary_ratings`
#
CREATE TABLE prefix_glossary_ratings (
id SERIAL,
userid int4 NOT NULL default '0',
entryid int4 NOT NULL default '0',
time int4 NOT NULL default '0',
rating int4 NOT NULL default '0',
PRIMARY KEY (id)
);
CREATE INDEX prefix_glossary_ratings_userid_idx ON prefix_glossary_ratings (userid);
CREATE INDEX prefix_glossary_ratings_entryid_idx ON prefix_glossary_ratings (entryid);
#
# Dumping data for table `log_display`
#
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'add', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'update', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'view', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'view all', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'add entry', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'update entry', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'add category', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'update category', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'delete category', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'add comment', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'update comment', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'delete comment', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'approve entry', 'glossary', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('glossary', 'view entry', 'glossary_entries', 'concept');
-103
View File
@@ -1,103 +0,0 @@
#
# Table structure for table `hotpot`
#
CREATE TABLE prefix_hotpot (
id int(10) unsigned NOT NULL auto_increment,
course int(10) unsigned NOT NULL default '0',
name varchar(255) NOT NULL default '',
summary text NOT NULL default '',
timeopen int(10) unsigned NOT NULL default '0',
timeclose int(10) unsigned NOT NULL default '0',
location int(4) unsigned NOT NULL default '0',
reference varchar(255) NOT NULL default '',
outputformat int(4) unsigned NOT NULL default '1',
navigation int(4) unsigned NOT NULL default '1',
studentfeedback tinyint(4) unsigned NOT NULL default '0',
studentfeedbackurl varchar(255) NOT NULL default '',
forceplugins int(4) unsigned NOT NULL default '0',
shownextquiz int(4) unsigned NOT NULL default '0',
review tinyint(4) NOT NULL default '0',
grade int(10) NOT NULL default '0',
grademethod tinyint(4) NOT NULL default '1',
attempts smallint(6) NOT NULL default '0',
password varchar(255) NOT NULL default '',
subnet varchar(255) NOT NULL default '',
clickreporting tinyint(4) unsigned NOT NULL default '0',
timecreated int(10) unsigned NOT NULL default '0',
timemodified int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id)
) TYPE=MyISAM COMMENT='details about Hot Potatoes quizzes';
#
# Table structure for table `hotpot_attempts`
#
CREATE TABLE prefix_hotpot_attempts (
id int(10) unsigned NOT NULL auto_increment,
hotpot int(10) unsigned NOT NULL default '0',
userid int(10) unsigned NOT NULL default '0',
starttime int(10) unsigned NOT NULL default '0',
endtime int(10) unsigned NOT NULL default '0',
score int(6) unsigned NOT NULL default '0',
penalties int(6) unsigned NOT NULL default '0',
attempt int(6) unsigned NOT NULL default '0',
timestart int(10) unsigned NOT NULL default '0',
timefinish int(10) unsigned NOT NULL default '0',
status tinyint(4) unsigned NOT NULL default '1',
clickreportid int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id),
KEY hotpot_attempts_hotpot_idx (hotpot),
KEY hotpot_attempts_userid_idx (userid)
) TYPE=MyISAM COMMENT='details about Hot Potatoes quiz attempts';
#
# Table structure for table `hotpot_details`
#
CREATE TABLE prefix_hotpot_details (
id int(10) unsigned NOT NULL auto_increment,
attempt int(10) unsigned NOT NULL default '0',
details text default '',
PRIMARY KEY (id),
KEY hotpot_details_attempt_idx (attempt)
) TYPE=MyISAM COMMENT='raw details (as XML) of Hot Potatoes quiz attempts';
#
# Table structure for table `hotpot_questions`
#
CREATE TABLE prefix_hotpot_questions (
id int(10) unsigned NOT NULL auto_increment,
name text NOT NULL default '',
type tinyint(4) unsigned NOT NULL default '0',
text int(10) unsigned NOT NULL default '0',
hotpot int(10) unsigned NOT NULL default '0',
md5key varchar(32) NOT NULL default '',
PRIMARY KEY (id),
KEY hotpot_questions_hotpot_idx (hotpot),
KEY hotpot_questions_md5key_idx (md5key)
) TYPE=MyISAM COMMENT='details about questions in Hot Potatoes quiz attempts';
#
# Table structure for table `hotpot_responses`
#
CREATE TABLE prefix_hotpot_responses (
id int(10) unsigned NOT NULL auto_increment,
attempt int(10) unsigned NOT NULL default '0',
question int(10) unsigned NOT NULL default '0',
score smallint(6) NOT NULL default '0',
weighting smallint(6) NOT NULL default '0',
correct varchar(255) NOT NULL default '',
wrong varchar(255) NOT NULL default '',
ignored varchar(255) NOT NULL default '',
hints smallint(6) unsigned NOT NULL default '0',
clues smallint(6) unsigned NOT NULL default '0',
checks smallint(6) unsigned NOT NULL default '0',
PRIMARY KEY (id),
KEY hotpot_responses_attempt_idx (attempt),
KEY hotpot_responses_question_idx (question)
) TYPE=MyISAM COMMENT='details about responses in Hot Potatoes quiz attempts';
#
# Table structure for table `hotpot_strings`
#
CREATE TABLE prefix_hotpot_strings (
id int(10) unsigned NOT NULL auto_increment,
string text NOT NULL default '',
md5key varchar(32) NOT NULL default '',
PRIMARY KEY (id),
KEY hotpot_strings_md5key_idx (md5key)
) TYPE=MyISAM COMMENT='strings used in Hot Potatoes questions and responses';
-118
View File
@@ -1,118 +0,0 @@
#
# Table structure for table `hotpot`
#
CREATE TABLE prefix_hotpot (
id SERIAL PRIMARY KEY,
course INT4 NOT NULL default '0',
name VARCHAR(255) NOT NULL default '',
summary TEXT,
timeopen INT4 NOT NULL default '0',
timeclose INT4 NOT NULL default '0',
location INT2 NOT NULL default '0',
reference VARCHAR(255) NOT NULL default '',
outputformat INT2 NOT NULL default '1',
navigation INT2 NOT NULL default '1',
studentfeedback INT2 NOT NULL default '0',
studentfeedbackurl VARCHAR(255) NOT NULL default '',
forceplugins INT2 NOT NULL default '0',
shownextquiz INT2 NOT NULL default '0',
review INT2 NOT NULL default '0',
grade INT4 NOT NULL default '0',
grademethod INT2 NOT NULL default '1',
attempts INT2 NOT NULL default '0',
password VARCHAR(255) NOT NULL default '',
subnet VARCHAR(255) NOT NULL default '',
clickreporting INT2 NOT NULL default '0',
timecreated INT4 NOT NULL default '0',
timemodified INT4 NOT NULL default '0'
);
COMMENT ON TABLE prefix_hotpot IS 'details about Hot Potatoes quizzes';
#
# Table structure for table `hotpot_attempts`
#
CREATE TABLE prefix_hotpot_attempts (
id SERIAL PRIMARY KEY,
hotpot INT4 NOT NULL default '0',
userid INT4 NOT NULL default '0',
starttime INT4 NOT NULL default '0',
endtime INT4 NOT NULL default '0',
score INT2 NOT NULL default '0',
penalties INT2 NOT NULL default '0',
attempt INT2 NOT NULL default '0',
timestart INT4 NOT NULL default '0',
timefinish INT4 NOT NULL default '0',
status INT2 NOT NULL default '1',
clickreportid INT4 NOT NULL default '0'
);
COMMENT ON TABLE prefix_hotpot IS 'details about Hot Potatoes quiz attempts';
CREATE INDEX prefix_hotpot_attempts_hotpot_idx ON prefix_hotpot_attempts (hotpot);
CREATE INDEX prefix_hotpot_attempts_userid_idx ON prefix_hotpot_attempts (userid);
#
# Table structure for table `prefix_hotpot_details`
#
CREATE TABLE prefix_hotpot_details (
id SERIAL PRIMARY KEY,
attempt INT4 NOT NULL default '0',
details TEXT NOT NULL default ''
);
COMMENT ON TABLE prefix_hotpot_details IS 'raw details (as XML) of Hot Potatoes quiz attempts';
CREATE INDEX prefix_hotpot_details_attempt_idx ON prefix_hotpot_details (attempt);
#
# Table structure for table `hotpot_questions`
#
CREATE TABLE prefix_hotpot_questions (
id SERIAL PRIMARY KEY,
name TEXT NOT NULL default '',
type INT2 NOT NULL default '0',
text INT4 NOT NULL default '0',
hotpot INT4 NOT NULL default '0',
md5key VARCHAR(32) NOT NULL default ''
);
COMMENT ON TABLE prefix_hotpot_questions IS 'details about questions in Hot Potatoes quiz attempts';
CREATE INDEX prefix_hotpot_questions_hotpot_idx ON prefix_hotpot_questions (hotpot);
CREATE INDEX prefix_hotpot_questions_md5key_idx ON prefix_hotpot_questions (md5key);
#
# Table structure for table `hotpot_responses`
#
CREATE TABLE prefix_hotpot_responses (
id SERIAL PRIMARY KEY,
attempt INT4 NOT NULL default '0',
question INT4 NOT NULL default '0',
score INT2 NOT NULL default '0',
weighting INT2 NOT NULL default '0',
correct VARCHAR(255) NOT NULL default '',
wrong VARCHAR(255) NOT NULL default '',
ignored VARCHAR(255) NOT NULL default '',
hints INT2 NOT NULL default '0',
clues INT2 NOT NULL default '0',
checks INT2 NOT NULL default '0'
);
COMMENT ON TABLE prefix_hotpot_responses IS 'details about responses in Hot Potatoes quiz attempts';
CREATE INDEX prefix_hotpot_responses_attempt_idx ON prefix_hotpot_responses (attempt);
CREATE INDEX prefix_hotpot_responses_question_idx ON prefix_hotpot_responses (question);
#
# Table structure for table `hotpot_strings`
#
CREATE TABLE prefix_hotpot_strings (
id SERIAL PRIMARY KEY,
string TEXT NOT NULL default '',
md5key VARCHAR(32) NOT NULL default ''
);
COMMENT ON TABLE prefix_hotpot_strings IS 'strings used in Hot Potatoes questions and responses';
CREATE INDEX prefix_hotpot_strings_md5key_idx ON prefix_hotpot_strings (md5key);
-59
View File
@@ -1,59 +0,0 @@
# phpMyAdmin MySQL-Dump
# version 2.2.1
# http://phpwizard.net/phpMyAdmin/
# http://phpmyadmin.sourceforge.net/ (download page)
#
# Host: localhost
# Generation Time: Nov 14, 2001 at 04:44 PM
# Server version: 3.23.36
# PHP Version: 4.0.6
# Database : `moodle`
# --------------------------------------------------------
#
# Table structure for table `journal`
#
CREATE TABLE prefix_journal (
id int(10) unsigned NOT NULL auto_increment,
course int(10) unsigned NOT NULL default '0',
name varchar(255) NOT NULL default '',
intro text NOT NULL default '',
introformat tinyint(2) NOT NULL default '0',
days smallint(5) unsigned NOT NULL default '7',
assessed int(10) NOT NULL default '0',
timemodified int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id),
KEY course (course)
) TYPE=MyISAM;
# --------------------------------------------------------
#
# Table structure for table `journal_entries`
#
CREATE TABLE prefix_journal_entries (
id int(10) unsigned NOT NULL auto_increment,
journal int(10) unsigned NOT NULL default '0',
userid int(10) unsigned NOT NULL default '0',
modified int(10) unsigned NOT NULL default '0',
text text NOT NULL default '',
format tinyint(2) NOT NULL default '0',
rating int(10) default '0',
entrycomment text default '',
teacher int(10) unsigned NOT NULL default '0',
timemarked int(10) unsigned NOT NULL default '0',
mailed int(1) unsigned NOT NULL default '0',
PRIMARY KEY (id),
KEY journal (journal),
KEY userid (userid)
) TYPE=MyISAM COMMENT='All the journal entries of all people';
#
# Dumping data for table `log_display`
#
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('journal', 'view', 'journal', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('journal', 'add entry', 'journal', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('journal', 'update entry', 'journal', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('journal', 'view responses', 'journal', 'name');
-60
View File
@@ -1,60 +0,0 @@
# phpMyAdmin MySQL-Dump
# version 2.2.1
# http://phpwizard.net/phpMyAdmin/
# http://phpmyadmin.sourceforge.net/ (download page)
#
# Host: localhost
# Generation Time: Nov 14, 2001 at 04:44 PM
# Server version: 3.23.36
# PHP Version: 4.0.6
# Database : `moodle`
# --------------------------------------------------------
#
# Table structure for table `journal`
#
CREATE TABLE prefix_journal (
id SERIAL PRIMARY KEY,
course integer NOT NULL default '0',
name varchar(255) default NULL,
intro text,
introformat integer NOT NULL default '0',
days integer NOT NULL default '7',
assessed integer NOT NULL default '0',
timemodified integer NOT NULL default '0'
);
CREATE INDEX prefix_journal_course_idx ON prefix_journal (course);
# --------------------------------------------------------
#
# Table structure for table `journal_entries`
#
CREATE TABLE prefix_journal_entries (
id SERIAL PRIMARY KEY,
journal integer NOT NULL default '0',
userid integer NOT NULL default '0',
modified integer NOT NULL default '0',
text text NOT NULL default '',
format integer NOT NULL default '0',
rating integer default '0',
entrycomment text,
teacher integer NOT NULL default '0',
timemarked integer NOT NULL default '0',
mailed integer NOT NULL default '0'
);
CREATE INDEX prefix_journal_entries_journal_idx ON prefix_journal_entries (journal);
CREATE INDEX prefix_journal_entries_userid_idx ON prefix_journal_entries (userid);
#
# Dumping data for table `log_display`
#
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('journal', 'view', 'journal', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('journal', 'add entry', 'journal', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('journal', 'update entry', 'journal', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('journal', 'view responses', 'journal', 'name');
-12
View File
@@ -1,12 +0,0 @@
CREATE TABLE `prefix_label` (
`id` int(10) unsigned NOT NULL auto_increment,
`course` int(10) unsigned NOT NULL default '0',
`name` varchar(255) NOT NULL default '',
`content` text NOT NULL default '',
`timemodified` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
KEY course (course)
) COMMENT='Defines labels';
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('label', 'add', 'quiz', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('label', 'update', 'quiz', 'name');
-12
View File
@@ -1,12 +0,0 @@
CREATE TABLE prefix_label (
id SERIAL PRIMARY KEY,
course integer NOT NULL default '0',
name varchar(255) default NULL,
content text,
timemodified integer NOT NULL default '0'
);
CREATE INDEX prefix_label_course_idx ON prefix_label (course);
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('label', 'add', 'quiz', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('label', 'update', 'quiz', 'name');
-17
View File
@@ -1,17 +0,0 @@
# This file contains a complete database schema for all the
# tables used by this module, written in SQL
# It may also contain INSERT statements for particular data
# that may be used, especially new entries in the table log_display
CREATE TABLE prefix_lams (
id int(10) unsigned NOT NULL auto_increment,
course int(10) unsigned NOT NULL default '0',
name varchar(255) NOT NULL default '',
introduction text NOT NULL default '',
learning_session_id bigint(20) default '0',
timemodified int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id),
KEY course (course)
)COMMENT='LAMS activity';
-17
View File
@@ -1,17 +0,0 @@
# This file contains a complete database schema for all the
# tables used by this module, written in SQL
# It may also contain INSERT statements for particular data
# that may be used, especially new entries in the table log_display
CREATE TABLE prefix_lams (
id SERIAL PRIMARY KEY,
course integer NOT NULL default '0',
name varchar(255) NOT NULL default '',
introduction text NOT NULL default '',
learning_session_id integer NOT NULL default '0',
timemodified integer NOT NULL default '0'
);
CREATE INDEX prefix_lams_course_idx ON prefix_lams (course);
-192
View File
@@ -1,192 +0,0 @@
# This file contains a complete database schema for all the
# tables used by the mlesson module, written in SQL
# It may also contain INSERT statements for particular data
# that may be used, especially new entries in the table log_display
CREATE TABLE `prefix_lesson` (
`id` int(10) unsigned NOT NULL auto_increment,
`course` int(10) unsigned NOT NULL default '0',
`name` varchar(255) NOT NULL default '',
`practice` TINYINT(3) UNSIGNED NOT NULL default '0',
`modattempts` TINYINT(3) UNSIGNED NOT NULL default '0',
`usepassword` TINYINT(3) UNSIGNED NOT NULL default '0',
`password` VARCHAR(32) NOT NULL default '',
`dependency` int(10) unsigned NOT NULL default '0',
`conditions` text NOT NULL default '',
`grade` tinyint(3) NOT NULL default '0',
`custom` TINYINT(3) UNSIGNED NOT NULL default '0',
`ongoing` TINYINT(3) UNSIGNED NOT NULL default '0',
`usemaxgrade` tinyint(3) NOT NULL default '0',
`maxanswers` int(3) unsigned NOT NULL default '4',
`maxattempts` int(3) unsigned NOT NULL default '5',
`review` TINYINT(3) UNSIGNED NOT NULL default '0',
`nextpagedefault` int(3) unsigned NOT NULL default '0',
`feedback` int(3) unsigned NOT NULL default '1',
`minquestions` int(3) unsigned NOT NULL default '0',
`maxpages` int(3) unsigned NOT NULL default '0',
`timed` TINYINT(3) UNSIGNED NOT NULL default '0',
`maxtime` INT(10) UNSIGNED NOT NULL default '0',
`retake` int(3) unsigned NOT NULL default '1',
`activitylink` INT(10) UNSIGNED NOT NULL default '0',
`mediafile` varchar(255) NOT NULL default '',
`mediaheight` INT(10) UNSIGNED NOT NULL DEFAULT '100',
`mediawidth` INT(10) UNSIGNED NOT NULL DEFAULT '650',
`mediaclose` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`slideshow` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`width` INT(10) UNSIGNED NOT NULL DEFAULT '640',
`height` INT(10) UNSIGNED NOT NULL DEFAULT '480',
`bgcolor` CHAR(7) NOT NULL DEFAULT '#FFFFFF',
`displayleft` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`displayleftif` INT(3) UNSIGNED NOT NULL DEFAULT '0',
`progressbar` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`highscores` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`maxhighscores` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`available` int(10) unsigned NOT NULL default '0',
`deadline` int(10) unsigned NOT NULL default '0',
`timemodified` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `course` (`course`)
) COMMENT='Defines lesson';
# --------------------------------------------------------
CREATE TABLE `prefix_lesson_pages` (
`id` int(10) unsigned NOT NULL auto_increment,
`lessonid` int(10) unsigned NOT NULL default '0',
`prevpageid` int(10) unsigned NOT NULL default '0',
`nextpageid` int(10) unsigned NOT NULL default '0',
`qtype` tinyint(3) unsigned NOT NULL default '0',
`qoption` tinyint(3) unsigned NOT NULL default '0',
`layout` TINYINT(3) UNSIGNED NOT NULL DEFAULT '1',
`display` TINYINT(3) UNSIGNED NOT NULL DEFAULT '1',
`timecreated` int(10) unsigned NOT NULL default '0',
`timemodified` int(10) unsigned NOT NULL default '0',
`title` varchar(255) NOT NULL default '',
`contents` text NOT NULL default '',
PRIMARY KEY (`id`),
KEY `lessonid` (`lessonid`)
) COMMENT='Defines lesson_pages';
# --------------------------------------------------------
CREATE TABLE `prefix_lesson_answers` (
`id` int(10) unsigned NOT NULL auto_increment,
`lessonid` int(10) unsigned NOT NULL default '0',
`pageid` int(10) unsigned NOT NULL default '0',
`jumpto` int(11) NOT NULL default '0',
`grade` tinyint(3) unsigned NOT NULL default '0',
`score` INT(10) NOT NULL DEFAULT '0',
`flags` tinyint(3) unsigned NOT NULL default '0',
`timecreated` int(10) unsigned NOT NULL default '0',
`timemodified` int(10) unsigned NOT NULL default '0',
`answer` text NOT NULL default '',
`response` text NOT NULL default '',
PRIMARY KEY (`id`),
KEY (`pageid`),
KEY `lessonid` (`lessonid`)
) COMMENT='Defines lesson_answers';
# --------------------------------------------------------
CREATE TABLE `prefix_lesson_attempts` (
`id` int(10) unsigned NOT NULL auto_increment,
`lessonid` int(10) unsigned NOT NULL default '0',
`pageid` int(10) unsigned NOT NULL default '0',
`userid` int(10) unsigned NOT NULL default '0',
`answerid` int(10) unsigned NOT NULL default '0',
`retry` int(3) unsigned NOT NULL default '0',
`correct` int(10) unsigned NOT NULL default '0',
`useranswer` text NOT NULL default '',
`timeseen` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
KEY (`userid`),
KEY `lessonid` (`lessonid`),
KEY `pageid` (`pageid`)
) COMMENT='Defines lesson_attempts';
# --------------------------------------------------------
CREATE TABLE `prefix_lesson_grades` (
`id` int(10) unsigned NOT NULL auto_increment,
`lessonid` int(10) unsigned NOT NULL default '0',
`userid` int(10) unsigned NOT NULL default '0',
`grade` float unsigned NOT NULL default '0',
`late` int(3) unsigned NOT NULL default '0',
`completed` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `lessonid` (`lessonid`),
KEY `userid` (`userid`)
) COMMENT='Defines lesson_grades';
# --------------------------------------------------------
CREATE TABLE `prefix_lesson_default`
( `id` int(10) unsigned NOT NULL auto_increment,
`course` int(10) unsigned NOT NULL default '0',
`practice` tinyint(3) unsigned NOT NULL default '0',
`modattempts` tinyint(3) unsigned NOT NULL default '0',
`usepassword` int(3) unsigned NOT NULL default '0',
`password` varchar(32) NOT NULL default '',
`conditions` text NOT NULL default '',
`grade` tinyint(3) NOT NULL default '0',
`custom` int(3) unsigned NOT NULL default '0',
`ongoing` int(3) unsigned NOT NULL default '0',
`usemaxgrade` tinyint(3) unsigned NOT NULL default '0',
`maxanswers` int(3) unsigned NOT NULL default '4',
`maxattempts` int(3) unsigned NOT NULL default '5',
`review` tinyint(3) unsigned NOT NULL default '0',
`nextpagedefault` int(3) unsigned NOT NULL default '0',
`feedback` int(3) unsigned NOT NULL default '1',
`minquestions` tinyint(3) unsigned NOT NULL default '0',
`maxpages` int(3) unsigned NOT NULL default '0',
`timed` int(3) unsigned NOT NULL default '0',
`maxtime` int(10) unsigned NOT NULL default '0',
`retake` int(3) unsigned NOT NULL default '1',
`mediaheight` INT(10) UNSIGNED NOT NULL DEFAULT '100',
`mediawidth` INT(10) UNSIGNED NOT NULL DEFAULT '650',
`mediaclose` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`slideshow` int(3) unsigned NOT NULL default '0',
`width` int(10) unsigned NOT NULL default '640',
`height` int(10) unsigned NOT NULL default '480',
`bgcolor` varchar(7) default '#FFFFFF',
`displayleft` int(3) unsigned NOT NULL default '0',
`displayleftif` INT(3) UNSIGNED NOT NULL DEFAULT '0',
`progressbar` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`highscores` int(3) unsigned NOT NULL default '0',
`maxhighscores` int(10) NOT NULL default '0',
PRIMARY KEY (`id`)
) COMMENT = 'Defines lesson_default';
# --------------------------------------------------------
CREATE TABLE `prefix_lesson_timer`
( `id` int(10) unsigned NOT NULL auto_increment,
`lessonid` int(10) unsigned not null default '0',
`userid` int(10) unsigned not null default '0',
`starttime` int(10) unsigned not null default '0',
`lessontime` int(10) unsigned not null default '0',
PRIMARY KEY (`id`)
);
# --------------------------------------------------------
CREATE TABLE `prefix_lesson_branch`
( `id` int(10) unsigned not null auto_increment,
`lessonid` int(10) unsigned not null default '0',
`userid` int(10) unsigned not null default '0',
`pageid` int(10) unsigned not null default '0',
`retry` int(10) unsigned not null default '0',
`flag` tinyint(3) unsigned not null default '0',
`timeseen` int(10) unsigned not null default '0',
PRIMARY KEY (`id`)
);
# --------------------------------------------------------
CREATE TABLE `prefix_lesson_high_scores`
( `id` int(10) unsigned not null auto_increment,
`lessonid` int(10) unsigned not null default '0',
`userid` int(10) unsigned not null default '0',
`gradeid` int(10) unsigned not null default '0',
`nickname` varchar(5) not null default '',
PRIMARY KEY (`id`)
);
# --------------------------------------------------------
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('lesson', 'start', 'lesson', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('lesson', 'end', 'lesson', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('lesson', 'view', 'lesson_pages', 'title');
-172
View File
@@ -1,172 +0,0 @@
CREATE TABLE prefix_lesson (
id SERIAL8 PRIMARY KEY,
course INT8 NOT NULL default '0',
name varchar(255) NOT NULL default '',
practice INT NOT NULL DEFAULT '0',
modattempts INT4 NOT NULL DEFAULT '0',
usepassword INT NOT NULL DEFAULT '0',
password VARCHAR(32) NOT NULL default '',
dependency INT8 NOT NULL DEFAULT '0',
conditions text NOT NULL DEFAULT '',
grade INT NOT NULL default '0',
custom INT NOT NULL DEFAULT '0',
ongoing INT NOT NULL DEFAULT '0',
usemaxgrade INT NOT NULL default '0',
maxanswers INT NOT NULL default '4',
maxattempts INT NOT NULL default '5',
review INT NOT NULL DEFAULT '0',
nextpagedefault INT NOT NULL default '0',
feedback INT NOT NULL default '1',
minquestions INT NOT NULL default '0',
maxpages INT NOT NULL default '0',
timed INT NOT NULL DEFAULT '0',
maxtime INT8 NOT NULL DEFAULT '0',
retake INT NOT NULL default '1',
activitylink INT8 NOT NULL default '0',
mediafile varchar(255) NOT NULL default '',
mediaheight INT NOT NULL DEFAULT '100',
mediawidth INT NOT NULL DEFAULT '650',
mediaclose INT NOT NULL DEFAULT '0',
slideshow INT NOT NULL DEFAULT '0',
width INT8 NOT NULL DEFAULT '640',
height INT8 NOT NULL DEFAULT '480',
bgcolor VARCHAR(7) NOT NULL DEFAULT '#FFFFFF',
displayleft INT NOT NULL DEFAULT '0',
displayleftif INT NOT NULL DEFAULT '0',
progressbar INT NOT NULL DEFAULT '0',
highscores INT NOT NULL DEFAULT '0',
maxhighscores INT8 NOT NULL DEFAULT '0',
available INT8 NOT NULL default '0',
deadline INT8 NOT NULL default '0',
timemodified INT8 NOT NULL default '0'
);
CREATE INDEX prefix_lesson_course_idx ON prefix_lesson (course);
CREATE TABLE prefix_lesson_pages (
id SERIAL8 PRIMARY KEY,
lessonid INT8 NOT NULL default '0',
prevpageid INT8 NOT NULL default '0',
nextpageid INT8 NOT NULL default '0',
qtype INT NOT NULL default '0',
qoption INT NOT NULL default '0',
layout INT NOT NULL DEFAULT '1',
display INT NOT NULL DEFAULT '1',
timecreated INT8 NOT NULL default '0',
timemodified INT8 NOT NULL default '0',
title varchar(255) NOT NULL default '',
contents text NOT NULL default ''
) ;
CREATE INDEX prefix_lesson_pages_lessonid_idx ON prefix_lesson_pages (lessonid);
CREATE TABLE prefix_lesson_answers (
id SERIAL8 PRIMARY KEY,
lessonid INT8 NOT NULL default '0',
pageid INT8 NOT NULL default '0',
jumpto int8 NOT NULL default '0',
grade INT NOT NULL default '0',
score INT8 NOT NULL DEFAULT '0',
flags INT NOT NULL default '0',
timecreated INT8 NOT NULL default '0',
timemodified INT8 NOT NULL default '0',
answer text NOT NULL default '',
response text NOT NULL default ''
) ;
CREATE INDEX prefix_lesson_answers_pageid_idx ON prefix_lesson_answers (pageid);
CREATE INDEX prefix_lesson_answers_lessonid_idx ON prefix_lesson_answers (lessonid);
CREATE TABLE prefix_lesson_attempts (
id SERIAL8 PRIMARY KEY,
lessonid INT8 NOT NULL default '0',
pageid INT8 NOT NULL default '0',
userid INT8 NOT NULL default '0',
answerid INT8 NOT NULL default '0',
retry INT NOT NULL default '0',
correct INT8 NOT NULL default '0',
useranswer text NOT NULL default '',
timeseen INT8 NOT NULL default '0'
) ;
CREATE INDEX prefix_lesson_attempts_lessonid_idx ON prefix_lesson_attempts (lessonid);
CREATE INDEX prefix_lesson_attempts_pageid_idx ON prefix_lesson_attempts (pageid);
CREATE INDEX prefix_lesson_attempts_userid_idx ON prefix_lesson_attempts (userid);
CREATE TABLE prefix_lesson_grades (
id SERIAL8 PRIMARY KEY,
lessonid INT8 NOT NULL default '0',
userid INT8 NOT NULL default '0',
grade real NOT NULL default '0',
late INT NOT NULL default '0',
completed INT8 NOT NULL default '0'
) ;
CREATE INDEX prefix_lesson_grades_lessonid_idx ON prefix_lesson_grades (lessonid);
CREATE INDEX prefix_lesson_grades_userid_idx ON prefix_lesson_grades (userid);
CREATE TABLE prefix_lesson_default
( id SERIAL8 PRIMARY KEY,
course INT8 NOT NULL default '0',
practice INT NOT NULL default '0',
modattempts INT4 NOT NULL default '0',
usepassword INT NOT NULL default '0',
password varchar(32) NOT NULL default '',
conditions text NOT NULL DEFAULT '',
grade INT NOT NULL default '0',
custom INT NOT NULL default '0',
ongoing INT NOT NULL default '0',
usemaxgrade INT NOT NULL default '0',
maxanswers INT NOT NULL default '4',
maxattempts INT NOT NULL default '5',
review INT NOT NULL default '0',
nextpagedefault INT NOT NULL default '0',
feedback INT NOT NULL default '1',
minquestions INT NOT NULL default '0',
maxpages INT NOT NULL default '0',
timed INT NOT NULL default '0',
maxtime INT8 NOT NULL default '0',
retake INT NOT NULL default '1',
mediaheight INT NOT NULL DEFAULT '100',
mediawidth INT NOT NULL DEFAULT '650',
mediaclose INT NOT NULL DEFAULT '0',
slideshow INT NOT NULL default '0',
width INT8 NOT NULL default '640',
height INT8 NOT NULL default '480',
bgcolor varchar(7) default '#FFFFFF',
displayleft INT NOT NULL default '0',
displayleftif INT NOT NULL DEFAULT '0',
progressbar INT NOT NULL DEFAULT '0',
highscores INT NOT NULL default '0',
maxhighscores INT8 NOT NULL default '0'
) ;
CREATE TABLE prefix_lesson_timer
( id SERIAL8 PRIMARY KEY,
lessonid INT8 not null default '0',
userid INT8 not null default '0',
starttime INT8 not null default '0',
lessontime INT8 not null default '0'
);
CREATE TABLE prefix_lesson_branch
( id SERIAL8 PRIMARY KEY,
lessonid INT8 not null default '0',
userid INT8 not null default '0',
pageid INT8 not null default '0',
retry INT8 not null default '0',
flag INT not null default '0',
timeseen INT8 not null default '0'
);
CREATE TABLE prefix_lesson_high_scores
( id SERIAL8 PRIMARY KEY,
lessonid INT8 not null default '0',
userid INT8 not null default '0',
gradeid INT8 not null default '0',
nickname varchar(5) not null default ''
);
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('lesson', 'start', 'lesson', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('lesson', 'end', 'lesson', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('lesson', 'view', 'lesson_pages', 'title');
-251
View File
@@ -1,251 +0,0 @@
-- --------------------------------------------------------
-- Quiz module and question bank table definitions.
--
-- The tables are grouped divided by:
-- quiz/questionbank and definition/runtime.
-- --------------------------------------------------------
-- --------------------------------------------------------
-- Quiz module, quiz definition data.
-- --------------------------------------------------------
CREATE TABLE prefix_quiz (
id int(10) unsigned NOT NULL auto_increment,
course int(10) unsigned NOT NULL default '0',
name varchar(255) NOT NULL default '',
intro text NOT NULL default '',
timeopen int(10) unsigned NOT NULL default '0',
timeclose int(10) unsigned NOT NULL default '0',
optionflags int(10) unsigned NOT NULL default '0',
penaltyscheme int(4) unsigned NOT NULL default '0',
attempts smallint(6) NOT NULL default '0',
attemptonlast tinyint(4) NOT NULL default '0',
grademethod tinyint(4) NOT NULL default '1',
decimalpoints int(4) NOT NULL default '2',
review int(10) unsigned NOT NULL default '0',
questionsperpage int(10) NOT NULL default '0',
shufflequestions tinyint(4) NOT NULL default '0',
shuffleanswers tinyint(4) NOT NULL default '0',
questions text NOT NULL default '',
sumgrades int(10) NOT NULL default '0',
grade int(10) NOT NULL default '0',
timecreated int(10) unsigned NOT NULL default '0',
timemodified int(10) unsigned NOT NULL default '0',
timelimit int(2) unsigned NOT NULL default '0',
password varchar(255) NOT NULL default '',
subnet varchar(255) NOT NULL default '',
popup tinyint(4) NOT NULL default '0',
delay1 int(10) NOT NULL default '0',
delay2 int(10) NOT NULL default '0',
PRIMARY KEY (id),
KEY course (course)
) TYPE=MyISAM COMMENT='Main information about each quiz';
CREATE TABLE prefix_quiz_question_instances (
id int(10) unsigned NOT NULL auto_increment,
quiz int(10) unsigned NOT NULL default '0',
question int(10) unsigned NOT NULL default '0',
grade smallint(6) NOT NULL default '0',
PRIMARY KEY (id),
KEY quiz (quiz),
KEY question (question)
) TYPE=MyISAM COMMENT='The grade for a question in a quiz';
CREATE TABLE prefix_quiz_question_versions (
id int(10) unsigned NOT NULL auto_increment,
quiz int(10) unsigned NOT NULL default '0',
oldquestion int(10) unsigned NOT NULL default '0',
newquestion int(10) unsigned NOT NULL default '0',
originalquestion int(10) unsigned NOT NULL default '0',
userid int(10) unsigned NOT NULL default '0',
timestamp int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id)
) TYPE=MyISAM COMMENT='The mapping between old and new versions of a question';
CREATE TABLE prefix_quiz_feedback (
id int(10) unsigned NOT NULL auto_increment,
quizid int(10) unsigned NOT NULL default '0',
feedbacktext text NOT NULL default '',
mingrade double NOT NULL default '0',
maxgrade double NOT NULL default '0',
PRIMARY KEY (id),
KEY quizid (quizid)
) TYPE=MyISAM COMMENT='Feedback given to students based on their overall score on the test';
-- --------------------------------------------------------
-- Quiz module, quiz runtime data.
-- --------------------------------------------------------
CREATE TABLE prefix_quiz_attempts (
id int(10) unsigned NOT NULL auto_increment,
uniqueid int(10) unsigned NOT NULL default '0',
quiz int(10) unsigned NOT NULL default '0',
userid int(10) unsigned NOT NULL default '0',
attempt smallint(6) NOT NULL default '0',
sumgrades float NOT NULL default '0',
timestart int(10) unsigned NOT NULL default '0',
timefinish int(10) unsigned NOT NULL default '0',
timemodified int(10) unsigned NOT NULL default '0',
layout text NOT NULL default '',
preview tinyint(3) unsigned NOT NULL default '0',
PRIMARY KEY (id),
UNIQUE KEY `uniqueid` (`uniqueid`),
KEY quiz (quiz),
KEY userid (userid)
) TYPE=MyISAM COMMENT='Stores various attempts on a quiz';
CREATE TABLE prefix_quiz_grades (
id int(10) unsigned NOT NULL auto_increment,
quiz int(10) unsigned NOT NULL default '0',
userid int(10) unsigned NOT NULL default '0',
grade double NOT NULL default '0',
timemodified int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id),
KEY quiz (quiz),
KEY userid (userid)
) TYPE=MyISAM COMMENT='Final quiz grade (may be best of several attempts)';
-- --------------------------------------------------------
-- Questionbank definition data.
--
-- TODO, these tables no longer belong to the quiz module.
-- They should be moved elsewhere when a good home for them
-- is found.
-- --------------------------------------------------------
CREATE TABLE prefix_question_categories (
id int(10) unsigned NOT NULL auto_increment,
course int(10) unsigned NOT NULL default '0',
name varchar(255) NOT NULL default '',
info text NOT NULL default '',
publish tinyint(4) NOT NULL default '0',
stamp varchar(255) NOT NULL default '',
parent int(10) unsigned NOT NULL default '0',
sortorder int(10) unsigned NOT NULL default '999',
PRIMARY KEY (id),
KEY course (course)
) TYPE=MyISAM COMMENT='Categories are for grouping questions';
CREATE TABLE prefix_question (
id int(10) NOT NULL auto_increment,
category int(10) NOT NULL default '0',
parent int(10) unsigned NOT NULL default '0',
name varchar(255) NOT NULL default '',
questiontext text NOT NULL,
questiontextformat tinyint(2) NOT NULL default '0',
image varchar(255) NOT NULL default '',
generalfeedback text NOT NULL,
defaultgrade int(10) unsigned NOT NULL default '1',
penalty float NOT NULL default '0.1',
qtype varchar(20) NOT NULL default '',
length int(10) unsigned NOT NULL default '1',
stamp varchar(255) NOT NULL default '',
version varchar(255) NOT NULL default '',
hidden int(1) unsigned NOT NULL default '0',
PRIMARY KEY (id),
KEY category (category)
) TYPE=MyISAM COMMENT='The quiz questions themselves';
CREATE TABLE prefix_question_answers (
id int(10) unsigned NOT NULL auto_increment,
question int(10) unsigned NOT NULL default '0',
answer text NOT NULL default '',
fraction float NOT NULL default '0',
feedback text NOT NULL default '',
PRIMARY KEY (id),
KEY question (question)
) TYPE=MyISAM COMMENT='Answers, with a fractional grade (0-1) and feedback';
CREATE TABLE prefix_question_numerical_units (
id int(10) unsigned NOT NULL auto_increment,
question int(10) unsigned NOT NULL default '0',
multiplier decimal(40,20) NOT NULL default '1.00000000000000000000',
unit varchar(50) NOT NULL default '',
PRIMARY KEY (id),
KEY question (question)
) TYPE=MyISAM COMMENT='Optional unit options for numerical questions';
CREATE TABLE prefix_question_datasets (
id int(10) unsigned NOT NULL auto_increment,
question int(10) unsigned NOT NULL default '0',
datasetdefinition int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id),
KEY question (question,datasetdefinition)
) TYPE=MyISAM COMMENT='Many-many relation between questions and dataset definitions';
CREATE TABLE prefix_question_dataset_definitions (
id int(10) unsigned NOT NULL auto_increment,
category int(10) unsigned NOT NULL default '0',
name varchar(255) NOT NULL default '',
type int(10) NOT NULL default '0',
options varchar(255) NOT NULL default '',
itemcount int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id),
KEY category (category)
) TYPE=MyISAM COMMENT='Organises and stores properties for dataset items';
CREATE TABLE prefix_question_dataset_items (
id int(10) unsigned NOT NULL auto_increment,
definition int(10) unsigned NOT NULL default '0',
itemnumber int(10) unsigned NOT NULL default '0',
value varchar(255) NOT NULL default '',
PRIMARY KEY (id),
KEY definition (definition)
) TYPE=MyISAM COMMENT='Individual dataset items';
-- --------------------------------------------------------
-- Questionbank runtime data.
-- See above TODO.
-- --------------------------------------------------------
CREATE TABLE prefix_question_attempts (
id int(10) unsigned NOT NULL auto_increment,
modulename varchar(20) NOT NULL default 'quiz',
PRIMARY KEY (id)
) TYPE=MyISAM COMMENT='Student attempts. This table gets extended by the modules';
CREATE TABLE prefix_question_sessions (
id int(10) unsigned NOT NULL auto_increment,
attemptid int(10) unsigned NOT NULL default '0',
questionid int(10) unsigned NOT NULL default '0',
newest int(10) unsigned NOT NULL default '0',
newgraded int(10) unsigned NOT NULL default '0',
sumpenalty float NOT NULL default '0',
manualcomment text NOT NULL default '',
PRIMARY KEY (id),
UNIQUE KEY attemptid (attemptid,questionid)
) TYPE=MyISAM COMMENT='Gives ids of the newest open and newest graded states';
CREATE TABLE prefix_question_states (
id int(10) unsigned NOT NULL auto_increment,
attempt int(10) unsigned NOT NULL default '0',
question int(10) unsigned NOT NULL default '0',
originalquestion int(10) unsigned NOT NULL default '0',
seq_number int(6) unsigned NOT NULL default '0',
answer text NOT NULL default '',
timestamp int(10) unsigned NOT NULL default '0',
event int(4) unsigned NOT NULL default '0',
grade float NOT NULL default '0',
raw_grade float NOT NULL default '0',
penalty float NOT NULL default '0',
PRIMARY KEY (id),
KEY attempt (attempt),
KEY question (question)
) TYPE=MyISAM COMMENT='Stores user responses to a quiz, and percentage grades';
-- --------------------------------------------------------
-- Quiz log actions.
-- --------------------------------------------------------
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('quiz', 'add', 'quiz', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('quiz', 'update', 'quiz', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('quiz', 'view', 'quiz', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('quiz', 'report', 'quiz', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('quiz', 'attempt', 'quiz', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('quiz', 'submit', 'quiz', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('quiz', 'review', 'quiz', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('quiz', 'editquestions', 'quiz', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('quiz', 'preview', 'quiz', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('quiz', 'start attempt', 'quiz', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('quiz', 'close attempt', 'quiz', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('quiz', 'continue attempt', 'quiz', 'name');
-236
View File
@@ -1,236 +0,0 @@
-- --------------------------------------------------------
-- Quiz module and question bank table definitions.
--
-- The tables are grouped divided by:
-- quiz/questionbank and definition/runtime.
-- --------------------------------------------------------
-- --------------------------------------------------------
-- Quiz module, quiz definition data.
-- --------------------------------------------------------
CREATE TABLE prefix_quiz (
id SERIAL PRIMARY KEY,
course integer NOT NULL default '0',
name varchar(255) NOT NULL default '',
intro text NOT NULL default '',
timeopen integer NOT NULL default '0',
timeclose integer NOT NULL default '0',
optionflags integer NOT NULL default '0',
penaltyscheme integer NOT NULL default '0',
attempts integer NOT NULL default '0',
attemptonlast integer NOT NULL default '0',
grademethod integer NOT NULL default '1',
decimalpoints integer NOT NULL default '2',
review integer NOT NULL default '0',
questionsperpage integer NOT NULL default '0',
shufflequestions integer NOT NULL default '0',
shuffleanswers integer NOT NULL default '0',
questions text NOT NULL default '',
sumgrades integer NOT NULL default '0',
grade integer NOT NULL default '0',
timecreated integer NOT NULL default '0',
timemodified integer NOT NULL default '0',
timelimit integer NOT NULL default '0',
password varchar(255) NOT NULL default '',
subnet varchar(255) NOT NULL default '',
popup integer NOT NULL default '0',
delay1 integer NOT NULL default '0',
delay2 integer NOT NULL default '0'
);
CREATE INDEX prefix_quiz_course_idx ON prefix_quiz (course);
CREATE TABLE prefix_quiz_question_instances (
id SERIAL PRIMARY KEY,
quiz integer NOT NULL default '0',
question integer NOT NULL default '0',
grade integer NOT NULL default '0'
);
CREATE INDEX prefix_quiz_question_instances_quiz_idx ON prefix_quiz_question_instances (quiz);
CREATE INDEX prefix_quiz_question_instances_question_idx ON prefix_quiz_question_instances (question);
CREATE TABLE prefix_quiz_question_versions (
id SERIAL PRIMARY KEY,
quiz integer NOT NULL default '0',
oldquestion integer NOT NULL default '0',
newquestion integer NOT NULL default '0',
originalquestion integer NOT NULL default '0',
userid integer NOT NULL default '0',
timestamp integer NOT NULL default '0'
);
CREATE TABLE prefix_quiz_feedback (
id SERIAL PRIMARY KEY,
quizid integer NOT NULL default '0',
feedbacktext text NOT NULL default '',
mingrade real NOT NULL default '0',
maxgrade real NOT NULL default '0'
);
CREATE INDEX prefix_quiz_feedback_quizid_idx ON prefix_quiz_feedback (quizid);
-- --------------------------------------------------------
-- Quiz module, quiz runtime data.
-- --------------------------------------------------------
CREATE TABLE prefix_quiz_attempts (
id SERIAL PRIMARY KEY,
uniqueid integer NOT NULL default '0',
quiz integer NOT NULL default '0',
userid integer NOT NULL default '0',
attempt integer NOT NULL default '0',
sumgrades real NOT NULL default '0',
timestart integer NOT NULL default '0',
timefinish integer NOT NULL default '0',
timemodified integer NOT NULL default '0',
layout text NOT NULL default '',
preview integer NOT NULL default '0'
);
CREATE INDEX prefix_quiz_attempts_quiz_idx ON prefix_quiz_attempts (quiz);
CREATE INDEX prefix_quiz_attempts_userid_idx ON prefix_quiz_attempts (userid);
CREATE UNIQUE INDEX prefix_quiz_attempts_uniqueid_uk ON prefix_quiz_attempts (uniqueid);
CREATE TABLE prefix_quiz_grades (
id SERIAL PRIMARY KEY,
quiz integer NOT NULL default '0',
userid integer NOT NULL default '0',
grade real NOT NULL default '0',
timemodified integer NOT NULL default '0'
);
CREATE INDEX prefix_quiz_grades_quiz_idx ON prefix_quiz_grades (quiz);
CREATE INDEX prefix_quiz_grades_userid_idx ON prefix_quiz_grades (userid);
-- --------------------------------------------------------
-- Questionbank definition data.
--
-- TODO, these tables no longer belong to the quiz module.
-- They should be moved elsewhere when a good home for them
-- is found.
-- --------------------------------------------------------
CREATE TABLE prefix_question_categories (
id SERIAL PRIMARY KEY,
course integer NOT NULL default '0',
name varchar(255) NOT NULL default '',
info text NOT NULL default '',
publish integer NOT NULL default '0',
stamp varchar(255) NOT NULL default '',
parent integer NOT NULL default '0',
sortorder integer NOT NULL default '999'
);
CREATE INDEX prefix_question_categories_course_idx ON prefix_question_categories (course);
CREATE TABLE prefix_question (
id SERIAL PRIMARY KEY,
category integer NOT NULL default '0',
parent integer NOT NULL default '0',
name varchar(255) NOT NULL default '',
questiontext text NOT NULL default '',
questiontextformat integer NOT NULL default '0',
image varchar(255) NOT NULL default '',
generalfeedback text NOT NULL default '',
defaultgrade integer NOT NULL default '1',
penalty real NOT NULL default '0.1',
qtype varchar(20) NOT NULL default '0',
length integer NOT NULL DEFAULT '1',
stamp varchar(255) NOT NULL default '',
version varchar(255) NOT NULL default '',
hidden integer NOT NULL default '0'
);
CREATE INDEX prefix_question_category_idx ON prefix_question (category);
CREATE TABLE prefix_question_answers (
id SERIAL PRIMARY KEY,
question integer NOT NULL default '0',
answer text NOT NULL default '',
fraction real NOT NULL default '0',
feedback text NOT NULL default ''
);
CREATE INDEX prefix_question_answers_question_idx ON prefix_question_answers (question);
CREATE TABLE prefix_question_numerical_units (
id SERIAL8 PRIMARY KEY,
question INT8 NOT NULL default '0',
multiplier decimal(40,20) NOT NULL default '1.00000000000000000000',
unit varchar(50) NOT NULL default ''
);
CREATE INDEX prefix_question_numerical_units_question_idx ON prefix_question_numerical_units (question);
CREATE TABLE prefix_question_datasets (
id SERIAL8 PRIMARY KEY,
question INT8 NOT NULL default '0',
datasetdefinition INT8 NOT NULL default '0'
);
CREATE INDEX prefix_question_datasets_question_datasetdefinition_idx ON prefix_question_datasets (question,datasetdefinition);
CREATE TABLE prefix_question_dataset_definitions (
id SERIAL8 PRIMARY KEY,
category INT8 NOT NULL default '0',
name varchar(255) NOT NULL default '',
type INT8 NOT NULL default '0',
options varchar(255) NOT NULL default '',
itemcount INT8 NOT NULL default '0'
);
CREATE INDEX prefix_question_dataset_definitions_category_idx ON prefix_question_dataset_definitions (category);
CREATE TABLE prefix_question_dataset_items (
id SERIAL8 PRIMARY KEY,
definition INT8 NOT NULL default '0',
itemnumber INT8 NOT NULL default '0',
value varchar(255) NOT NULL default ''
);
CREATE INDEX prefix_question_dataset_items_definition_idx ON prefix_question_dataset_items (definition);
-- --------------------------------------------------------
-- Questionbank runtime data.
-- See above TODO.
-- --------------------------------------------------------
CREATE TABLE prefix_question_attempts (
id SERIAL PRIMARY KEY,
modulename varchar(20) NOT NULL default 'quiz'
);
CREATE TABLE prefix_question_sessions (
id SERIAL PRIMARY KEY,
attemptid integer NOT NULL default '0',
questionid integer NOT NULL default '0',
newest integer NOT NULL default '0',
newgraded integer NOT NULL default '0',
sumpenalty real NOT NULL default '0',
manualcomment text NOT NULL default ''
);
CREATE UNIQUE INDEX prefix_question_sessions_attempt_idx ON prefix_question_sessions (attemptid,questionid);
CREATE TABLE prefix_question_states (
id SERIAL PRIMARY KEY,
attempt integer NOT NULL default '0',
question integer NOT NULL default '0',
originalquestion integer NOT NULL default '0',
seq_number integer NOT NULL default '0',
answer text NOT NULL default '',
timestamp integer NOT NULL default '0',
event integer NOT NULL default '0',
grade real NOT NULL default '0',
raw_grade real NOT NULL default '0',
penalty real NOT NULL default '0'
);
CREATE INDEX prefix_question_states_attempt_idx ON prefix_question_states (attempt);
CREATE INDEX prefix_question_states_question_idx ON prefix_question_states (question);
-- --------------------------------------------------------
-- Quiz log actions.
-- --------------------------------------------------------
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('quiz', 'add', 'quiz', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('quiz', 'update', 'quiz', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('quiz', 'view', 'quiz', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('quiz', 'report', 'quiz', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('quiz', 'attempt', 'quiz', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('quiz', 'submit', 'quiz', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('quiz', 'review', 'quiz', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('quiz', 'editquestions', 'quiz', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('quiz', 'preview', 'quiz', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('quiz', 'start attempt', 'quiz', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('quiz', 'close attempt', 'quiz', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('quiz', 'continue attempt', 'quiz', 'name');
-40
View File
@@ -1,40 +0,0 @@
# phpMyAdmin MySQL-Dump
# version 2.2.1
# http://phpwizard.net/phpMyAdmin/
# http://phpmyadmin.sourceforge.net/ (download page)
#
# Host: localhost
# Generation Time: Nov 14, 2001 at 04:43 PM
# Server version: 3.23.36
# PHP Version: 4.0.6
# Database : `moodle`
# --------------------------------------------------------
#
# Table structure for table `resource`
#
CREATE TABLE prefix_resource (
id int(10) unsigned NOT NULL auto_increment,
course int(10) unsigned NOT NULL default '0',
name varchar(255) NOT NULL default '',
type varchar(30) NOT NULL default '',
reference varchar(255) NOT NULL default '',
summary text NOT NULL default '',
alltext text NOT NULL default '',
popup text NOT NULL default '',
options varchar(255) NOT NULL default '',
timemodified int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id),
UNIQUE KEY id (id),
KEY `course` (`course`)
) TYPE=MyISAM;
#
# Dumping data for table `log_display`
#
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('resource', 'view', 'resource', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('resource', 'update', 'resource', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('resource', 'add', 'resource', 'name');
-38
View File
@@ -1,38 +0,0 @@
# phpMyAdmin MySQL-Dump
# version 2.2.1
# http://phpwizard.net/phpMyAdmin/
# http://phpmyadmin.sourceforge.net/ (download page)
#
# Host: localhost
# Generation Time: Nov 14, 2001 at 04:43 PM
# Server version: 3.23.36
# PHP Version: 4.0.6
# Database : `moodle`
# --------------------------------------------------------
#
# Table structure for table `resource`
#
CREATE TABLE prefix_resource (
id SERIAL PRIMARY KEY,
course integer NOT NULL default '0',
name varchar(255) NOT NULL default '',
type varchar(30) NOT NULL default '',
reference varchar(255) default NULL,
summary text NOT NULL default '',
alltext text NOT NULL default '',
popup text NOT NULL default '',
options varchar(255) NOT NULL default '',
timemodified integer NOT NULL default '0'
);
CREATE INDEX prefix_resource_course_idx ON prefix_resource (course);
#
# Dumping data for table `log_display`
#
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('resource', 'view', 'resource', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('resource', 'update', 'resource', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('resource', 'add', 'resource', 'name');
-31
View File
@@ -1,31 +0,0 @@
<?php // $Id$
// Fetches an external URL and passes it through the filters
die; //not used anymore, please FIX SC #99 before enabling
require_once("../../config.php");
require_once("lib.php");
$id = required_param('id', PARAM_INT); // Course Module ID
$url = required_param('url', PARAM_URL); // url to fetch
if (! $cm = get_coursemodule_from_id('resource', $id)) {
error("Course Module ID was incorrect");
}
if (! $course = get_record("course", "id", $cm->course)) {
error("Course is misconfigured");
}
require_course_login($course, true, $cm);
if (! $resource = get_record("resource", "id", $cm->instance)) {
error("Resource ID was incorrect");
}
$content = resource_fetch_remote_file($cm, $url);
$formatoptions->noclean = true;
echo format_text($content->results, FORMAT_HTML, $formatoptions, $course->id);
?>
-13
View File
@@ -1,13 +0,0 @@
<?php // $Id$
// This script prints the setup screen for any resource
// It does this by calling the setup method in the appropriate class
require_once("$CFG->dirroot/mod/resource/lib.php");
require_once("$CFG->dirroot/mod/resource/type/$form->type/resource.class.php");
$resourceclass = "resource_$form->type";
$resource = new $resourceclass();
$resource->setup($form);
?>
-33
View File
@@ -1,33 +0,0 @@
<form id="form" method="post" action="<?php echo "$CFG->wwwroot/course/mod.php" ?>">
<fieldset class="invisiblefieldset">
<input type="hidden" name="type" value="<?php p($form->type) ?>" />
<input type="hidden" name="course" value="<?php p($form->course) ?>" />
<input type="hidden" name="sesskey" value="<?php p($form->sesskey) ?>" />
<input type="hidden" name="coursemodule" value="<?php p($form->coursemodule) ?>" />
<input type="hidden" name="section" value="<?php p($form->section) ?>" />
<input type="hidden" name="module" value="<?php p($form->module) ?>" />
<input type="hidden" name="modulename" value="<?php p($form->modulename) ?>" />
<input type="hidden" name="instance" value="<?php p($form->instance) ?>" />
<input type="hidden" name="mode" value="<?php p($form->mode) ?>" />
<table cellpadding="5">
<tr valign="top">
<td align="right"><b><?php print_string("name") ?>:</b></td>
<td>
<input type="text" name="name" size="65" value="<?php p($form->name) ?>" alt="<?php print_string("name") ?>" />
</td>
</tr>
<tr valign="top">
<td align="right"><b><?php print_string("summary") ?>:</b><br />
<?php
helpbutton("summary", get_string("summary"), "resource", true, true);
?>
<br />
</td>
<td>
<?php print_textarea($usehtmleditor, 10, 65, 680, 400, "summary", $form->summary); ?>
<br />
</td>
</tr>
-6
View File
@@ -1,6 +0,0 @@
</table>
<div class="boxaligncenter">
<input type="submit" value="<?php print_string("savechanges") ?>" />
</div>
</fieldset>
</form>
@@ -1,16 +0,0 @@
<tr valign="top">
<td align="right" style="white-space:nowrap;">
<b><?php print_string("resourcetypedirectory", "resource") ?>:</b>
</td>
<td>
<?php choose_from_menu($dirs, "reference", $form->reference, get_string("maindirectory", "resource"), '', '') ?>
</td>
</tr>
<tr valign="top">
<td align="right" nowrap="nowrap">&nbsp;
</td>
<td>
<p><?php print_string("directoryinfo", "resource") ?></p>
</td>
</tr>
<?php print_visible_setting($form); ?>
-215
View File
@@ -1,215 +0,0 @@
<tr valign="top">
<td align="right" style="white-space:nowrap;">
<script type="text/javascript">
//<![CDATA[
function showhide (id, set) {
divobj = document.getElementById(id);
butobj = document.getElementById(id+'button');
prefobj = document.getElementById(id+'pref');
if (set == true) {
if (prefobj.value == '1') {
divobj.style.display = 'block';
butobj.value = '<?php print_string("hidesettings") ?>';
} else {
divobj.style.display = 'none';
butobj.value = '<?php print_string("showsettings") ?>...';
}
} else {
if (prefobj.value == '1') {
divobj.style.display = 'none';
butobj.value = '<?php print_string("showsettings") ?>...';
prefobj.value = '0';
} else {
divobj.style.display = 'block';
butobj.value = '<?php print_string("hidesettings") ?>';
prefobj.value = '1';
}
}
}
//]]>
</script>
<b><?php echo $strfilename ?>:</b>
</td>
<td>
<?php
echo "<input type=\"text\" name=\"reference\" size=\"90\" value=\"$form->reference\" alt=\"reference\" /><br />";
button_to_popup_window ("/files/index.php?id=$form->course&amp;choose=form.reference", "coursefiles", $strchooseafile, 500, 750, $strchooseafile);
echo "<input type=\"button\" name=\"searchbutton\" value=\"$strsearch ...\" ".
"onclick=\"return window.open('$CFG->resource_websearch', 'websearch', 'menubar=1,location=1,directories=1,toolbar=1,scrollbars,resizable,width=800,height=600');\" />\n";
if ($CFG->resource_allowlocalfiles) {
button_to_popup_window ("/mod/resource/type/file/localfile.php?choose=form.reference",
"localfiles", get_string('localfilechoose', 'resource'), 400, 600,
get_string('localfilechoose', 'resource'));
}
?>
</td>
</tr>
<tr><td colspan="2"><hr /></td></tr>
<tr>
<td align="right"><b><?php print_string("display", "resource") ?>:</b></td>
<td>
<input type="button" value="hide settings" id="windowsettingsbutton" onclick="javascript: return showhide('windowsettings');" />
<input type="hidden" name="windowsettingspref" id="windowsettingspref"
value="<?php echo get_user_preferences('resource_windowsettingspref', $CFG->resource_windowsettings); ?>" />
<?php helpbutton("window", get_string("display", "resource"), "resource", true) ?>
</td>
</tr>
<tr><td colspan="2">
<div id="windowsettings">
<table class="boxaligncenter">
<tr valign="top">
<td colspan="2">
<script type="text/javascript">
//<![CDATA[
var popupitems = [<?php echo $popupoptions; ?>];
var frameitem = [<?php echo $frameoption; ?>];
var allitems = [<?php echo $alloptions; ?>];
//]]>
</script>
<input type="radio" name="windowpopup" value="0" alt="<?php print_string('pagewindow', 'resource') ?>" <?php echo ($windowtype != "popup") ? "checked=\"checked\"" : "" ?>
onclick="lockoptions('form', 'windowpopup[0]', frameitem);
return lockoptions('form', 'windowpopup[1]', popupitems);" />
<b title="<?php print_string("pagedisplay", "resource") ?>"><?php print_string("pagewindow", "resource") ?></b>
<blockquote>
<fieldset class="invisiblefieldset">
<input type="hidden" name="hframepage" value="0" />
<input type="checkbox" name="framepage" value="1" <?php echo ($form->options == "frame") ? "checked=\"checked\"" : "" ?> alt="<?php print_string('frameifpossible', 'resource') ?>" />
<?php print_string("frameifpossible", "resource") ?>
</fieldset>
</blockquote>
</td>
</tr>
<tr valign="top">
<td colspan="2">
<input name="windowpopup" type="radio" value="1" alt="<?php p($strnewwindow)?>" <?php echo ($windowtype == "popup") ? "checked=\"checked\"" : "" ?>
onclick="lockoptions('form', 'windowpopup[0]', frameitem);
return lockoptions('form', 'windowpopup[1]', popupitems);" />
<b title="<?php p($strnewwindowopen) ?>"><?php p($strnewwindow) ?></b>
<blockquote>
<fieldset class="invisiblefieldset">
<?php
foreach ($window as $name => $value) {
if ($name == "height" or $name == "width") {
continue;
}
echo "<input name=\"h$name\" type=\"hidden\" value=\"0\" />";
echo "<input name=\"$name\" type=\"checkbox\" value=\"1\" ".$window->$name." alt=\"$name\" />";
$stringname = "str$name";
echo $$stringname."<br />";
}
?>
<input name="hwidth" type="hidden" value="0" />
<input name="width" type="text" size="4" value="<?php p($window->width) ?>" alt="<?php p($strwidth) ?>" />
<?php p($strwidth) ?><br />
<input name="hheight" type="hidden" value="0" />
<input name="height" type="text" size="4" value="<?php p($window->height) ?>" alt="<?php p($strheight) ?>" />
<?php p($strheight) ?><br />
<?php
if ($windowtype == "page") {
echo "<script type=\"text/javascript\">";
echo "\n//<![CDATA[\n";
echo "lockoptions('form','windowpopup[1]', popupitems);";
echo "\n//]]>\n";
echo "</script>";
} else {
echo "<script type=\"text/javascript\">";
echo "\n//<![CDATA[\n";
echo "lockoptions('form','windowpopup[0]', frameitem);";
echo "\n//]]>\n";
echo "</script>";
}
?>
</fieldset>
</blockquote>
</td>
</tr>
</table>
</div>
</td></tr>
<tr>
<td align="right"><b><?php print_string("parameters", "resource") ?>:</b></td>
<td>
<input type="button" value="hide settings" id="parametersettingsbutton" onclick="javascript: return showhide('parametersettings');" />
<input type="hidden" name="parametersettingspref" id="parametersettingspref"
value="<?php echo get_user_preferences('resource_parametersettingspref', $CFG->resource_parametersettings); ?>" />
<?php helpbutton("parameters", get_string("parameters", "resource"), "resource", true) ?>
</td>
</tr>
<tr><td colspan="2">
<div id="parametersettings">
<table class="noxaligncenter">
<tr>
<td align="center"><?php print_string("parameter", "resource") ?></td>
<td align="center"><?php print_string("variablename", "resource") ?></td>
</tr>
<?php
for ($i=0; $i < $this->maxparameters; $i++) {
echo "<tr>\n";
echo "<td valign=\"top\">\n";
echo "<select name=\"parameter$i\">\n";
echo "<option value=\"-\">-- ".get_string('chooseparameter', 'resource')." --</option>\n";
foreach ($this->parameters as $field=>$fieldarr) {
if ($fieldarr['value'] === "optgroup") {
echo "<optgroup label=\"{$fieldarr['langstr']}\">\n";
} elseif ($fieldarr['value'] === "/optgroup") {
echo "</optgroup>\n";
} else {
echo "<option value=\"$field\"";
if ($alltextfield[$i]['parameter'] == $field) {
echo " selected=\"selected\"";
}
echo ">{$fieldarr['langstr']}</option>\n";
}
}
echo "</select>\n";
echo "</td>\n";
echo "<td valign=\"top\">\n";
echo "<input type=\"text\" name=\"parse$i\" value=\"{$alltextfield[$i]['parse']}\" alt=\"parameter$i\"/>\n";
echo "</td>\n";
echo "</tr>\n";
}
?>
</table>
</div>
<script type="text/javascript">
//<![CDATA[
showhide('parametersettings', true);
showhide('windowsettings', true);
//]]>
</script>
</td></tr>
<?php print_visible_setting($form); ?>
-143
View File
@@ -1,143 +0,0 @@
<tr valign="top">
<td align="right" style="white-space:nowrap;">
<script type="text/javascript">
//<![CDATA[
function showhide (id, set) {
divobj = document.getElementById(id);
butobj = document.getElementById(id+'button');
prefobj = document.getElementById(id+'pref');
if (set == true) {
if (prefobj.value == '1') {
divobj.style.display = 'block';
butobj.value = '<?php print_string("hidesettings") ?>';
} else {
divobj.style.display = 'none';
butobj.value = '<?php print_string("showsettings") ?>...';
}
} else {
if (prefobj.value == '1') {
divobj.style.display = 'none';
butobj.value = '<?php print_string("showsettings") ?>...';
prefobj.value = '0';
} else {
divobj.style.display = 'block';
butobj.value = '<?php print_string("hidesettings") ?>';
prefobj.value = '1';
}
}
}
//]]>
</script>
<b><?php print_string("fulltext", "resource") ?>:</b><br />
<?php helpbutton("writing", get_string("helpwriting"), "moodle", true, true) ?><br />
<?php helpbutton("text", get_string("helptext"), "moodle", true, true) ?><br />
<?php emoticonhelpbutton("theform", "alltext") ?> <br />
</td>
<td>
<?php print_textarea($usehtmleditor, 30, 60, 680, 500, "alltext", $form->alltext); ?>
</td>
</tr>
<tr><td colspan="2"><hr /></td></tr>
<tr>
<td align="right"><b><?php print_string("display", "resource") ?>:</b></td>
<td>
<input type="button" value="hide settings" id="windowsettingsbutton" onclick="javascript: return showhide('windowsettings');" />
<input type="hidden" name="windowsettingspref" id="windowsettingspref"
value="<?php echo get_user_preferences('resource_windowsettingspref', $CFG->resource_windowsettings); ?>" />
<?php helpbutton("window", get_string("display", "resource"), "resource", true) ?>
</td>
</tr>
<tr><td colspan="2">
<div id="windowsettings">
<table class="boxaligncenter">
<tr valign="top">
<td colspan="2">
<script type="text/javascript">
//<![CDATA[
var popupitems = [<?php echo $popupoptions; ?>];
var blockitem = [<?php echo $blockoption; ?>];
var allitems = [<?php echo $alloptions; ?>];
//]]>
</script>
<input type="radio" name="windowpopup" value="0" alt="<?php print_string('pagewindow', 'resource') ?>" <?php echo ($windowtype != 'popup') ? 'checked="checked"' : '' ?>
onclick="lockoptions('form', 'windowpopup[0]', blockitem);
return lockoptions('form', 'windowpopup[1]', popupitems);" />
<b title="<?php print_string('pagedisplay', 'resource') ?>"><?php print_string('pagewindow', 'resource') ?></b>
<blockquote>
<fieldset class="invisiblefieldset">
<input type="hidden" name="hblockdisplay" value="0" />
<input type="checkbox" name="blockdisplay" value="1" <?php echo ($form->options == "showblocks") ? "checked=\"checked\"" : "" ?> alt="<?php print_string('showcourseblocks', 'resource') ?>" />
<?php print_string("showcourseblocks", "resource") ?>
</fieldset>
</blockquote>
</td>
</tr>
<tr valign="top">
<td colspan="2">
<input name="windowpopup" type="radio" value="1" alt="<?php p($strnewwindow) ?>" <?php echo ($windowtype == "popup") ? "checked=\"checked\"" : "" ?>
onclick="lockoptions('form', 'windowpopup[0]', blockitem);
return lockoptions('form', 'windowpopup[1]', popupitems);" />
<b title="<?php p($strnewwindowopen) ?>"><?php p($strnewwindow) ?></b>
<blockquote>
<fieldset class="invisiblefieldset">
<?php
foreach ($window as $name => $value) {
if ($name == "height" or $name == "width") {
continue;
}
$stringname = "str$name";
echo "<input name=\"h$name\" type=\"hidden\" value=\"0\" />";
echo "<input name=\"$name\" type=\"checkbox\" value=\"1\" alt=\"".$$stringname."\" ".$window->$name." />";
echo $$stringname."<br />";
}
?>
<input name="hwidth" type="hidden" value="0" />
<input name="width" type="text" size="4" value="<?php p($window->width) ?>" alt="<?php p($strwidth) ?>" />
<?php p($strwidth) ?><br />
<input name="hheight" type="hidden" value="0" />
<input name="height" type="text" size="4" value="<?php p($window->height) ?>" alt="<?php p($strheight) ?>"/>
<?php p($strheight) ?><br />
<?php
if ($windowtype == "page") {
echo "<script type=\"text/javascript\">\n//<![CDATA[\n";
echo "lockoptions('form','windowpopup[1]', popupitems);";
echo "\n//]]>\n</script>";
}
?>
</fieldset>
</blockquote>
</td>
</tr>
</table>
</div>
<script type="text/javascript">
//<![CDATA[
showhide('windowsettings', true);
//]]>
</script>
</td></tr>
<?php print_visible_setting($form); ?>
@@ -1,226 +0,0 @@
<tr valign="top">
<td align="right" style="white-space:nowrap;">
<script type="text/javascript">
//<![CDATA[
function showhide (id, set) {
divobj = document.getElementById(id);
butobj = document.getElementById(id+'button');
prefobj = document.getElementById(id+'pref');
if (set == true) {
if (prefobj.value == '1') {
divobj.style.display = 'block';
butobj.value = '<?php print_string("hidesettings") ?>';
} else {
divobj.style.display = 'none';
butobj.value = '<?php print_string("showsettings") ?>...';
}
} else {
if (prefobj.value == '1') {
divobj.style.display = 'none';
butobj.value = '<?php print_string("showsettings") ?>...';
prefobj.value = '0';
} else {
divobj.style.display = 'block';
butobj.value = '<?php print_string("hidesettings") ?>';
prefobj.value = '1';
}
}
}
//]]>
</script>
<b><?php echo $strfilename ?>:</b>
</td>
<td>
<?php
echo "<input type=\"text\" name=\"reference\" size=\"90\" value=\"$form->reference\" alt=\"reference\" /><br />";
?>
</td>
</tr>
<tr valign="top">
<td align="right" style="white-space:nowrap;">
<img src="<?php echo $CFG->wwwroot.'/mod/resource/type/repository/hive/hp-footer-hive-powered.gif' ?>" style="valign:top;" alt="" />
</td>
<td>
<?php
$options = 'menubar,location,toolbar,scrollbars,resizable,width=750,height=500';
button_to_popup_window ('/mod/resource/type/repository/hive/openlitebrowse.php',
'LiteBrowse', 'Browse for content in Hive', 500, 750,
'Browse for content in the HarvestRoad Hive repository', $options);
button_to_popup_window ('/mod/resource/type/repository/hive/openlitesearch.php',
'LiteSearch', 'Search for content in Hive ', 500, 750,
'Search for content in the HarvestRoad Hive repository', $options);
// wobble.
button_to_popup_window ('/mod/resource/type/repository/hive/openlitepublish.php',
'LitePublish', 'Add new item to Hive ', 500, 750,
'Add new content to the HarvestRoad Hive repository', $options);
helpbutton("hive", "HarvestRoad Hive", "resource/type", true);
?>
</td>
</tr>
<tr><td colspan="2"><hr /></td></tr>
<tr>
<td align="right"><b><?php print_string("display", "resource") ?>:</b></td>
<td>
<input type="button" value="hide settings" id="windowsettingsbutton" onclick="javascript: return showhide('windowsettings');" />
<input type="hidden" name="windowsettingspref" id="windowsettingspref"
value="<?php echo get_user_preferences('resource_windowsettingspref', $CFG->resource_windowsettings); ?>" />
<?php helpbutton("window", get_string("display", "resource"), "resource", true) ?>
</td>
</tr>
<tr><td colspan="2">
<div id="windowsettings">
<table style="boxaligncenter">
<tr valign="top">
<td colspan="2">
<script type="text/javascript">
//<![CDATA[
var popupitems = [<?php echo $popupoptions; ?>];
var frameitem = [<?php echo $frameoption; ?>];
var allitems = [<?php echo $alloptions; ?>];
//]]>
</script>
<input type="radio" name="windowpopup" value="0" alt="<?php print_string('pagewindow', 'resource') ?>" <?php echo ($windowtype != "popup") ? "checked=\"checked\"" : "" ?>
onclick="lockoptions('form', 'windowpopup[0]', frameitem);
return lockoptions('form', 'windowpopup[1]', popupitems);" />
<b title="<?php print_string("pagedisplay", "resource") ?>"><?php print_string("pagewindow", "resource") ?></b>
<blockquote>
<fieldset class="invisiblefieldset">
<input type="hidden" name="hframepage" value="0" />
<input type="checkbox" name="framepage" value="1" <?php echo ($form->options == "frame") ? "checked=\"checked\"" : "" ?> alt="<?php print_string('frameifpossible', 'resource') ?>" />
<?php print_string("frameifpossible", "resource") ?>
</fieldset>
</blockquote>
</td>
</tr>
<tr valign="top">
<td colspan="2">
<input name="windowpopup" type="radio" value="1" alt="<?php p($strnewwindow)?>" <?php echo ($windowtype == "popup") ? "checked=\"checked\"" : "" ?>
onclick="lockoptions('form', 'windowpopup[0]', frameitem);
return lockoptions('form', 'windowpopup[1]', popupitems);" />
<b title="<?php p($strnewwindowopen) ?>"><?php p($strnewwindow) ?></b>
<blockquote>
<fieldset class="invisiblefieldset">
<?php
foreach ($window as $name => $value) {
if ($name == "height" or $name == "width") {
continue;
}
echo "<input name=\"h$name\" type=\"hidden\" value=\"0\" />";
echo "<input name=\"$name\" type=\"checkbox\" value=\"1\" ".$window->$name." alt=\"$name\" />";
$stringname = "str$name";
echo $$stringname."<br />";
}
?>
<input name="hwidth" type="hidden" value="0" />
<input name="width" type="text" size="4" value="<?php p($window->width) ?>" alt="<?php p($strwidth) ?>" />
<?php p($strwidth) ?><br />
<input name="hheight" type="hidden" value="0" />
<input name="height" type="text" size="4" value="<?php p($window->height) ?>" alt="<?php p($strheight) ?>" />
<?php p($strheight) ?><br />
<?php
if ($windowtype == "page") {
echo "<script type=\"text/javascript\">\n//<![CDATA[\n";
echo "lockoptions('form','windowpopup[1]', popupitems);";
echo "\n//]]>\n</script>";
} else {
echo "<script type=\"text/javascript\">\n//<![CDATA[\n";
echo "lockoptions('form','windowpopup[0]', frameitem);";
echo "\n//]]>\n</script>";
}
?>
</fieldset>
</blockquote>
</td>
</tr>
</table>
</div>
</td></tr>
<tr>
<td align="right"><b><?php print_string("parameters", "resource") ?>:</b></td>
<td>
<input type="button" value="hide settings" id="parametersettingsbutton" onclick="javascript: return showhide('parametersettings');" />
<input type="hidden" name="parametersettingspref" id="parametersettingspref"
value="<?php echo get_user_preferences('resource_parametersettingspref', $CFG->resource_parametersettings); ?>" />
<?php helpbutton("parameters", get_string("parameters", "resource"), "resource", true) ?>
</td>
</tr>
<tr><td colspan="2">
<div id="parametersettings">
<table class="boxaligncenter">
<tr>
<td align="center"><?php print_string("parameter", "resource") ?></td>
<td align="center"><?php print_string("variablename", "resource") ?></td>
</tr>
<?php
for ($i=0; $i < $this->maxparameters; $i++) {
echo "<tr>\n";
echo "<td valign=\"top\">\n";
echo "<select name=\"parameter$i\">\n";
echo "<option value=\"-\">-- ".get_string('chooseparameter', 'resource')." --</option>\n";
foreach ($this->parameters as $field=>$fieldarr) {
if ($fieldarr['value'] === "optgroup") {
echo "<optgroup label=\"{$fieldarr['langstr']}\">\n";
} elseif ($fieldarr['value'] === "/optgroup") {
echo "</optgroup>\n";
} else {
echo "<option value=\"$field\"";
if ($alltextfield[$i]['parameter'] == $field) {
echo " selected=\"selected\"";
}
echo ">{$fieldarr['langstr']}</option>\n";
}
}
echo "</select>\n";
echo "</td>\n";
echo "<td valign=\"top\">\n";
echo "<input type=\"text\" name=\"parse$i\" value=\"{$alltextfield[$i]['parse']}\" alt=\"parameter$i\"/>\n";
echo "</td>\n";
echo "</tr>\n";
}
?>
</table>
</div>
<script type="text/javascript">
//<![CDATA[
showhide('parametersettings', true);
showhide('windowsettings', true);
//]]>
</script>
</td></tr>
<?php print_visible_setting($form); ?>
-160
View File
@@ -1,160 +0,0 @@
<tr valign="top">
<td colspan="2">
<script type="text/javascript">
//<![CDATA[
function showhide (id, set) {
divobj = document.getElementById(id);
butobj = document.getElementById(id+'button');
prefobj = document.getElementById(id+'pref');
if (set == true) {
if (prefobj.value == '1') {
divobj.style.display = 'block';
butobj.value = '<?php print_string("hidesettings") ?>';
} else {
divobj.style.display = 'none';
butobj.value = '<?php print_string("showsettings") ?>...';
}
} else {
if (prefobj.value == '1') {
divobj.style.display = 'none';
butobj.value = '<?php print_string("showsettings") ?>...';
prefobj.value = '0';
} else {
divobj.style.display = 'block';
butobj.value = '<?php print_string("hidesettings") ?>';
prefobj.value = '1';
}
}
}
//]]>
</script>
</td>
</tr>
<tr valign="top">
<td align="right" style="white-space:nowrap;">
<b><?php print_string("fulltext", "resource") ?>:</b><br />
<?php helpbutton("writing", get_string("helpwriting"), "moodle", true, true) ?><br />
<?php emoticonhelpbutton("theform", "alltext") ?> <br />
</td>
<td>
<?php print_textarea(false, 30, 65, 680, 400, "alltext", $form->alltext); ?>
</td>
</tr>
<tr valign="top">
<td align="right" style="white-space:nowrap;">
<b><?php print_string("formattexttype") ?>:</b><br />
</td>
<td>
<?php
choose_from_menu($format_array, "options", $form->options, '');
helpbutton("textformat", get_string("formattexttype"));
?>
</td>
</tr>
<tr><td colspan="2"><hr /></td></tr>
<tr>
<td align="right"><b><?php print_string("display", "resource") ?>:</b></td>
<td>
<input type="button" value="hide settings" id="windowsettingsbutton" onclick="javascript: return showhide('windowsettings');" />
<input type="hidden" name="windowsettingspref" id="windowsettingspref"
value="<?php echo get_user_preferences('resource_windowsettingspref', $CFG->resource_windowsettings); ?>" />
<?php helpbutton("window", get_string("display", "resource"), "resource", true) ?>
</td>
</tr>
<tr><td colspan="2">
<div id="windowsettings">
<table class="boxaligncenter">
<tr valign="top">
<td colspan="2">
<script type="text/javascript">
//<![CDATA[
var popupitems = [<?php echo $popupoptions; ?>];
var blockitem = [<?php echo $blockoption; ?>];
var allitems = [<?php echo $alloptions; ?>];
//]]>
</script>
<input type="radio" name="windowpopup" value="0" alt="<?php print_string("pagewindow", "resource") ?>" <?php echo ($windowtype != "popup") ? 'checked="checked"' : '' ?>
onclick="lockoptions('form', 'windowpopup[0]', blockitem);
return lockoptions('form', 'windowpopup[1]', popupitems);" />
<b title="<?php print_string("pagedisplay", "resource") ?>"><?php print_string("pagewindow", "resource") ?></b>
<?php print_string("pagedisplay", "resource") ?>
<blockquote>
<fieldset class="invisiblefieldset">
<input type="hidden" name="hblockdisplay" value="0" />
<input type="checkbox" name="blockdisplay" value="1" <?php echo ($form->options == "showblocks") ? "checked=\"checked\"" : "" ?> alt="<?php print_string('showcourseblocks', 'resource') ?>" />
<?php print_string("showcourseblocks", "resource") ?>
</fieldset>
</blockquote>
</td>
</tr>
<tr valign="top">
<td colspan="2">
<input name="windowpopup" type="radio" value="1" alt="<?php p($strnewwindowopen) ?>" <?php echo ($windowtype == "popup") ? "checked=\"checked\"" : "" ?>
onclick="lockoptions('form', 'windowpopup[0]', blockitem);
return lockoptions('form', 'windowpopup[1]', popupitems);" />
<b title="<?php p($strnewwindowopen) ?>"><?php p($strnewwindow) ?></b>
<?php p($strnewwindowopen) ?>
<blockquote>
<fieldset class="invisiblefieldset">
<?php
foreach ($window as $name => $value) {
if ($name == "height" or $name == "width") {
continue;
}
echo '<input name="h'.$name.'" type="hidden" value="0" />';
echo '<input name="'.$name.'" type="checkbox" value="1" alt="'.$$stringname.'" '.$window->$name.' />';
$stringname = "str$name";
echo $$stringname."<br />";
}
?>
<input name="hwidth" type="hidden" value="0" />
<input name="width" type="text" size="4" value="<?php p($window->width) ?>" />
<?php p($strwidth) ?><br />
<input name="hheight" type="hidden" value="0" />
<input name="height" type="text" size="4" value="<?php p($window->height) ?>" />
<?php p($strheight) ?><br />
<?php
if ($windowtype == "page") {
echo "<script type=\"text/javascript\">\n//<![CDATA[\n";
echo "lockoptions('form','windowpopup[1]', popupitems);";
echo "\n//]]>\n</script>";
}
?>
</fieldset>
</blockquote>
</td>
</tr>
</table>
</div>
<script type="text/javascript">
//<![CDATA[
showhide('windowsettings', true);
//]]>
</script>
</td></tr>
<?php print_visible_setting($form); ?>
-188
View File
@@ -1,188 +0,0 @@
#
# Table structure for table `scorm`
#
CREATE TABLE prefix_scorm (
id int(10) unsigned NOT NULL auto_increment,
course int(10) unsigned NOT NULL default '0',
name varchar(255) NOT NULL default '',
summary text NOT NULL default '',
reference varchar(255) NOT NULL default '',
version varchar(9) NOT NULL default '',
maxgrade float(3) NOT NULL default '0',
grademethod tinyint(2) NOT NULL default '0',
maxattempt int(10) NOT NULL default '1',
launch int(10) unsigned NOT NULL default '0',
skipview tinyint(1) unsigned NOT NULL default '1',
hidebrowse tinyint(1) NOT NULL default '0',
hideexit tinyint(1) NOT NULL default '0',
hideabandon tinyint(1) NOT NULL default '0',
hidetoc tinyint(1) NOT NULL default '0',
hidenav tinyint(1) NOT NULL default '0',
auto tinyint(1) unsigned NOT NULL default '0',
popup tinyint(1) unsigned NOT NULL default '0',
options varchar(255) NOT NULL default '',
width int(10) unsigned NOT NULL default '100',
height int(10) unsigned NOT NULL default '600',
timemodified int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id),
KEY course (course)
) TYPE=MyISAM;
CREATE TABLE prefix_scorm_scoes (
id int(10) unsigned NOT NULL auto_increment,
scorm int(10) unsigned NOT NULL default '0',
manifest varchar(255) NOT NULL default '',
organization varchar(255) NOT NULL default '',
parent varchar(255) NOT NULL default '',
identifier varchar(255) NOT NULL default '',
/* launch varchar(255) NOT NULL default '', */
launch int(10) NOT NULL default '0',
scormtype varchar(5) NOT NULL default '',
title varchar(255) NOT NULL default '',
/* parameters varchar(255) NOT NULL default '',
prerequisites varchar(200) NOT NULL default '',
maxtimeallowed varchar(19) NOT NULL default '',
timelimitaction varchar(19) NOT NULL default '',
datafromlms varchar(255) NOT NULL default '',
masteryscore varchar(200) NOT NULL default '',
next tinyint(1) unsigned NOT NULL default '0',
previous tinyint(1) unsigned NOT NULL default '0', */
PRIMARY KEY (id),
KEY scorm (scorm)
) TYPE=MyISAM;
CREATE TABLE prefix_scorm_scoes_data (
id int(10) unsigned NOT NULL auto_increment,
scoid int(10) unsigned NOT NULL default '0',
name varchar(255) NOT NULL default '',
value text NOT NULL default '',
PRIMARY KEY (id),
KEY scoid (scoid)
) TYPE=MyISAM;
CREATE TABLE prefix_scorm_scoes_track (
id int(10) unsigned NOT NULL auto_increment,
userid int(10) unsigned NOT NULL default '0',
scormid int(10) NOT NULL default '0',
scoid int(10) unsigned NOT NULL default '0',
attempt int(10) unsigned NOT NULL default '1',
element varchar(255) NOT NULL default '',
value longtext NOT NULL default '',
timemodified int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id),
KEY userid (userid),
KEY scormid (scormid),
KEY scoid (scoid),
KEY element (element),
UNIQUE track (userid, scormid, scoid, attempt, element)
) TYPE=MyISAM;
CREATE TABLE prefix_scorm_sequencing_ruleconditions (
id int(10) unsigned NOT NULL auto_increment,
scormid int(10) unsigned NOT NULL default '0',
scoid int(10) unsigned NOT NULL default '0',
conditioncombination varchar(3) NOT NULL default 'all',
ruletype tinyint(2) unsigned NOT NULL default '0',
action varchar(25) NOT NULL default '',
PRIMARY KEY (id),
UNIQUE (scormid, scoid,id),
KEY scormid (scormid),
KEY scoid (scoid)
) TYPE=MyISAM;
CREATE TABLE prefix_scorm_sequencing_rulecondition (
id int(10) unsigned NOT NULL auto_increment,
scormid int(10) unsigned NOT NULL default '0',
scoid int(10) unsigned NOT NULL default '0',
ruleconditionsid int(10) unsigned NOT NULL default '0',
refrencedobjective varchar(255) NOT NULL default '',
measurethreshold float(11,4) NOT NULL default '0.0000',
operator varchar(5) NOT NULL default 'noOp',
condition varchar(30) NOT NULL default 'always',
PRIMARY KEY (id),
UNIQUE (scormid, scoid,id,ruleconditionsid),
KEY ruleconditionsid (ruleconditionsid),
KEY scormid (scormid),
KEY scoid (scoid)
) TYPE=MyISAM;
CREATE TABLE prefix_scorm_sequencing_rolluprules (
id int(10) unsigned NOT NULL auto_increment,
scormid int(10) unsigned NOT NULL default '0',
scoid int(10) unsigned NOT NULL default '0',
rollupobjectivesatisfied TINYINT(1) unsigned NOT NULL default '1',
rollupprogresscompletion TINYINT(1) unsigned NOT NULL default '1',
objectivemeasureweight float(11,4) NOT NULL default '1.0000',
PRIMARY KEY (id),
KEY scormid (scormid),
KEY scoid (scoid)
) TYPE=MyISAM;
CREATE TABLE prefix_scorm_sequencing_rolluprule (
id int(10) unsigned NOT NULL auto_increment,
scormid int(10) unsigned NOT NULL default '0',
scoid int(10) unsigned NOT NULL default '0',
rolluprulesid int(10) unsigned NOT NULL default '0',
childactivityset varchar(15) NOT NULL default '',
minimumcount int(10) unsigned NOT NULL default '0',
minimumpercent float(11,4) unsigned NOT NULL default '0.0000',
conditioncombination varchar(3) NOT NULL default 'all',
action varchar(15) NOT NULL default '',
PRIMARY KEY (id),
UNIQUE (scormid, scoid, rolluprulesid, id),
KEY scormid (scormid),
KEY scoid (scoid)
) TYPE=MyISAM;
CREATE TABLE prefix_scorm_sequencing_rolluprulecondition (
id int(10) unsigned NOT NULL auto_increment,
scormid int(10) unsigned NOT NULL default '0',
scoid int(10) unsigned NOT NULL default '0',
rollupruleid int(10) unsigned NOT NULL default '0',
operator varchar(5) NOT NULL default 'noOp',
condition varchar(25) NOT NULL default '',
PRIMARY KEY (id),
UNIQUE (scormid, scoid, rollupruleid, id),
KEY scormid (scormid),
KEY scoid (scoid)
) TYPE=MyISAM;
CREATE TABLE prefix_scorm_sequencing_objectives (
id int(10) unsigned NOT NULL auto_increment,
scormid int(10) unsigned NOT NULL default '0',
scoid int(10) unsigned NOT NULL default '0',
primary tinyint(1) NOT NULL default '0',
objectiveid int(10) unsigned NOT NULL default '0',
satisfiedbymeasure tinyint(1) NOT NULL default '1',
minnormalizedmeasure float(11,4) unsigned NOT NULL default '1.0',
PRIMARY KEY (id),
UNIQUE (scormid, scoid, id),
KEY scormid (scormid),
KEY scoid (scoid)
) TYPE=MyISAM;
CREATE TABLE prefix_scorm_sequencing_objective (
id int(10) unsigned NOT NULL auto_increment,
scormid int(10) unsigned NOT NULL default '0',
scoid int(10) unsigned NOT NULL default '0',
objectiveid int(10) unsigned NOT NULL default '0',
targetobjectiveid int(10) unsigned NOT NULL default '0',
readsatisfiedstatus tinyint(1) NOT NULL default '1',
readnormalizedmeasure tinyint(1) NOT NULL default '1',
writesatisfiedstatus tinyint(1) NOT NULL default '0',
writenormalizedmeasure tinyint(1) NOT NULL default '0',
PRIMARY KEY (id),
UNIQUE (scormid, scoid, id, objectiveid),
KEY scormid (scormid),
KEY scoid (scoid)
) TYPE=MyISAM;
#
# Dumping data for table log_display
#
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('scorm', 'view', 'scorm', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('scorm', 'review', 'scorm', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('scorm', 'update', 'scorm', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('scorm', 'add', 'scorm', 'name');
-75
View File
@@ -1,75 +0,0 @@
#
# Table structure for table `scorm`
#
CREATE TABLE prefix_scorm (
id SERIAL PRIMARY KEY,
course integer NOT NULL default '0',
name varchar(255) NOT NULL default '',
reference varchar(255) NOT NULL default '',
maxgrade real NOT NULL default '0',
grademethod integer NOT NULL default '0',
maxattempt integer NOT NULL default '1',
launch integer NOT NULL default '0',
skipview integer NOT NULL default '1',
summary text NOT NULL default '',
hidebrowse integer NOT NULL default '0',
hidetoc integer NOT NULL default '0',
hidenav integer NOT NULL default '0',
auto integer NOT NULL default '0',
popup integer NOT NULL default '0',
options varchar(255) NOT NULL default '',
width integer NOT NULL default '100',
height integer NOT NULL default '500',
timemodified integer NOT NULL default '0'
);
CREATE INDEX prefix_scorm_course_idx ON prefix_scorm (course);
CREATE TABLE prefix_scorm_scoes (
id SERIAL PRIMARY KEY,
scorm integer NOT NULL default '0',
manifest varchar(255) NOT NULL default '',
organization varchar(255) NOT NULL default '',
parent varchar(255) NOT NULL default '',
identifier varchar(255) NOT NULL default '',
launch varchar(255) NOT NULL default '',
parameters varchar(255) NOT NULL default '',
scormtype varchar(5) NOT NULL default '',
title varchar(255) NOT NULL default '',
prerequisites varchar(200) NOT NULL default '',
maxtimeallowed varchar(19) NOT NULL default '',
timelimitaction varchar(19) NOT NULL default '',
datafromlms varchar(255) NOT NULL default '',
masteryscore varchar(200) NOT NULL default '',
next integer NOT NULL default '0',
previous integer NOT NULL default '0'
);
CREATE INDEX prefix_scorm_scoes_scorm_idx ON prefix_scorm_scoes (scorm);
CREATE TABLE prefix_scorm_scoes_track (
id SERIAL PRIMARY KEY,
userid integer NOT NULL default '0',
scormid integer NOT NULL default '0',
scoid integer NOT NULL default '0',
attempt integer NOT NULL default '1',
element varchar(255) NOT NULL default '',
value text NOT NULL default '',
timemodified integer NOT NULL default '0',
UNIQUE (userid, scormid, scoid, attempt, element)
);
CREATE INDEX prefix_scorm_scoes_track_user_idx ON prefix_scorm_scoes_track (userid);
CREATE INDEX prefix_scorm_scoes_track_scorm_idx ON prefix_scorm_scoes_track (scormid);
CREATE INDEX prefix_scorm_scoes_track_sco_idx ON prefix_scorm_scoes_track (scoid);
CREATE INDEX prefix_scorm_scoes_track_element_idx ON prefix_scorm_scoes_track (element);
#
# Dumping data for table `log_display`
#
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('scorm', 'view', 'scorm', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('scorm', 'review', 'scorm', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('scorm', 'update', 'scorm', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('scorm', 'add', 'scorm', 'name');
-193
View File
@@ -1,193 +0,0 @@
# phpMyAdmin MySQL-Dump
# version 2.2.1
# http://phpwizard.net/phpMyAdmin/
# http://phpmyadmin.sourceforge.net/ (download page)
#
# Host: localhost
# Generation Time: Nov 14, 2001 at 04:39 PM
# Server version: 3.23.36
# PHP Version: 4.0.6
# Database : `moodle`
# --------------------------------------------------------
#
# Table structure for table `survey`
#
CREATE TABLE prefix_survey (
id int(10) unsigned NOT NULL auto_increment,
course int(10) unsigned NOT NULL default '0',
template int(10) unsigned NOT NULL default '0',
days smallint(6) NOT NULL default '0',
timecreated int(10) unsigned NOT NULL default '0',
timemodified int(10) unsigned NOT NULL default '0',
name varchar(255) NOT NULL default '',
intro text NOT NULL default '',
questions varchar(255) NOT NULL default '',
PRIMARY KEY (id),
KEY `course` (`course`)
) TYPE=MyISAM COMMENT='all surveys';
#
# Dumping data for table `survey`
#
INSERT INTO `prefix_survey` (`id`, `course`, `template`, `days`, `timecreated`, `timemodified`, `name`, `intro`, `questions`) VALUES (1, 0, 0, 0, 985017600, 985017600, 'collesaname', 'collesaintro', '25,26,27,28,29,30,43,44');
INSERT INTO `prefix_survey` (`id`, `course`, `template`, `days`, `timecreated`, `timemodified`, `name`, `intro`, `questions`) VALUES (2, 0, 0, 0, 985017600, 985017600, 'collespname', 'collespintro', '31,32,33,34,35,36,43,44');
INSERT INTO `prefix_survey` (`id`, `course`, `template`, `days`, `timecreated`, `timemodified`, `name`, `intro`, `questions`) VALUES (3, 0, 0, 0, 985017600, 985017600, 'collesapname', 'collesapintro', '37,38,39,40,41,42,43,44');
INSERT INTO `prefix_survey` (`id`, `course`, `template`, `days`, `timecreated`, `timemodified`, `name`, `intro`, `questions`) VALUES (4, 0, 0, 0, 985017600, 985017600, 'attlsname', 'attlsintro', '65,67,68');
INSERT INTO `prefix_survey` (`id`, `course`, `template`, `days`, `timecreated`, `timemodified`, `name`, `intro`, `questions`) VALUES (5, 0, 0, 0, 985017600, 985017600, 'ciqname', 'ciqintro', '69,70,71,72,73');
#
# Table structure for table `survey_analysis`
#
CREATE TABLE prefix_survey_analysis (
id int(10) unsigned NOT NULL auto_increment,
survey int(10) unsigned NOT NULL default '0',
userid int(10) unsigned NOT NULL default '0',
notes text NOT NULL default '',
PRIMARY KEY (id),
UNIQUE KEY id (id),
KEY survey (survey),
KEY userid (userid)
) TYPE=MyISAM;
#
# Dumping data for table `survey_analysis`
#
# --------------------------------------------------------
#
# Table structure for table `survey_answers`
#
CREATE TABLE prefix_survey_answers (
id int(10) unsigned NOT NULL auto_increment,
userid int(10) unsigned NOT NULL default '0',
survey int(10) unsigned NOT NULL default '0',
question int(10) unsigned NOT NULL default '0',
time int(10) unsigned NOT NULL default '0',
answer1 text NOT NULL default '',
answer2 text NOT NULL default '',
PRIMARY KEY (id),
UNIQUE KEY id (id),
KEY userid (userid),
KEY survey (survey),
KEY question (question)
) TYPE=MyISAM;
#
# Dumping data for table `survey_answers`
#
# --------------------------------------------------------
#
# Table structure for table `survey_questions`
#
CREATE TABLE `prefix_survey_questions` (
`id` int(10) unsigned NOT NULL auto_increment,
`text` varchar(255) NOT NULL default '',
`shorttext` varchar(30) NOT NULL default '',
`multi` varchar(100) NOT NULL default '',
`intro` varchar(50) NOT NULL default '',
`type` tinyint(3) NOT NULL default '0',
`options` text,
PRIMARY KEY (`id`)
) TYPE=MyISAM;
#
# Dumping data for table `survey_questions`
#
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (1, 'colles1', 'colles1short', '', '', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (2, 'colles2', 'colles2short', '', '', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (3, 'colles3', 'colles3short', '', '', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (4, 'colles4', 'colles4short', '', '', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (5, 'colles5', 'colles5short', '', '', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (6, 'colles6', 'colles6short', '', '', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (7, 'colles7', 'colles7short', '', '', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (8, 'colles8', 'colles8short', '', '', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (9, 'colles9', 'colles9short', '', '', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (10, 'colles10', 'colles10short', '', '', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (11, 'colles11', 'colles11short', '', '', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (12, 'colles12', 'colles12short', '', '', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (13, 'colles13', 'colles13short', '', '', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (14, 'colles14', 'colles14short', '', '', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (15, 'colles15', 'colles15short', '', '', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (16, 'colles16', 'colles16short', '', '', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (17, 'colles17', 'colles17short', '', '', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (18, 'colles18', 'colles18short', '', '', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (19, 'colles19', 'colles19short', '', '', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (20, 'colles20', 'colles20short', '', '', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (21, 'colles21', 'colles21short', '', '', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (22, 'colles22', 'colles22short', '', '', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (23, 'colles23', 'colles23short', '', '', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (24, 'colles24', 'colles24short', '', '', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (25, 'collesm1', 'collesm1short', '1,2,3,4', 'collesmintro', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (26, 'collesm2', 'collesm2short', '5,6,7,8', 'collesmintro', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (27, 'collesm3', 'collesm3short', '9,10,11,12', 'collesmintro', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (28, 'collesm4', 'collesm4short', '13,14,15,16', 'collesmintro', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (29, 'collesm5', 'collesm5short', '17,18,19,20', 'collesmintro', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (30, 'collesm6', 'collesm6short', '21,22,23,24', 'collesmintro', 1, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (31, 'collesm1', 'collesm1short', '1,2,3,4', 'collesmintro', 2, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (32, 'collesm2', 'collesm2short', '5,6,7,8', 'collesmintro', 2, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (33, 'collesm3', 'collesm3short', '9,10,11,12', 'collesmintro', 2, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (34, 'collesm4', 'collesm4short', '13,14,15,16', 'collesmintro', 2, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (35, 'collesm5', 'collesm5short', '17,18,19,20', 'collesmintro', 2, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (36, 'collesm6', 'collesm6short', '21,22,23,24', 'collesmintro', 2, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (37, 'collesm1', 'collesm1short', '1,2,3,4', 'collesmintro', 3, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (38, 'collesm2', 'collesm2short', '5,6,7,8', 'collesmintro', 3, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (39, 'collesm3', 'collesm3short', '9,10,11,12', 'collesmintro', 3, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (40, 'collesm4', 'collesm4short', '13,14,15,16', 'collesmintro', 3, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (41, 'collesm5', 'collesm5short', '17,18,19,20', 'collesmintro', 3, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (42, 'collesm6', 'collesm6short', '21,22,23,24', 'collesmintro', 3, 'scaletimes5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (43, 'howlong', '', '', '', 1, 'howlongoptions');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (44, 'othercomments', '', '', '', 0, '');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (64, 'attls20', 'attls20short', '', '', 1, 'scaleagree5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (58, 'attls14', 'attls14short', '', '', 1, 'scaleagree5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (59, 'attls15', 'attls15short', '', '', 1, 'scaleagree5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (60, 'attls16', 'attls16short', '', '', 1, 'scaleagree5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (61, 'attls17', 'attls17short', '', '', 1, 'scaleagree5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (62, 'attls18', 'attls18short', '', '', 1, 'scaleagree5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (63, 'attls19', 'attls19short', '', '', 1, 'scaleagree5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (56, 'attls12', 'attls12short', '', '', 1, 'scaleagree5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (57, 'attls13', 'attls13short', '', '', 1, 'scaleagree5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (55, 'attls11', 'attls11short', '', '', 1, 'scaleagree5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (54, 'attls10', 'attls10short', '', '', 1, 'scaleagree5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (53, 'attls9', 'attls9short', '', '', 1, 'scaleagree5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (52, 'attls8', 'attls8short', '', '', 1, 'scaleagree5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (51, 'attls7', 'attls7short', '', '', 1, 'scaleagree5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (50, 'attls6', 'attls6short', '', '', 1, 'scaleagree5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (49, 'attls5', 'attls5short', '', '', 1, 'scaleagree5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (48, 'attls4', 'attls4short', '', '', 1, 'scaleagree5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (47, 'attls3', 'attls3short', '', '', 1, 'scaleagree5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (45, 'attls1', 'attls1short', '', '', 1, 'scaleagree5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (46, 'attls2', 'attls2short', '', '', 1, 'scaleagree5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (65, 'attlsm1', 'attlsm1', '45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64', 'attlsmintro', 1, 'scaleagree5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (67, 'attlsm2', 'attlsm2', '63,62,59,57,55,49,52,50,48,47', 'attlsmintro', -1, 'scaleagree5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (68, 'attlsm3', 'attlsm3', '46,54,45,51,60,53,56,58,61,64', 'attlsmintro', -1, 'scaleagree5');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (69, 'ciq1', 'ciq1short', '', '', 0, '');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (70, 'ciq2', 'ciq2short', '', '', 0, '');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (71, 'ciq3', 'ciq3short', '', '', 0, '');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (72, 'ciq4', 'ciq4short', '', '', 0, '');
INSERT INTO `prefix_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) VALUES (73, 'ciq5', 'ciq5short', '', '', 0, '');
#
# Dumping data for table `log_display`
#
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('survey', 'add', 'survey', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('survey', 'update', 'survey', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('survey', 'download', 'survey', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('survey', 'view form', 'survey', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('survey', 'view graph', 'survey', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('survey', 'view report', 'survey', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('survey', 'submit', 'survey', 'name');
-202
View File
@@ -1,202 +0,0 @@
# phpMyAdmin MySQL-Dump
# version 2.2.1
# http://phpwizard.net/phpMyAdmin/
# http://phpmyadmin.sourceforge.net/ (download page)
#
# Host: localhost
# Generation Time: Nov 14, 2001 at 04:39 PM
# Server version: 3.23.36
# PHP Version: 4.0.6
# Database : moodle
# --------------------------------------------------------
#
# Table structure for table survey
#
CREATE TABLE prefix_survey (
id SERIAL PRIMARY KEY,
course integer NOT NULL default '0',
template integer NOT NULL default '0',
days integer NOT NULL default '0',
timecreated integer NOT NULL default '0',
timemodified integer NOT NULL default '0',
name varchar(255) NOT NULL default '',
intro text,
questions varchar(255) default NULL
);
CREATE INDEX prefix_survey_course_idx ON prefix_survey (course);
#
# Dumping data for table survey
#
INSERT INTO prefix_survey (id, course, template, days, timecreated, timemodified, name, intro, questions) VALUES (1, 0, 0, 0, 985017600, 985017600, 'collesaname', 'collesaintro', '25,26,27,28,29,30,43,44');
INSERT INTO prefix_survey (id, course, template, days, timecreated, timemodified, name, intro, questions) VALUES (2, 0, 0, 0, 985017600, 985017600, 'collespname', 'collespintro', '31,32,33,34,35,36,43,44');
INSERT INTO prefix_survey (id, course, template, days, timecreated, timemodified, name, intro, questions) VALUES (3, 0, 0, 0, 985017600, 985017600, 'collesapname', 'collesapintro', '37,38,39,40,41,42,43,44');
INSERT INTO prefix_survey (id, course, template, days, timecreated, timemodified, name, intro, questions) VALUES (4, 0, 0, 0, 985017600, 985017600, 'attlsname', 'attlsintro', '65,67,68');
INSERT INTO prefix_survey (id, course, template, days, timecreated, timemodified, name, intro, questions) VALUES (5, 0, 0, 0, 985017600, 985017600, 'ciqname', 'ciqintro', '69,70,71,72,73');
# Reset the sequence. doing it this way rather than simply taking out
# id from the preceeding sql to avoid missing fks.
SELECT setval('prefix_survey_id_seq', (select max(id) from prefix_survey));
#
# Table structure for table survey_analysis
#
CREATE TABLE prefix_survey_analysis (
id SERIAL PRIMARY KEY,
survey integer NOT NULL default '0',
userid integer NOT NULL default '0',
notes text NOT NULL default ''
);
CREATE INDEX prefix_survey_analysis_survey_idx ON prefix_survey_analysis (survey);
CREATE INDEX prefix_survey_analysis_userid_idx ON prefix_survey_analysis (userid);
#
# Dumping data for table survey_analysis
#
# --------------------------------------------------------
#
# Table structure for table survey_answers
#
CREATE TABLE prefix_survey_answers (
id SERIAL PRIMARY KEY,
userid integer NOT NULL default '0',
survey integer NOT NULL default '0',
question integer NOT NULL default '0',
time integer default NULL,
answer1 text default NULL,
answer2 text default NULL
);
CREATE INDEX prefix_survey_answers_userid_idx ON prefix_survey_answers (userid);
CREATE INDEX prefix_survey_answers_survey_idx ON prefix_survey_answers (survey);
CREATE INDEX prefix_survey_answers_question_idx ON prefix_survey_answers (question);
#
# Dumping data for table survey_answers
#
# --------------------------------------------------------
#
# Table structure for table survey_questions
#
CREATE TABLE prefix_survey_questions (
id SERIAL PRIMARY KEY,
text varchar(255) NOT NULL default '',
shorttext varchar(30) NOT NULL default '',
multi varchar(100) NOT NULL default '',
intro varchar(50) default NULL,
type integer NOT NULL default '0',
options text
);
#
# Dumping data for table survey_questions
#
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (1, 'colles1', 'colles1short', '', '', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (2, 'colles2', 'colles2short', '', '', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (3, 'colles3', 'colles3short', '', '', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (4, 'colles4', 'colles4short', '', '', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (5, 'colles5', 'colles5short', '', '', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (6, 'colles6', 'colles6short', '', '', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (7, 'colles7', 'colles7short', '', '', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (8, 'colles8', 'colles8short', '', '', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (9, 'colles9', 'colles9short', '', '', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (10, 'colles10', 'colles10short', '', '', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (11, 'colles11', 'colles11short', '', '', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (12, 'colles12', 'colles12short', '', '', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (13, 'colles13', 'colles13short', '', '', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (14, 'colles14', 'colles14short', '', '', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (15, 'colles15', 'colles15short', '', '', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (16, 'colles16', 'colles16short', '', '', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (17, 'colles17', 'colles17short', '', '', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (18, 'colles18', 'colles18short', '', '', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (19, 'colles19', 'colles19short', '', '', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (20, 'colles20', 'colles20short', '', '', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (21, 'colles21', 'colles21short', '', '', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (22, 'colles22', 'colles22short', '', '', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (23, 'colles23', 'colles23short', '', '', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (24, 'colles24', 'colles24short', '', '', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (25, 'collesm1', 'collesm1short', '1,2,3,4', 'collesmintro', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (26, 'collesm2', 'collesm2short', '5,6,7,8', 'collesmintro', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (27, 'collesm3', 'collesm3short', '9,10,11,12', 'collesmintro', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (28, 'collesm4', 'collesm4short', '13,14,15,16', 'collesmintro', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (29, 'collesm5', 'collesm5short', '17,18,19,20', 'collesmintro', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (30, 'collesm6', 'collesm6short', '21,22,23,24', 'collesmintro', 1, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (31, 'collesm1', 'collesm1short', '1,2,3,4', 'collesmintro', 2, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (32, 'collesm2', 'collesm2short', '5,6,7,8', 'collesmintro', 2, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (33, 'collesm3', 'collesm3short', '9,10,11,12', 'collesmintro', 2, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (34, 'collesm4', 'collesm4short', '13,14,15,16', 'collesmintro', 2, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (35, 'collesm5', 'collesm5short', '17,18,19,20', 'collesmintro', 2, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (36, 'collesm6', 'collesm6short', '21,22,23,24', 'collesmintro', 2, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (37, 'collesm1', 'collesm1short', '1,2,3,4', 'collesmintro', 3, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (38, 'collesm2', 'collesm2short', '5,6,7,8', 'collesmintro', 3, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (39, 'collesm3', 'collesm3short', '9,10,11,12', 'collesmintro', 3, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (40, 'collesm4', 'collesm4short', '13,14,15,16', 'collesmintro', 3, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (41, 'collesm5', 'collesm5short', '17,18,19,20', 'collesmintro', 3, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (42, 'collesm6', 'collesm6short', '21,22,23,24', 'collesmintro', 3, 'scaletimes5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (43, 'howlong', '', '', '', 1, 'howlongoptions');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (44, 'othercomments', '', '', '', 0, '');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (64, 'attls20', 'attls20short', '', '', 1, 'scaleagree5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (58, 'attls14', 'attls14short', '', '', 1, 'scaleagree5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (59, 'attls15', 'attls15short', '', '', 1, 'scaleagree5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (60, 'attls16', 'attls16short', '', '', 1, 'scaleagree5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (61, 'attls17', 'attls17short', '', '', 1, 'scaleagree5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (62, 'attls18', 'attls18short', '', '', 1, 'scaleagree5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (63, 'attls19', 'attls19short', '', '', 1, 'scaleagree5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (56, 'attls12', 'attls12short', '', '', 1, 'scaleagree5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (57, 'attls13', 'attls13short', '', '', 1, 'scaleagree5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (55, 'attls11', 'attls11short', '', '', 1, 'scaleagree5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (54, 'attls10', 'attls10short', '', '', 1, 'scaleagree5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (53, 'attls9', 'attls9short', '', '', 1, 'scaleagree5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (52, 'attls8', 'attls8short', '', '', 1, 'scaleagree5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (51, 'attls7', 'attls7short', '', '', 1, 'scaleagree5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (50, 'attls6', 'attls6short', '', '', 1, 'scaleagree5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (49, 'attls5', 'attls5short', '', '', 1, 'scaleagree5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (48, 'attls4', 'attls4short', '', '', 1, 'scaleagree5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (47, 'attls3', 'attls3short', '', '', 1, 'scaleagree5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (45, 'attls1', 'attls1short', '', '', 1, 'scaleagree5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (46, 'attls2', 'attls2short', '', '', 1, 'scaleagree5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (65, 'attlsm1', 'attlsm1', '45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64', 'attlsmintro', 1, 'scaleagree5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (67, 'attlsm2', 'attlsm2', '63,62,59,57,55,49,52,50,48,47', 'attlsmintro', -1, 'scaleagree5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (68, 'attlsm3', 'attlsm3', '46,54,45,51,60,53,56,58,61,64', 'attlsmintro', -1, 'scaleagree5');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (69, 'ciq1', 'ciq1short', '', '', 0, '');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (70, 'ciq2', 'ciq2short', '', '', 0, '');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (71, 'ciq3', 'ciq3short', '', '', 0, '');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (72, 'ciq4', 'ciq4short', '', '', 0, '');
INSERT INTO prefix_survey_questions (id, text, shorttext, multi, intro, type, options) VALUES (73, 'ciq5', 'ciq5short', '', '', 0, '');
# Reset the sequence. doing it this way rather than simply taking out
# id from the preceeding sql to avoid missing fks.
SELECT setval('prefix_survey_questions_id_seq', (select max(id) from prefix_survey_questions));
#
# Dumping data for table log_display
#
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('survey', 'add', 'survey', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('survey', 'update', 'survey', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('survey', 'download', 'survey', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('survey', 'view form', 'survey', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('survey', 'view graph', 'survey', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('survey', 'view report', 'survey', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('survey', 'submit', 'survey', 'name');
-67
View File
@@ -1,67 +0,0 @@
# This file contains a complete database schema for all the
# tables used by this module, written in SQL
# It may also contain INSERT statements for particular data
# that may be used, especially new entries in the table log_display
CREATE TABLE `prefix_wiki` (
`id` int(10) unsigned NOT NULL auto_increment,
`course` int(10) unsigned NOT NULL default '0',
`name` varchar(255) NOT NULL default '',
`summary` text NOT NULL default '',
`pagename` varchar(255) NOT NULL default '',
`wtype` enum('teacher','group','student') NOT NULL default 'group',
`ewikiprinttitle` tinyint(4) NOT NULL default '1',
`htmlmode` tinyint(4) NOT NULL default '0',
`ewikiacceptbinary` tinyint(4) NOT NULL default '0',
`disablecamelcase` tinyint(4) NOT NULL default '0',
`setpageflags` tinyint(4) NOT NULL default '1',
`strippages` tinyint(4) NOT NULL default '1',
`removepages` tinyint(4) NOT NULL default '1',
`revertchanges` tinyint(4) NOT NULL default '1',
`initialcontent` varchar(255) NOT NULL default '',
`timemodified` int(10) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `course` (`course`)
) TYPE=MyISAM COMMENT='Main wiki table';
#
# Table structure for table `mdl_wiki_entries`
#
CREATE TABLE `prefix_wiki_entries` (
`id` int(10) NOT NULL auto_increment,
`wikiid` int(10) NOT NULL default '0',
`course` int(10) NOT NULL default '0',
`groupid` int(10) NOT NULL default '0',
`userid` int(10) NOT NULL default '0',
`pagename` varchar(255) NOT NULL default '',
`timemodified` int(10) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `wikiid` (`wikiid`),
KEY `course` (`course`),
KEY `gropuid` (`groupid`),
KEY `userid` (`userid`),
KEY `pagename` (`pagename`)
) TYPE=MyISAM COMMENT='Holds entries for each wiki start instance.';
CREATE TABLE `prefix_wiki_pages` (
`id` int(10) unsigned NOT NULL auto_increment,
`pagename` VARCHAR(160) NOT NULL,
`version` INTEGER UNSIGNED NOT NULL DEFAULT 0,
`flags` INTEGER UNSIGNED DEFAULT 0,
`content` MEDIUMTEXT default '',
`author` VARCHAR(100) DEFAULT 'ewiki',
`userid` INTEGER UNSIGNED NOT NULL DEFAULT 0,
`created` INTEGER UNSIGNED DEFAULT 0,
`lastmodified` INTEGER UNSIGNED DEFAULT 0,
`refs` MEDIUMTEXT default '',
`meta` MEDIUMTEXT default '',
`hits` INTEGER UNSIGNED DEFAULT 0,
`wiki` int(10) unsigned NOT NULL default 0,
PRIMARY KEY `id` (`id`),
UNIQUE KEY `wiki_pages_uk` (`pagename`, `version`, `wiki`)
) TYPE=MyISAM COMMENT='Holds the Wiki-Pages';
-66
View File
@@ -1,66 +0,0 @@
# This file contains a complete database schema for all the
# tables used by this module, written in SQL
# It may also contain INSERT statements for particular data
# that may be used, especially new entries in the table log_display
CREATE TABLE prefix_wiki (
id SERIAL8 PRIMARY KEY,
course INT8 NOT NULL default '0',
name varchar(255) NOT NULL default '',
summary text NOT NULL,
pagename varchar(255) ,
wtype VARCHAR default 'group' CHECK( wtype IN('teacher', 'group', 'student')),
ewikiprinttitle INT NOT NULL default '1',
htmlmode INT NOT NULL default '0',
ewikiacceptbinary INT NOT NULL default '0',
disablecamelcase INT NOT NULL default '0',
setpageflags INT NOT NULL default '1',
strippages INT NOT NULL default '1',
removepages INT NOT NULL default '1',
revertchanges INT NOT NULL default '1',
initialcontent varchar(255) ,
timemodified INT8 NOT NULL default '0'
) ;
CREATE INDEX prefix_wiki_course_idx ON prefix_wiki (course);
#
# Table structure for table mdl_wiki_entries
#
CREATE TABLE prefix_wiki_entries (
id SERIAL8 PRIMARY KEY,
wikiid INT8 NOT NULL default '0',
course INT8 NOT NULL default '0',
groupid INT8 NOT NULL default '0',
userid INT8 NOT NULL default '0',
pagename varchar(255) NOT NULL default '',
timemodified INT8 NOT NULL default '0'
) ;
CREATE INDEX prefix_wiki_entries_wikiid_idx ON prefix_wiki_entries (wikiid);
CREATE INDEX prefix_wiki_entries_userid_idx ON prefix_wiki_entries (userid);
CREATE INDEX prefix_wiki_entries_groupid_idx ON prefix_wiki_entries (groupid);
CREATE INDEX prefix_wiki_entries_course_idx ON prefix_wiki_entries (course);
CREATE INDEX prefix_wiki_entries_pagename_idx ON prefix_wiki_entries (pagename);
CREATE TABLE prefix_wiki_pages (
id SERIAL8 PRIMARY KEY,
pagename VARCHAR(160) NOT NULL,
version INTEGER NOT NULL DEFAULT 0,
flags INTEGER DEFAULT 0,
content bytea DEFAULT '',
author VARCHAR(100) DEFAULT 'ewiki',
userid INTEGER NOT NULL DEFAULT 0,
created INTEGER DEFAULT 0,
lastmodified INTEGER DEFAULT 0,
refs bytea DEFAULT '',
meta TEXT,
hits INTEGER DEFAULT 0,
wiki INT8 NOT NULL
) ;
CREATE UNIQUE INDEX prefix_wiki_pages_pagename_version_wiki_uk ON prefix_wiki_pages (pagename, version, wiki) ;
-188
View File
@@ -1,188 +0,0 @@
#
# Table structure for table `workshop`
#
CREATE TABLE `prefix_workshop` (
`id` int(10) unsigned NOT NULL auto_increment,
`course` int(10) unsigned NOT NULL default '0',
`name` varchar(255) NOT NULL default '',
`description` text NOT NULL default '',
`wtype` tinyint(3) unsigned NOT NULL default '0',
`nelements` tinyint(3) unsigned NOT NULL default '1',
`nattachments` tinyint(3) unsigned NOT NULL default '0',
`phase` tinyint(2) unsigned NOT NULL default '0',
`format` tinyint(2) unsigned NOT NULL default '0',
`gradingstrategy` tinyint(2) unsigned NOT NULL default '1',
`resubmit` tinyint(2) unsigned NOT NULL default '0',
`agreeassessments` tinyint(2) unsigned NOT NULL default '0',
`hidegrades` tinyint(2) unsigned NOT NULL default '0',
`anonymous` tinyint(2) unsigned NOT NULL default '0',
`includeself` tinyint(2) unsigned NOT NULL default '0',
`maxbytes` int(10) unsigned NOT NULL default '100000',
`submissionstart` int(10) unsigned NOT NULL default '0',
`assessmentstart` int(10) unsigned NOT NULL default '0',
`submissionend` int(10) unsigned NOT NULL default '0',
`assessmentend` int(10) unsigned NOT NULL default '0',
`releasegrades` int(10) unsigned NOT NULL default '0',
`grade` tinyint(3) NOT NULL default '0',
`gradinggrade` tinyint(3) NOT NULL default '0',
`ntassessments` tinyint(3) unsigned NOT NULL default '0',
`assessmentcomps` tinyint(3) unsigned NOT NULL default '2',
`nsassessments` tinyint(3) unsigned NOT NULL default '0',
`overallocation` tinyint(3) unsigned NOT NULL default '0',
`timemodified` int(10) unsigned NOT NULL default '0',
`teacherweight` tinyint(3) unsigned NOT NULL default '1',
`showleaguetable` tinyint(3) unsigned NOT NULL default '0',
`usepassword` tinyint(3) unsigned NOT NULL default '0',
`password` varchar(32) NOT NULL default '',
PRIMARY KEY (`id`),
KEY `course` (`course`)
) COMMENT='Defines workshop';
# --------------------------------------------------------
#
# Table structure for table `workshop_submissions`
#
CREATE TABLE `prefix_workshop_submissions` (
`id` int(10) unsigned NOT NULL auto_increment,
`workshopid` int(10) unsigned NOT NULL default '0',
`userid` int(10) unsigned NOT NULL default '0',
`title` varchar(100) NOT NULL default '',
`timecreated` int(10) unsigned NOT NULL default '0',
`mailed` tinyint(2) unsigned NOT NULL default '0',
`description` text NOT NULL default '',
`gradinggrade` int(3) unsigned NOT NULL default '0',
`finalgrade` int(3) unsigned NOT NULL default '0',
`late` int(3) unsigned NOT NULL default '0',
`nassessments` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
INDEX `userid` (`userid`),
INDEX `workshopid` (`workshopid`),
INDEX `mailed` (`mailed`)
) COMMENT='Info about submitted work from teacher and students';
# --------------------------------------------------------
#
# Table structure for table `workshop_assessments`
#
CREATE TABLE `prefix_workshop_assessments` (
`id` int(10) unsigned NOT NULL auto_increment,
`workshopid` int(10) unsigned NOT NULL default '0',
`submissionid` int(10) unsigned NOT NULL default '0',
`userid` int(10) unsigned NOT NULL default '0',
`timecreated` int(10) unsigned NOT NULL default '0',
`timegraded` int(10) unsigned NOT NULL default '0',
`timeagreed` int(10) unsigned NOT NULL default '0',
`grade` float NOT NULL default '0',
`gradinggrade` int(3) NOT NULL default '0',
`teachergraded` int(3) NOT NULL default '0',
`mailed` tinyint(3) unsigned NOT NULL default '0',
`resubmission` tinyint(3) unsigned NOT NULL default '0',
`donotuse` tinyint(3) unsigned NOT NULL default '0',
`generalcomment` text NOT NULL default '',
`teachercomment` text NOT NULL default '',
PRIMARY KEY (`id`),
INDEX (`submissionid`),
INDEX (`userid`),
INDEX `workshopid` (`workshopid`),
INDEX `mailed` (`mailed`)
) COMMENT='Info about assessments by teacher and students';
# --------------------------------------------------------
#
# Table structure for table `workshop_elements`
#
CREATE TABLE `prefix_workshop_elements` (
`id` int(10) unsigned NOT NULL auto_increment,
`workshopid` int(10) unsigned NOT NULL default '0',
`elementno` tinyint(3) unsigned NOT NULL default '0',
`description` text NOT NULL default '',
`scale` tinyint(3) unsigned NOT NULL default '0',
`maxscore` tinyint(3) unsigned NOT NULL default '1',
`weight` tinyint(3) unsigned NOT NULL default '11',
`stddev` float NOT NULL default '0.0',
`totalassessments` int(10) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `workshopid` (`workshopid`)
) COMMENT='Info about marking scheme of assignment';
# --------------------------------------------------------
#
# Table structure for table `workshop_rubrics`
#
CREATE TABLE `prefix_workshop_rubrics` (
`id` int(10) unsigned NOT NULL auto_increment,
`workshopid` int(10) unsigned NOT NULL default '0',
`elementno` int(10) unsigned NOT NULL default '0',
`rubricno` tinyint(3) unsigned NOT NULL default '0',
`description` text NOT NULL default '',
PRIMARY KEY (`id`)
) COMMENT='Info about the rubrics marking scheme';
# --------------------------------------------------------
#
# Table structure for table `workshop_grades`
#
CREATE TABLE `prefix_workshop_grades` (
`id` int(10) unsigned NOT NULL auto_increment,
`workshopid` int(10) unsigned NOT NULL default '0',
`assessmentid` int(10) unsigned NOT NULL default '0',
`elementno` int(10) unsigned NOT NULL default '0',
`feedback` text NOT NULL default '',
`grade` tinyint(3) NOT NULL default '0',
PRIMARY KEY (`id`),
INDEX (`assessmentid`),
INDEX `workshopid` (`workshopid`)
) COMMENT='Info about individual grades given to each element';
# --------------------------------------------------------
#
# Table structure for table `workshop_stockcomments`
#
CREATE TABLE `prefix_workshop_stockcomments` (
`id` int(10) unsigned NOT NULL auto_increment,
`workshopid` int(10) unsigned NOT NULL default '0',
`elementno` int(10) unsigned NOT NULL default '0',
`comments` text NOT NULL default '',
PRIMARY KEY (`id`)
) COMMENT='Info about the teacher comment bank';
# --------------------------------------------------------
#
# Table structure for table `workshop_comments`
#
CREATE TABLE `prefix_workshop_comments` (
`id` int(10) unsigned NOT NULL auto_increment,
`workshopid` int(10) unsigned NOT NULL default '0',
`assessmentid` int(10) unsigned NOT NULL default '0',
`userid` int(10) unsigned NOT NULL default '0',
`timecreated` int(10) unsigned NOT NULL default '0',
`mailed` tinyint(2) unsigned NOT NULL default '0',
`comments` text NOT NULL default '',
PRIMARY KEY (`id`),
KEY `workshopid` (`workshopid`),
KEY `assessmentid` (`assessmentid`),
KEY `userid` (`userid`),
KEY `mailed` (`mailed`)
) COMMENT='Defines comments';
# --------------------------------------------------------
INSERT INTO `prefix_log_display` (module, action, mtable, field) VALUES ('workshop', 'assessments', 'workshop', 'name');
INSERT INTO `prefix_log_display` (module, action, mtable, field) VALUES ('workshop', 'close', 'workshop', 'name');
INSERT INTO `prefix_log_display` (module, action, mtable, field) VALUES ('workshop', 'display', 'workshop', 'name');
INSERT INTO `prefix_log_display` (module, action, mtable, field) VALUES ('workshop', 'resubmit', 'workshop', 'name');
INSERT INTO `prefix_log_display` (module, action, mtable, field) VALUES ('workshop', 'set up', 'workshop', 'name');
INSERT INTO `prefix_log_display` (module, action, mtable, field) VALUES ('workshop', 'submissions', 'workshop', 'name');
INSERT INTO `prefix_log_display` (module, action, mtable, field) VALUES ('workshop', 'view', 'workshop', 'name');
INSERT INTO `prefix_log_display` (module, action, mtable, field) VALUES ('workshop', 'update', 'workshop', 'name');
-177
View File
@@ -1,177 +0,0 @@
#
# Table structure for table workshop
#
BEGIN;
CREATE TABLE prefix_workshop (
id SERIAL PRIMARY KEY,
course INT8 NOT NULL default '0',
name varchar(255) NOT NULL default '',
description text NOT NULL default '',
wtype INT NOT NULL DEFAULT '0',
nelements INT NOT NULL default '10',
nattachments INT NOT NULL DEFAULT '0',
phase INT2 NOT NULL default '0',
format INT2 NOT NULL default '0',
gradingstrategy INT2 NOT NULL default '1',
resubmit INT2 NOT NULL default '0',
agreeassessments INT2 NOT NULL default '0',
hidegrades INT2 NOT NULL default '0',
anonymous INT2 NOT NULL default '0',
includeself INT2 NOT NULL default '0',
maxbytes INT8 NOT NULL default '100000',
submissionstart INT8 NOT NULL default '0',
assessmentstart INT8 NOT NULL default '0',
submissionend INT8 NOT NULL default '0',
assessmentend INT8 NOT NULL default '0',
releasegrades INT8 NOT NULL default'0',
grade INT8 NOT NULL default '0',
gradinggrade INT4 NOT NULL default '0',
ntassessments INT NOT NULL default '0',
assessmentcomps int4 NOT NULL default '2',
nsassessments INT NOT NULL default '0',
overallocation INT NOT NULL default '0',
timemodified INT8 NOT NULL default '0',
teacherweight INT NOT NULL default '1',
showleaguetable INT4 NOT NULL default '0',
usepassword INT NOT NULL DEFAULT '0',
password VARCHAR(32) NOT NULL DEFAULT ''
);
CREATE INDEX prefix_workshop_course_idx ON prefix_workshop (course);
# --------------------------------------------------------
#
# Table structure for table workshop_submissions
#
CREATE TABLE prefix_workshop_submissions (
id SERIAL PRIMARY KEY,
workshopid INT8 NOT NULL default '0',
userid INT8 NOT NULL default '0',
title varchar(100) NOT NULL default '',
timecreated INT8 NOT NULL default '0',
mailed INT2 NOT NULL default '0',
description TEXT,
gradinggrade INT NOT NULL default '0',
late INT NOT NULL DEFAULT '0',
finalgrade INT NOT NULL default '0',
nassessments INT8 NOT NULL default '0'
);
CREATE INDEX prefix_workshop_submissions_title_idx on prefix_workshop_submissions (title);
CREATE INDEX prefix_workshop_submissions_userid_idx ON prefix_workshop_submissions (userid);
CREATE INDEX prefix_workshop_submissions_workshopid_idx ON prefix_workshop_submissions (workshopid);
CREATE INDEX prefix_workshop_submissions_mailed_idx ON prefix_workshop_submissions (mailed);
# --------------------------------------------------------
#
# Table structure for table workshop_assessments
#
CREATE TABLE prefix_workshop_assessments (
id SERIAL PRIMARY KEY,
workshopid INT8 NOT NULL default '0',
submissionid INT8 NOT NULL default '0',
userid INT8 NOT NULL default '0',
timecreated INT8 NOT NULL default '0',
timegraded INT8 NOT NULL default '0',
timeagreed INT8 NOT NULL default '0',
grade float NOT NULL default '0',
gradinggrade INT NOT NULL default '0',
teachergraded INT4 NOT NULL default '0',
mailed INT2 NOT NULL default '0',
resubmission INT2 NOT NULL default '0',
donotuse int4 NOT NULL default '0',
generalcomment text NOT NULL default '',
teachercomment text NOT NULL default ''
);
CREATE INDEX prefix_workshop_assessments_workshopid_idx ON prefix_workshop_assessments (workshopid);
CREATE INDEX prefix_workshop_assessments_submissionid_idx ON prefix_workshop_assessments (submissionid);
CREATE INDEX prefix_workshop_assessments_userid_idx ON prefix_workshop_assessments (userid);
CREATE INDEX prefix_workshop_assessments_mailed_idx ON prefix_workshop_assessments (mailed);
# --------------------------------------------------------
#
# Table structure for table workshop_elements
#
CREATE TABLE prefix_workshop_elements (
id SERIAL PRIMARY KEY,
workshopid INT8 NOT NULL default '0',
elementno INT NOT NULL default '0',
description text NOT NULL default '',
scale INT NOT NULL default '0',
maxscore INT NOT NULL default '1',
weight INT4 NOT NULL default '11',
stddev FLOAT NOT NULL default '0',
totalassessments INT8 NOT NULL DEFAULT '0'
);
CREATE INDEX prefix_workshop_elements_workshopid_idx ON prefix_workshop_elements (workshopid);
# --------------------------------------------------------
CREATE TABLE prefix_workshop_rubrics (
id SERIAL PRIMARY KEY,
workshopid int8 NOT NULL default '0',
elementno int8 NOT NULL default '0',
rubricno int4 NOT NULL default '0',
description text NOT NULL
) ;
# --------------------------------------------------------
#
# Table structure for table workshop_grades
#
CREATE TABLE prefix_workshop_grades (
id SERIAL PRIMARY KEY,
workshopid INT8 NOT NULL default '0',
assessmentid INT8 NOT NULL default '0',
elementno INT8 NOT NULL default '0',
feedback text NOT NULL default '',
grade INT NOT NULL default '0'
);
CREATE INDEX prefix_workshop_grades_workshopid_idx ON prefix_workshop_grades (workshopid);
CREATE INDEX prefix_workshop_grades_assessmentid_idx ON prefix_workshop_grades (assessmentid);
# --------------------------------------------------------
CREATE TABLE prefix_workshop_comments (
id SERIAL PRIMARY KEY,
workshopid int8 NOT NULL default '0',
assessmentid int8 NOT NULL default '0',
userid int8 NOT NULL default '0',
timecreated int8 NOT NULL default '0',
mailed int2 NOT NULL default '0',
comments text NOT NULL default ''
);
CREATE INDEX prefix_workshop_comments_workshopid_idx ON prefix_workshop_comments (workshopid);
CREATE INDEX prefix_workshop_comments_assessmentid_idx ON prefix_workshop_comments (assessmentid);
CREATE INDEX prefix_workshop_comments_userid_idx ON prefix_workshop_comments (userid);
CREATE INDEX prefix_workshop_comments_mailed_idx ON prefix_workshop_comments (mailed);
#---------------------------------------------------------
CREATE TABLE prefix_workshop_stockcomments (
id SERIAL PRIMARY KEY,
workshopid INT8 NOT NULL default '0',
elementno INT8 NOT NULL default '0',
comments text NOT NULL
);
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('workshop', 'assessments', 'workshop', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('workshop', 'close', 'workshop', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('workshop', 'display', 'workshop', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('workshop', 'resubmit', 'workshop', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('workshop', 'set up', 'workshop', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('workshop', 'submissions', 'workshop', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('workshop', 'view', 'workshop', 'name');
INSERT INTO prefix_log_display (module, action, mtable, field) VALUES ('workshop', 'update', 'workshop', 'name');
COMMIT;
-18
View File
@@ -1,18 +0,0 @@
--
-- Table structure for table `prefix_question_calculated`
--
CREATE TABLE prefix_question_calculated (
id int(10) unsigned NOT NULL auto_increment,
question int(10) unsigned NOT NULL default '0',
answer int(10) unsigned NOT NULL default '0',
tolerance varchar(20) NOT NULL default '0.0',
tolerancetype int(10) NOT NULL default '1',
correctanswerlength int(10) NOT NULL default '2',
correctanswerformat int(10) NOT NULL default '2',
PRIMARY KEY (id),
KEY question (question),
KEY answer (answer)
) TYPE=MyISAM COMMENT='Options for questions of type calculated';
-- --------------------------------------------------------
-19
View File
@@ -1,19 +0,0 @@
# --------------------------------------------------------
#
# Table structure for table prefix_question_calculated
#
CREATE TABLE prefix_question_calculated (
id SERIAL8 PRIMARY KEY,
question INT8 NOT NULL default '0',
answer INT8 NOT NULL default '0',
tolerance varchar(20) NOT NULL default '0.0',
tolerancetype INT8 NOT NULL default '1',
correctanswerlength INT8 NOT NULL default '2',
correctanswerformat INT8 NOT NULL default '2'
);
CREATE INDEX prefix_question_calculated_question_idx ON prefix_question_calculated (question);
CREATE INDEX prefix_question_calculated_answer_idx ON prefix_question_calculated (answer);
-32
View File
@@ -1,32 +0,0 @@
--
-- Table structure for table `prefix_question_match`
--
CREATE TABLE prefix_question_match (
id int(10) unsigned NOT NULL auto_increment,
question int(10) unsigned NOT NULL default '0',
subquestions varchar(255) NOT NULL default '',
shuffleanswers tinyint(4) NOT NULL default '1',
PRIMARY KEY (id),
KEY question (question)
) TYPE=MyISAM COMMENT='Defines fixed matching questions';
-- --------------------------------------------------------
--
-- Table structure for table `prefix_question_match_sub`
--
CREATE TABLE prefix_question_match_sub (
id int(10) unsigned NOT NULL auto_increment,
code int(10) unsigned NOT NULL default '0',
question int(10) unsigned NOT NULL default '0',
questiontext text NOT NULL default '',
answertext varchar(255) NOT NULL default '',
PRIMARY KEY (id),
KEY question (question)
) TYPE=MyISAM COMMENT='Defines the subquestions that make up a matching question';
-- --------------------------------------------------------
-30
View File
@@ -1,30 +0,0 @@
# --------------------------------------------------------
#
# Table structure for table prefix_question_match
#
CREATE TABLE prefix_question_match (
id SERIAL PRIMARY KEY,
question integer NOT NULL default '0',
subquestions varchar(255) NOT NULL default '',
shuffleanswers integer NOT NULL default '1'
);
CREATE INDEX prefix_question_match_question_idx ON prefix_question_match (question);
# --------------------------------------------------------
#
# Table structure for table prefix_question_match_sub
#
CREATE TABLE prefix_question_match_sub (
id SERIAL PRIMARY KEY,
code integer NOT NULL default '0',
question integer NOT NULL default '0',
questiontext text NOT NULL default '',
answertext varchar(255) NOT NULL default ''
);
CREATE INDEX prefix_question_match_sub_question_idx ON prefix_question_match_sub (question);
-15
View File
@@ -1,15 +0,0 @@
--
-- Table structure for table `prefix_question_multianswer`
--
CREATE TABLE prefix_question_multianswer (
id int(10) unsigned NOT NULL auto_increment,
question int(10) unsigned NOT NULL default '0',
sequence text NOT NULL default '',
PRIMARY KEY (id),
KEY question (question)
) TYPE=MyISAM COMMENT='Options for multianswer questions';
-- --------------------------------------------------------
@@ -1,14 +0,0 @@
# --------------------------------------------------------
#
# Table structure for table prefix_question_multianswer
#
CREATE TABLE prefix_question_multianswer (
id SERIAL PRIMARY KEY,
question integer NOT NULL default '0',
sequence text NOT NULL default ''
);
CREATE INDEX prefix_question_multianswer_question_idx ON prefix_question_multianswer (question);
-21
View File
@@ -1,21 +0,0 @@
--
-- Table structure for table `prefix_question_multichoice`
--
CREATE TABLE prefix_question_multichoice (
id int(10) unsigned NOT NULL auto_increment,
question int(10) unsigned NOT NULL default '0',
layout tinyint(4) NOT NULL default '0',
answers varchar(255) NOT NULL default '',
single tinyint(4) NOT NULL default '0',
shuffleanswers tinyint(4) NOT NULL default '1',
correctfeedback text NOT NULL default '',
partiallycorrectfeedback text NOT NULL default '',
incorrectfeedback text NOT NULL default '',
PRIMARY KEY (id),
KEY question (question)
) TYPE=MyISAM COMMENT='Options for multiple choice questions';
-- --------------------------------------------------------
@@ -1,21 +0,0 @@
# --------------------------------------------------------
#
# Table structure for table prefix_question_multichoice
#
CREATE TABLE prefix_question_multichoice (
id SERIAL PRIMARY KEY,
question integer NOT NULL default '0',
layout integer NOT NULL default '0',
answers varchar(255) NOT NULL default '',
single integer NOT NULL default '0',
shuffleanswers integer NOT NULL default '1',
correctfeedback text NOT NULL default '',
partiallycorrectfeedback text NOT NULL default '',
incorrectfeedback text NOT NULL default ''
);
CREATE INDEX prefix_question_multichoice_question_idx ON prefix_question_multichoice (question);
-17
View File
@@ -1,17 +0,0 @@
--
-- Table structure for table `prefix_question_numerical`
--
CREATE TABLE prefix_question_numerical (
id int(10) unsigned NOT NULL auto_increment,
question int(10) unsigned NOT NULL default '0',
answer int(10) unsigned NOT NULL default '0',
tolerance varchar(255) NOT NULL default '0.0',
PRIMARY KEY (id),
KEY answer (answer),
KEY question (question)
) TYPE=MyISAM COMMENT='Options for numerical questions';
-- --------------------------------------------------------
-16
View File
@@ -1,16 +0,0 @@
# --------------------------------------------------------
#
# Table structure for table prefix_question_numerical
#
CREATE TABLE prefix_question_numerical (
id SERIAL PRIMARY KEY,
question integer NOT NULL default '0',
answer integer NOT NULL default '0',
tolerance varchar(255) NOT NULL default '0.0'
);
CREATE INDEX prefix_question_numerical_answer_idx ON prefix_question_numerical (answer);
CREATE INDEX prefix_question_numerical_question_idx ON prefix_question_numerical (question);
-13
View File
@@ -1,13 +0,0 @@
--
-- Table structure for table `prefix_question_randomsamatch`
--
CREATE TABLE prefix_question_randomsamatch (
id int(10) unsigned NOT NULL auto_increment,
question int(10) unsigned NOT NULL default '0',
choose int(10) unsigned NOT NULL default '4',
PRIMARY KEY (id),
KEY question (question)
) TYPE=MyISAM COMMENT='Info about a random short-answer matching question';
-- --------------------------------------------------------
@@ -1,14 +0,0 @@
# --------------------------------------------------------
#
# Table structure for table prefix_question_randomsamatch
#
CREATE TABLE prefix_question_randomsamatch (
id SERIAL PRIMARY KEY,
question integer NOT NULL default '0',
choose integer NOT NULL default '4'
);
CREATE INDEX prefix_question_randomsamatch_question_idx ON prefix_question_randomsamatch (question);
-60
View File
@@ -1,60 +0,0 @@
--
-- Table structure for table `prefix_question_rqp`
--
CREATE TABLE prefix_question_rqp (
id int(10) unsigned NOT NULL auto_increment,
question int(10) unsigned NOT NULL default '0',
type int(10) unsigned NOT NULL default '0',
source longblob NOT NULL default '',
format varchar(255) NOT NULL default '',
flags tinyint(3) unsigned NOT NULL default '0',
maxscore int(10) unsigned NOT NULL default '1',
PRIMARY KEY (id),
KEY question (question)
) TYPE=MyISAM COMMENT='Options for RQP questions';
-- --------------------------------------------------------
--
-- Table structure for table `prefix_question_rqp_servers`
--
CREATE TABLE prefix_question_rqp_servers (
id int(10) unsigned NOT NULL auto_increment,
typeid int(10) unsigned NOT NULL default '0',
url varchar(255) NOT NULL default '',
can_render tinyint(2) unsigned NOT NULL default '0',
can_author tinyint(2) unsigned NOT NULL default '0',
PRIMARY KEY (id)
) TYPE=MyISAM COMMENT='Information about RQP servers';
-- --------------------------------------------------------
--
-- Table structure for table `prefix_question_rqp_states`
--
CREATE TABLE prefix_question_rqp_states (
id int(10) unsigned NOT NULL auto_increment,
stateid int(10) unsigned NOT NULL default '0',
responses text NOT NULL default '',
persistent_data text NOT NULL default '',
template_vars text NOT NULL default '',
PRIMARY KEY (id)
) TYPE=MyISAM COMMENT='RQP question type specific state information';
-- --------------------------------------------------------
--
-- Table structure for table `prefix_question_rqp_types`
--
CREATE TABLE prefix_question_rqp_types (
id int(10) unsigned NOT NULL auto_increment,
name varchar(255) NOT NULL default '',
PRIMARY KEY (id),
UNIQUE KEY name (name)
) TYPE=MyISAM COMMENT='RQP question types';
-- --------------------------------------------------------
-50
View File
@@ -1,50 +0,0 @@
# --------------------------------------------------------
#
# Table structure for table prefix_question_rqp
#
CREATE TABLE prefix_question_rqp (
id SERIAL PRIMARY KEY,
question integer NOT NULL default '0',
type integer NOT NULL default '0',
source text NOT NULL,
format varchar(255) NOT NULL default '',
flags integer NOT NULL default '0',
maxscore integer NOT NULL default '1'
);
CREATE INDEX prefix_question_rqp_question_idx ON prefix_question_rqp (question);
# --------------------------------------------------------
#
# Table structure for table prefix_question_rqp_states
#
CREATE TABLE prefix_question_rqp_states (
id SERIAL PRIMARY KEY,
stateid integer NOT NULL default '0',
responses text NOT NULL,
persistent_data text NOT NULL,
template_vars text NOT NULL
);
# --------------------------------------------------------
#
# Table structure for table prefix_question_rqp_type
#
CREATE TABLE prefix_question_rqp_types (
id SERIAL PRIMARY KEY,
name varchar(255) NOT NULL default '',
rendering_server varchar(255) NOT NULL default '',
cloning_server varchar(255) NOT NULL default '',
flags integer NOT NULL default '0'
);
CREATE UNIQUE INDEX prefix_question_rqp_types_name_uk ON prefix_question_rqp_types (name);
-16
View File
@@ -1,16 +0,0 @@
--
-- Table structure for table `prefix_question_shortanswer`
--
CREATE TABLE prefix_question_shortanswer (
id int(10) unsigned NOT NULL auto_increment,
question int(10) unsigned NOT NULL default '0',
answers varchar(255) NOT NULL default '',
usecase tinyint(2) NOT NULL default '0',
PRIMARY KEY (id),
KEY question (question)
) TYPE=MyISAM COMMENT='Options for short answer questions';
-- --------------------------------------------------------
@@ -1,14 +0,0 @@
# --------------------------------------------------------
#
# Table structure for table prefix_question_shortanswer
#
CREATE TABLE prefix_question_shortanswer (
id SERIAL PRIMARY KEY,
question integer NOT NULL default '0',
answers varchar(255) NOT NULL default '',
usecase integer NOT NULL default '0'
);
CREATE INDEX prefix_question_shortanswer_question_idx ON prefix_question_shortanswer (question);
-13
View File
@@ -1,13 +0,0 @@
--
-- Table structure for table `prefix_question_truefalse`
--
CREATE TABLE prefix_question_truefalse (
id int(10) unsigned NOT NULL auto_increment,
question int(10) unsigned NOT NULL default '0',
trueanswer int(10) unsigned NOT NULL default '0',
falseanswer int(10) unsigned NOT NULL default '0',
PRIMARY KEY (id),
KEY question (question)
) TYPE=MyISAM COMMENT='Options for True-False questions';
-13
View File
@@ -1,13 +0,0 @@
# --------------------------------------------------------
#
# Table structure for table prefix_question_truefalse
#
CREATE TABLE prefix_question_truefalse (
id SERIAL PRIMARY KEY,
question integer NOT NULL default '0',
trueanswer integer NOT NULL default '0',
falseanswer integer NOT NULL default '0'
);
CREATE INDEX prefix_question_truefalse_question_idx ON prefix_question_truefalse (question);