(mysql): SHOW TABLES  

(mysql): SHOW VARIABLES LIKE 'character_set_database'  

(mysql): SET NAMES 'utf8'  

(mysql): SHOW VARIABLES LIKE 'character_set_database'  

(mysql): CREATE TABLE mdl_config ( id BIGINT(10) unsigned NOT NULL auto_increment, name VARCHAR(255) NOT NULL DEFAULT '', value TEXT NOT NULL, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_config COMMENT='Moodle configuration variables'  
Success


(mysql): CREATE UNIQUE INDEX mdl_conf_nam_uix ON mdl_config (name)  
Success


(mysql): CREATE TABLE mdl_config_plugins ( id BIGINT(10) unsigned NOT NULL auto_increment, plugin VARCHAR(100) NOT NULL DEFAULT 'core', name VARCHAR(100) NOT NULL DEFAULT '', value TEXT NOT NULL, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_config_plugins COMMENT='Moodle modules and plugins configuration variables'  
Success


(mysql): CREATE UNIQUE INDEX mdl_confplug_plunam_uix ON mdl_config_plugins (plugin, name)  
Success


(mysql): CREATE TABLE mdl_course ( id BIGINT(10) unsigned NOT NULL auto_increment, category BIGINT(10) unsigned NOT NULL DEFAULT 0, sortorder BIGINT(10) unsigned NOT NULL DEFAULT 0, password VARCHAR(50) NOT NULL DEFAULT '', fullname VARCHAR(254) NOT NULL DEFAULT '', shortname VARCHAR(100) NOT NULL DEFAULT '', idnumber VARCHAR(100) NOT NULL DEFAULT '', summary TEXT NOT NULL, format VARCHAR(10) NOT NULL DEFAULT 'topics', showgrades TINYINT(2) unsigned NOT NULL DEFAULT 1, modinfo LONGTEXT, newsitems MEDIUMINT(5) unsigned 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 TINYINT(2) unsigned NOT NULL DEFAULT 0, startdate BIGINT(10) unsigned NOT NULL DEFAULT 0, enrolperiod BIGINT(10) unsigned NOT NULL DEFAULT 0, numsections MEDIUMINT(5) unsigned NOT NULL DEFAULT 1, marker BIGINT(10) unsigned NOT NULL DEFAULT 0, maxbytes BIGINT(10) unsigned NOT NULL DEFAULT 0, showreports SMALLINT(4) unsigned NOT NULL DEFAULT 0, visible TINYINT(1) unsigned NOT NULL DEFAULT 1, hiddensections TINYINT(2) unsigned NOT NULL DEFAULT 0, groupmode SMALLINT(4) unsigned NOT NULL DEFAULT 0, groupmodeforce SMALLINT(4) unsigned NOT NULL DEFAULT 0, lang VARCHAR(30) NOT NULL DEFAULT '', theme VARCHAR(50) NOT NULL DEFAULT '', cost VARCHAR(10) NOT NULL DEFAULT '', currency VARCHAR(3) NOT NULL DEFAULT 'USD', timecreated BIGINT(10) unsigned NOT NULL DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, metacourse TINYINT(1) unsigned NOT NULL DEFAULT 0, requested TINYINT(1) unsigned NOT NULL DEFAULT 0, restrictmodules TINYINT(1) unsigned NOT NULL DEFAULT 0, expirynotify TINYINT(1) unsigned NOT NULL DEFAULT 0, expirythreshold BIGINT(10) unsigned NOT NULL DEFAULT 0, notifystudents TINYINT(1) unsigned NOT NULL DEFAULT 0, enrollable TINYINT(1) unsigned NOT NULL DEFAULT 1, enrolstartdate BIGINT(10) unsigned NOT NULL DEFAULT 0, enrolenddate BIGINT(10) unsigned NOT NULL DEFAULT 0, enrol VARCHAR(20) NOT NULL DEFAULT '', defaultrole BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_course COMMENT='Central course table'  
Success


(mysql): CREATE INDEX mdl_cour_cat_ix ON mdl_course (category)  
Success


(mysql): CREATE INDEX mdl_cour_idn_ix ON mdl_course (idnumber)  
Success


(mysql): CREATE INDEX mdl_cour_sho_ix ON mdl_course (shortname)  
Success


(mysql): CREATE TABLE mdl_course_categories ( id BIGINT(10) unsigned NOT NULL auto_increment, name VARCHAR(255) NOT NULL DEFAULT '', description TEXT, parent BIGINT(10) unsigned NOT NULL DEFAULT 0, sortorder BIGINT(10) unsigned NOT NULL DEFAULT 0, coursecount BIGINT(10) unsigned NOT NULL DEFAULT 0, visible TINYINT(1) NOT NULL DEFAULT 1, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, depth BIGINT(10) unsigned NOT NULL DEFAULT 0, path VARCHAR(255) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_course_categories COMMENT='Course categories'  
Success


(mysql): CREATE INDEX mdl_courcate_par_ix ON mdl_course_categories (parent)  
Success


(mysql): CREATE TABLE mdl_course_display ( id BIGINT(10) unsigned NOT NULL auto_increment, course BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, display BIGINT(10) NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_course_display COMMENT='Stores info about how to display the course'  
Success


(mysql): CREATE INDEX mdl_courdisp_couuse_ix ON mdl_course_display (course, userid)  
Success


(mysql): CREATE TABLE mdl_course_meta ( id BIGINT(10) unsigned NOT NULL auto_increment, parent_course BIGINT(10) unsigned NOT NULL DEFAULT 0, child_course BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_course_meta COMMENT='to store meta-courses relations'  
Success


(mysql): CREATE INDEX mdl_courmeta_par_ix ON mdl_course_meta (parent_course)  
Success


(mysql): CREATE INDEX mdl_courmeta_chi_ix ON mdl_course_meta (child_course)  
Success


(mysql): CREATE TABLE mdl_course_modules ( id BIGINT(10) unsigned NOT NULL auto_increment, course BIGINT(10) unsigned NOT NULL DEFAULT 0, module BIGINT(10) unsigned NOT NULL DEFAULT 0, instance BIGINT(10) unsigned NOT NULL DEFAULT 0, section BIGINT(10) unsigned NOT NULL DEFAULT 0, added BIGINT(10) unsigned NOT NULL DEFAULT 0, score SMALLINT(4) NOT NULL DEFAULT 0, indent MEDIUMINT(5) unsigned NOT NULL DEFAULT 0, visible TINYINT(1) NOT NULL DEFAULT 1, visibleold TINYINT(1) NOT NULL DEFAULT 1, groupmode SMALLINT(4) NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_course_modules COMMENT='course_modules table retrofitted from MySQL'  
Success


(mysql): CREATE INDEX mdl_courmodu_vis_ix ON mdl_course_modules (visible)  
Success


(mysql): CREATE INDEX mdl_courmodu_cou_ix ON mdl_course_modules (course)  
Success


(mysql): CREATE INDEX mdl_courmodu_mod_ix ON mdl_course_modules (module)  
Success


(mysql): CREATE INDEX mdl_courmodu_ins_ix ON mdl_course_modules (instance)  
Success


(mysql): CREATE TABLE mdl_course_sections ( id BIGINT(10) unsigned NOT NULL auto_increment, course BIGINT(10) unsigned NOT NULL DEFAULT 0, section BIGINT(10) unsigned NOT NULL DEFAULT 0, summary TEXT, sequence TEXT, visible TINYINT(1) NOT NULL DEFAULT 1, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_course_sections COMMENT='to define the sections for each course'  
Success


(mysql): CREATE INDEX mdl_coursect_cousec_ix ON mdl_course_sections (course, section)  
Success


(mysql): CREATE TABLE mdl_course_request ( id BIGINT(10) unsigned NOT NULL auto_increment, fullname VARCHAR(254) NOT NULL DEFAULT '', shortname VARCHAR(15) NOT NULL DEFAULT '', summary TEXT NOT NULL, reason TEXT NOT NULL, requester BIGINT(10) NOT NULL DEFAULT 0, password VARCHAR(50) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_course_request COMMENT='course requests'  
Success


(mysql): CREATE INDEX mdl_courrequ_sho_ix ON mdl_course_request (shortname)  
Success


(mysql): CREATE TABLE mdl_course_allowed_modules ( id BIGINT(10) unsigned NOT NULL auto_increment, course BIGINT(10) unsigned NOT NULL DEFAULT 0, module BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_course_allowed_modules COMMENT='allowed modules foreach course'  
Success


(mysql): CREATE INDEX mdl_courallomodu_cou_ix ON mdl_course_allowed_modules (course)  
Success


(mysql): CREATE INDEX mdl_courallomodu_mod_ix ON mdl_course_allowed_modules (module)  
Success


(mysql): CREATE TABLE mdl_event ( id BIGINT(10) unsigned NOT NULL auto_increment, name VARCHAR(255) NOT NULL DEFAULT '', description TEXT NOT NULL, format SMALLINT(4) unsigned NOT NULL DEFAULT 0, courseid BIGINT(10) unsigned NOT NULL DEFAULT 0, groupid BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, repeatid BIGINT(10) unsigned NOT NULL DEFAULT 0, modulename VARCHAR(20) NOT NULL DEFAULT '', instance BIGINT(10) unsigned NOT NULL DEFAULT 0, eventtype VARCHAR(20) NOT NULL DEFAULT '', timestart BIGINT(10) unsigned NOT NULL DEFAULT 0, timeduration BIGINT(10) unsigned NOT NULL DEFAULT 0, visible SMALLINT(4) NOT NULL DEFAULT 1, uuid VARCHAR(36) NOT NULL DEFAULT '', sequence BIGINT(10) unsigned NOT NULL DEFAULT 1, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_event COMMENT='For everything with a time associated to it'  
Success


(mysql): CREATE INDEX mdl_even_cou_ix ON mdl_event (courseid)  
Success


(mysql): CREATE INDEX mdl_even_use_ix ON mdl_event (userid)  
Success


(mysql): CREATE INDEX mdl_even_tim_ix ON mdl_event (timestart)  
Success


(mysql): CREATE INDEX mdl_even_tim2_ix ON mdl_event (timeduration)  
Success


(mysql): CREATE TABLE mdl_cache_filters ( id BIGINT(10) unsigned NOT NULL auto_increment, filter VARCHAR(32) NOT NULL DEFAULT '', version BIGINT(10) unsigned NOT NULL DEFAULT 0, md5key VARCHAR(32) NOT NULL DEFAULT '', rawtext TEXT NOT NULL, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_cache_filters COMMENT='For keeping information about cached data'  
Success


(mysql): CREATE INDEX mdl_cachfilt_filmd5_ix ON mdl_cache_filters (filter, md5key)  
Success


(mysql): CREATE TABLE mdl_cache_text ( id BIGINT(10) unsigned NOT NULL auto_increment, md5key VARCHAR(32) NOT NULL DEFAULT '', formattedtext LONGTEXT NOT NULL, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_cache_text COMMENT='For storing temporary copies of processed texts'  
Success


(mysql): CREATE INDEX mdl_cachtext_md5_ix ON mdl_cache_text (md5key)  
Success


(mysql): CREATE TABLE mdl_grade_category ( id BIGINT(10) unsigned NOT NULL auto_increment, name VARCHAR(64) NOT NULL DEFAULT '', courseid BIGINT(10) unsigned NOT NULL DEFAULT 0, drop_x_lowest BIGINT(10) unsigned NOT NULL DEFAULT 0, bonus_points BIGINT(10) unsigned NOT NULL DEFAULT 0, hidden BIGINT(10) unsigned NOT NULL DEFAULT 0, weight NUMERIC(5,2) NOT NULL DEFAULT 0.00, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_grade_category COMMENT='to define categories to group activity grades'  
Success


(mysql): CREATE INDEX mdl_gradcate_cou_ix ON mdl_grade_category (courseid)  
Success


(mysql): CREATE TABLE mdl_grade_exceptions ( id BIGINT(10) unsigned NOT NULL auto_increment, courseid BIGINT(10) unsigned NOT NULL DEFAULT 0, grade_itemid BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_grade_exceptions COMMENT='individual grades to be skipped for certain students'  
Success


(mysql): CREATE INDEX mdl_gradexce_cou_ix ON mdl_grade_exceptions (courseid)  
Success


(mysql): CREATE TABLE mdl_grade_item ( id BIGINT(10) unsigned NOT NULL auto_increment, courseid BIGINT(10) unsigned NOT NULL DEFAULT 0, category BIGINT(10) unsigned NOT NULL DEFAULT 0, modid BIGINT(10) unsigned NOT NULL DEFAULT 0, cminstance BIGINT(10) unsigned NOT NULL DEFAULT 0, scale_grade DOUBLE(11,10) NOT NULL DEFAULT 1.0000000000, extra_credit BIGINT(10) unsigned NOT NULL DEFAULT 0, sort_order BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_grade_item COMMENT='items to be graded'  
Success


(mysql): CREATE INDEX mdl_graditem_cou_ix ON mdl_grade_item (courseid)  
Success


(mysql): CREATE TABLE mdl_grade_letter ( id BIGINT(10) unsigned NOT NULL auto_increment, courseid BIGINT(10) unsigned NOT NULL DEFAULT 0, letter VARCHAR(8) NOT NULL DEFAULT 'NA', grade_high NUMERIC(5,2) NOT NULL DEFAULT 100.00, grade_low NUMERIC(5,2) NOT NULL DEFAULT 0.00, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_grade_letter COMMENT='to convert numerical grades to letter grades'  
Success


(mysql): CREATE INDEX mdl_gradlett_cou_ix ON mdl_grade_letter (courseid)  
Success


(mysql): CREATE TABLE mdl_grade_preferences ( id BIGINT(10) unsigned NOT NULL auto_increment, courseid BIGINT(10) unsigned NOT NULL DEFAULT 0, preference BIGINT(10) NOT NULL DEFAULT 0, value BIGINT(10) NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_grade_preferences COMMENT='Preferences of the gradebook for each course'  
Success


(mysql): CREATE UNIQUE INDEX mdl_gradpref_coupre_uix ON mdl_grade_preferences (courseid, preference)  
Success


(mysql): CREATE TABLE mdl_log ( id BIGINT(10) unsigned NOT NULL auto_increment, time BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, ip VARCHAR(15) NOT NULL DEFAULT '', course BIGINT(10) unsigned NOT NULL DEFAULT 0, module VARCHAR(20) NOT NULL DEFAULT '', cmid BIGINT(10) unsigned NOT NULL DEFAULT 0, action VARCHAR(40) NOT NULL DEFAULT '', url VARCHAR(100) NOT NULL DEFAULT '', info VARCHAR(255) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_log COMMENT='Every action is logged as far as possible'  
Success


(mysql): CREATE INDEX mdl_log_timcoumodact_ix ON mdl_log (time, course, module, action)  
Success


(mysql): CREATE INDEX mdl_log_coumodact_ix ON mdl_log (course, module, action)  
Success


(mysql): CREATE INDEX mdl_log_couuse_ix ON mdl_log (course, userid)  
Success


(mysql): CREATE INDEX mdl_log_use_ix ON mdl_log (userid)  
Success


(mysql): CREATE INDEX mdl_log_inf_ix ON mdl_log (info)  
Success


(mysql): CREATE TABLE mdl_log_display ( id BIGINT(10) unsigned NOT NULL auto_increment, module VARCHAR(20) NOT NULL DEFAULT '', action VARCHAR(40) NOT NULL DEFAULT '', mtable VARCHAR(30) NOT NULL DEFAULT '', field VARCHAR(200) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_log_display COMMENT='For a particular module/action, specifies a moodle table/fie'  
Success


(mysql): CREATE UNIQUE INDEX mdl_logdisp_modact_uix ON mdl_log_display (module, action)  
Success


(mysql): CREATE TABLE mdl_message ( id BIGINT(10) unsigned NOT NULL auto_increment, useridfrom BIGINT(10) NOT NULL DEFAULT 0, useridto BIGINT(10) NOT NULL DEFAULT 0, message TEXT NOT NULL, format SMALLINT(4) unsigned NOT NULL DEFAULT 0, timecreated BIGINT(10) NOT NULL DEFAULT 0, messagetype VARCHAR(50) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_message COMMENT='Stores all unread messages'  
Success


(mysql): CREATE INDEX mdl_mess_use_ix ON mdl_message (useridfrom)  
Success


(mysql): CREATE INDEX mdl_mess_use2_ix ON mdl_message (useridto)  
Success


(mysql): CREATE TABLE mdl_message_read ( id BIGINT(10) unsigned NOT NULL auto_increment, useridfrom BIGINT(10) NOT NULL DEFAULT 0, useridto BIGINT(10) NOT NULL DEFAULT 0, message TEXT NOT NULL, format SMALLINT(4) unsigned NOT NULL DEFAULT 0, timecreated BIGINT(10) NOT NULL DEFAULT 0, timeread BIGINT(10) NOT NULL DEFAULT 0, messagetype VARCHAR(50) NOT NULL DEFAULT '', mailed TINYINT(1) NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_message_read COMMENT='Stores all messages that have been read'  
Success


(mysql): CREATE INDEX mdl_messread_use_ix ON mdl_message_read (useridfrom)  
Success


(mysql): CREATE INDEX mdl_messread_use2_ix ON mdl_message_read (useridto)  
Success


(mysql): CREATE TABLE mdl_message_contacts ( id BIGINT(10) unsigned NOT NULL auto_increment, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, contactid BIGINT(10) unsigned NOT NULL DEFAULT 0, blocked TINYINT(1) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_message_contacts COMMENT='Maintains lists of relationships between users'  
Success


(mysql): CREATE UNIQUE INDEX mdl_messcont_usecon_uix ON mdl_message_contacts (userid, contactid)  
Success


(mysql): CREATE TABLE mdl_modules ( id BIGINT(10) unsigned NOT NULL auto_increment, name VARCHAR(20) NOT NULL DEFAULT '', version BIGINT(10) NOT NULL DEFAULT 0, cron BIGINT(10) unsigned NOT NULL DEFAULT 0, lastcron BIGINT(10) unsigned NOT NULL DEFAULT 0, search VARCHAR(255) NOT NULL DEFAULT '', visible TINYINT(1) NOT NULL DEFAULT 1, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_modules COMMENT='modules available in the site'  
Success


(mysql): CREATE INDEX mdl_modu_nam_ix ON mdl_modules (name)  
Success


(mysql): CREATE TABLE mdl_scale ( id BIGINT(10) unsigned NOT NULL auto_increment, courseid BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, name VARCHAR(255) NOT NULL DEFAULT '', scale TEXT NOT NULL, description TEXT NOT NULL, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_scale COMMENT='Defines grading scales'  
Success


(mysql): CREATE INDEX mdl_scal_cou_ix ON mdl_scale (courseid)  
Success


(mysql): CREATE TABLE mdl_sessions2 ( sesskey VARCHAR(64) NOT NULL DEFAULT '', expiry DATETIME NOT NULL, expireref VARCHAR(250) DEFAULT '', created DATETIME NOT NULL, modified DATETIME NOT NULL, sessdata LONGTEXT DEFAULT '', CONSTRAINT PRIMARY KEY (sesskey) )  
Success


(mysql): ALTER TABLE mdl_sessions2 COMMENT='Optional database session storage in new format, not used by'  
Success


(mysql): CREATE INDEX mdl_sess_exp_ix ON mdl_sessions2 (expiry)  
Success


(mysql): CREATE INDEX mdl_sess_exp2_ix ON mdl_sessions2 (expireref)  
Success


(mysql): CREATE TABLE adodb_logsql ( id BIGINT(10) unsigned NOT NULL auto_increment, created DATETIME NOT NULL, sql0 VARCHAR(250) NOT NULL DEFAULT '', sql1 TEXT, params TEXT, tracer TEXT, timer NUMERIC(16,6) NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE adodb_logsql COMMENT='to save some logs from ADOdb'  
Success


(mysql): CREATE TABLE mdl_timezone ( id BIGINT(10) NOT NULL auto_increment, name VARCHAR(100) NOT NULL DEFAULT '', year BIGINT(11) NOT NULL DEFAULT 0, tzrule VARCHAR(20) NOT NULL DEFAULT '', gmtoff BIGINT(11) NOT NULL DEFAULT 0, dstoff BIGINT(11) NOT NULL DEFAULT 0, dst_month TINYINT(2) NOT NULL DEFAULT 0, dst_startday SMALLINT(3) NOT NULL DEFAULT 0, dst_weekday SMALLINT(3) NOT NULL DEFAULT 0, dst_skipweeks SMALLINT(3) NOT NULL DEFAULT 0, dst_time VARCHAR(5) NOT NULL DEFAULT '00:00', std_month TINYINT(2) NOT NULL DEFAULT 0, std_startday SMALLINT(3) NOT NULL DEFAULT 0, std_weekday SMALLINT(3) NOT NULL DEFAULT 0, std_skipweeks SMALLINT(3) NOT NULL DEFAULT 0, std_time VARCHAR(5) NOT NULL DEFAULT '00:00', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_timezone COMMENT='Rules for calculating local wall clock time for users'  
Success


(mysql): CREATE TABLE mdl_user ( id BIGINT(10) unsigned NOT NULL auto_increment, auth VARCHAR(20) NOT NULL DEFAULT 'manual', confirmed TINYINT(1) NOT NULL DEFAULT 0, policyagreed TINYINT(1) NOT NULL DEFAULT 0, deleted TINYINT(1) NOT NULL DEFAULT 0, mnethostid BIGINT(10) NOT NULL DEFAULT 0, username VARCHAR(100) NOT NULL DEFAULT '', password VARCHAR(32) NOT NULL DEFAULT '', idnumber VARCHAR(64) NOT NULL DEFAULT '', firstname VARCHAR(100) NOT NULL DEFAULT '', lastname VARCHAR(100) NOT NULL DEFAULT '', email VARCHAR(100) NOT NULL DEFAULT '', emailstop TINYINT(1) unsigned NOT NULL DEFAULT 0, icq VARCHAR(15) NOT NULL DEFAULT '', skype VARCHAR(50) NOT NULL DEFAULT '', yahoo VARCHAR(50) NOT NULL DEFAULT '', aim VARCHAR(50) NOT NULL DEFAULT '', msn VARCHAR(50) NOT NULL DEFAULT '', phone1 VARCHAR(20) NOT NULL DEFAULT '', phone2 VARCHAR(20) NOT NULL DEFAULT '', institution VARCHAR(40) NOT NULL DEFAULT '', department VARCHAR(30) NOT NULL DEFAULT '', address VARCHAR(70) NOT NULL DEFAULT '', city VARCHAR(20) NOT NULL DEFAULT '', country VARCHAR(2) NOT NULL DEFAULT '', lang VARCHAR(30) NOT NULL DEFAULT 'en', theme VARCHAR(50) NOT NULL DEFAULT '', timezone VARCHAR(100) NOT NULL DEFAULT '99', firstaccess BIGINT(10) unsigned NOT NULL DEFAULT 0, lastaccess BIGINT(10) unsigned NOT NULL DEFAULT 0, lastlogin BIGINT(10) unsigned NOT NULL DEFAULT 0, currentlogin BIGINT(10) unsigned NOT NULL DEFAULT 0, lastip VARCHAR(15) NOT NULL DEFAULT '', secret VARCHAR(15) NOT NULL DEFAULT '', picture TINYINT(1) NOT NULL DEFAULT 0, url VARCHAR(255) NOT NULL DEFAULT '', description TEXT, mailformat TINYINT(1) unsigned NOT NULL DEFAULT 1, maildigest TINYINT(1) unsigned NOT NULL DEFAULT 0, maildisplay TINYINT(2) unsigned NOT NULL DEFAULT 2, htmleditor TINYINT(1) unsigned NOT NULL DEFAULT 1, ajax TINYINT(1) unsigned NOT NULL DEFAULT 1, autosubscribe TINYINT(1) unsigned NOT NULL DEFAULT 1, trackforums TINYINT(1) unsigned NOT NULL DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, trustbitmask BIGINT(10) unsigned NOT NULL DEFAULT 0, imagealt VARCHAR(255) DEFAULT NULL, screenreader TINYINT(1) NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_user COMMENT='One record for each person'  
Success


(mysql): CREATE UNIQUE INDEX mdl_user_mneuse_uix ON mdl_user (mnethostid, username)  
Success


(mysql): CREATE INDEX mdl_user_del_ix ON mdl_user (deleted)  
Success


(mysql): CREATE INDEX mdl_user_con_ix ON mdl_user (confirmed)  
Success


(mysql): CREATE INDEX mdl_user_fir_ix ON mdl_user (firstname)  
Success


(mysql): CREATE INDEX mdl_user_las_ix ON mdl_user (lastname)  
Success


(mysql): CREATE INDEX mdl_user_cit_ix ON mdl_user (city)  
Success


(mysql): CREATE INDEX mdl_user_cou_ix ON mdl_user (country)  
Success


(mysql): CREATE INDEX mdl_user_las2_ix ON mdl_user (lastaccess)  
Success


(mysql): CREATE INDEX mdl_user_ema_ix ON mdl_user (email)  
Success


(mysql): CREATE INDEX mdl_user_aut_ix ON mdl_user (auth)  
Success


(mysql): CREATE INDEX mdl_user_idn_ix ON mdl_user (idnumber)  
Success


(mysql): CREATE TABLE mdl_user_preferences ( id BIGINT(10) unsigned NOT NULL auto_increment, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, name VARCHAR(50) NOT NULL DEFAULT '', value VARCHAR(255) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_user_preferences COMMENT='Allows modules to store arbitrary user preferences'  
Success


(mysql): CREATE UNIQUE INDEX mdl_userpref_usenam_uix ON mdl_user_preferences (userid, name)  
Success


(mysql): CREATE TABLE mdl_user_lastaccess ( id BIGINT(10) unsigned NOT NULL auto_increment, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, courseid BIGINT(10) unsigned NOT NULL DEFAULT 0, timeaccess BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_user_lastaccess COMMENT='To keep track of course page access times, used in online pa'  
Success


(mysql): CREATE UNIQUE INDEX mdl_userlast_usecou_uix ON mdl_user_lastaccess (userid, courseid)  
Success


(mysql): CREATE INDEX mdl_userlast_use_ix ON mdl_user_lastaccess (userid)  
Success


(mysql): CREATE INDEX mdl_userlast_cou_ix ON mdl_user_lastaccess (courseid)  
Success


(mysql): CREATE TABLE mdl_stats_daily ( id BIGINT(10) unsigned NOT NULL auto_increment, courseid BIGINT(10) unsigned NOT NULL DEFAULT 0, timeend BIGINT(10) unsigned NOT NULL DEFAULT 0, roleid BIGINT(10) unsigned NOT NULL DEFAULT 0, stattype enum('enrolments', 'activity', 'logins') NOT NULL DEFAULT 'activity', stat1 BIGINT(10) unsigned NOT NULL DEFAULT 0, stat2 BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_stats_daily COMMENT='to accumulate daily stats'  
Success


(mysql): CREATE INDEX mdl_statdail_cou_ix ON mdl_stats_daily (courseid)  
Success


(mysql): CREATE INDEX mdl_statdail_tim_ix ON mdl_stats_daily (timeend)  
Success


(mysql): CREATE INDEX mdl_statdail_rol_ix ON mdl_stats_daily (roleid)  
Success


(mysql): CREATE TABLE mdl_stats_weekly ( id BIGINT(10) unsigned NOT NULL auto_increment, courseid BIGINT(10) unsigned NOT NULL DEFAULT 0, timeend BIGINT(10) unsigned NOT NULL DEFAULT 0, roleid BIGINT(10) unsigned NOT NULL DEFAULT 0, stattype enum('enrolments', 'activity', 'logins') NOT NULL DEFAULT 'activity', stat1 BIGINT(10) unsigned NOT NULL DEFAULT 0, stat2 BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_stats_weekly COMMENT='To accumulate weekly stats'  
Success


(mysql): CREATE INDEX mdl_statweek_cou_ix ON mdl_stats_weekly (courseid)  
Success


(mysql): CREATE INDEX mdl_statweek_tim_ix ON mdl_stats_weekly (timeend)  
Success


(mysql): CREATE INDEX mdl_statweek_rol_ix ON mdl_stats_weekly (roleid)  
Success


(mysql): CREATE TABLE mdl_stats_monthly ( id BIGINT(10) unsigned NOT NULL auto_increment, courseid BIGINT(10) unsigned NOT NULL DEFAULT 0, timeend BIGINT(10) unsigned NOT NULL DEFAULT 0, roleid BIGINT(10) unsigned NOT NULL DEFAULT 0, stattype enum('enrolments', 'activity', 'logins') NOT NULL DEFAULT 'activity', stat1 BIGINT(10) unsigned NOT NULL DEFAULT 0, stat2 BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_stats_monthly COMMENT='To accumulate monthly stats'  
Success


(mysql): CREATE INDEX mdl_statmont_cou_ix ON mdl_stats_monthly (courseid)  
Success


(mysql): CREATE INDEX mdl_statmont_tim_ix ON mdl_stats_monthly (timeend)  
Success


(mysql): CREATE INDEX mdl_statmont_rol_ix ON mdl_stats_monthly (roleid)  
Success


(mysql): CREATE TABLE mdl_stats_user_daily ( id BIGINT(10) unsigned NOT NULL auto_increment, courseid BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, roleid BIGINT(10) unsigned NOT NULL DEFAULT 0, timeend BIGINT(10) unsigned NOT NULL DEFAULT 0, statsreads BIGINT(10) unsigned NOT NULL DEFAULT 0, statswrites BIGINT(10) unsigned NOT NULL DEFAULT 0, stattype VARCHAR(30) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_stats_user_daily COMMENT='To accumulate daily stats per course/user'  
Success


(mysql): CREATE INDEX mdl_statuserdail_cou_ix ON mdl_stats_user_daily (courseid)  
Success


(mysql): CREATE INDEX mdl_statuserdail_use_ix ON mdl_stats_user_daily (userid)  
Success


(mysql): CREATE INDEX mdl_statuserdail_rol_ix ON mdl_stats_user_daily (roleid)  
Success


(mysql): CREATE INDEX mdl_statuserdail_tim_ix ON mdl_stats_user_daily (timeend)  
Success


(mysql): CREATE TABLE mdl_stats_user_weekly ( id BIGINT(10) unsigned NOT NULL auto_increment, courseid BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, roleid BIGINT(10) unsigned NOT NULL DEFAULT 0, timeend BIGINT(10) unsigned NOT NULL DEFAULT 0, statsreads BIGINT(10) unsigned NOT NULL DEFAULT 0, statswrites BIGINT(10) unsigned NOT NULL DEFAULT 0, stattype VARCHAR(30) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_stats_user_weekly COMMENT='To accumulate weekly stats per course/user'  
Success


(mysql): CREATE INDEX mdl_statuserweek_cou_ix ON mdl_stats_user_weekly (courseid)  
Success


(mysql): CREATE INDEX mdl_statuserweek_use_ix ON mdl_stats_user_weekly (userid)  
Success


(mysql): CREATE INDEX mdl_statuserweek_rol_ix ON mdl_stats_user_weekly (roleid)  
Success


(mysql): CREATE INDEX mdl_statuserweek_tim_ix ON mdl_stats_user_weekly (timeend)  
Success


(mysql): CREATE TABLE mdl_stats_user_monthly ( id BIGINT(10) unsigned NOT NULL auto_increment, courseid BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, roleid BIGINT(10) unsigned NOT NULL DEFAULT 0, timeend BIGINT(10) unsigned NOT NULL DEFAULT 0, statsreads BIGINT(10) unsigned NOT NULL DEFAULT 0, statswrites BIGINT(10) unsigned NOT NULL DEFAULT 0, stattype VARCHAR(30) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_stats_user_monthly COMMENT='To accumulate monthly stats per course/user'  
Success


(mysql): CREATE INDEX mdl_statusermont_cou_ix ON mdl_stats_user_monthly (courseid)  
Success


(mysql): CREATE INDEX mdl_statusermont_use_ix ON mdl_stats_user_monthly (userid)  
Success


(mysql): CREATE INDEX mdl_statusermont_rol_ix ON mdl_stats_user_monthly (roleid)  
Success


(mysql): CREATE INDEX mdl_statusermont_tim_ix ON mdl_stats_user_monthly (timeend)  
Success


(mysql): CREATE TABLE mdl_post ( id BIGINT(10) NOT NULL auto_increment, module VARCHAR(20) NOT NULL DEFAULT '', userid BIGINT(10) unsigned NOT NULL DEFAULT 0, courseid BIGINT(10) unsigned NOT NULL DEFAULT 0, groupid BIGINT(10) unsigned NOT NULL DEFAULT 0, moduleid BIGINT(10) unsigned NOT NULL DEFAULT 0, coursemoduleid BIGINT(10) unsigned NOT NULL DEFAULT 0, subject VARCHAR(128) NOT NULL DEFAULT '', summary LONGTEXT, content LONGTEXT, uniquehash VARCHAR(128) NOT NULL DEFAULT '', rating BIGINT(10) unsigned NOT NULL DEFAULT 0, format BIGINT(10) unsigned NOT NULL DEFAULT 0, attachment VARCHAR(100) DEFAULT NULL, publishstate enum('draft', 'site', 'public') NOT NULL DEFAULT 'draft', lastmodified BIGINT(10) unsigned NOT NULL DEFAULT 0, created BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_post COMMENT='Generic post table to hold data blog entries etc in differen'  
Success


(mysql): CREATE UNIQUE INDEX mdl_post_iduse_uix ON mdl_post (id, userid)  
Success


(mysql): CREATE INDEX mdl_post_las_ix ON mdl_post (lastmodified)  
Success


(mysql): CREATE INDEX mdl_post_mod_ix ON mdl_post (module)  
Success


(mysql): CREATE INDEX mdl_post_sub_ix ON mdl_post (subject)  
Success


(mysql): CREATE TABLE mdl_tags ( id BIGINT(10) unsigned NOT NULL auto_increment, type VARCHAR(255) NOT NULL DEFAULT 'official', userid BIGINT(10) unsigned NOT NULL DEFAULT 0, text VARCHAR(20) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_tags COMMENT='tags structure for moodle'  
Success


(mysql): CREATE INDEX mdl_tags_typuse_ix ON mdl_tags (type, userid)  
Success


(mysql): CREATE INDEX mdl_tags_tex_ix ON mdl_tags (text)  
Success


(mysql): CREATE TABLE mdl_blog_tag_instance ( id BIGINT(10) unsigned NOT NULL auto_increment, entryid BIGINT(10) unsigned NOT NULL DEFAULT 0, tagid BIGINT(10) unsigned NOT NULL DEFAULT 0, groupid BIGINT(10) unsigned NOT NULL DEFAULT 0, courseid BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_blog_tag_instance COMMENT='tag instance for blogs'  
Success


(mysql): CREATE INDEX mdl_blogtaginst_ent_ix ON mdl_blog_tag_instance (entryid)  
Success


(mysql): CREATE INDEX mdl_blogtaginst_tag_ix ON mdl_blog_tag_instance (tagid)  
Success


(mysql): CREATE TABLE mdl_role ( id BIGINT(10) unsigned NOT NULL auto_increment, name VARCHAR(255) NOT NULL DEFAULT '', shortname VARCHAR(100) NOT NULL DEFAULT '', description TEXT NOT NULL, sortorder BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_role COMMENT='moodle roles'  
Success


(mysql): CREATE UNIQUE INDEX mdl_role_sor_uix ON mdl_role (sortorder)  
Success


(mysql): CREATE TABLE mdl_context ( id BIGINT(10) unsigned NOT NULL auto_increment, contextlevel BIGINT(10) unsigned NOT NULL DEFAULT 0, instanceid BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_context COMMENT='one of these must be set'  
Success


(mysql): CREATE UNIQUE INDEX mdl_cont_conins_uix ON mdl_context (contextlevel, instanceid)  
Success


(mysql): CREATE INDEX mdl_cont_ins_ix ON mdl_context (instanceid)  
Success


(mysql): CREATE TABLE mdl_context_rel ( id BIGINT(10) NOT NULL auto_increment, c1 BIGINT(10) DEFAULT NULL, c2 BIGINT(10) DEFAULT NULL, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_context_rel COMMENT='context relations, c2 is a parent (or higher) of c1'  
Success


(mysql): CREATE INDEX mdl_contrel_c1_ix ON mdl_context_rel (c1)  
Success


(mysql): CREATE INDEX mdl_contrel_c2_ix ON mdl_context_rel (c2)  
Success


(mysql): CREATE UNIQUE INDEX mdl_contrel_c1c2_uix ON mdl_context_rel (c1, c2)  
Success


(mysql): CREATE TABLE mdl_capabilities ( id BIGINT(10) unsigned NOT NULL auto_increment, name VARCHAR(255) NOT NULL DEFAULT '', captype VARCHAR(50) NOT NULL DEFAULT '', contextlevel BIGINT(10) unsigned NOT NULL DEFAULT 0, component VARCHAR(100) NOT NULL DEFAULT '', riskbitmask BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_capabilities COMMENT='this defines all capabilities'  
Success


(mysql): CREATE UNIQUE INDEX mdl_capa_nam_uix ON mdl_capabilities (name)  
Success


(mysql): CREATE TABLE mdl_role_allow_assign ( id BIGINT(10) unsigned NOT NULL auto_increment, roleid BIGINT(10) unsigned NOT NULL DEFAULT 0, allowassign BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_role_allow_assign COMMENT='this defines what role can assign what role'  
Success


(mysql): CREATE UNIQUE INDEX mdl_rolealloassi_rolall_uix ON mdl_role_allow_assign (roleid, allowassign)  
Success


(mysql): CREATE INDEX mdl_rolealloassi_rol_ix ON mdl_role_allow_assign (roleid)  
Success


(mysql): CREATE INDEX mdl_rolealloassi_all_ix ON mdl_role_allow_assign (allowassign)  
Success


(mysql): CREATE TABLE mdl_role_allow_override ( id BIGINT(10) unsigned NOT NULL auto_increment, roleid BIGINT(10) unsigned NOT NULL DEFAULT 0, allowoverride BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_role_allow_override COMMENT='this defines what role can override what role'  
Success


(mysql): CREATE UNIQUE INDEX mdl_rolealloover_rolall_uix ON mdl_role_allow_override (roleid, allowoverride)  
Success


(mysql): CREATE INDEX mdl_rolealloover_rol_ix ON mdl_role_allow_override (roleid)  
Success


(mysql): CREATE INDEX mdl_rolealloover_all_ix ON mdl_role_allow_override (allowoverride)  
Success


(mysql): CREATE TABLE mdl_role_assignments ( id BIGINT(10) unsigned NOT NULL auto_increment, roleid BIGINT(10) unsigned NOT NULL DEFAULT 0, contextid BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, hidden TINYINT(1) unsigned NOT NULL DEFAULT 0, timestart BIGINT(10) unsigned NOT NULL DEFAULT 0, timeend BIGINT(10) unsigned NOT NULL DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, modifierid BIGINT(10) unsigned NOT NULL DEFAULT 0, enrol VARCHAR(20) NOT NULL DEFAULT '', sortorder BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_role_assignments COMMENT='assigning roles to different context'  
Success


(mysql): CREATE UNIQUE INDEX mdl_roleassi_conroluse_uix ON mdl_role_assignments (contextid, roleid, userid)  
Success


(mysql): CREATE INDEX mdl_roleassi_sor_ix ON mdl_role_assignments (sortorder)  
Success


(mysql): CREATE INDEX mdl_roleassi_rol_ix ON mdl_role_assignments (roleid)  
Success


(mysql): CREATE INDEX mdl_roleassi_con_ix ON mdl_role_assignments (contextid)  
Success


(mysql): CREATE INDEX mdl_roleassi_use_ix ON mdl_role_assignments (userid)  
Success


(mysql): CREATE TABLE mdl_role_capabilities ( id BIGINT(10) unsigned NOT NULL auto_increment, contextid BIGINT(10) unsigned NOT NULL DEFAULT 0, roleid BIGINT(10) unsigned NOT NULL DEFAULT 0, capability VARCHAR(255) NOT NULL DEFAULT '', permission BIGINT(10) NOT NULL DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, modifierid BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_role_capabilities COMMENT='permission has to be signed, overriding a capability for a p'  
Success


(mysql): CREATE UNIQUE INDEX mdl_rolecapa_rolconcap_uix ON mdl_role_capabilities (roleid, contextid, capability)  
Success


(mysql): CREATE INDEX mdl_rolecapa_rol_ix ON mdl_role_capabilities (roleid)  
Success


(mysql): CREATE INDEX mdl_rolecapa_con_ix ON mdl_role_capabilities (contextid)  
Success


(mysql): CREATE INDEX mdl_rolecapa_mod_ix ON mdl_role_capabilities (modifierid)  
Success


(mysql): CREATE INDEX mdl_rolecapa_cap_ix ON mdl_role_capabilities (capability)  
Success


(mysql): CREATE TABLE mdl_role_names ( id BIGINT(10) unsigned NOT NULL auto_increment, roleid BIGINT(10) unsigned NOT NULL DEFAULT 0, contextid BIGINT(10) unsigned NOT NULL DEFAULT 0, text TEXT NOT NULL, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_role_names COMMENT='role names in native strings'  
Success


(mysql): CREATE UNIQUE INDEX mdl_rolename_rolcon_uix ON mdl_role_names (roleid, contextid)  
Success


(mysql): CREATE INDEX mdl_rolename_rol_ix ON mdl_role_names (roleid)  
Success


(mysql): CREATE INDEX mdl_rolename_con_ix ON mdl_role_names (contextid)  
Success


(mysql): CREATE TABLE mdl_user_info_field ( id BIGINT(10) NOT NULL auto_increment, shortname VARCHAR(255) NOT NULL DEFAULT 'shortname', name LONGTEXT NOT NULL, datatype VARCHAR(255) NOT NULL DEFAULT '', description LONGTEXT, categoryid BIGINT(10) unsigned NOT NULL DEFAULT 0, sortorder BIGINT(10) unsigned NOT NULL DEFAULT 0, required TINYINT(2) unsigned NOT NULL DEFAULT 0, locked TINYINT(2) unsigned NOT NULL DEFAULT 0, visible SMALLINT(4) unsigned NOT NULL DEFAULT 0, defaultdata LONGTEXT, param1 LONGTEXT, param2 LONGTEXT, param3 LONGTEXT, param4 LONGTEXT, param5 LONGTEXT, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_user_info_field COMMENT='Customisable user profile fields'  
Success


(mysql): CREATE TABLE mdl_user_info_category ( id BIGINT(10) NOT NULL auto_increment, name VARCHAR(255) NOT NULL DEFAULT '', sortorder BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_user_info_category COMMENT='Customisable fields categories'  
Success


(mysql): CREATE TABLE mdl_user_info_data ( id BIGINT(10) NOT NULL auto_increment, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, fieldid BIGINT(10) unsigned NOT NULL DEFAULT 0, data LONGTEXT NOT NULL, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_user_info_data COMMENT='Data for the customisable user fields'  
Success


(mysql): CREATE TABLE mdl_mnet_enrol_course ( id BIGINT(10) NOT NULL auto_increment, hostid BIGINT(10) unsigned NOT NULL DEFAULT 0, remoteid BIGINT(10) unsigned NOT NULL DEFAULT 0, cat_id BIGINT(10) unsigned NOT NULL DEFAULT 0, cat_name VARCHAR(255) NOT NULL DEFAULT '', cat_description MEDIUMTEXT NOT NULL, sortorder SMALLINT(4) unsigned NOT NULL DEFAULT 0, fullname VARCHAR(254) NOT NULL DEFAULT '', shortname VARCHAR(15) NOT NULL DEFAULT '', idnumber VARCHAR(100) NOT NULL DEFAULT '', summary MEDIUMTEXT NOT NULL, startdate BIGINT(10) unsigned NOT NULL DEFAULT 0, cost VARCHAR(10) NOT NULL DEFAULT '', currency VARCHAR(3) NOT NULL DEFAULT '', defaultroleid SMALLINT(4) unsigned NOT NULL DEFAULT 0, defaultrolename VARCHAR(255) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_mnet_enrol_course COMMENT='Information about courses on remote hosts'  
Success


(mysql): CREATE UNIQUE INDEX mdl_mnetenrocour_hosrem_uix ON mdl_mnet_enrol_course (hostid, remoteid)  
Success


(mysql): CREATE TABLE mdl_mnet_enrol_assignments ( id BIGINT(10) NOT NULL auto_increment, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, hostid BIGINT(10) unsigned NOT NULL DEFAULT 0, courseid BIGINT(10) unsigned NOT NULL DEFAULT 0, rolename VARCHAR(255) NOT NULL DEFAULT '', enroltime BIGINT(10) unsigned NOT NULL DEFAULT 0, enroltype VARCHAR(20) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_mnet_enrol_assignments COMMENT='Information about enrolments on courses on remote hosts'  
Success


(mysql): CREATE INDEX mdl_mnetenroassi_hoscou_ix ON mdl_mnet_enrol_assignments (hostid, courseid)  
Success


(mysql): CREATE INDEX mdl_mnetenroassi_use_ix ON mdl_mnet_enrol_assignments (userid)  
Success


(mysql): CREATE TABLE mdl_mnet_host ( id BIGINT(10) NOT NULL auto_increment, deleted TINYINT(1) unsigned NOT NULL DEFAULT 0, wwwroot VARCHAR(255) NOT NULL DEFAULT '', ip_address VARCHAR(39) NOT NULL DEFAULT '', name VARCHAR(80) NOT NULL DEFAULT '', public_key MEDIUMTEXT NOT NULL, public_key_expires BIGINT(10) unsigned NOT NULL DEFAULT 0, transport TINYINT(2) unsigned NOT NULL DEFAULT 0, portno TINYINT(2) unsigned NOT NULL DEFAULT 0, last_connect_time BIGINT(10) unsigned NOT NULL DEFAULT 0, last_log_id BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_mnet_host COMMENT='Information about the local and remote hosts for RPC'  
Success


(mysql): CREATE TABLE mdl_mnet_host2service ( id BIGINT(10) NOT NULL auto_increment, hostid BIGINT(10) unsigned NOT NULL DEFAULT 0, serviceid BIGINT(10) unsigned NOT NULL DEFAULT 0, publish TINYINT(1) unsigned NOT NULL DEFAULT 0, subscribe TINYINT(1) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_mnet_host2service COMMENT='Information about the services for a given host'  
Success


(mysql): CREATE UNIQUE INDEX mdl_mnethost_hosser_uix ON mdl_mnet_host2service (hostid, serviceid)  
Success


(mysql): CREATE TABLE mdl_mnet_log ( id BIGINT(10) NOT NULL auto_increment, hostid BIGINT(10) unsigned NOT NULL DEFAULT 0, remoteid BIGINT(10) unsigned NOT NULL DEFAULT 0, time BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, ip VARCHAR(15) NOT NULL DEFAULT '', course BIGINT(10) unsigned NOT NULL DEFAULT 0, coursename VARCHAR(40) NOT NULL DEFAULT '', module VARCHAR(20) NOT NULL DEFAULT '', cmid BIGINT(10) unsigned NOT NULL DEFAULT 0, action VARCHAR(40) NOT NULL DEFAULT '', url VARCHAR(100) NOT NULL DEFAULT '', info VARCHAR(255) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_mnet_log COMMENT='Store session data from users migrating to other sites'  
Success


(mysql): CREATE INDEX mdl_mnetlog_hosusecou_ix ON mdl_mnet_log (hostid, userid, course)  
Success


(mysql): CREATE TABLE mdl_mnet_rpc ( id BIGINT(10) NOT NULL auto_increment, function_name VARCHAR(40) NOT NULL DEFAULT '', xmlrpc_path VARCHAR(80) NOT NULL DEFAULT '', parent_type VARCHAR(6) NOT NULL DEFAULT '', parent VARCHAR(20) NOT NULL DEFAULT '', enabled TINYINT(1) unsigned NOT NULL DEFAULT 0, help MEDIUMTEXT NOT NULL, profile MEDIUMTEXT NOT NULL, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_mnet_rpc COMMENT='Functions or methods that we may publish or subscribe to'  
Success


(mysql): CREATE INDEX mdl_mnetrpc_enaxml_ix ON mdl_mnet_rpc (enabled, xmlrpc_path)  
Success


(mysql): CREATE TABLE mdl_mnet_service ( id BIGINT(10) NOT NULL auto_increment, name VARCHAR(40) NOT NULL DEFAULT '', description VARCHAR(40) NOT NULL DEFAULT '', apiversion VARCHAR(10) NOT NULL DEFAULT '', offer TINYINT(1) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_mnet_service COMMENT='A service is a group of functions'  
Success


(mysql): CREATE TABLE mdl_mnet_service2rpc ( id BIGINT(10) NOT NULL auto_increment, serviceid BIGINT(10) unsigned NOT NULL DEFAULT 0, rpcid BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_mnet_service2rpc COMMENT='Group functions or methods under a service'  
Success


(mysql): CREATE UNIQUE INDEX mdl_mnetserv_rpcser_uix ON mdl_mnet_service2rpc (rpcid, serviceid)  
Success


(mysql): CREATE TABLE mdl_mnet_session ( id BIGINT(10) NOT NULL auto_increment, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, username VARCHAR(100) NOT NULL DEFAULT '', token VARCHAR(40) NOT NULL DEFAULT '', mnethostid BIGINT(10) unsigned NOT NULL DEFAULT 0, useragent VARCHAR(40) NOT NULL DEFAULT '', confirm_timeout BIGINT(10) unsigned NOT NULL DEFAULT 0, session_id VARCHAR(40) NOT NULL DEFAULT '', expires BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_mnet_session COMMENT='Store session data from users migrating to other sites'  
Success


(mysql): CREATE UNIQUE INDEX mdl_mnetsess_tok_uix ON mdl_mnet_session (token)  
Success


(mysql): CREATE TABLE mdl_mnet_sso_access_control ( id BIGINT(10) NOT NULL auto_increment, username VARCHAR(100) NOT NULL DEFAULT '', mnet_host_id BIGINT(10) unsigned NOT NULL DEFAULT 0, accessctrl VARCHAR(20) NOT NULL DEFAULT 'allow', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_mnet_sso_access_control COMMENT='Users by host permitted (or not) to login from a remote prov'  
Success


(mysql): CREATE UNIQUE INDEX mdl_mnetssoaccecont_mneuse_uix ON mdl_mnet_sso_access_control (mnet_host_id, username)  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('user', 'view', 'user', 'CONCAT(firstname,\' \',lastname)')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('course', 'user report', 'user', 'CONCAT(firstname,\' \',lastname)')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('course', 'view', 'course', 'fullname')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('course', 'update', 'course', 'fullname')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('course', 'enrol', 'course', 'fullname')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('course', 'report log', 'course', 'fullname')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('course', 'report live', 'course', 'fullname')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('course', 'report outline', 'course', 'fullname')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('course', 'report participation', 'course', 'fullname')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('course', 'report stats', 'course', 'fullname')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('message', 'write', 'user', 'CONCAT(firstname,\' \',lastname)')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('message', 'read', 'user', 'CONCAT(firstname,\' \',lastname)')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('message', 'add contact', 'user', 'CONCAT(firstname,\' \',lastname)')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('message', 'remove contact', 'user', 'CONCAT(firstname,\' \',lastname)')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('message', 'block contact', 'user', 'CONCAT(firstname,\' \',lastname)')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('message', 'unblock contact', 'user', 'CONCAT(firstname,\' \',lastname)')  
Success


(mysql): SELECT name FROM mdl_config WHERE name = 'unicodedb' LIMIT 1  

(mysql): SELECT * FROM mdl_config WHERE id = '-1'  

(mysql): INSERT INTO mdl_config ( NAME, VALUE ) VALUES ( 'unicodedb', '1' )  

(mysql): SELECT LAST_INSERT_ID()  
Database was successfully upgraded

assignment


(mysql): CREATE TABLE mdl_assignment ( id BIGINT(10) unsigned NOT NULL auto_increment, course BIGINT(10) unsigned NOT NULL DEFAULT 0, name VARCHAR(255) NOT NULL DEFAULT '', description TEXT NOT NULL, format SMALLINT(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 BIGINT(10) DEFAULT 0, var2 BIGINT(10) DEFAULT 0, var3 BIGINT(10) DEFAULT 0, var4 BIGINT(10) DEFAULT 0, var5 BIGINT(10) DEFAULT 0, maxbytes BIGINT(10) unsigned NOT NULL DEFAULT 100000, timedue BIGINT(10) unsigned NOT NULL DEFAULT 0, timeavailable BIGINT(10) unsigned NOT NULL DEFAULT 0, grade BIGINT(10) NOT NULL DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_assignment COMMENT='Defines assignments'  
Success


(mysql): CREATE INDEX mdl_assi_cou_ix ON mdl_assignment (course)  
Success


(mysql): CREATE TABLE mdl_assignment_submissions ( id BIGINT(10) unsigned NOT NULL auto_increment, assignment BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, timecreated BIGINT(10) unsigned NOT NULL DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, numfiles BIGINT(10) unsigned NOT NULL DEFAULT 0, data1 TEXT NOT NULL, data2 TEXT NOT NULL, grade BIGINT(11) NOT NULL DEFAULT 0, submissioncomment TEXT NOT NULL, format SMALLINT(4) unsigned NOT NULL DEFAULT 0, teacher BIGINT(10) unsigned NOT NULL DEFAULT 0, timemarked BIGINT(10) unsigned NOT NULL DEFAULT 0, mailed TINYINT(1) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_assignment_submissions COMMENT='Info about submitted assignments'  
Success


(mysql): CREATE INDEX mdl_assisubm_use_ix ON mdl_assignment_submissions (userid)  
Success


(mysql): CREATE INDEX mdl_assisubm_mai_ix ON mdl_assignment_submissions (mailed)  
Success


(mysql): CREATE INDEX mdl_assisubm_tim_ix ON mdl_assignment_submissions (timemarked)  
Success


(mysql): CREATE INDEX mdl_assisubm_ass_ix ON mdl_assignment_submissions (assignment)  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('assignment', 'view', 'assignment', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('assignment', 'add', 'assignment', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('assignment', 'update', 'assignment', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('assignment', 'view submission', 'assignment', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('assignment', 'upload', 'assignment', 'name')  
Success

assignment tables have been set up correctly


chat


(mysql): CREATE TABLE mdl_chat ( id BIGINT(10) unsigned NOT NULL auto_increment, course BIGINT(10) unsigned NOT NULL DEFAULT 0, name VARCHAR(255) NOT NULL DEFAULT '', intro TEXT NOT NULL, keepdays BIGINT(11) NOT NULL DEFAULT 0, studentlogs SMALLINT(4) NOT NULL DEFAULT 0, chattime BIGINT(10) unsigned NOT NULL DEFAULT 0, schedule SMALLINT(4) NOT NULL DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_chat COMMENT='Each of these is a chat room'  
Success


(mysql): CREATE INDEX mdl_chat_cou_ix ON mdl_chat (course)  
Success


(mysql): CREATE TABLE mdl_chat_messages ( id BIGINT(10) unsigned NOT NULL auto_increment, chatid BIGINT(10) NOT NULL DEFAULT 0, userid BIGINT(10) NOT NULL DEFAULT 0, groupid BIGINT(10) NOT NULL DEFAULT 0, system TINYINT(1) unsigned NOT NULL DEFAULT 0, message TEXT NOT NULL, timestamp BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_chat_messages COMMENT='Stores all the actual chat messages'  
Success


(mysql): CREATE INDEX mdl_chatmess_use_ix ON mdl_chat_messages (userid)  
Success


(mysql): CREATE INDEX mdl_chatmess_gro_ix ON mdl_chat_messages (groupid)  
Success


(mysql): CREATE INDEX mdl_chatmess_timcha_ix ON mdl_chat_messages (timestamp, chatid)  
Success


(mysql): CREATE INDEX mdl_chatmess_cha_ix ON mdl_chat_messages (chatid)  
Success


(mysql): CREATE TABLE mdl_chat_users ( id BIGINT(10) unsigned NOT NULL auto_increment, chatid BIGINT(11) NOT NULL DEFAULT 0, userid BIGINT(11) NOT NULL DEFAULT 0, groupid BIGINT(11) NOT NULL DEFAULT 0, version VARCHAR(16) NOT NULL DEFAULT '', ip VARCHAR(15) NOT NULL DEFAULT '', firstping BIGINT(10) unsigned NOT NULL DEFAULT 0, lastping BIGINT(10) unsigned NOT NULL DEFAULT 0, lastmessageping BIGINT(10) unsigned NOT NULL DEFAULT 0, sid VARCHAR(32) NOT NULL DEFAULT '', course BIGINT(10) unsigned NOT NULL DEFAULT 0, lang VARCHAR(30) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_chat_users COMMENT='Keeps track of which users are in which chat rooms'  
Success


(mysql): CREATE INDEX mdl_chatuser_use_ix ON mdl_chat_users (userid)  
Success


(mysql): CREATE INDEX mdl_chatuser_las_ix ON mdl_chat_users (lastping)  
Success


(mysql): CREATE INDEX mdl_chatuser_gro_ix ON mdl_chat_users (groupid)  
Success


(mysql): CREATE INDEX mdl_chatuser_cha_ix ON mdl_chat_users (chatid)  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('chat', 'view', 'chat', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('chat', 'add', 'chat', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('chat', 'update', 'chat', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('chat', 'report', 'chat', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('chat', 'talk', 'chat', 'name')  
Success

chat tables have been set up correctly


choice


(mysql): CREATE TABLE mdl_choice ( id BIGINT(10) unsigned NOT NULL auto_increment, course BIGINT(10) unsigned NOT NULL DEFAULT 0, name VARCHAR(255) NOT NULL DEFAULT '', text TEXT NOT NULL, 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 SMALLINT(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 BIGINT(10) unsigned NOT NULL DEFAULT 0, timeclose BIGINT(10) unsigned NOT NULL DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_choice COMMENT='Available choices are stored here'  
Success


(mysql): CREATE INDEX mdl_choi_cou_ix ON mdl_choice (course)  
Success


(mysql): CREATE TABLE mdl_choice_options ( id BIGINT(10) unsigned NOT NULL auto_increment, choiceid BIGINT(10) unsigned NOT NULL DEFAULT 0, text TEXT, maxanswers BIGINT(10) unsigned DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_choice_options COMMENT='available options to choice'  
Success


(mysql): CREATE INDEX mdl_choiopti_cho_ix ON mdl_choice_options (choiceid)  
Success


(mysql): CREATE TABLE mdl_choice_answers ( id BIGINT(10) unsigned NOT NULL auto_increment, choiceid BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, optionid BIGINT(10) unsigned NOT NULL DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_choice_answers COMMENT='choices performed by users'  
Success


(mysql): CREATE INDEX mdl_choiansw_use_ix ON mdl_choice_answers (userid)  
Success


(mysql): CREATE INDEX mdl_choiansw_cho_ix ON mdl_choice_answers (choiceid)  
Success


(mysql): CREATE INDEX mdl_choiansw_opt_ix ON mdl_choice_answers (optionid)  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('choice', 'view', 'choice', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('choice', 'update', 'choice', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('choice', 'add', 'choice', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('choice', 'report', 'choice', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('choice', 'choose', 'choice', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('choice', 'choose again', 'choice', 'name')  
Success

choice tables have been set up correctly


data


(mysql): CREATE TABLE mdl_data ( id BIGINT(10) unsigned NOT NULL auto_increment, course BIGINT(10) unsigned NOT NULL DEFAULT 0, name VARCHAR(255) NOT NULL DEFAULT '', intro TEXT NOT NULL, comments SMALLINT(4) unsigned NOT NULL DEFAULT 0, timeavailablefrom BIGINT(10) unsigned NOT NULL DEFAULT 0, timeavailableto BIGINT(10) unsigned NOT NULL DEFAULT 0, timeviewfrom BIGINT(10) unsigned NOT NULL DEFAULT 0, timeviewto BIGINT(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 SMALLINT(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 SMALLINT(4) unsigned NOT NULL DEFAULT 0, scale BIGINT(10) NOT NULL DEFAULT 0, assessed BIGINT(10) unsigned NOT NULL DEFAULT 0, defaultsort BIGINT(10) unsigned NOT NULL DEFAULT 0, defaultsortdir SMALLINT(4) unsigned NOT NULL DEFAULT 0, editany SMALLINT(4) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_data COMMENT='Removed ratings column'  
Success


(mysql): CREATE TABLE mdl_data_fields ( id BIGINT(10) unsigned NOT NULL auto_increment, dataid BIGINT(10) unsigned NOT NULL DEFAULT 0, type VARCHAR(255) NOT NULL DEFAULT '', name VARCHAR(255) NOT NULL DEFAULT '', description TEXT NOT NULL, param1 TEXT, param2 TEXT, param3 TEXT, param4 TEXT, param5 TEXT, param6 TEXT, param7 TEXT, param8 TEXT, param9 TEXT, param10 TEXT, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_data_fields COMMENT='every field available'  
Success


(mysql): CREATE INDEX mdl_datafiel_dat_ix ON mdl_data_fields (dataid)  
Success


(mysql): CREATE TABLE mdl_data_records ( id BIGINT(10) unsigned NOT NULL auto_increment, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, groupid BIGINT(10) unsigned NOT NULL DEFAULT 0, dataid BIGINT(10) unsigned NOT NULL DEFAULT 0, timecreated BIGINT(10) unsigned NOT NULL DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, approved SMALLINT(4) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_data_records COMMENT='every record introduced'  
Success


(mysql): CREATE INDEX mdl_datareco_dat_ix ON mdl_data_records (dataid)  
Success


(mysql): CREATE TABLE mdl_data_content ( id BIGINT(10) unsigned NOT NULL auto_increment, fieldid BIGINT(10) unsigned NOT NULL DEFAULT 0, recordid BIGINT(10) unsigned NOT NULL DEFAULT 0, content LONGTEXT, content1 LONGTEXT, content2 LONGTEXT, content3 LONGTEXT, content4 LONGTEXT, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_data_content COMMENT='the content introduced in each record/fields'  
Success


(mysql): CREATE INDEX mdl_datacont_rec_ix ON mdl_data_content (recordid)  
Success


(mysql): CREATE INDEX mdl_datacont_fie_ix ON mdl_data_content (fieldid)  
Success


(mysql): CREATE TABLE mdl_data_comments ( id BIGINT(10) unsigned NOT NULL auto_increment, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, recordid BIGINT(10) unsigned NOT NULL DEFAULT 0, content TEXT NOT NULL, format TINYINT(2) unsigned NOT NULL DEFAULT 0, created BIGINT(10) unsigned NOT NULL DEFAULT 0, modified BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_data_comments COMMENT='to comment data records'  
Success


(mysql): CREATE INDEX mdl_datacomm_rec_ix ON mdl_data_comments (recordid)  
Success


(mysql): CREATE TABLE mdl_data_ratings ( id BIGINT(10) unsigned NOT NULL auto_increment, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, recordid BIGINT(10) unsigned NOT NULL DEFAULT 0, rating BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_data_ratings COMMENT='to rate data records'  
Success


(mysql): CREATE INDEX mdl_datarati_rec_ix ON mdl_data_ratings (recordid)  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('data', 'view', 'data', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('data', 'add', 'data', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('data', 'update', 'data', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('data', 'record delete', 'data', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('data', 'fields add', 'data_fields', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('data', 'fields update', 'data_fields', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('data', 'templates saved', 'data', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('data', 'templates def', 'data', 'name')  
Success

data tables have been set up correctly


forum


(mysql): CREATE TABLE mdl_forum ( id BIGINT(10) unsigned NOT NULL auto_increment, course BIGINT(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, assessed BIGINT(10) unsigned NOT NULL DEFAULT 0, assesstimestart BIGINT(10) unsigned NOT NULL DEFAULT 0, assesstimefinish BIGINT(10) unsigned NOT NULL DEFAULT 0, scale BIGINT(10) NOT NULL DEFAULT 0, maxbytes BIGINT(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 BIGINT(10) unsigned NOT NULL DEFAULT 0, warnafter BIGINT(10) unsigned NOT NULL DEFAULT 0, blockafter BIGINT(10) unsigned NOT NULL DEFAULT 0, blockperiod BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_forum COMMENT='Forums contain and structure discussion'  
Success


(mysql): CREATE INDEX mdl_foru_cou_ix ON mdl_forum (course)  
Success


(mysql): CREATE TABLE mdl_forum_discussions ( id BIGINT(10) unsigned NOT NULL auto_increment, course BIGINT(10) unsigned NOT NULL DEFAULT 0, forum BIGINT(10) unsigned NOT NULL DEFAULT 0, name VARCHAR(255) NOT NULL DEFAULT '', firstpost BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, groupid BIGINT(10) NOT NULL DEFAULT -1, assessed TINYINT(1) NOT NULL DEFAULT 1, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, usermodified BIGINT(10) unsigned NOT NULL DEFAULT 0, timestart BIGINT(10) unsigned NOT NULL DEFAULT 0, timeend BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_forum_discussions COMMENT='Forums are composed of discussions'  
Success


(mysql): CREATE INDEX mdl_forudisc_use_ix ON mdl_forum_discussions (userid)  
Success


(mysql): CREATE INDEX mdl_forudisc_for_ix ON mdl_forum_discussions (forum)  
Success


(mysql): CREATE TABLE mdl_forum_posts ( id BIGINT(10) unsigned NOT NULL auto_increment, discussion BIGINT(10) unsigned NOT NULL DEFAULT 0, parent BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, created BIGINT(10) unsigned NOT NULL DEFAULT 0, modified BIGINT(10) unsigned NOT NULL DEFAULT 0, mailed TINYINT(2) unsigned NOT NULL DEFAULT 0, subject VARCHAR(255) NOT NULL DEFAULT '', message TEXT NOT NULL, format TINYINT(2) NOT NULL DEFAULT 0, attachment VARCHAR(100) NOT NULL DEFAULT '', totalscore SMALLINT(4) NOT NULL DEFAULT 0, mailnow BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_forum_posts COMMENT='All posts are stored in this table'  
Success


(mysql): CREATE INDEX mdl_forupost_use_ix ON mdl_forum_posts (userid)  
Success


(mysql): CREATE INDEX mdl_forupost_cre_ix ON mdl_forum_posts (created)  
Success


(mysql): CREATE INDEX mdl_forupost_mai_ix ON mdl_forum_posts (mailed)  
Success


(mysql): CREATE INDEX mdl_forupost_dis_ix ON mdl_forum_posts (discussion)  
Success


(mysql): CREATE INDEX mdl_forupost_par_ix ON mdl_forum_posts (parent)  
Success


(mysql): CREATE TABLE mdl_forum_queue ( id BIGINT(10) unsigned NOT NULL auto_increment, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, discussionid BIGINT(10) unsigned NOT NULL DEFAULT 0, postid BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_forum_queue COMMENT='For keeping track of posts that will be mailed in digest for'  
Success


(mysql): CREATE INDEX mdl_foruqueu_use_ix ON mdl_forum_queue (userid)  
Success


(mysql): CREATE INDEX mdl_foruqueu_dis_ix ON mdl_forum_queue (discussionid)  
Success


(mysql): CREATE INDEX mdl_foruqueu_pos_ix ON mdl_forum_queue (postid)  
Success


(mysql): CREATE TABLE mdl_forum_ratings ( id BIGINT(10) unsigned NOT NULL auto_increment, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, post BIGINT(10) unsigned NOT NULL DEFAULT 0, time BIGINT(10) unsigned NOT NULL DEFAULT 0, rating SMALLINT(4) NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_forum_ratings COMMENT='forum_ratings table retrofitted from MySQL'  
Success


(mysql): CREATE INDEX mdl_forurati_use_ix ON mdl_forum_ratings (userid)  
Success


(mysql): CREATE INDEX mdl_forurati_pos_ix ON mdl_forum_ratings (post)  
Success


(mysql): CREATE TABLE mdl_forum_subscriptions ( id BIGINT(10) unsigned NOT NULL auto_increment, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, forum BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_forum_subscriptions COMMENT='Keeps track of who is subscribed to what forum'  
Success


(mysql): CREATE INDEX mdl_forusubs_use_ix ON mdl_forum_subscriptions (userid)  
Success


(mysql): CREATE INDEX mdl_forusubs_for_ix ON mdl_forum_subscriptions (forum)  
Success


(mysql): CREATE TABLE mdl_forum_read ( id BIGINT(10) unsigned NOT NULL auto_increment, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, forumid BIGINT(10) unsigned NOT NULL DEFAULT 0, discussionid BIGINT(10) unsigned NOT NULL DEFAULT 0, postid BIGINT(10) unsigned NOT NULL DEFAULT 0, firstread BIGINT(10) unsigned NOT NULL DEFAULT 0, lastread BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_forum_read COMMENT='Tracks each users read posts'  
Success


(mysql): CREATE INDEX mdl_foruread_usefor_ix ON mdl_forum_read (userid, forumid)  
Success


(mysql): CREATE INDEX mdl_foruread_usedis_ix ON mdl_forum_read (userid, discussionid)  
Success


(mysql): CREATE INDEX mdl_foruread_usepos_ix ON mdl_forum_read (userid, postid)  
Success


(mysql): CREATE TABLE mdl_forum_track_prefs ( id BIGINT(10) unsigned NOT NULL auto_increment, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, forumid BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_forum_track_prefs COMMENT='Tracks each users untracked forums'  
Success


(mysql): CREATE INDEX mdl_forutracpref_usefor_ix ON mdl_forum_track_prefs (userid, forumid)  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('forum', 'add', 'forum', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('forum', 'update', 'forum', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('forum', 'add discussion', 'forum_discussions', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('forum', 'add post', 'forum_posts', 'subject')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('forum', 'update post', 'forum_posts', 'subject')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('forum', 'user report', 'user', 'CONCAT(firstname,\' \',lastname)')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('forum', 'move discussion', 'forum_discussions', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('forum', 'view subscribers', 'forum', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('forum', 'view discussion', 'forum_discussions', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('forum', 'view forum', 'forum', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('forum', 'subscribe', 'forum', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('forum', 'unsubscribe', 'forum', 'name')  
Success

forum tables have been set up correctly


glossary


(mysql): CREATE TABLE mdl_glossary ( id BIGINT(10) unsigned NOT NULL auto_increment, course BIGINT(10) unsigned NOT NULL DEFAULT 0, name VARCHAR(255) NOT NULL DEFAULT '', intro TEXT NOT NULL, 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 SMALLINT(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 BIGINT(10) unsigned NOT NULL DEFAULT 0, assesstimestart BIGINT(10) unsigned NOT NULL DEFAULT 0, assesstimefinish BIGINT(10) unsigned NOT NULL DEFAULT 0, scale BIGINT(10) NOT NULL DEFAULT 0, timecreated BIGINT(10) unsigned NOT NULL DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_glossary COMMENT='all glossaries'  
Success


(mysql): CREATE INDEX mdl_glos_cou_ix ON mdl_glossary (course)  
Success


(mysql): CREATE TABLE mdl_glossary_entries ( id BIGINT(10) unsigned NOT NULL auto_increment, glossaryid BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, concept VARCHAR(255) NOT NULL DEFAULT '', definition TEXT NOT NULL, format TINYINT(2) unsigned NOT NULL DEFAULT 0, attachment VARCHAR(100) NOT NULL DEFAULT '', timecreated BIGINT(10) unsigned NOT NULL DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, teacherentry TINYINT(2) unsigned NOT NULL DEFAULT 0, sourceglossaryid BIGINT(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, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_glossary_entries COMMENT='all glossary entries'  
Success


(mysql): CREATE INDEX mdl_glosentr_use_ix ON mdl_glossary_entries (userid)  
Success


(mysql): CREATE INDEX mdl_glosentr_con_ix ON mdl_glossary_entries (concept)  
Success


(mysql): CREATE INDEX mdl_glosentr_glo_ix ON mdl_glossary_entries (glossaryid)  
Success


(mysql): CREATE TABLE mdl_glossary_alias ( id BIGINT(10) unsigned NOT NULL auto_increment, entryid BIGINT(10) unsigned NOT NULL DEFAULT 0, alias VARCHAR(255) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_glossary_alias COMMENT='entries alias'  
Success


(mysql): CREATE INDEX mdl_glosalia_ent_ix ON mdl_glossary_alias (entryid)  
Success


(mysql): CREATE TABLE mdl_glossary_categories ( id BIGINT(10) unsigned NOT NULL auto_increment, glossaryid BIGINT(10) unsigned NOT NULL DEFAULT 0, name VARCHAR(255) NOT NULL DEFAULT '', usedynalink TINYINT(2) unsigned NOT NULL DEFAULT 1, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_glossary_categories COMMENT='all categories for glossary entries'  
Success


(mysql): CREATE INDEX mdl_gloscate_glo_ix ON mdl_glossary_categories (glossaryid)  
Success


(mysql): CREATE TABLE mdl_glossary_entries_categories ( id BIGINT(10) unsigned NOT NULL auto_increment, categoryid BIGINT(10) unsigned NOT NULL DEFAULT 0, entryid BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_glossary_entries_categories COMMENT='categories of each glossary entry'  
Success


(mysql): CREATE INDEX mdl_glosentrcate_cat_ix ON mdl_glossary_entries_categories (categoryid)  
Success


(mysql): CREATE INDEX mdl_glosentrcate_ent_ix ON mdl_glossary_entries_categories (entryid)  
Success


(mysql): CREATE TABLE mdl_glossary_comments ( id BIGINT(10) unsigned NOT NULL auto_increment, entryid BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, entrycomment TEXT NOT NULL, format TINYINT(2) unsigned NOT NULL DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_glossary_comments COMMENT='comments on glossary entries'  
Success


(mysql): CREATE INDEX mdl_gloscomm_use_ix ON mdl_glossary_comments (userid)  
Success


(mysql): CREATE INDEX mdl_gloscomm_ent_ix ON mdl_glossary_comments (entryid)  
Success


(mysql): CREATE TABLE mdl_glossary_formats ( id BIGINT(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 '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_glossary_formats COMMENT='Setting of the display formats'  
Success


(mysql): CREATE TABLE mdl_glossary_ratings ( id BIGINT(10) unsigned NOT NULL auto_increment, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, entryid BIGINT(10) unsigned NOT NULL DEFAULT 0, time BIGINT(10) unsigned NOT NULL DEFAULT 0, rating SMALLINT(4) NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_glossary_ratings COMMENT='Contains user ratings for entries'  
Success


(mysql): CREATE INDEX mdl_glosrati_use_ix ON mdl_glossary_ratings (userid)  
Success


(mysql): CREATE INDEX mdl_glosrati_ent_ix ON mdl_glossary_ratings (entryid)  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('glossary', 'add', 'glossary', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('glossary', 'update', 'glossary', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('glossary', 'view', 'glossary', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('glossary', 'view all', 'glossary', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('glossary', 'add entry', 'glossary', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('glossary', 'update entry', 'glossary', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('glossary', 'add category', 'glossary', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('glossary', 'update category', 'glossary', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('glossary', 'delete category', 'glossary', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('glossary', 'add comment', 'glossary', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('glossary', 'update comment', 'glossary', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('glossary', 'delete comment', 'glossary', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('glossary', 'approve entry', 'glossary', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('glossary', 'view entry', 'glossary_entries', 'concept')  
Success

glossary tables have been set up correctly


hotpot


(mysql): CREATE TABLE mdl_hotpot ( id BIGINT(10) unsigned NOT NULL auto_increment, course BIGINT(10) unsigned NOT NULL DEFAULT 0, name VARCHAR(255) NOT NULL DEFAULT '', summary TEXT NOT NULL, timeopen BIGINT(10) unsigned NOT NULL DEFAULT 0, timeclose BIGINT(10) unsigned NOT NULL DEFAULT 0, location SMALLINT(4) unsigned NOT NULL DEFAULT 0, reference VARCHAR(255) NOT NULL DEFAULT '', outputformat SMALLINT(4) unsigned NOT NULL DEFAULT 1, navigation SMALLINT(4) unsigned NOT NULL DEFAULT 1, studentfeedback SMALLINT(4) unsigned NOT NULL DEFAULT 0, studentfeedbackurl VARCHAR(255) NOT NULL DEFAULT '', forceplugins SMALLINT(4) unsigned NOT NULL DEFAULT 0, shownextquiz SMALLINT(4) unsigned NOT NULL DEFAULT 0, review SMALLINT(4) NOT NULL DEFAULT 0, grade BIGINT(10) NOT NULL DEFAULT 0, grademethod SMALLINT(4) NOT NULL DEFAULT 1, attempts MEDIUMINT(6) NOT NULL DEFAULT 0, password VARCHAR(255) NOT NULL DEFAULT '', subnet VARCHAR(255) NOT NULL DEFAULT '', clickreporting SMALLINT(4) unsigned NOT NULL DEFAULT 0, timecreated BIGINT(10) unsigned NOT NULL DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_hotpot COMMENT='details about Hot Potatoes quizzes'  
Success


(mysql): CREATE TABLE mdl_hotpot_attempts ( id BIGINT(10) unsigned NOT NULL auto_increment, hotpot BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, starttime BIGINT(10) unsigned NOT NULL DEFAULT 0, endtime BIGINT(10) unsigned NOT NULL DEFAULT 0, score MEDIUMINT(6) unsigned NOT NULL DEFAULT 0, penalties MEDIUMINT(6) unsigned NOT NULL DEFAULT 0, attempt MEDIUMINT(6) unsigned NOT NULL DEFAULT 0, timestart BIGINT(10) unsigned NOT NULL DEFAULT 0, timefinish BIGINT(10) unsigned NOT NULL DEFAULT 0, status SMALLINT(4) unsigned NOT NULL DEFAULT 1, clickreportid BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_hotpot_attempts COMMENT='details about Hot Potatoes quiz attempts'  
Success


(mysql): CREATE INDEX mdl_hotpatte_use_ix ON mdl_hotpot_attempts (userid)  
Success


(mysql): CREATE INDEX mdl_hotpatte_hot_ix ON mdl_hotpot_attempts (hotpot)  
Success


(mysql): CREATE TABLE mdl_hotpot_details ( id BIGINT(10) unsigned NOT NULL auto_increment, attempt BIGINT(10) unsigned NOT NULL DEFAULT 0, details TEXT, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_hotpot_details COMMENT='raw details (as XML) of Hot Potatoes quiz attempts'  
Success


(mysql): CREATE INDEX mdl_hotpdeta_att_ix ON mdl_hotpot_details (attempt)  
Success


(mysql): CREATE TABLE mdl_hotpot_questions ( id BIGINT(10) unsigned NOT NULL auto_increment, name TEXT NOT NULL, type SMALLINT(4) unsigned NOT NULL DEFAULT 0, text BIGINT(10) unsigned NOT NULL DEFAULT 0, hotpot BIGINT(10) unsigned NOT NULL DEFAULT 0, md5key VARCHAR(32) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_hotpot_questions COMMENT='details about questions in Hot Potatoes quiz attempts'  
Success


(mysql): CREATE INDEX mdl_hotpques_md5_ix ON mdl_hotpot_questions (md5key)  
Success


(mysql): CREATE INDEX mdl_hotpques_hot_ix ON mdl_hotpot_questions (hotpot)  
Success


(mysql): CREATE TABLE mdl_hotpot_responses ( id BIGINT(10) unsigned NOT NULL auto_increment, attempt BIGINT(10) unsigned NOT NULL DEFAULT 0, question BIGINT(10) unsigned NOT NULL DEFAULT 0, score MEDIUMINT(6) NOT NULL DEFAULT 0, weighting MEDIUMINT(6) NOT NULL DEFAULT 0, correct VARCHAR(255) NOT NULL DEFAULT '', wrong VARCHAR(255) NOT NULL DEFAULT '', ignored VARCHAR(255) NOT NULL DEFAULT '', hints MEDIUMINT(6) unsigned NOT NULL DEFAULT 0, clues MEDIUMINT(6) unsigned NOT NULL DEFAULT 0, checks MEDIUMINT(6) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_hotpot_responses COMMENT='details about responses in Hot Potatoes quiz attempts'  
Success


(mysql): CREATE INDEX mdl_hotpresp_att_ix ON mdl_hotpot_responses (attempt)  
Success


(mysql): CREATE INDEX mdl_hotpresp_que_ix ON mdl_hotpot_responses (question)  
Success


(mysql): CREATE TABLE mdl_hotpot_strings ( id BIGINT(10) unsigned NOT NULL auto_increment, string TEXT NOT NULL, md5key VARCHAR(32) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_hotpot_strings COMMENT='strings used in Hot Potatoes questions and responses'  
Success


(mysql): CREATE INDEX mdl_hotpstri_md5_ix ON mdl_hotpot_strings (md5key)  
Success

hotpot tables have been set up correctly


journal


(mysql): CREATE TABLE mdl_journal ( id BIGINT(10) unsigned NOT NULL auto_increment, course BIGINT(10) unsigned NOT NULL DEFAULT 0, name VARCHAR(255) NOT NULL DEFAULT '', intro TEXT NOT NULL, introformat TINYINT(2) NOT NULL DEFAULT 0, days MEDIUMINT(5) unsigned NOT NULL DEFAULT 7, assessed BIGINT(10) NOT NULL DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_journal COMMENT='data for each journal'  
Success


(mysql): CREATE INDEX mdl_jour_cou_ix ON mdl_journal (course)  
Success


(mysql): CREATE TABLE mdl_journal_entries ( id BIGINT(10) unsigned NOT NULL auto_increment, journal BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, modified BIGINT(10) unsigned NOT NULL DEFAULT 0, text TEXT NOT NULL, format TINYINT(2) NOT NULL DEFAULT 0, rating BIGINT(10) DEFAULT 0, entrycomment TEXT, teacher BIGINT(10) unsigned NOT NULL DEFAULT 0, timemarked BIGINT(10) unsigned NOT NULL DEFAULT 0, mailed TINYINT(1) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_journal_entries COMMENT='All the journal entries of all people'  
Success


(mysql): CREATE INDEX mdl_jourentr_use_ix ON mdl_journal_entries (userid)  
Success


(mysql): CREATE INDEX mdl_jourentr_jou_ix ON mdl_journal_entries (journal)  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('journal', 'view', 'journal', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('journal', 'add entry', 'journal', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('journal', 'update entry', 'journal', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('journal', 'view responses', 'journal', 'name')  
Success

journal tables have been set up correctly


label


(mysql): CREATE TABLE mdl_label ( id BIGINT(10) unsigned NOT NULL auto_increment, course BIGINT(10) unsigned NOT NULL DEFAULT 0, name VARCHAR(255) NOT NULL DEFAULT '', content TEXT NOT NULL, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_label COMMENT='Defines labels'  
Success


(mysql): CREATE INDEX mdl_labe_cou_ix ON mdl_label (course)  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('label', 'add', 'quiz', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('label', 'update', 'quiz', 'name')  
Success

label tables have been set up correctly


lams


(mysql): CREATE TABLE mdl_lams ( id BIGINT(10) unsigned NOT NULL auto_increment, course BIGINT(10) unsigned NOT NULL DEFAULT 0, name VARCHAR(255) NOT NULL DEFAULT '', introduction TEXT NOT NULL, learning_session_id BIGINT(20) DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_lams COMMENT='LAMS activity'  
Success


(mysql): CREATE INDEX mdl_lams_cou_ix ON mdl_lams (course)  
Success

lams tables have been set up correctly


lesson


(mysql): CREATE TABLE mdl_lesson ( id BIGINT(10) unsigned NOT NULL auto_increment, course BIGINT(10) unsigned NOT NULL DEFAULT 0, name VARCHAR(255) NOT NULL DEFAULT '', practice SMALLINT(3) unsigned NOT NULL DEFAULT 0, modattempts SMALLINT(3) unsigned NOT NULL DEFAULT 0, usepassword SMALLINT(3) unsigned NOT NULL DEFAULT 0, password VARCHAR(32) NOT NULL DEFAULT '', dependency BIGINT(10) unsigned NOT NULL DEFAULT 0, conditions TEXT NOT NULL, grade SMALLINT(3) NOT NULL DEFAULT 0, custom SMALLINT(3) unsigned NOT NULL DEFAULT 0, ongoing SMALLINT(3) unsigned NOT NULL DEFAULT 0, usemaxgrade SMALLINT(3) NOT NULL DEFAULT 0, maxanswers SMALLINT(3) unsigned NOT NULL DEFAULT 4, maxattempts SMALLINT(3) unsigned NOT NULL DEFAULT 5, review SMALLINT(3) unsigned NOT NULL DEFAULT 0, nextpagedefault SMALLINT(3) unsigned NOT NULL DEFAULT 0, feedback SMALLINT(3) unsigned NOT NULL DEFAULT 1, minquestions SMALLINT(3) unsigned NOT NULL DEFAULT 0, maxpages SMALLINT(3) unsigned NOT NULL DEFAULT 0, timed SMALLINT(3) unsigned NOT NULL DEFAULT 0, maxtime BIGINT(10) unsigned NOT NULL DEFAULT 0, retake SMALLINT(3) unsigned NOT NULL DEFAULT 1, activitylink BIGINT(10) unsigned NOT NULL DEFAULT 0, mediafile VARCHAR(255) NOT NULL DEFAULT '', mediaheight BIGINT(10) unsigned NOT NULL DEFAULT 100, mediawidth BIGINT(10) unsigned NOT NULL DEFAULT 650, mediaclose SMALLINT(3) unsigned NOT NULL DEFAULT 0, slideshow SMALLINT(3) unsigned NOT NULL DEFAULT 0, width BIGINT(10) unsigned NOT NULL DEFAULT 640, height BIGINT(10) unsigned NOT NULL DEFAULT 480, bgcolor VARCHAR(7) NOT NULL DEFAULT '#FFFFFF', displayleft SMALLINT(3) unsigned NOT NULL DEFAULT 0, displayleftif SMALLINT(3) unsigned NOT NULL DEFAULT 0, progressbar SMALLINT(3) unsigned NOT NULL DEFAULT 0, highscores SMALLINT(3) unsigned NOT NULL DEFAULT 0, maxhighscores BIGINT(10) unsigned NOT NULL DEFAULT 0, available BIGINT(10) unsigned NOT NULL DEFAULT 0, deadline BIGINT(10) unsigned NOT NULL DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_lesson COMMENT='Defines lesson'  
Success


(mysql): CREATE INDEX mdl_less_cou_ix ON mdl_lesson (course)  
Success


(mysql): CREATE TABLE mdl_lesson_pages ( id BIGINT(10) unsigned NOT NULL auto_increment, lessonid BIGINT(10) unsigned NOT NULL DEFAULT 0, prevpageid BIGINT(10) unsigned NOT NULL DEFAULT 0, nextpageid BIGINT(10) unsigned NOT NULL DEFAULT 0, qtype SMALLINT(3) unsigned NOT NULL DEFAULT 0, qoption SMALLINT(3) unsigned NOT NULL DEFAULT 0, layout SMALLINT(3) unsigned NOT NULL DEFAULT 1, display SMALLINT(3) unsigned NOT NULL DEFAULT 1, timecreated BIGINT(10) unsigned NOT NULL DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, title VARCHAR(255) NOT NULL DEFAULT '', contents TEXT NOT NULL, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_lesson_pages COMMENT='Defines lesson_pages'  
Success


(mysql): CREATE INDEX mdl_lesspage_les_ix ON mdl_lesson_pages (lessonid)  
Success


(mysql): CREATE TABLE mdl_lesson_answers ( id BIGINT(10) unsigned NOT NULL auto_increment, lessonid BIGINT(10) unsigned NOT NULL DEFAULT 0, pageid BIGINT(10) unsigned NOT NULL DEFAULT 0, jumpto BIGINT(11) NOT NULL DEFAULT 0, grade SMALLINT(3) unsigned NOT NULL DEFAULT 0, score BIGINT(10) NOT NULL DEFAULT 0, flags SMALLINT(3) unsigned NOT NULL DEFAULT 0, timecreated BIGINT(10) unsigned NOT NULL DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, answer TEXT, response TEXT, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_lesson_answers COMMENT='Defines lesson_answers'  
Success


(mysql): CREATE INDEX mdl_lessansw_les_ix ON mdl_lesson_answers (lessonid)  
Success


(mysql): CREATE INDEX mdl_lessansw_pag_ix ON mdl_lesson_answers (pageid)  
Success


(mysql): CREATE TABLE mdl_lesson_attempts ( id BIGINT(10) unsigned NOT NULL auto_increment, lessonid BIGINT(10) unsigned NOT NULL DEFAULT 0, pageid BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, answerid BIGINT(10) unsigned NOT NULL DEFAULT 0, retry SMALLINT(3) unsigned NOT NULL DEFAULT 0, correct BIGINT(10) unsigned NOT NULL DEFAULT 0, useranswer TEXT, timeseen BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_lesson_attempts COMMENT='Defines lesson_attempts'  
Success


(mysql): CREATE INDEX mdl_lessatte_use_ix ON mdl_lesson_attempts (userid)  
Success


(mysql): CREATE INDEX mdl_lessatte_les_ix ON mdl_lesson_attempts (lessonid)  
Success


(mysql): CREATE INDEX mdl_lessatte_pag_ix ON mdl_lesson_attempts (pageid)  
Success


(mysql): CREATE INDEX mdl_lessatte_ans_ix ON mdl_lesson_attempts (answerid)  
Success


(mysql): CREATE TABLE mdl_lesson_grades ( id BIGINT(10) unsigned NOT NULL auto_increment, lessonid BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, grade DOUBLE unsigned NOT NULL DEFAULT 0, late SMALLINT(3) unsigned NOT NULL DEFAULT 0, completed BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_lesson_grades COMMENT='Defines lesson_grades'  
Success


(mysql): CREATE INDEX mdl_lessgrad_use_ix ON mdl_lesson_grades (userid)  
Success


(mysql): CREATE INDEX mdl_lessgrad_les_ix ON mdl_lesson_grades (lessonid)  
Success


(mysql): CREATE TABLE mdl_lesson_default ( id BIGINT(10) unsigned NOT NULL auto_increment, course BIGINT(10) unsigned NOT NULL DEFAULT 0, practice SMALLINT(3) unsigned NOT NULL DEFAULT 0, modattempts SMALLINT(3) unsigned NOT NULL DEFAULT 0, usepassword SMALLINT(3) unsigned NOT NULL DEFAULT 0, password VARCHAR(32) NOT NULL DEFAULT '', conditions TEXT NOT NULL, grade SMALLINT(3) NOT NULL DEFAULT 0, custom SMALLINT(3) unsigned NOT NULL DEFAULT 0, ongoing SMALLINT(3) unsigned NOT NULL DEFAULT 0, usemaxgrade SMALLINT(3) unsigned NOT NULL DEFAULT 0, maxanswers SMALLINT(3) unsigned NOT NULL DEFAULT 4, maxattempts SMALLINT(3) unsigned NOT NULL DEFAULT 5, review SMALLINT(3) unsigned NOT NULL DEFAULT 0, nextpagedefault SMALLINT(3) unsigned NOT NULL DEFAULT 0, feedback SMALLINT(3) unsigned NOT NULL DEFAULT 1, minquestions SMALLINT(3) unsigned NOT NULL DEFAULT 0, maxpages SMALLINT(3) unsigned NOT NULL DEFAULT 0, timed SMALLINT(3) unsigned NOT NULL DEFAULT 0, maxtime BIGINT(10) unsigned NOT NULL DEFAULT 0, retake SMALLINT(3) unsigned NOT NULL DEFAULT 1, mediaheight BIGINT(10) unsigned NOT NULL DEFAULT 100, mediawidth BIGINT(10) unsigned NOT NULL DEFAULT 650, mediaclose SMALLINT(3) unsigned NOT NULL DEFAULT 0, slideshow SMALLINT(3) unsigned NOT NULL DEFAULT 0, width BIGINT(10) unsigned NOT NULL DEFAULT 640, height BIGINT(10) unsigned NOT NULL DEFAULT 480, bgcolor VARCHAR(7) DEFAULT '#FFFFFF', displayleft SMALLINT(3) unsigned NOT NULL DEFAULT 0, displayleftif SMALLINT(3) unsigned NOT NULL DEFAULT 0, progressbar SMALLINT(3) unsigned NOT NULL DEFAULT 0, highscores SMALLINT(3) unsigned NOT NULL DEFAULT 0, maxhighscores BIGINT(10) NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_lesson_default COMMENT='Defines lesson_default'  
Success


(mysql): CREATE TABLE mdl_lesson_timer ( id BIGINT(10) unsigned NOT NULL auto_increment, lessonid BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, starttime BIGINT(10) unsigned NOT NULL DEFAULT 0, lessontime BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_lesson_timer COMMENT='lesson timer for each lesson'  
Success


(mysql): CREATE INDEX mdl_lesstime_use_ix ON mdl_lesson_timer (userid)  
Success


(mysql): CREATE INDEX mdl_lesstime_les_ix ON mdl_lesson_timer (lessonid)  
Success


(mysql): CREATE TABLE mdl_lesson_branch ( id BIGINT(10) unsigned NOT NULL auto_increment, lessonid BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, pageid BIGINT(10) unsigned NOT NULL DEFAULT 0, retry BIGINT(10) unsigned NOT NULL DEFAULT 0, flag SMALLINT(3) unsigned NOT NULL DEFAULT 0, timeseen BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_lesson_branch COMMENT='branches for each lesson/user'  
Success


(mysql): CREATE INDEX mdl_lessbran_use_ix ON mdl_lesson_branch (userid)  
Success


(mysql): CREATE INDEX mdl_lessbran_les_ix ON mdl_lesson_branch (lessonid)  
Success


(mysql): CREATE INDEX mdl_lessbran_pag_ix ON mdl_lesson_branch (pageid)  
Success


(mysql): CREATE TABLE mdl_lesson_high_scores ( id BIGINT(10) unsigned NOT NULL auto_increment, lessonid BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, gradeid BIGINT(10) unsigned NOT NULL DEFAULT 0, nickname VARCHAR(5) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_lesson_high_scores COMMENT='high scores for each lesson'  
Success


(mysql): CREATE INDEX mdl_lesshighscor_use_ix ON mdl_lesson_high_scores (userid)  
Success


(mysql): CREATE INDEX mdl_lesshighscor_les_ix ON mdl_lesson_high_scores (lessonid)  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('lesson', 'start', 'lesson', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('lesson', 'end', 'lesson', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('lesson', 'view', 'lesson_pages', 'title')  
Success

lesson tables have been set up correctly


quiz


(mysql): CREATE TABLE mdl_question_categories ( id BIGINT(10) unsigned NOT NULL auto_increment, course BIGINT(10) unsigned NOT NULL DEFAULT 0, name VARCHAR(255) NOT NULL DEFAULT '', info TEXT NOT NULL, publish SMALLINT(4) NOT NULL DEFAULT 0, stamp VARCHAR(255) NOT NULL DEFAULT '', parent BIGINT(10) unsigned NOT NULL DEFAULT 0, sortorder BIGINT(10) unsigned NOT NULL DEFAULT 999, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_question_categories COMMENT='Categories are for grouping questions'  
Success


(mysql): CREATE INDEX mdl_quescate_cou_ix ON mdl_question_categories (course)  
Success


(mysql): CREATE INDEX mdl_quescate_par_ix ON mdl_question_categories (parent)  
Success


(mysql): CREATE TABLE mdl_question ( id BIGINT(10) unsigned NOT NULL auto_increment, category BIGINT(10) NOT NULL DEFAULT 0, parent BIGINT(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 BIGINT(10) unsigned NOT NULL DEFAULT 1, penalty DOUBLE NOT NULL DEFAULT 0.1, qtype VARCHAR(20) NOT NULL DEFAULT '', length BIGINT(10) unsigned NOT NULL DEFAULT 1, stamp VARCHAR(255) NOT NULL DEFAULT '', version VARCHAR(255) NOT NULL DEFAULT '', hidden TINYINT(1) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_question COMMENT='The questions themselves'  
Success


(mysql): CREATE INDEX mdl_ques_cat_ix ON mdl_question (category)  
Success


(mysql): CREATE INDEX mdl_ques_par_ix ON mdl_question (parent)  
Success


(mysql): CREATE TABLE mdl_question_answers ( id BIGINT(10) unsigned NOT NULL auto_increment, question BIGINT(10) unsigned NOT NULL DEFAULT 0, answer TEXT NOT NULL, fraction DOUBLE NOT NULL DEFAULT 0, feedback TEXT NOT NULL, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_question_answers COMMENT='Answers, with a fractional grade (0-1) and feedback'  
Success


(mysql): CREATE INDEX mdl_quesansw_que_ix ON mdl_question_answers (question)  
Success


(mysql): CREATE TABLE mdl_question_dataset_definitions ( id BIGINT(10) unsigned NOT NULL auto_increment, category BIGINT(10) unsigned NOT NULL DEFAULT 0, name VARCHAR(255) NOT NULL DEFAULT '', type BIGINT(10) NOT NULL DEFAULT 0, options VARCHAR(255) NOT NULL DEFAULT '', itemcount BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_question_dataset_definitions COMMENT='Organises and stores properties for dataset items'  
Success


(mysql): CREATE INDEX mdl_quesdatadefi_cat_ix ON mdl_question_dataset_definitions (category)  
Success


(mysql): CREATE TABLE mdl_question_dataset_items ( id BIGINT(10) unsigned NOT NULL auto_increment, definition BIGINT(10) unsigned NOT NULL DEFAULT 0, itemnumber BIGINT(10) unsigned NOT NULL DEFAULT 0, value VARCHAR(255) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_question_dataset_items COMMENT='Individual dataset items'  
Success


(mysql): CREATE INDEX mdl_quesdataitem_def_ix ON mdl_question_dataset_items (definition)  
Success


(mysql): CREATE TABLE mdl_question_datasets ( id BIGINT(10) unsigned NOT NULL auto_increment, question BIGINT(10) unsigned NOT NULL DEFAULT 0, datasetdefinition BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_question_datasets COMMENT='Many-many relation between questions and dataset definitions'  
Success


(mysql): CREATE INDEX mdl_quesdata_quedat_ix ON mdl_question_datasets (question, datasetdefinition)  
Success


(mysql): CREATE INDEX mdl_quesdata_que_ix ON mdl_question_datasets (question)  
Success


(mysql): CREATE INDEX mdl_quesdata_dat_ix ON mdl_question_datasets (datasetdefinition)  
Success


(mysql): CREATE TABLE mdl_question_numerical_units ( id BIGINT(10) unsigned NOT NULL auto_increment, question BIGINT(10) unsigned NOT NULL DEFAULT 0, multiplier NUMERIC(40,20) NOT NULL DEFAULT 1.00000000000000000000, unit VARCHAR(50) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_question_numerical_units COMMENT='Optional unit options for numerical questions'  
Success


(mysql): CREATE INDEX mdl_quesnumeunit_que_ix ON mdl_question_numerical_units (question)  
Success


(mysql): CREATE TABLE mdl_question_attempts ( id BIGINT(10) unsigned NOT NULL auto_increment, modulename VARCHAR(20) NOT NULL DEFAULT 'quiz', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_question_attempts COMMENT='Student attempts. This table gets extended by the modules'  
Success


(mysql): CREATE TABLE mdl_question_states ( id BIGINT(10) unsigned NOT NULL auto_increment, attempt BIGINT(10) unsigned NOT NULL DEFAULT 0, question BIGINT(10) unsigned NOT NULL DEFAULT 0, originalquestion BIGINT(10) unsigned NOT NULL DEFAULT 0, seq_number MEDIUMINT(6) unsigned NOT NULL DEFAULT 0, answer TEXT NOT NULL, timestamp BIGINT(10) unsigned NOT NULL DEFAULT 0, event SMALLINT(4) unsigned NOT NULL DEFAULT 0, grade DOUBLE NOT NULL DEFAULT 0, raw_grade DOUBLE NOT NULL DEFAULT 0, penalty DOUBLE NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_question_states COMMENT='Stores user responses to an attempt, and percentage grades'  
Success


(mysql): CREATE INDEX mdl_quesstat_att_ix ON mdl_question_states (attempt)  
Success


(mysql): CREATE INDEX mdl_quesstat_que_ix ON mdl_question_states (question)  
Success


(mysql): CREATE TABLE mdl_question_sessions ( id BIGINT(10) unsigned NOT NULL auto_increment, attemptid BIGINT(10) unsigned NOT NULL DEFAULT 0, questionid BIGINT(10) unsigned NOT NULL DEFAULT 0, newest BIGINT(10) unsigned NOT NULL DEFAULT 0, newgraded BIGINT(10) unsigned NOT NULL DEFAULT 0, sumpenalty DOUBLE NOT NULL DEFAULT 0, manualcomment TEXT NOT NULL, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_question_sessions COMMENT='Gives ids of the newest open and newest graded states'  
Success


(mysql): CREATE UNIQUE INDEX mdl_quessess_attque_uix ON mdl_question_sessions (attemptid, questionid)  
Success


(mysql): CREATE INDEX mdl_quessess_att_ix ON mdl_question_sessions (attemptid)  
Success


(mysql): CREATE INDEX mdl_quessess_que_ix ON mdl_question_sessions (questionid)  
Success


(mysql): CREATE INDEX mdl_quessess_new_ix ON mdl_question_sessions (newest)  
Success


(mysql): CREATE INDEX mdl_quessess_new2_ix ON mdl_question_sessions (newgraded)  
Success


(mysql): CREATE TABLE mdl_quiz ( id BIGINT(10) unsigned NOT NULL auto_increment, course BIGINT(10) unsigned NOT NULL DEFAULT 0, name VARCHAR(255) NOT NULL DEFAULT '', intro TEXT NOT NULL, timeopen BIGINT(10) unsigned NOT NULL DEFAULT 0, timeclose BIGINT(10) unsigned NOT NULL DEFAULT 0, optionflags BIGINT(10) unsigned NOT NULL DEFAULT 0, penaltyscheme SMALLINT(4) unsigned NOT NULL DEFAULT 0, attempts MEDIUMINT(6) NOT NULL DEFAULT 0, attemptonlast SMALLINT(4) NOT NULL DEFAULT 0, grademethod SMALLINT(4) NOT NULL DEFAULT 1, decimalpoints SMALLINT(4) NOT NULL DEFAULT 2, review BIGINT(10) unsigned NOT NULL DEFAULT 0, questionsperpage BIGINT(10) NOT NULL DEFAULT 0, shufflequestions SMALLINT(4) NOT NULL DEFAULT 0, shuffleanswers SMALLINT(4) NOT NULL DEFAULT 0, questions TEXT NOT NULL, sumgrades BIGINT(10) NOT NULL DEFAULT 0, grade BIGINT(10) NOT NULL DEFAULT 0, timecreated BIGINT(10) unsigned NOT NULL DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, timelimit TINYINT(2) unsigned NOT NULL DEFAULT 0, password VARCHAR(255) NOT NULL DEFAULT '', subnet VARCHAR(255) NOT NULL DEFAULT '', popup SMALLINT(4) NOT NULL DEFAULT 0, delay1 BIGINT(10) NOT NULL DEFAULT 0, delay2 BIGINT(10) NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_quiz COMMENT='Main information about each quiz'  
Success


(mysql): CREATE INDEX mdl_quiz_cou_ix ON mdl_quiz (course)  
Success


(mysql): CREATE TABLE mdl_quiz_attempts ( id BIGINT(10) unsigned NOT NULL auto_increment, uniqueid BIGINT(10) unsigned NOT NULL DEFAULT 0, quiz BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, attempt MEDIUMINT(6) NOT NULL DEFAULT 0, sumgrades DOUBLE NOT NULL DEFAULT 0, timestart BIGINT(10) unsigned NOT NULL DEFAULT 0, timefinish BIGINT(10) unsigned NOT NULL DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, layout TEXT NOT NULL, preview SMALLINT(3) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_quiz_attempts COMMENT='Stores various attempts on a quiz'  
Success


(mysql): CREATE INDEX mdl_quizatte_use_ix ON mdl_quiz_attempts (userid)  
Success


(mysql): CREATE UNIQUE INDEX mdl_quizatte_uni_uix ON mdl_quiz_attempts (uniqueid)  
Success


(mysql): CREATE INDEX mdl_quizatte_qui_ix ON mdl_quiz_attempts (quiz)  
Success


(mysql): CREATE TABLE mdl_quiz_grades ( id BIGINT(10) unsigned NOT NULL auto_increment, quiz BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, grade DOUBLE NOT NULL DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_quiz_grades COMMENT='Final quiz grade (may be best of several attempts)'  
Success


(mysql): CREATE INDEX mdl_quizgrad_use_ix ON mdl_quiz_grades (userid)  
Success


(mysql): CREATE INDEX mdl_quizgrad_qui_ix ON mdl_quiz_grades (quiz)  
Success


(mysql): CREATE TABLE mdl_quiz_question_instances ( id BIGINT(10) unsigned NOT NULL auto_increment, quiz BIGINT(10) unsigned NOT NULL DEFAULT 0, question BIGINT(10) unsigned NOT NULL DEFAULT 0, grade MEDIUMINT(6) NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_quiz_question_instances COMMENT='The grade for a question in a quiz'  
Success


(mysql): CREATE INDEX mdl_quizquesinst_qui_ix ON mdl_quiz_question_instances (quiz)  
Success


(mysql): CREATE INDEX mdl_quizquesinst_que_ix ON mdl_quiz_question_instances (question)  
Success


(mysql): CREATE TABLE mdl_quiz_question_versions ( id BIGINT(10) unsigned NOT NULL auto_increment, quiz BIGINT(10) unsigned NOT NULL DEFAULT 0, oldquestion BIGINT(10) unsigned NOT NULL DEFAULT 0, newquestion BIGINT(10) unsigned NOT NULL DEFAULT 0, originalquestion BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, timestamp BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_quiz_question_versions COMMENT='quiz_question_versions table retrofitted from MySQL'  
Success


(mysql): CREATE INDEX mdl_quizquesvers_qui_ix ON mdl_quiz_question_versions (quiz)  
Success


(mysql): CREATE INDEX mdl_quizquesvers_old_ix ON mdl_quiz_question_versions (oldquestion)  
Success


(mysql): CREATE INDEX mdl_quizquesvers_new_ix ON mdl_quiz_question_versions (newquestion)  
Success


(mysql): CREATE INDEX mdl_quizquesvers_ori_ix ON mdl_quiz_question_versions (originalquestion)  
Success


(mysql): CREATE TABLE mdl_quiz_feedback ( id BIGINT(10) unsigned NOT NULL auto_increment, quizid BIGINT(10) unsigned NOT NULL DEFAULT 0, feedbacktext TEXT NOT NULL, mingrade DOUBLE NOT NULL DEFAULT 0, maxgrade DOUBLE NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_quiz_feedback COMMENT='Feedback given to students based on their overall score on t'  
Success


(mysql): CREATE INDEX mdl_quizfeed_qui_ix ON mdl_quiz_feedback (quizid)  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('quiz', 'add', 'quiz', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('quiz', 'update', 'quiz', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('quiz', 'view', 'quiz', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('quiz', 'report', 'quiz', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('quiz', 'attempt', 'quiz', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('quiz', 'submit', 'quiz', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('quiz', 'review', 'quiz', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('quiz', 'editquestions', 'quiz', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('quiz', 'preview', 'quiz', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('quiz', 'start attempt', 'quiz', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('quiz', 'close attempt', 'quiz', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('quiz', 'continue attempt', 'quiz', 'name')  
Success

quiz tables have been set up correctly


resource


(mysql): CREATE TABLE mdl_resource ( id BIGINT(10) unsigned NOT NULL auto_increment, course BIGINT(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, alltext MEDIUMTEXT NOT NULL, popup TEXT NOT NULL, options VARCHAR(255) NOT NULL DEFAULT '', timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_resource COMMENT='each record is one resource and its config data'  
Success


(mysql): CREATE INDEX mdl_reso_cou_ix ON mdl_resource (course)  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('resource', 'view', 'resource', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('resource', 'update', 'resource', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('resource', 'add', 'resource', 'name')  
Success

resource tables have been set up correctly


scorm


(mysql): CREATE TABLE mdl_scorm ( id BIGINT(10) unsigned NOT NULL auto_increment, course BIGINT(10) unsigned NOT NULL DEFAULT 0, name VARCHAR(255) NOT NULL DEFAULT '', reference VARCHAR(255) NOT NULL DEFAULT '', summary TEXT NOT NULL, version VARCHAR(9) NOT NULL DEFAULT '', maxgrade DOUBLE NOT NULL DEFAULT 0, grademethod TINYINT(2) NOT NULL DEFAULT 0, maxattempt BIGINT(10) NOT NULL DEFAULT 1, updatefreq TINYINT(1) unsigned NOT NULL DEFAULT 0, md5hash VARCHAR(32) NOT NULL DEFAULT '', launch BIGINT(10) unsigned NOT NULL DEFAULT 0, skipview TINYINT(1) unsigned NOT NULL DEFAULT 1, hidebrowse 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 BIGINT(10) unsigned NOT NULL DEFAULT 100, height BIGINT(10) unsigned NOT NULL DEFAULT 600, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_scorm COMMENT='each table is one SCORM module and its configuration'  
Success


(mysql): CREATE INDEX mdl_scor_cou_ix ON mdl_scorm (course)  
Success


(mysql): CREATE TABLE mdl_scorm_scoes ( id BIGINT(10) unsigned NOT NULL auto_increment, scorm BIGINT(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 '', scormtype VARCHAR(5) NOT NULL DEFAULT '', title VARCHAR(255) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_scorm_scoes COMMENT='each SCO part of the SCORM module'  
Success


(mysql): CREATE INDEX mdl_scorscoe_sco_ix ON mdl_scorm_scoes (scorm)  
Success


(mysql): CREATE TABLE mdl_scorm_scoes_data ( id BIGINT(10) unsigned NOT NULL auto_increment, scoid BIGINT(10) unsigned NOT NULL DEFAULT 0, name VARCHAR(255) NOT NULL DEFAULT '', value TEXT NOT NULL, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_scorm_scoes_data COMMENT='Contains variable data get from packages'  
Success


(mysql): CREATE INDEX mdl_scorscoedata_sco_ix ON mdl_scorm_scoes_data (scoid)  
Success


(mysql): CREATE TABLE mdl_scorm_scoes_track ( id BIGINT(10) unsigned NOT NULL auto_increment, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, scormid BIGINT(10) NOT NULL DEFAULT 0, scoid BIGINT(10) unsigned NOT NULL DEFAULT 0, attempt BIGINT(10) unsigned NOT NULL DEFAULT 1, element VARCHAR(255) NOT NULL DEFAULT '', value LONGTEXT NOT NULL, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_scorm_scoes_track COMMENT='to track SCOes'  
Success


(mysql): CREATE UNIQUE INDEX mdl_scorscoetrac_usescosco_uix ON mdl_scorm_scoes_track (userid, scormid, scoid, attempt, element)  
Success


(mysql): CREATE INDEX mdl_scorscoetrac_use_ix ON mdl_scorm_scoes_track (userid)  
Success


(mysql): CREATE INDEX mdl_scorscoetrac_ele_ix ON mdl_scorm_scoes_track (element)  
Success


(mysql): CREATE INDEX mdl_scorscoetrac_sco_ix ON mdl_scorm_scoes_track (scormid)  
Success


(mysql): CREATE INDEX mdl_scorscoetrac_sco2_ix ON mdl_scorm_scoes_track (scoid)  
Success


(mysql): CREATE TABLE mdl_scorm_seq_objective ( id BIGINT(10) unsigned NOT NULL auto_increment, scoid BIGINT(10) unsigned NOT NULL DEFAULT 0, primaryobj TINYINT(1) NOT NULL DEFAULT 0, objectiveid BIGINT(10) unsigned NOT NULL DEFAULT 0, satisfiedbymeasure TINYINT(1) NOT NULL DEFAULT 1, minnormalizedmeasure FLOAT(11,4) unsigned NOT NULL DEFAULT 0.0000, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_scorm_seq_objective COMMENT='SCORM2004 objective description'  
Success


(mysql): CREATE UNIQUE INDEX mdl_scorseqobje_scoid_uix ON mdl_scorm_seq_objective (scoid, id)  
Success


(mysql): CREATE INDEX mdl_scorseqobje_sco_ix ON mdl_scorm_seq_objective (scoid)  
Success


(mysql): CREATE TABLE mdl_scorm_seq_mapinfo ( id BIGINT(10) unsigned NOT NULL auto_increment, scoid BIGINT(10) unsigned NOT NULL DEFAULT 0, objectiveid BIGINT(10) unsigned NOT NULL DEFAULT 0, targetobjectiveid BIGINT(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, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_scorm_seq_mapinfo COMMENT='SCORM2004 objective mapinfo description'  
Success


(mysql): CREATE UNIQUE INDEX mdl_scorseqmapi_scoidobj_uix ON mdl_scorm_seq_mapinfo (scoid, id, objectiveid)  
Success


(mysql): CREATE INDEX mdl_scorseqmapi_sco_ix ON mdl_scorm_seq_mapinfo (scoid)  
Success


(mysql): CREATE INDEX mdl_scorseqmapi_obj_ix ON mdl_scorm_seq_mapinfo (objectiveid)  
Success


(mysql): CREATE TABLE mdl_scorm_seq_ruleconds ( id BIGINT(10) unsigned NOT NULL auto_increment, scoid BIGINT(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 '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_scorm_seq_ruleconds COMMENT='SCORM2004 rule conditions'  
Success


(mysql): CREATE UNIQUE INDEX mdl_scorseqrule_scoid_uix ON mdl_scorm_seq_ruleconds (scoid, id)  
Success


(mysql): CREATE INDEX mdl_scorseqrule_sco_ix ON mdl_scorm_seq_ruleconds (scoid)  
Success


(mysql): CREATE TABLE mdl_scorm_seq_rulecond ( id BIGINT(10) unsigned NOT NULL auto_increment, scoid BIGINT(10) unsigned NOT NULL DEFAULT 0, ruleconditionsid BIGINT(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', cond VARCHAR(30) NOT NULL DEFAULT 'always', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_scorm_seq_rulecond COMMENT='SCORM2004 rule condition'  
Success


(mysql): CREATE UNIQUE INDEX mdl_scorseqrule_idscorul_uix ON mdl_scorm_seq_rulecond (id, scoid, ruleconditionsid)  
Success


(mysql): CREATE INDEX mdl_scorseqrule_sco2_ix ON mdl_scorm_seq_rulecond (scoid)  
Success


(mysql): CREATE INDEX mdl_scorseqrule_rul_ix ON mdl_scorm_seq_rulecond (ruleconditionsid)  
Success


(mysql): CREATE TABLE mdl_scorm_seq_rolluprule ( id BIGINT(10) unsigned NOT NULL auto_increment, scoid BIGINT(10) unsigned NOT NULL DEFAULT 0, childactivityset VARCHAR(15) NOT NULL DEFAULT '', minimumcount BIGINT(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 '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_scorm_seq_rolluprule COMMENT='SCORM2004 sequencing rule'  
Success


(mysql): CREATE UNIQUE INDEX mdl_scorseqroll_scoid_uix ON mdl_scorm_seq_rolluprule (scoid, id)  
Success


(mysql): CREATE INDEX mdl_scorseqroll_sco_ix ON mdl_scorm_seq_rolluprule (scoid)  
Success


(mysql): CREATE TABLE mdl_scorm_seq_rolluprulecond ( id BIGINT(10) unsigned NOT NULL auto_increment, scoid BIGINT(10) unsigned NOT NULL DEFAULT 0, rollupruleid BIGINT(10) unsigned NOT NULL DEFAULT 0, operator VARCHAR(5) NOT NULL DEFAULT 'noOp', cond VARCHAR(25) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_scorm_seq_rolluprulecond COMMENT='SCORM2004 sequencing rule'  
Success


(mysql): CREATE UNIQUE INDEX mdl_scorseqroll_scorolid_uix ON mdl_scorm_seq_rolluprulecond (scoid, rollupruleid, id)  
Success


(mysql): CREATE INDEX mdl_scorseqroll_sco2_ix ON mdl_scorm_seq_rolluprulecond (scoid)  
Success


(mysql): CREATE INDEX mdl_scorseqroll_rol_ix ON mdl_scorm_seq_rolluprulecond (rollupruleid)  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('scorm', 'view', 'scorm', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('scorm', 'review', 'scorm', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('scorm', 'update', 'scorm', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('scorm', 'add', 'scorm', 'name')  
Success

scorm tables have been set up correctly


survey


(mysql): CREATE TABLE mdl_survey ( id BIGINT(10) unsigned NOT NULL auto_increment, course BIGINT(10) unsigned NOT NULL DEFAULT 0, template BIGINT(10) unsigned NOT NULL DEFAULT 0, days MEDIUMINT(6) NOT NULL DEFAULT 0, timecreated BIGINT(10) unsigned NOT NULL DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, name VARCHAR(255) NOT NULL DEFAULT '', intro TEXT NOT NULL, questions VARCHAR(255) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_survey COMMENT='Each record is one SURVEY module with its configuration'  
Success


(mysql): CREATE INDEX mdl_surv_cou_ix ON mdl_survey (course)  
Success


(mysql): CREATE TABLE mdl_survey_questions ( id BIGINT(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 SMALLINT(3) NOT NULL DEFAULT 0, options TEXT, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_survey_questions COMMENT='the questions conforming one survey'  
Success


(mysql): CREATE TABLE mdl_survey_answers ( id BIGINT(10) unsigned NOT NULL auto_increment, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, survey BIGINT(10) unsigned NOT NULL DEFAULT 0, question BIGINT(10) unsigned NOT NULL DEFAULT 0, time BIGINT(10) unsigned NOT NULL DEFAULT 0, answer1 TEXT NOT NULL, answer2 TEXT NOT NULL, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_survey_answers COMMENT='the answers to each questions filled by the users'  
Success


(mysql): CREATE INDEX mdl_survansw_use_ix ON mdl_survey_answers (userid)  
Success


(mysql): CREATE INDEX mdl_survansw_sur_ix ON mdl_survey_answers (survey)  
Success


(mysql): CREATE INDEX mdl_survansw_que_ix ON mdl_survey_answers (question)  
Success


(mysql): CREATE TABLE mdl_survey_analysis ( id BIGINT(10) unsigned NOT NULL auto_increment, survey BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, notes TEXT NOT NULL, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_survey_analysis COMMENT='text about each survey submission'  
Success


(mysql): CREATE INDEX mdl_survanal_use_ix ON mdl_survey_analysis (userid)  
Success


(mysql): CREATE INDEX mdl_survanal_sur_ix ON mdl_survey_analysis (survey)  
Success


(mysql): INSERT INTO mdl_survey(course, template, days, timecreated, timemodified, name, intro, questions) VALUES ('0', '0', '0', '985017600', '985017600', 'collesaname', 'collesaintro', '25,26,27,28,29,30,43,44')  
Success


(mysql): INSERT INTO mdl_survey(course, template, days, timecreated, timemodified, name, intro, questions) VALUES ('0', '0', '0', '985017600', '985017600', 'collespname', 'collespintro', '31,32,33,34,35,36,43,44')  
Success


(mysql): INSERT INTO mdl_survey(course, template, days, timecreated, timemodified, name, intro, questions) VALUES ('0', '0', '0', '985017600', '985017600', 'collesapname', 'collesapintro', '37,38,39,40,41,42,43,44')  
Success


(mysql): INSERT INTO mdl_survey(course, template, days, timecreated, timemodified, name, intro, questions) VALUES ('0', '0', '0', '985017600', '985017600', 'attlsname', 'attlsintro', '65,67,68')  
Success


(mysql): INSERT INTO mdl_survey(course, template, days, timecreated, timemodified, name, intro, questions) VALUES ('0', '0', '0', '985017600', '985017600', 'ciqname', 'ciqintro', '69,70,71,72,73')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('colles1', 'colles1short', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('colles2', 'colles2short', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('colles3', 'colles3short', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('colles4', 'colles4short', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('colles5', 'colles5short', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('colles6', 'colles6short', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('colles7', 'colles7short', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('colles8', 'colles8short', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('colles9', 'colles9short', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('colles10', 'colles10short', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('colles11', 'colles11short', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('colles12', 'colles12short', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('colles13', 'colles13short', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('colles14', 'colles14short', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('colles15', 'colles15short', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('colles16', 'colles16short', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('colles17', 'colles17short', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('colles18', 'colles18short', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('colles19', 'colles19short', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('colles20', 'colles20short', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('colles21', 'colles21short', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('colles22', 'colles22short', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('colles23', 'colles23short', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('colles24', 'colles24short', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, multi, intro, type, options) VALUES ('collesm1', 'collesm1short', '1,2,3,4', 'collesmintro', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, multi, intro, type, options) VALUES ('collesm2', 'collesm2short', '5,6,7,8', 'collesmintro', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, multi, intro, type, options) VALUES ('collesm3', 'collesm3short', '9,10,11,12', 'collesmintro', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, multi, intro, type, options) VALUES ('collesm4', 'collesm4short', '13,14,15,16', 'collesmintro', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, multi, intro, type, options) VALUES ('collesm5', 'collesm5short', '17,18,19,20', 'collesmintro', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, multi, intro, type, options) VALUES ('collesm6', 'collesm6short', '21,22,23,24', 'collesmintro', '1', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, multi, intro, type, options) VALUES ('collesm1', 'collesm1short', '1,2,3,4', 'collesmintro', '2', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, multi, intro, type, options) VALUES ('collesm2', 'collesm2short', '5,6,7,8', 'collesmintro', '2', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, multi, intro, type, options) VALUES ('collesm3', 'collesm3short', '9,10,11,12', 'collesmintro', '2', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, multi, intro, type, options) VALUES ('collesm4', 'collesm4short', '13,14,15,16', 'collesmintro', '2', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, multi, intro, type, options) VALUES ('collesm5', 'collesm5short', '17,18,19,20', 'collesmintro', '2', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, multi, intro, type, options) VALUES ('collesm6', 'collesm6short', '21,22,23,24', 'collesmintro', '2', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, multi, intro, type, options) VALUES ('collesm1', 'collesm1short', '1,2,3,4', 'collesmintro', '3', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, multi, intro, type, options) VALUES ('collesm2', 'collesm2short', '5,6,7,8', 'collesmintro', '3', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, multi, intro, type, options) VALUES ('collesm3', 'collesm3short', '9,10,11,12', 'collesmintro', '3', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, multi, intro, type, options) VALUES ('collesm4', 'collesm4short', '13,14,15,16', 'collesmintro', '3', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, multi, intro, type, options) VALUES ('collesm5', 'collesm5short', '17,18,19,20', 'collesmintro', '3', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, multi, intro, type, options) VALUES ('collesm6', 'collesm6short', '21,22,23,24', 'collesmintro', '3', 'scaletimes5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, type, options) VALUES ('howlong', '1', 'howlongoptions')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, type) VALUES ('othercomments', '0')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('attls1', 'attls1short', '1', 'scaleagree5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('attls2', 'attls2short', '1', 'scaleagree5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('attls3', 'attls3short', '1', 'scaleagree5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('attls4', 'attls4short', '1', 'scaleagree5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('attls5', 'attls5short', '1', 'scaleagree5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('attls6', 'attls6short', '1', 'scaleagree5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('attls7', 'attls7short', '1', 'scaleagree5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('attls8', 'attls8short', '1', 'scaleagree5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('attls9', 'attls9short', '1', 'scaleagree5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('attls10', 'attls10short', '1', 'scaleagree5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('attls11', 'attls11short', '1', 'scaleagree5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('attls12', 'attls12short', '1', 'scaleagree5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('attls13', 'attls13short', '1', 'scaleagree5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('attls14', 'attls14short', '1', 'scaleagree5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('attls15', 'attls15short', '1', 'scaleagree5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('attls16', 'attls16short', '1', 'scaleagree5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('attls17', 'attls17short', '1', 'scaleagree5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('attls18', 'attls18short', '1', 'scaleagree5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('attls19', 'attls19short', '1', 'scaleagree5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type, options) VALUES ('attls20', 'attls20short', '1', 'scaleagree5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, multi, intro, type, options) VALUES ('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')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, multi, intro, type, options) VALUES ('-', '-', '-', '-', '0', '-')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, multi, intro, type, options) VALUES ('attlsm2', 'attlsm2', '63,62,59,57,55,49,52,50,48,47', 'attlsmintro', '-1', 'scaleagree5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, multi, intro, type, options) VALUES ('attlsm3', 'attlsm3', '46,54,45,51,60,53,56,58,61,64', 'attlsmintro', '-1', 'scaleagree5')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type) VALUES ('ciq1', 'ciq1short', '0')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type) VALUES ('ciq2', 'ciq2short', '0')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type) VALUES ('ciq3', 'ciq3short', '0')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type) VALUES ('ciq4', 'ciq4short', '0')  
Success


(mysql): INSERT INTO mdl_survey_questions(text, shorttext, type) VALUES ('ciq5', 'ciq5short', '0')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('survey', 'add', 'survey', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('survey', 'update', 'survey', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('survey', 'download', 'survey', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('survey', 'view form', 'survey', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('survey', 'view graph', 'survey', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('survey', 'view report', 'survey', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('survey', 'submit', 'survey', 'name')  
Success

survey tables have been set up correctly


wiki


(mysql): CREATE TABLE mdl_wiki ( id BIGINT(10) unsigned NOT NULL auto_increment, course BIGINT(10) unsigned NOT NULL DEFAULT 0, name VARCHAR(255) NOT NULL DEFAULT '', summary TEXT NOT NULL, pagename VARCHAR(255) NOT NULL DEFAULT '', wtype enum('teacher', 'group', 'student') NOT NULL DEFAULT 'group', ewikiprinttitle SMALLINT(4) unsigned NOT NULL DEFAULT 1, htmlmode SMALLINT(4) unsigned NOT NULL DEFAULT 0, ewikiacceptbinary SMALLINT(4) unsigned NOT NULL DEFAULT 0, disablecamelcase SMALLINT(4) unsigned NOT NULL DEFAULT 0, setpageflags SMALLINT(4) unsigned NOT NULL DEFAULT 1, strippages SMALLINT(4) unsigned NOT NULL DEFAULT 1, removepages SMALLINT(4) unsigned NOT NULL DEFAULT 1, revertchanges SMALLINT(4) unsigned NOT NULL DEFAULT 1, initialcontent VARCHAR(255) NOT NULL DEFAULT '', timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_wiki COMMENT='Main wik table'  
Success


(mysql): CREATE INDEX mdl_wiki_cou_ix ON mdl_wiki (course)  
Success


(mysql): CREATE TABLE mdl_wiki_entries ( id BIGINT(10) unsigned NOT NULL auto_increment, wikiid BIGINT(10) unsigned NOT NULL DEFAULT 0, course BIGINT(10) unsigned NOT NULL DEFAULT 0, groupid BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, pagename VARCHAR(255) NOT NULL DEFAULT '', timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_wiki_entries COMMENT='Holds entries for each wiki start instance'  
Success


(mysql): CREATE INDEX mdl_wikientr_cou_ix ON mdl_wiki_entries (course)  
Success


(mysql): CREATE INDEX mdl_wikientr_gro_ix ON mdl_wiki_entries (groupid)  
Success


(mysql): CREATE INDEX mdl_wikientr_use_ix ON mdl_wiki_entries (userid)  
Success


(mysql): CREATE INDEX mdl_wikientr_pag_ix ON mdl_wiki_entries (pagename)  
Success


(mysql): CREATE INDEX mdl_wikientr_wik_ix ON mdl_wiki_entries (wikiid)  
Success


(mysql): CREATE TABLE mdl_wiki_pages ( id BIGINT(10) unsigned NOT NULL auto_increment, pagename VARCHAR(160) NOT NULL DEFAULT '', version BIGINT(10) unsigned NOT NULL DEFAULT 0, flags BIGINT(10) unsigned DEFAULT 0, content MEDIUMTEXT, author VARCHAR(100) DEFAULT 'ewiki', userid BIGINT(10) unsigned NOT NULL DEFAULT 0, created BIGINT(10) unsigned DEFAULT 0, lastmodified BIGINT(10) unsigned DEFAULT 0, refs MEDIUMTEXT, meta MEDIUMTEXT, hits BIGINT(10) unsigned DEFAULT 0, wiki BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_wiki_pages COMMENT='Holds the Wiki-Pages'  
Success


(mysql): CREATE UNIQUE INDEX mdl_wikipage_pagverwik_uix ON mdl_wiki_pages (pagename, version, wiki)  
Success


(mysql): CREATE INDEX mdl_wikipage_wik_ix ON mdl_wiki_pages (wiki)  
Success


(mysql): CREATE TABLE mdl_wiki_locks ( id BIGINT(10) unsigned NOT NULL auto_increment, wikiid BIGINT(10) unsigned NOT NULL, pagename VARCHAR(160) NOT NULL DEFAULT '', lockedby BIGINT(10) unsigned NOT NULL DEFAULT 0, lockedsince BIGINT(10) unsigned NOT NULL DEFAULT 0, lockedseen BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_wiki_locks COMMENT='Stores editing locks on Wiki pages'  
Success


(mysql): CREATE UNIQUE INDEX mdl_wikilock_wikpag_uix ON mdl_wiki_locks (wikiid, pagename)  
Success


(mysql): CREATE INDEX mdl_wikilock_loc_ix ON mdl_wiki_locks (lockedseen)  
Success


(mysql): CREATE INDEX mdl_wikilock_wik_ix ON mdl_wiki_locks (wikiid)  
Success

wiki tables have been set up correctly


workshop


(mysql): CREATE TABLE mdl_workshop ( id BIGINT(10) unsigned NOT NULL auto_increment, course BIGINT(10) unsigned NOT NULL DEFAULT 0, name VARCHAR(255) NOT NULL DEFAULT '', description TEXT NOT NULL, wtype SMALLINT(3) unsigned NOT NULL DEFAULT 0, nelements SMALLINT(3) unsigned NOT NULL DEFAULT 1, nattachments SMALLINT(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 BIGINT(10) unsigned NOT NULL DEFAULT 100000, submissionstart BIGINT(10) unsigned NOT NULL DEFAULT 0, assessmentstart BIGINT(10) unsigned NOT NULL DEFAULT 0, submissionend BIGINT(10) unsigned NOT NULL DEFAULT 0, assessmentend BIGINT(10) unsigned NOT NULL DEFAULT 0, releasegrades BIGINT(10) unsigned NOT NULL DEFAULT 0, grade SMALLINT(3) NOT NULL DEFAULT 0, gradinggrade SMALLINT(3) NOT NULL DEFAULT 0, ntassessments SMALLINT(3) unsigned NOT NULL DEFAULT 0, assessmentcomps SMALLINT(3) unsigned NOT NULL DEFAULT 2, nsassessments SMALLINT(3) unsigned NOT NULL DEFAULT 0, overallocation SMALLINT(3) unsigned NOT NULL DEFAULT 0, timemodified BIGINT(10) unsigned NOT NULL DEFAULT 0, teacherweight SMALLINT(3) unsigned NOT NULL DEFAULT 1, showleaguetable SMALLINT(3) unsigned NOT NULL DEFAULT 0, usepassword SMALLINT(3) unsigned NOT NULL DEFAULT 0, password VARCHAR(32) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_workshop COMMENT='Defines workshop'  
Success


(mysql): CREATE INDEX mdl_work_cou_ix ON mdl_workshop (course)  
Success


(mysql): CREATE TABLE mdl_workshop_elements ( id BIGINT(10) unsigned NOT NULL auto_increment, workshopid BIGINT(10) unsigned NOT NULL DEFAULT 0, elementno SMALLINT(3) unsigned NOT NULL DEFAULT 0, description TEXT NOT NULL, scale SMALLINT(3) unsigned NOT NULL DEFAULT 0, maxscore SMALLINT(3) unsigned NOT NULL DEFAULT 1, weight SMALLINT(3) unsigned NOT NULL DEFAULT 11, stddev DOUBLE NOT NULL DEFAULT 0, totalassessments BIGINT(10) NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_workshop_elements COMMENT='Info about marking scheme of assignment'  
Success


(mysql): CREATE INDEX mdl_workelem_wor_ix ON mdl_workshop_elements (workshopid)  
Success


(mysql): CREATE TABLE mdl_workshop_rubrics ( id BIGINT(10) unsigned NOT NULL auto_increment, workshopid BIGINT(10) unsigned NOT NULL DEFAULT 0, elementno BIGINT(10) unsigned NOT NULL DEFAULT 0, rubricno SMALLINT(3) unsigned NOT NULL DEFAULT 0, description TEXT NOT NULL, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_workshop_rubrics COMMENT='Info about the rubrics marking scheme'  
Success


(mysql): CREATE INDEX mdl_workrubr_wor_ix ON mdl_workshop_rubrics (workshopid)  
Success


(mysql): CREATE TABLE mdl_workshop_submissions ( id BIGINT(10) unsigned NOT NULL auto_increment, workshopid BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, title VARCHAR(100) NOT NULL DEFAULT '', timecreated BIGINT(10) unsigned NOT NULL DEFAULT 0, mailed TINYINT(2) unsigned NOT NULL DEFAULT 0, description TEXT NOT NULL, gradinggrade SMALLINT(3) unsigned NOT NULL DEFAULT 0, finalgrade SMALLINT(3) unsigned NOT NULL DEFAULT 0, late SMALLINT(3) unsigned NOT NULL DEFAULT 0, nassessments BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_workshop_submissions COMMENT='Info about submitted work from teacher and students'  
Success


(mysql): CREATE INDEX mdl_worksubm_use_ix ON mdl_workshop_submissions (userid)  
Success


(mysql): CREATE INDEX mdl_worksubm_mai_ix ON mdl_workshop_submissions (mailed)  
Success


(mysql): CREATE INDEX mdl_worksubm_wor_ix ON mdl_workshop_submissions (workshopid)  
Success


(mysql): CREATE TABLE mdl_workshop_assessments ( id BIGINT(10) unsigned NOT NULL auto_increment, workshopid BIGINT(10) unsigned NOT NULL DEFAULT 0, submissionid BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, timecreated BIGINT(10) unsigned NOT NULL DEFAULT 0, timegraded BIGINT(10) unsigned NOT NULL DEFAULT 0, timeagreed BIGINT(10) unsigned NOT NULL DEFAULT 0, grade DOUBLE NOT NULL DEFAULT 0, gradinggrade SMALLINT(3) NOT NULL DEFAULT 0, teachergraded SMALLINT(3) unsigned NOT NULL DEFAULT 0, mailed SMALLINT(3) unsigned NOT NULL DEFAULT 0, resubmission SMALLINT(3) unsigned NOT NULL DEFAULT 0, donotuse SMALLINT(3) unsigned NOT NULL DEFAULT 0, generalcomment TEXT NOT NULL, teachercomment TEXT NOT NULL, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_workshop_assessments COMMENT='Info about assessments by teacher and students'  
Success


(mysql): CREATE INDEX mdl_workasse_use_ix ON mdl_workshop_assessments (userid)  
Success


(mysql): CREATE INDEX mdl_workasse_mai_ix ON mdl_workshop_assessments (mailed)  
Success


(mysql): CREATE INDEX mdl_workasse_wor_ix ON mdl_workshop_assessments (workshopid)  
Success


(mysql): CREATE INDEX mdl_workasse_sub_ix ON mdl_workshop_assessments (submissionid)  
Success


(mysql): CREATE TABLE mdl_workshop_grades ( id BIGINT(10) unsigned NOT NULL auto_increment, workshopid BIGINT(10) unsigned NOT NULL DEFAULT 0, assessmentid BIGINT(10) unsigned NOT NULL DEFAULT 0, elementno BIGINT(10) unsigned NOT NULL DEFAULT 0, feedback TEXT NOT NULL, grade SMALLINT(3) NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_workshop_grades COMMENT='Info about individual grades given to each element'  
Success


(mysql): CREATE INDEX mdl_workgrad_wor_ix ON mdl_workshop_grades (workshopid)  
Success


(mysql): CREATE INDEX mdl_workgrad_ass_ix ON mdl_workshop_grades (assessmentid)  
Success


(mysql): CREATE TABLE mdl_workshop_stockcomments ( id BIGINT(10) unsigned NOT NULL auto_increment, workshopid BIGINT(10) unsigned NOT NULL DEFAULT 0, elementno BIGINT(10) unsigned NOT NULL DEFAULT 0, comments TEXT NOT NULL, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_workshop_stockcomments COMMENT='Info about the teacher comment bank'  
Success


(mysql): CREATE INDEX mdl_workstoc_wor_ix ON mdl_workshop_stockcomments (workshopid)  
Success


(mysql): CREATE TABLE mdl_workshop_comments ( id BIGINT(10) unsigned NOT NULL auto_increment, workshopid BIGINT(10) unsigned NOT NULL DEFAULT 0, assessmentid BIGINT(10) unsigned NOT NULL DEFAULT 0, userid BIGINT(10) unsigned NOT NULL DEFAULT 0, timecreated BIGINT(10) unsigned NOT NULL DEFAULT 0, mailed TINYINT(2) unsigned NOT NULL DEFAULT 0, comments TEXT NOT NULL, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_workshop_comments COMMENT='Defines comments'  
Success


(mysql): CREATE INDEX mdl_workcomm_use_ix ON mdl_workshop_comments (userid)  
Success


(mysql): CREATE INDEX mdl_workcomm_mai_ix ON mdl_workshop_comments (mailed)  
Success


(mysql): CREATE INDEX mdl_workcomm_wor_ix ON mdl_workshop_comments (workshopid)  
Success


(mysql): CREATE INDEX mdl_workcomm_ass_ix ON mdl_workshop_comments (assessmentid)  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('workshop', 'assessments', 'workshop', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('workshop', 'close', 'workshop', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('workshop', 'display', 'workshop', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('workshop', 'resubmit', 'workshop', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('workshop', 'set up', 'workshop', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('workshop', 'submissions', 'workshop', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('workshop', 'view', 'workshop', 'name')  
Success


(mysql): INSERT INTO mdl_log_display(module, action, mtable, field) VALUES ('workshop', 'update', 'workshop', 'name')  
Success

workshop tables have been set up correctly


calculated plugin needs upgrading


(mysql): CREATE TABLE mdl_question_calculated ( id BIGINT(10) unsigned NOT NULL auto_increment, question BIGINT(10) unsigned NOT NULL DEFAULT 0, answer BIGINT(10) unsigned NOT NULL DEFAULT 0, tolerance VARCHAR(20) NOT NULL DEFAULT '0.0', tolerancetype BIGINT(10) NOT NULL DEFAULT 1, correctanswerlength BIGINT(10) NOT NULL DEFAULT 2, correctanswerformat BIGINT(10) NOT NULL DEFAULT 2, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_question_calculated COMMENT='Options for questions of type calculated'  
Success


(mysql): CREATE INDEX mdl_quescalc_ans_ix ON mdl_question_calculated (answer)  
Success


(mysql): CREATE INDEX mdl_quescalc_que_ix ON mdl_question_calculated (question)  
Success

calculated tables have been set up correctly


essay plugin needs upgrading

essay tables have been set up correctly


match plugin needs upgrading


(mysql): CREATE TABLE mdl_question_match ( id BIGINT(10) unsigned NOT NULL auto_increment, question BIGINT(10) unsigned NOT NULL DEFAULT 0, subquestions VARCHAR(255) NOT NULL DEFAULT '', shuffleanswers SMALLINT(4) NOT NULL DEFAULT 1, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_question_match COMMENT='Defines fixed matching questions'  
Success


(mysql): CREATE INDEX mdl_quesmatc_que_ix ON mdl_question_match (question)  
Success


(mysql): CREATE TABLE mdl_question_match_sub ( id BIGINT(10) unsigned NOT NULL auto_increment, code BIGINT(10) unsigned NOT NULL DEFAULT 0, question BIGINT(10) unsigned NOT NULL DEFAULT 0, questiontext TEXT NOT NULL, answertext VARCHAR(255) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_question_match_sub COMMENT='Defines the subquestions that make up a matching question'  
Success


(mysql): CREATE INDEX mdl_quesmatcsub_que_ix ON mdl_question_match_sub (question)  
Success

match tables have been set up correctly


multianswer plugin needs upgrading


(mysql): CREATE TABLE mdl_question_multianswer ( id BIGINT(10) unsigned NOT NULL auto_increment, question BIGINT(10) unsigned NOT NULL DEFAULT 0, sequence TEXT NOT NULL, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_question_multianswer COMMENT='Options for multianswer questions'  
Success


(mysql): CREATE INDEX mdl_quesmult_que_ix ON mdl_question_multianswer (question)  
Success

multianswer tables have been set up correctly


multichoice plugin needs upgrading


(mysql): CREATE TABLE mdl_question_multichoice ( id BIGINT(10) unsigned NOT NULL auto_increment, question BIGINT(10) unsigned NOT NULL DEFAULT 0, layout SMALLINT(4) NOT NULL DEFAULT 0, answers VARCHAR(255) NOT NULL DEFAULT '', single SMALLINT(4) NOT NULL DEFAULT 0, shuffleanswers SMALLINT(4) NOT NULL DEFAULT 1, correctfeedback TEXT NOT NULL, partiallycorrectfeedback TEXT NOT NULL, incorrectfeedback TEXT NOT NULL, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_question_multichoice COMMENT='Options for multiple choice questions'  
Success


(mysql): CREATE INDEX mdl_quesmult_que2_ix ON mdl_question_multichoice (question)  
Success

multichoice tables have been set up correctly


numerical plugin needs upgrading


(mysql): CREATE TABLE mdl_question_numerical ( id BIGINT(10) unsigned NOT NULL auto_increment, question BIGINT(10) unsigned NOT NULL DEFAULT 0, answer BIGINT(10) unsigned NOT NULL DEFAULT 0, tolerance VARCHAR(255) NOT NULL DEFAULT '0.0', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_question_numerical COMMENT='Options for numerical questions'  
Success


(mysql): CREATE INDEX mdl_quesnume_ans_ix ON mdl_question_numerical (answer)  
Success


(mysql): CREATE INDEX mdl_quesnume_que_ix ON mdl_question_numerical (question)  
Success

numerical tables have been set up correctly


randomsamatch plugin needs upgrading


(mysql): CREATE TABLE mdl_question_randomsamatch ( id BIGINT(10) unsigned NOT NULL auto_increment, question BIGINT(10) unsigned NOT NULL DEFAULT 0, choose BIGINT(10) unsigned NOT NULL DEFAULT 4, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_question_randomsamatch COMMENT='Info about a random short-answer matching question'  
Success


(mysql): CREATE INDEX mdl_quesrand_que_ix ON mdl_question_randomsamatch (question)  
Success

randomsamatch tables have been set up correctly


rqp plugin needs upgrading


(mysql): CREATE TABLE mdl_question_rqp ( id BIGINT(10) unsigned NOT NULL auto_increment, question BIGINT(10) unsigned NOT NULL DEFAULT 0, type BIGINT(10) unsigned NOT NULL DEFAULT 0, source LONGBLOB NOT NULL, format VARCHAR(255) NOT NULL DEFAULT '', flags SMALLINT(3) unsigned NOT NULL DEFAULT 0, maxscore BIGINT(10) unsigned NOT NULL DEFAULT 1, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_question_rqp COMMENT='Options for RQP questions'  
Success


(mysql): CREATE INDEX mdl_quesrqp_que_ix ON mdl_question_rqp (question)  
Success


(mysql): CREATE TABLE mdl_question_rqp_types ( id BIGINT(10) unsigned NOT NULL auto_increment, name VARCHAR(255) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_question_rqp_types COMMENT='RQP question types'  
Success


(mysql): CREATE UNIQUE INDEX mdl_quesrqptype_nam_uix ON mdl_question_rqp_types (name)  
Success


(mysql): CREATE TABLE mdl_question_rqp_servers ( id BIGINT(10) unsigned NOT NULL auto_increment, typeid BIGINT(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, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_question_rqp_servers COMMENT='Information about RQP servers'  
Success


(mysql): CREATE INDEX mdl_quesrqpserv_typ_ix ON mdl_question_rqp_servers (typeid)  
Success


(mysql): CREATE TABLE mdl_question_rqp_states ( id BIGINT(10) unsigned NOT NULL auto_increment, stateid BIGINT(10) unsigned NOT NULL DEFAULT 0, responses TEXT NOT NULL, persistent_data TEXT NOT NULL, template_vars TEXT NOT NULL, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_question_rqp_states COMMENT='RQP question type specific state information'  
Success

rqp tables have been set up correctly


shortanswer plugin needs upgrading


(mysql): CREATE TABLE mdl_question_shortanswer ( id BIGINT(10) unsigned NOT NULL auto_increment, question BIGINT(10) unsigned NOT NULL DEFAULT 0, answers VARCHAR(255) NOT NULL DEFAULT '', usecase TINYINT(2) NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_question_shortanswer COMMENT='Options for short answer questions'  
Success


(mysql): CREATE INDEX mdl_quesshor_que_ix ON mdl_question_shortanswer (question)  
Success

shortanswer tables have been set up correctly


truefalse plugin needs upgrading


(mysql): CREATE TABLE mdl_question_truefalse ( id BIGINT(10) unsigned NOT NULL auto_increment, question BIGINT(10) unsigned NOT NULL DEFAULT 0, trueanswer BIGINT(10) unsigned NOT NULL DEFAULT 0, falseanswer BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_question_truefalse COMMENT='Options for True-False questions'  
Success


(mysql): CREATE INDEX mdl_questrue_que_ix ON mdl_question_truefalse (question)  
Success

truefalse tables have been set up correctly


backup


(mysql): CREATE TABLE mdl_backup_files ( id BIGINT(10) unsigned NOT NULL auto_increment, backup_code BIGINT(10) unsigned NOT NULL DEFAULT 0, file_type VARCHAR(10) NOT NULL DEFAULT '', path VARCHAR(255) NOT NULL DEFAULT '', old_id BIGINT(10) unsigned NOT NULL DEFAULT 0, new_id BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_backup_files COMMENT='To store and recode ids to user and course files'  
Success


(mysql): CREATE UNIQUE INDEX mdl_backfile_bacfilpat_uix ON mdl_backup_files (backup_code, file_type, path)  
Success


(mysql): CREATE TABLE mdl_backup_ids ( id BIGINT(10) unsigned NOT NULL auto_increment, backup_code BIGINT(12) unsigned NOT NULL DEFAULT 0, table_name VARCHAR(30) NOT NULL DEFAULT '', old_id BIGINT(10) unsigned NOT NULL DEFAULT 0, new_id BIGINT(10) unsigned NOT NULL DEFAULT 0, info MEDIUMTEXT NOT NULL, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_backup_ids COMMENT='To store and convert ids in backup/restore'  
Success


(mysql): CREATE UNIQUE INDEX mdl_backids_bactabold_uix ON mdl_backup_ids (backup_code, table_name, old_id)  
Success


(mysql): CREATE TABLE mdl_backup_config ( id BIGINT(10) unsigned NOT NULL auto_increment, name VARCHAR(255) NOT NULL DEFAULT '', value VARCHAR(255) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_backup_config COMMENT='To store backup configuration variables'  
Success


(mysql): CREATE UNIQUE INDEX mdl_backconf_nam_uix ON mdl_backup_config (name)  
Success


(mysql): CREATE TABLE mdl_backup_courses ( id BIGINT(10) unsigned NOT NULL auto_increment, courseid BIGINT(10) unsigned NOT NULL DEFAULT 0, laststarttime BIGINT(10) unsigned NOT NULL DEFAULT 0, lastendtime BIGINT(10) unsigned NOT NULL DEFAULT 0, laststatus VARCHAR(1) NOT NULL DEFAULT '0', nextstarttime BIGINT(10) unsigned NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_backup_courses COMMENT='To store every course backup status'  
Success


(mysql): CREATE UNIQUE INDEX mdl_backcour_cou_uix ON mdl_backup_courses (courseid)  
Success


(mysql): CREATE TABLE mdl_backup_log ( id BIGINT(10) unsigned NOT NULL auto_increment, courseid BIGINT(10) unsigned NOT NULL DEFAULT 0, time BIGINT(10) unsigned NOT NULL DEFAULT 0, laststarttime BIGINT(10) unsigned NOT NULL DEFAULT 0, info VARCHAR(255) NOT NULL DEFAULT '', CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_backup_log COMMENT='To store every course backup log info'  
Success


(mysql): CREATE INDEX mdl_backlog_cou_ix ON mdl_backup_log (courseid)  
Success

Database was successfully upgraded

Backup version is now 2007022100

blocks


(mysql): CREATE TABLE mdl_block ( id BIGINT(10) unsigned NOT NULL auto_increment, name VARCHAR(40) NOT NULL DEFAULT '', version BIGINT(10) unsigned NOT NULL DEFAULT 0, cron BIGINT(10) unsigned NOT NULL DEFAULT 0, lastcron BIGINT(10) unsigned NOT NULL DEFAULT 0, visible TINYINT(1) NOT NULL DEFAULT 1, multiple TINYINT(1) NOT NULL DEFAULT 0, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_block COMMENT='to store installed blocks'  
Success


(mysql): CREATE TABLE mdl_block_instance ( id BIGINT(10) unsigned NOT NULL auto_increment, blockid BIGINT(10) unsigned NOT NULL DEFAULT 0, pageid BIGINT(10) unsigned NOT NULL DEFAULT 0, pagetype VARCHAR(20) NOT NULL DEFAULT '', position VARCHAR(10) NOT NULL DEFAULT '', weight SMALLINT(3) NOT NULL DEFAULT 0, visible TINYINT(1) NOT NULL DEFAULT 0, configdata TEXT NOT NULL, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_block_instance COMMENT='to store block instances in pages'  
Success


(mysql): CREATE INDEX mdl_blocinst_pag_ix ON mdl_block_instance (pageid)  
Success


(mysql): CREATE INDEX mdl_blocinst_pag2_ix ON mdl_block_instance (pagetype)  
Success


(mysql): CREATE INDEX mdl_blocinst_blo_ix ON mdl_block_instance (blockid)  
Success


(mysql): CREATE TABLE mdl_block_pinned ( id BIGINT(10) unsigned NOT NULL auto_increment, blockid BIGINT(10) unsigned NOT NULL DEFAULT 0, pagetype VARCHAR(20) NOT NULL DEFAULT '', position VARCHAR(10) NOT NULL DEFAULT '', weight SMALLINT(3) NOT NULL DEFAULT 0, visible TINYINT(1) NOT NULL DEFAULT 0, configdata TEXT NOT NULL, CONSTRAINT PRIMARY KEY (id) )  
Success


(mysql): ALTER TABLE mdl_block_pinned COMMENT='to pin blocks'  
Success


(mysql): CREATE INDEX mdl_blocpinn_pag_ix ON mdl_block_pinned (pagetype)  
Success


(mysql): CREATE INDEX mdl_blocpinn_blo_ix ON mdl_block_pinned (blockid)  
Success

Database was successfully upgraded

Blocks version is now 2005090201