CREATE TABLE `mdl_events_handlers` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `eventname` varchar(166) NOT NULL DEFAULT '',
  `component` varchar(166) NOT NULL DEFAULT '',
  `handlerfile` varchar(255) NOT NULL DEFAULT '',
  `handlerfunction` longtext,
  `schedule` varchar(255) DEFAULT NULL,
  `status` bigint(10) NOT NULL DEFAULT '0',
  `internal` tinyint(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_evenhand_evecom_uix` (`eventname`,`component`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='This table is for storing which components requests what typ';

--
-- Dumping data for table `mdl_events_handlers`
--


--
-- Table structure for table `mdl_events_queue`
--

CREATE TABLE `mdl_events_queue` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `eventdata` longtext NOT NULL,
  `stackdump` longtext,
  `userid` bigint(10) DEFAULT NULL,
  `timecreated` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_evenqueu_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='This table is for storing queued events. It stores only one ';

--
-- Dumping data for table `mdl_events_queue`
--


--
-- Table structure for table `mdl_events_queue_handlers`
--

CREATE TABLE `mdl_events_queue_handlers` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `queuedeventid` bigint(10) NOT NULL,
  `handlerid` bigint(10) NOT NULL,
  `status` bigint(10) DEFAULT NULL,
  `errormessage` longtext,
  `timemodified` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_evenqueuhand_que_ix` (`queuedeventid`),
  KEY `mdl_evenqueuhand_han_ix` (`handlerid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='This is the list of queued handlers for processing. The even';

--
-- Dumping data for table `mdl_events_queue_handlers`
--


--
-- Table structure for table `mdl_external_functions`
--

CREATE TABLE `mdl_external_functions` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(200) NOT NULL DEFAULT '',
  `classname` varchar(100) NOT NULL DEFAULT '',
  `methodname` varchar(100) NOT NULL DEFAULT '',
  `classpath` varchar(255) DEFAULT NULL,
  `component` varchar(100) NOT NULL DEFAULT '',
  `capabilities` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_extefunc_nam_uix` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=123 DEFAULT CHARSET=utf8 COMMENT='list of all external functions';

--
-- Dumping data for table `mdl_external_functions`
--

INSERT INTO `mdl_external_functions` VALUES (1,'core_cohort_create_cohorts','core_cohort_external','create_cohorts','cohort/externallib.php','moodle','moodle/cohort:manage'),(2,'core_cohort_delete_cohorts','core_cohort_external','delete_cohorts','cohort/externallib.php','moodle','moodle/cohort:manage'),(3,'core_cohort_get_cohorts','core_cohort_external','get_cohorts','cohort/externallib.php','moodle','moodle/cohort:view'),(4,'core_cohort_update_cohorts','core_cohort_external','update_cohorts','cohort/externallib.php','moodle','moodle/cohort:manage'),(5,'core_cohort_add_cohort_members','core_cohort_external','add_cohort_members','cohort/externallib.php','moodle','moodle/cohort:assign'),(6,'core_cohort_delete_cohort_members','core_cohort_external','delete_cohort_members','cohort/externallib.php','moodle','moodle/cohort:assign'),(7,'core_cohort_get_cohort_members','core_cohort_external','get_cohort_members','cohort/externallib.php','moodle','moodle/cohort:view'),(8,'core_grades_get_grades','core_grades_external','get_grades',NULL,'moodle','moodle/grade:view, moodle/grade:viewall, moodle/grade:viewhidden'),(9,'core_grades_update_grades','core_grades_external','update_grades',NULL,'moodle',''),(10,'moodle_group_create_groups','core_group_external','create_groups','group/externallib.php','moodle','moodle/course:managegroups'),(11,'core_group_create_groups','core_group_external','create_groups','group/externallib.php','moodle','moodle/course:managegroups'),(12,'moodle_group_get_groups','core_group_external','get_groups','group/externallib.php','moodle','moodle/course:managegroups'),(13,'core_group_get_groups','core_group_external','get_groups','group/externallib.php','moodle','moodle/course:managegroups'),(14,'moodle_group_get_course_groups','core_group_external','get_course_groups','group/externallib.php','moodle','moodle/course:managegroups'),(15,'core_group_get_course_groups','core_group_external','get_course_groups','group/externallib.php','moodle','moodle/course:managegroups'),(16,'moodle_group_delete_groups','core_group_external','delete_groups','group/externallib.php','moodle','moodle/course:managegroups'),(17,'core_group_delete_groups','core_group_external','delete_groups','group/externallib.php','moodle','moodle/course:managegroups'),(18,'moodle_group_get_groupmembers','core_group_external','get_group_members','group/externallib.php','moodle','moodle/course:managegroups'),(19,'core_group_get_group_members','core_group_external','get_group_members','group/externallib.php','moodle','moodle/course:managegroups'),(20,'moodle_group_add_groupmembers','core_group_external','add_group_members','group/externallib.php','moodle','moodle/course:managegroups'),(21,'core_group_add_group_members','core_group_external','add_group_members','group/externallib.php','moodle','moodle/course:managegroups'),(22,'moodle_group_delete_groupmembers','core_group_external','delete_group_members','group/externallib.php','moodle','moodle/course:managegroups'),(23,'core_group_delete_group_members','core_group_external','delete_group_members','group/externallib.php','moodle','moodle/course:managegroups'),(24,'core_group_create_groupings','core_group_external','create_groupings','group/externallib.php','moodle',''),(25,'core_group_update_groupings','core_group_external','update_groupings','group/externallib.php','moodle',''),(26,'core_group_get_groupings','core_group_external','get_groupings','group/externallib.php','moodle',''),(27,'core_group_get_course_groupings','core_group_external','get_course_groupings','group/externallib.php','moodle',''),(28,'core_group_delete_groupings','core_group_external','delete_groupings','group/externallib.php','moodle',''),(29,'core_group_assign_grouping','core_group_external','assign_grouping','group/externallib.php','moodle',''),(30,'core_group_unassign_grouping','core_group_external','unassign_grouping','group/externallib.php','moodle',''),(31,'moodle_file_get_files','core_files_external','get_files','files/externallib.php','moodle',''),(32,'core_files_get_files','core_files_external','get_files','files/externallib.php','moodle',''),(33,'moodle_file_upload','core_files_external','upload','files/externallib.php','moodle',''),(34,'core_files_upload','core_files_external','upload','files/externallib.php','moodle',''),(35,'moodle_user_create_users','core_user_external','create_users','user/externallib.php','moodle','moodle/user:create'),(36,'core_user_create_users','core_user_external','create_users','user/externallib.php','moodle','moodle/user:create'),(37,'core_user_get_users','core_user_external','get_users','user/externallib.php','moodle','moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update'),(38,'moodle_user_get_users_by_id','core_user_external','get_users_by_id','user/externallib.php','moodle','moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update'),(39,'core_user_get_users_by_field','core_user_external','get_users_by_field','user/externallib.php','moodle','moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update'),(40,'core_user_get_users_by_id','core_user_external','get_users_by_id','user/externallib.php','moodle','moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update'),(41,'moodle_user_get_users_by_courseid','core_enrol_external','get_enrolled_users','enrol/externallib.php','moodle','moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update, moodle/site:accessallgroups'),(42,'moodle_user_get_course_participants_by_id','core_user_external','get_course_user_profiles','user/externallib.php','moodle','moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update, moodle/site:accessallgroups'),(43,'core_user_get_course_user_profiles','core_user_external','get_course_user_profiles','user/externallib.php','moodle','moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update, moodle/site:accessallgroups'),(44,'moodle_user_delete_users','core_user_external','delete_users','user/externallib.php','moodle','moodle/user:delete'),(45,'core_user_delete_users','core_user_external','delete_users','user/externallib.php','moodle','moodle/user:delete'),(46,'moodle_user_update_users','core_user_external','update_users','user/externallib.php','moodle','moodle/user:update'),(47,'core_user_update_users','core_user_external','update_users','user/externallib.php','moodle','moodle/user:update'),(48,'core_user_add_user_device','core_user_external','add_user_device','user/externallib.php','moodle',''),(49,'core_enrol_get_enrolled_users_with_capability','core_enrol_external','get_enrolled_users_with_capability','enrol/externallib.php','moodle',''),(50,'moodle_enrol_get_enrolled_users','moodle_enrol_external','get_enrolled_users','enrol/externallib.php','moodle','moodle/site:viewparticipants, moodle/course:viewparticipants,\n            moodle/role:review, moodle/site:accessallgroups, moodle/course:enrolreview'),(51,'core_enrol_get_enrolled_users','core_enrol_external','get_enrolled_users','enrol/externallib.php','moodle','moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update, moodle/site:accessallgroups'),(52,'moodle_enrol_get_users_courses','core_enrol_external','get_users_courses','enrol/externallib.php','moodle','moodle/course:viewparticipants'),(53,'core_enrol_get_users_courses','core_enrol_external','get_users_courses','enrol/externallib.php','moodle','moodle/course:viewparticipants'),(54,'core_enrol_get_course_enrolment_methods','core_enrol_external','get_course_enrolment_methods','enrol/externallib.php','moodle',''),(55,'moodle_role_assign','core_role_external','assign_roles','enrol/externallib.php','moodle','moodle/role:assign'),(56,'core_role_assign_roles','core_role_external','assign_roles','enrol/externallib.php','moodle','moodle/role:assign'),(57,'moodle_role_unassign','core_role_external','unassign_roles','enrol/externallib.php','moodle','moodle/role:assign'),(58,'core_role_unassign_roles','core_role_external','unassign_roles','enrol/externallib.php','moodle','moodle/role:assign'),(59,'core_course_get_contents','core_course_external','get_course_contents','course/externallib.php','moodle','moodle/course:update,moodle/course:viewhiddencourses'),(60,'moodle_course_get_courses','core_course_external','get_courses','course/externallib.php','moodle','moodle/course:view,moodle/course:update,moodle/course:viewhiddencourses'),(61,'core_course_get_courses','core_course_external','get_courses','course/externallib.php','moodle','moodle/course:view,moodle/course:update,moodle/course:viewhiddencourses'),(62,'moodle_course_create_courses','core_course_external','create_courses','course/externallib.php','moodle','moodle/course:create,moodle/course:visibility'),(63,'core_course_create_courses','core_course_external','create_courses','course/externallib.php','moodle','moodle/course:create,moodle/course:visibility'),(64,'core_course_delete_courses','core_course_external','delete_courses','course/externallib.php','moodle','moodle/course:delete'),(65,'core_course_delete_modules','core_course_external','delete_modules','course/externallib.php','moodle','moodle/course:manageactivities'),(66,'core_course_duplicate_course','core_course_external','duplicate_course','course/externallib.php','moodle','moodle/backup:backupcourse,moodle/restore:restorecourse,moodle/course:create'),(67,'core_course_update_courses','core_course_external','update_courses','course/externallib.php','moodle','moodle/course:update,moodle/course:changecategory,moodle/course:changefullname,moodle/course:changeshortname,moodle/course:changeidnumber,moodle/course:changesummary,moodle/course:visibility'),(68,'core_course_get_categories','core_course_external','get_categories','course/externallib.php','moodle','moodle/category:viewhiddencategories'),(69,'core_course_create_categories','core_course_external','create_categories','course/externallib.php','moodle','moodle/category:manage'),(70,'core_course_update_categories','core_course_external','update_categories','course/externallib.php','moodle','moodle/category:manage'),(71,'core_course_delete_categories','core_course_external','delete_categories','course/externallib.php','moodle','moodle/category:manage'),(72,'core_course_import_course','core_course_external','import_course','course/externallib.php','moodle','moodle/backup:backuptargetimport, moodle/restore:restoretargetimport'),(73,'moodle_message_send_instantmessages','core_message_external','send_instant_messages','message/externallib.php','moodle','moodle/site:sendmessage'),(74,'core_message_send_instant_messages','core_message_external','send_instant_messages','message/externallib.php','moodle','moodle/site:sendmessage'),(75,'core_message_create_contacts','core_message_external','create_contacts','message/externallib.php','moodle',''),(76,'core_message_delete_contacts','core_message_external','delete_contacts','message/externallib.php','moodle',''),(77,'core_message_block_contacts','core_message_external','block_contacts','message/externallib.php','moodle',''),(78,'core_message_unblock_contacts','core_message_external','unblock_contacts','message/externallib.php','moodle',''),(79,'core_message_get_contacts','core_message_external','get_contacts','message/externallib.php','moodle',''),(80,'core_message_search_contacts','core_message_external','search_contacts','message/externallib.php','moodle',''),(81,'core_message_get_messages','core_message_external','get_messages','message/externallib.php','moodle',''),(82,'moodle_notes_create_notes','core_notes_external','create_notes','notes/externallib.php','moodle','moodle/notes:manage'),(83,'core_notes_create_notes','core_notes_external','create_notes','notes/externallib.php','moodle','moodle/notes:manage'),(84,'core_notes_delete_notes','core_notes_external','delete_notes','notes/externallib.php','moodle','moodle/notes:manage'),(85,'core_notes_get_notes','core_notes_external','get_notes','notes/externallib.php','moodle','moodle/notes:view'),(86,'core_notes_update_notes','core_notes_external','update_notes','notes/externallib.php','moodle','moodle/notes:manage'),(87,'core_grading_get_definitions','core_grading_external','get_definitions',NULL,'moodle',''),(88,'core_grade_get_definitions','core_grade_external','get_definitions','grade/externallib.php','moodle',''),(89,'core_grading_save_definitions','core_grading_external','save_definitions',NULL,'moodle',''),(90,'core_grading_get_gradingform_instances','core_grading_external','get_gradingform_instances',NULL,'moodle',''),(91,'moodle_webservice_get_siteinfo','core_webservice_external','get_site_info','webservice/externallib.php','moodle',''),(92,'core_webservice_get_site_info','core_webservice_external','get_site_info','webservice/externallib.php','moodle',''),(93,'core_get_string','core_external','get_string','lib/external/externallib.php','moodle',''),(94,'core_get_strings','core_external','get_strings','lib/external/externallib.php','moodle',''),(95,'core_get_component_strings','core_external','get_component_strings','lib/external/externallib.php','moodle',''),(96,'core_calendar_delete_calendar_events','core_calendar_external','delete_calendar_events','calendar/externallib.php','moodle','moodle/calendar:manageentries'),(97,'core_calendar_get_calendar_events','core_calendar_external','get_calendar_events','calendar/externallib.php','moodle','moodle/calendar:manageentries'),(98,'core_calendar_create_calendar_events','core_calendar_external','create_calendar_events','calendar/externallib.php','moodle','moodle/calendar:manageentries'),(99,'mod_assign_get_grades','mod_assign_external','get_grades','mod/assign/externallib.php','mod_assign',''),(100,'mod_assign_get_assignments','mod_assign_external','get_assignments','mod/assign/externallib.php','mod_assign',''),(101,'mod_assign_get_submissions','mod_assign_external','get_submissions','mod/assign/externallib.php','mod_assign',''),(102,'mod_assign_get_user_flags','mod_assign_external','get_user_flags','mod/assign/externallib.php','mod_assign',''),(103,'mod_assign_set_user_flags','mod_assign_external','set_user_flags','mod/assign/externallib.php','mod_assign','mod/assign:grade'),(104,'mod_assign_get_user_mappings','mod_assign_external','get_user_mappings','mod/assign/externallib.php','mod_assign',''),(105,'mod_assign_revert_submissions_to_draft','mod_assign_external','revert_submissions_to_draft','mod/assign/externallib.php','mod_assign',''),(106,'mod_assign_lock_submissions','mod_assign_external','lock_submissions','mod/assign/externallib.php','mod_assign',''),(107,'mod_assign_unlock_submissions','mod_assign_external','unlock_submissions','mod/assign/externallib.php','mod_assign',''),(108,'mod_assign_save_submission','mod_assign_external','save_submission','mod/assign/externallib.php','mod_assign',''),(109,'mod_assign_submit_for_grading','mod_assign_external','submit_for_grading','mod/assign/externallib.php','mod_assign',''),(110,'mod_assign_save_grade','mod_assign_external','save_grade','mod/assign/externallib.php','mod_assign',''),(111,'mod_assign_save_grades','mod_assign_external','save_grades','mod/assign/externallib.php','mod_assign',''),(112,'mod_assign_save_user_extensions','mod_assign_external','save_user_extensions','mod/assign/externallib.php','mod_assign',''),(113,'mod_assign_reveal_identities','mod_assign_external','reveal_identities','mod/assign/externallib.php','mod_assign',''),(114,'mod_forum_get_forums_by_courses','mod_forum_external','get_forums_by_courses','mod/forum/externallib.php','mod_forum','mod/forum:viewdiscussion'),(115,'mod_forum_get_forum_discussions','mod_forum_external','get_forum_discussions','mod/forum/externallib.php','mod_forum','mod/forum:viewdiscussion, mod/forum:viewqandawithoutposting'),(116,'mod_forum_get_forum_discussion_posts','mod_forum_external','get_forum_discussion_posts','mod/forum/externallib.php','mod_forum','mod/forum:viewdiscussion, mod/forum:viewqandawithoutposting'),(117,'mod_forum_get_forum_discussions_paginated','mod_forum_external','get_forum_discussions_paginated','mod/forum/externallib.php','mod_forum','mod/forum:viewdiscussion, mod/forum:viewqandawithoutposting'),(118,'moodle_enrol_manual_enrol_users','enrol_manual_external','enrol_users','enrol/manual/externallib.php','enrol_manual','enrol/manual:enrol'),(119,'enrol_manual_enrol_users','enrol_manual_external','enrol_users','enrol/manual/externallib.php','enrol_manual','enrol/manual:enrol'),(120,'enrol_self_get_instance_info','enrol_self_external','get_instance_info','enrol/self/externallib.php','enrol_self',''),(121,'message_airnotifier_is_system_configured','message_airnotifier_external','is_system_configured','message/output/airnotifier/externallib.php','message_airnotifier',''),(122,'message_airnotifier_are_notification_preferences_configured','message_airnotifier_external','are_notification_preferences_configured','message/output/airnotifier/externallib.php','message_airnotifier','');

--
-- Table structure for table `mdl_external_services`
--

CREATE TABLE `mdl_external_services` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(200) NOT NULL DEFAULT '',
  `enabled` tinyint(1) NOT NULL,
  `requiredcapability` varchar(150) DEFAULT NULL,
  `restrictedusers` tinyint(1) NOT NULL,
  `component` varchar(100) DEFAULT NULL,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) DEFAULT NULL,
  `shortname` varchar(255) DEFAULT NULL,
  `downloadfiles` tinyint(1) NOT NULL DEFAULT '0',
  `uploadfiles` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_exteserv_nam_uix` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='built in and custom external services';

--
-- Dumping data for table `mdl_external_services`
--

INSERT INTO `mdl_external_services` VALUES (1,'Moodle mobile web service',0,NULL,0,'moodle',1442833408,NULL,'moodle_mobile_app',1,1);

--
-- Table structure for table `mdl_external_services_functions`
--

CREATE TABLE `mdl_external_services_functions` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `externalserviceid` bigint(10) NOT NULL,
  `functionname` varchar(200) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_exteservfunc_ext_ix` (`externalserviceid`)
) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=utf8 COMMENT='lists functions available in each service group';

--
-- Dumping data for table `mdl_external_services_functions`
--

INSERT INTO `mdl_external_services_functions` VALUES (1,1,'moodle_enrol_get_users_courses'),(2,1,'moodle_enrol_get_enrolled_users'),(3,1,'moodle_user_get_users_by_id'),(4,1,'moodle_webservice_get_siteinfo'),(5,1,'moodle_notes_create_notes'),(6,1,'moodle_user_get_course_participants_by_id'),(7,1,'moodle_user_get_users_by_courseid'),(8,1,'moodle_message_send_instantmessages'),(9,1,'core_course_get_contents'),(10,1,'core_get_component_strings'),(11,1,'core_user_add_user_device'),(12,1,'core_calendar_get_calendar_events'),(13,1,'core_enrol_get_users_courses'),(14,1,'core_enrol_get_enrolled_users'),(15,1,'core_user_get_users_by_id'),(16,1,'core_webservice_get_site_info'),(17,1,'core_notes_create_notes'),(18,1,'core_user_get_course_user_profiles'),(19,1,'core_enrol_get_enrolled_users'),(20,1,'core_message_send_instant_messages'),(21,1,'mod_assign_get_grades'),(22,1,'mod_assign_get_assignments'),(23,1,'mod_assign_get_submissions'),(24,1,'mod_assign_get_user_flags'),(25,1,'mod_assign_set_user_flags'),(26,1,'mod_assign_get_user_mappings'),(27,1,'mod_assign_revert_submissions_to_draft'),(28,1,'mod_assign_lock_submissions'),(29,1,'mod_assign_unlock_submissions'),(30,1,'mod_assign_save_submission'),(31,1,'mod_assign_submit_for_grading'),(32,1,'mod_assign_save_grade'),(33,1,'mod_assign_save_user_extensions'),(34,1,'mod_assign_reveal_identities'),(35,1,'message_airnotifier_is_system_configured'),(36,1,'message_airnotifier_are_notification_preferences_configured'),(37,1,'core_grades_update_grades'),(38,1,'mod_forum_get_forums_by_courses'),(39,1,'mod_forum_get_forum_discussions_paginated'),(40,1,'mod_forum_get_forum_discussion_posts'),(41,1,'core_files_get_files'),(42,1,'core_message_get_messages'),(43,1,'core_message_create_contacts'),(44,1,'core_message_delete_contacts'),(45,1,'core_message_block_contacts'),(46,1,'core_message_unblock_contacts'),(47,1,'core_message_get_contacts'),(48,1,'core_message_search_contacts');

--
-- Table structure for table `mdl_external_services_users`
--

CREATE TABLE `mdl_external_services_users` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `externalserviceid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `iprestriction` varchar(255) DEFAULT NULL,
  `validuntil` bigint(10) DEFAULT NULL,
  `timecreated` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_exteservuser_ext_ix` (`externalserviceid`),
  KEY `mdl_exteservuser_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='users allowed to use services with restricted users flag';

--
-- Dumping data for table `mdl_external_services_users`
--


--
-- Table structure for table `mdl_external_tokens`
--

CREATE TABLE `mdl_external_tokens` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `token` varchar(128) NOT NULL DEFAULT '',
  `tokentype` smallint(4) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `externalserviceid` bigint(10) NOT NULL,
  `sid` varchar(128) DEFAULT NULL,
  `contextid` bigint(10) NOT NULL,
  `creatorid` bigint(10) NOT NULL DEFAULT '1',
  `iprestriction` varchar(255) DEFAULT NULL,
  `validuntil` bigint(10) DEFAULT NULL,
  `timecreated` bigint(10) NOT NULL,
  `lastaccess` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_extetoke_use_ix` (`userid`),
  KEY `mdl_extetoke_ext_ix` (`externalserviceid`),
  KEY `mdl_extetoke_con_ix` (`contextid`),
  KEY `mdl_extetoke_cre_ix` (`creatorid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Security tokens for accessing of external services';

--
-- Dumping data for table `mdl_external_tokens`
--


--
-- Table structure for table `mdl_feedback`
--

CREATE TABLE `mdl_feedback` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `intro` longtext NOT NULL,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `anonymous` tinyint(1) NOT NULL DEFAULT '1',
  `email_notification` tinyint(1) NOT NULL DEFAULT '1',
  `multiple_submit` tinyint(1) NOT NULL DEFAULT '1',
  `autonumbering` tinyint(1) NOT NULL DEFAULT '1',
  `site_after_submit` varchar(255) NOT NULL DEFAULT '',
  `page_after_submit` longtext NOT NULL,
  `page_after_submitformat` tinyint(2) NOT NULL DEFAULT '0',
  `publish_stats` tinyint(1) NOT NULL DEFAULT '0',
  `timeopen` bigint(10) NOT NULL DEFAULT '0',
  `timeclose` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `completionsubmit` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_feed_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='all feedbacks';

--
-- Dumping data for table `mdl_feedback`
--


--
-- Table structure for table `mdl_feedback_completed`
--

CREATE TABLE `mdl_feedback_completed` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `feedback` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `random_response` bigint(10) NOT NULL DEFAULT '0',
  `anonymous_response` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_feedcomp_use_ix` (`userid`),
  KEY `mdl_feedcomp_fee_ix` (`feedback`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='filled out feedback';

--
-- Dumping data for table `mdl_feedback_completed`
--


--
-- Table structure for table `mdl_feedback_completedtmp`
--

CREATE TABLE `mdl_feedback_completedtmp` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `feedback` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `guestid` varchar(255) NOT NULL DEFAULT '',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `random_response` bigint(10) NOT NULL DEFAULT '0',
  `anonymous_response` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_feedcomp_use2_ix` (`userid`),
  KEY `mdl_feedcomp_fee2_ix` (`feedback`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='filled out feedback';

--
-- Dumping data for table `mdl_feedback_completedtmp`
--


--
-- Table structure for table `mdl_feedback_item`
--

CREATE TABLE `mdl_feedback_item` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `feedback` bigint(10) NOT NULL DEFAULT '0',
  `template` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `label` varchar(255) NOT NULL DEFAULT '',
  `presentation` longtext NOT NULL,
  `typ` varchar(255) NOT NULL DEFAULT '',
  `hasvalue` tinyint(1) NOT NULL DEFAULT '0',
  `position` smallint(3) NOT NULL DEFAULT '0',
  `required` tinyint(1) NOT NULL DEFAULT '0',
  `dependitem` bigint(10) NOT NULL DEFAULT '0',
  `dependvalue` varchar(255) NOT NULL DEFAULT '',
  `options` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_feeditem_fee_ix` (`feedback`),
  KEY `mdl_feeditem_tem_ix` (`template`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='feedback_items';

--
-- Dumping data for table `mdl_feedback_item`
--


--
-- Table structure for table `mdl_feedback_sitecourse_map`
--

CREATE TABLE `mdl_feedback_sitecourse_map` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `feedbackid` bigint(10) NOT NULL DEFAULT '0',
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_feedsitemap_cou_ix` (`courseid`),
  KEY `mdl_feedsitemap_fee_ix` (`feedbackid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='feedback sitecourse map';

--
-- Dumping data for table `mdl_feedback_sitecourse_map`
--


--
-- Table structure for table `mdl_feedback_template`
--

CREATE TABLE `mdl_feedback_template` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `ispublic` tinyint(1) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_feedtemp_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='templates of feedbackstructures';

--
-- Dumping data for table `mdl_feedback_template`
--


--
-- Table structure for table `mdl_feedback_tracking`
--

CREATE TABLE `mdl_feedback_tracking` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `feedback` bigint(10) NOT NULL DEFAULT '0',
  `completed` bigint(10) NOT NULL DEFAULT '0',
  `tmp_completed` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_feedtrac_use_ix` (`userid`),
  KEY `mdl_feedtrac_fee_ix` (`feedback`),
  KEY `mdl_feedtrac_com_ix` (`completed`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='feedback trackingdata';

--
-- Dumping data for table `mdl_feedback_tracking`
--


--
-- Table structure for table `mdl_feedback_value`
--

CREATE TABLE `mdl_feedback_value` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course_id` bigint(10) NOT NULL DEFAULT '0',
  `item` bigint(10) NOT NULL DEFAULT '0',
  `completed` bigint(10) NOT NULL DEFAULT '0',
  `tmp_completed` bigint(10) NOT NULL DEFAULT '0',
  `value` longtext NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_feedvalu_cou_ix` (`course_id`),
  KEY `mdl_feedvalu_ite_ix` (`item`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='values of the completeds';

--
-- Dumping data for table `mdl_feedback_value`
--


--
-- Table structure for table `mdl_feedback_valuetmp`
--

CREATE TABLE `mdl_feedback_valuetmp` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course_id` bigint(10) NOT NULL DEFAULT '0',
  `item` bigint(10) NOT NULL DEFAULT '0',
  `completed` bigint(10) NOT NULL DEFAULT '0',
  `tmp_completed` bigint(10) NOT NULL DEFAULT '0',
  `value` longtext NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_feedvalu_cou2_ix` (`course_id`),
  KEY `mdl_feedvalu_ite2_ix` (`item`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='values of the completedstmp';

--
-- Dumping data for table `mdl_feedback_valuetmp`
--


--
-- Table structure for table `mdl_files`
--

CREATE TABLE `mdl_files` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `contenthash` varchar(40) NOT NULL DEFAULT '',
  `pathnamehash` varchar(40) NOT NULL DEFAULT '',
  `contextid` bigint(10) NOT NULL,
  `component` varchar(100) NOT NULL DEFAULT '',
  `filearea` varchar(50) NOT NULL DEFAULT '',
  `itemid` bigint(10) NOT NULL,
  `filepath` varchar(255) NOT NULL DEFAULT '',
  `filename` varchar(255) NOT NULL DEFAULT '',
  `userid` bigint(10) DEFAULT NULL,
  `filesize` bigint(10) NOT NULL,
  `mimetype` varchar(100) DEFAULT NULL,
  `status` bigint(10) NOT NULL DEFAULT '0',
  `source` longtext,
  `author` varchar(255) DEFAULT NULL,
  `license` varchar(255) DEFAULT NULL,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  `referencefileid` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_file_pat_uix` (`pathnamehash`),
  KEY `mdl_file_comfilconite_ix` (`component`,`filearea`,`contextid`,`itemid`),
  KEY `mdl_file_con_ix` (`contenthash`),
  KEY `mdl_file_con2_ix` (`contextid`),
  KEY `mdl_file_use_ix` (`userid`),
  KEY `mdl_file_ref_ix` (`referencefileid`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='description of files, content is stored in sha1 file pool';

--
-- Dumping data for table `mdl_files`
--

INSERT INTO `mdl_files` VALUES (1,'41cfeee5884a43a4650a851f4f85e7b28316fcc9','a48e186a2cc853a9e94e9305f4e9bc086391212d',1,'theme_more','backgroundimage',0,'/','background.jpg',2,4451,'image/jpeg',0,NULL,NULL,NULL,1442833442,1442833442,0,NULL),(2,'da39a3ee5e6b4b0d3255bfef95601890afd80709','d1da7ab1bb9c08a926037367bf8ce9a838034ead',1,'theme_more','backgroundimage',0,'/','.',2,0,NULL,0,NULL,NULL,NULL,1442833442,1442833442,0,NULL),(3,'fb262df98d67c4e2a5c9802403821e00cf2992af','508e674d49c30d4fde325fe6c7f6fd3d56b247e1',1,'assignfeedback_editpdf','stamps',0,'/','smile.png',2,1600,'image/png',0,NULL,NULL,NULL,1442833442,1442833442,0,NULL),(4,'da39a3ee5e6b4b0d3255bfef95601890afd80709','70b7cdade7b4e27d4e83f0cdaad10d6a3c0cccb5',1,'assignfeedback_editpdf','stamps',0,'/','.',2,0,NULL,0,NULL,NULL,NULL,1442833442,1442833442,0,NULL),(5,'a4f146f120e7e00d21291b924e26aaabe9f4297a','68317eab56c67d32aeaee5acf509a0c4aa828b6b',1,'assignfeedback_editpdf','stamps',0,'/','sad.png',2,1702,'image/png',0,NULL,NULL,NULL,1442833442,1442833442,0,NULL),(6,'33957e31ba9c763a74638b825f0a9154acf475e1','695a55ff780e61c9e59428aa425430b0d6bde53b',1,'assignfeedback_editpdf','stamps',0,'/','tick.png',2,1187,'image/png',0,NULL,NULL,NULL,1442833442,1442833442,0,NULL),(7,'d613d55f37bb76d38d4ffb4b7b83e6c694778c30','373e63af262a9b8466ba8632551520be793c37ff',1,'assignfeedback_editpdf','stamps',0,'/','cross.png',2,1230,'image/png',0,NULL,NULL,NULL,1442833442,1442833442,0,NULL);

--
-- Table structure for table `mdl_files_reference`
--

CREATE TABLE `mdl_files_reference` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `repositoryid` bigint(10) NOT NULL,
  `lastsync` bigint(10) DEFAULT NULL,
  `reference` longtext,
  `referencehash` varchar(40) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_filerefe_refrep_uix` (`referencehash`,`repositoryid`),
  KEY `mdl_filerefe_rep_ix` (`repositoryid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Store files references';

--
-- Dumping data for table `mdl_files_reference`
--


--
-- Table structure for table `mdl_filter_active`
--

CREATE TABLE `mdl_filter_active` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `filter` varchar(32) NOT NULL DEFAULT '',
  `contextid` bigint(10) NOT NULL,
  `active` smallint(4) NOT NULL,
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_filtacti_confil_uix` (`contextid`,`filter`),
  KEY `mdl_filtacti_con_ix` (`contextid`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='Stores information about which filters are active in which c';

--
-- Dumping data for table `mdl_filter_active`
--

INSERT INTO `mdl_filter_active` VALUES (1,'activitynames',1,1,2),(2,'mathjaxloader',1,1,1),(3,'mediaplugin',1,1,3);

--
-- Table structure for table `mdl_filter_config`
--

CREATE TABLE `mdl_filter_config` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `filter` varchar(32) NOT NULL DEFAULT '',
  `contextid` bigint(10) NOT NULL,
  `name` varchar(255) NOT NULL DEFAULT '',
  `value` longtext,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_filtconf_confilnam_uix` (`contextid`,`filter`,`name`),
  KEY `mdl_filtconf_con_ix` (`contextid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores per-context configuration settings for filters which ';

--
-- Dumping data for table `mdl_filter_config`
--


--
-- Table structure for table `mdl_folder`
--

CREATE TABLE `mdl_folder` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `intro` longtext,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `revision` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `display` smallint(4) NOT NULL DEFAULT '0',
  `showexpanded` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `mdl_fold_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='each record is one folder resource';

--
-- Dumping data for table `mdl_folder`
--


--
-- Table structure for table `mdl_forum`
--

CREATE TABLE `mdl_forum` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `type` varchar(20) NOT NULL DEFAULT 'general',
  `name` varchar(255) NOT NULL DEFAULT '',
  `intro` longtext NOT NULL,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `assessed` bigint(10) NOT NULL DEFAULT '0',
  `assesstimestart` bigint(10) NOT NULL DEFAULT '0',
  `assesstimefinish` bigint(10) NOT NULL DEFAULT '0',
  `scale` bigint(10) NOT NULL DEFAULT '0',
  `maxbytes` bigint(10) NOT NULL DEFAULT '0',
  `maxattachments` bigint(10) NOT NULL DEFAULT '1',
  `forcesubscribe` tinyint(1) NOT NULL DEFAULT '0',
  `trackingtype` tinyint(2) NOT NULL DEFAULT '1',
  `rsstype` tinyint(2) NOT NULL DEFAULT '0',
  `rssarticles` tinyint(2) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `warnafter` bigint(10) NOT NULL DEFAULT '0',
  `blockafter` bigint(10) NOT NULL DEFAULT '0',
  `blockperiod` bigint(10) NOT NULL DEFAULT '0',
  `completiondiscussions` int(9) NOT NULL DEFAULT '0',
  `completionreplies` int(9) NOT NULL DEFAULT '0',
  `completionposts` int(9) NOT NULL DEFAULT '0',
  `displaywordcount` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_foru_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Forums contain and structure discussion';

--
-- Dumping data for table `mdl_forum`
--


--
-- Table structure for table `mdl_forum_digests`
--

CREATE TABLE `mdl_forum_digests` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL,
  `forum` bigint(10) NOT NULL,
  `maildigest` tinyint(1) NOT NULL DEFAULT '-1',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_forudige_forusemai_uix` (`forum`,`userid`,`maildigest`),
  KEY `mdl_forudige_use_ix` (`userid`),
  KEY `mdl_forudige_for_ix` (`forum`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Keeps track of user mail delivery preferences for each forum';

--
-- Dumping data for table `mdl_forum_digests`
--


--
-- Table structure for table `mdl_forum_discussion_subs`
--

CREATE TABLE `mdl_forum_discussion_subs` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `forum` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `discussion` bigint(10) NOT NULL,
  `preference` bigint(10) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_forudiscsubs_usedis_uix` (`userid`,`discussion`),
  KEY `mdl_forudiscsubs_for_ix` (`forum`),
  KEY `mdl_forudiscsubs_use_ix` (`userid`),
  KEY `mdl_forudiscsubs_dis_ix` (`discussion`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Users may choose to subscribe and unsubscribe from specific ';

--
-- Dumping data for table `mdl_forum_discussion_subs`
--


--
-- Table structure for table `mdl_forum_discussions`
--

CREATE TABLE `mdl_forum_discussions` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `forum` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `firstpost` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `groupid` bigint(10) NOT NULL DEFAULT '-1',
  `assessed` tinyint(1) NOT NULL DEFAULT '1',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `usermodified` bigint(10) NOT NULL DEFAULT '0',
  `timestart` bigint(10) NOT NULL DEFAULT '0',
  `timeend` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_forudisc_use_ix` (`userid`),
  KEY `mdl_forudisc_cou_ix` (`course`),
  KEY `mdl_forudisc_for_ix` (`forum`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Forums are composed of discussions';

--
-- Dumping data for table `mdl_forum_discussions`
--


--
-- Table structure for table `mdl_forum_posts`
--

CREATE TABLE `mdl_forum_posts` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `discussion` bigint(10) NOT NULL DEFAULT '0',
  `parent` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `created` bigint(10) NOT NULL DEFAULT '0',
  `modified` bigint(10) NOT NULL DEFAULT '0',
  `mailed` tinyint(2) NOT NULL DEFAULT '0',
  `subject` varchar(255) NOT NULL DEFAULT '',
  `message` longtext NOT NULL,
  `messageformat` tinyint(2) NOT NULL DEFAULT '0',
  `messagetrust` tinyint(2) NOT NULL DEFAULT '0',
  `attachment` varchar(100) NOT NULL DEFAULT '',
  `totalscore` smallint(4) NOT NULL DEFAULT '0',
  `mailnow` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_forupost_use_ix` (`userid`),
  KEY `mdl_forupost_cre_ix` (`created`),
  KEY `mdl_forupost_mai_ix` (`mailed`),
  KEY `mdl_forupost_dis_ix` (`discussion`),
  KEY `mdl_forupost_par_ix` (`parent`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='All posts are stored in this table';

--
-- Dumping data for table `mdl_forum_posts`
--


--
-- Table structure for table `mdl_forum_queue`
--

CREATE TABLE `mdl_forum_queue` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `discussionid` bigint(10) NOT NULL DEFAULT '0',
  `postid` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_foruqueu_use_ix` (`userid`),
  KEY `mdl_foruqueu_dis_ix` (`discussionid`),
  KEY `mdl_foruqueu_pos_ix` (`postid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='For keeping track of posts that will be mailed in digest for';

--
-- Dumping data for table `mdl_forum_queue`
--


--
-- Table structure for table `mdl_forum_read`
--

CREATE TABLE `mdl_forum_read` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `forumid` bigint(10) NOT NULL DEFAULT '0',
  `discussionid` bigint(10) NOT NULL DEFAULT '0',
  `postid` bigint(10) NOT NULL DEFAULT '0',
  `firstread` bigint(10) NOT NULL DEFAULT '0',
  `lastread` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_foruread_usefor_ix` (`userid`,`forumid`),
  KEY `mdl_foruread_usedis_ix` (`userid`,`discussionid`),
  KEY `mdl_foruread_posuse_ix` (`postid`,`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Tracks each users read posts';

--
-- Dumping data for table `mdl_forum_read`
--


--
-- Table structure for table `mdl_forum_subscriptions`
--

CREATE TABLE `mdl_forum_subscriptions` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `forum` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_forusubs_use_ix` (`userid`),
  KEY `mdl_forusubs_for_ix` (`forum`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Keeps track of who is subscribed to what forum';

--
-- Dumping data for table `mdl_forum_subscriptions`
--


--
-- Table structure for table `mdl_forum_track_prefs`
--

CREATE TABLE `mdl_forum_track_prefs` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `forumid` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_forutracpref_usefor_ix` (`userid`,`forumid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Tracks each users untracked forums';

--
-- Dumping data for table `mdl_forum_track_prefs`
--


--
-- Table structure for table `mdl_glossary`
--

CREATE TABLE `mdl_glossary` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `intro` longtext NOT NULL,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `allowduplicatedentries` tinyint(2) NOT NULL DEFAULT '0',
  `displayformat` varchar(50) NOT NULL DEFAULT 'dictionary',
  `mainglossary` tinyint(2) NOT NULL DEFAULT '0',
  `showspecial` tinyint(2) NOT NULL DEFAULT '1',
  `showalphabet` tinyint(2) NOT NULL DEFAULT '1',
  `showall` tinyint(2) NOT NULL DEFAULT '1',
  `allowcomments` tinyint(2) NOT NULL DEFAULT '0',
  `allowprintview` tinyint(2) NOT NULL DEFAULT '1',
  `usedynalink` tinyint(2) NOT NULL DEFAULT '1',
  `defaultapproval` tinyint(2) NOT NULL DEFAULT '1',
  `approvaldisplayformat` varchar(50) NOT NULL DEFAULT 'default',
  `globalglossary` tinyint(2) NOT NULL DEFAULT '0',
  `entbypage` smallint(3) NOT NULL DEFAULT '10',
  `editalways` tinyint(2) NOT NULL DEFAULT '0',
  `rsstype` tinyint(2) NOT NULL DEFAULT '0',
  `rssarticles` tinyint(2) NOT NULL DEFAULT '0',
  `assessed` bigint(10) NOT NULL DEFAULT '0',
  `assesstimestart` bigint(10) NOT NULL DEFAULT '0',
  `assesstimefinish` bigint(10) NOT NULL DEFAULT '0',
  `scale` bigint(10) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `completionentries` int(9) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_glos_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='all glossaries';

--
-- Dumping data for table `mdl_glossary`
--


--
-- Table structure for table `mdl_glossary_alias`
--

CREATE TABLE `mdl_glossary_alias` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `entryid` bigint(10) NOT NULL DEFAULT '0',
  `alias` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_glosalia_ent_ix` (`entryid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='entries alias';

--
-- Dumping data for table `mdl_glossary_alias`
--


--
-- Table structure for table `mdl_glossary_categories`
--

CREATE TABLE `mdl_glossary_categories` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `glossaryid` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `usedynalink` tinyint(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `mdl_gloscate_glo_ix` (`glossaryid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='all categories for glossary entries';

--
-- Dumping data for table `mdl_glossary_categories`
--


--
-- Table structure for table `mdl_glossary_entries`
--

CREATE TABLE `mdl_glossary_entries` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `glossaryid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `concept` varchar(255) NOT NULL DEFAULT '',
  `definition` longtext NOT NULL,
  `definitionformat` tinyint(2) NOT NULL DEFAULT '0',
  `definitiontrust` tinyint(2) NOT NULL DEFAULT '0',
  `attachment` varchar(100) NOT NULL DEFAULT '',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `teacherentry` tinyint(2) NOT NULL DEFAULT '0',
  `sourceglossaryid` bigint(10) NOT NULL DEFAULT '0',
  `usedynalink` tinyint(2) NOT NULL DEFAULT '1',
  `casesensitive` tinyint(2) NOT NULL DEFAULT '0',
  `fullmatch` tinyint(2) NOT NULL DEFAULT '1',
  `approved` tinyint(2) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `mdl_glosentr_use_ix` (`userid`),
  KEY `mdl_glosentr_con_ix` (`concept`),
  KEY `mdl_glosentr_glo_ix` (`glossaryid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='all glossary entries';

--
-- Dumping data for table `mdl_glossary_entries`
--


--
-- Table structure for table `mdl_glossary_entries_categories`
--

CREATE TABLE `mdl_glossary_entries_categories` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `categoryid` bigint(10) NOT NULL DEFAULT '0',
  `entryid` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_glosentrcate_cat_ix` (`categoryid`),
  KEY `mdl_glosentrcate_ent_ix` (`entryid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='categories of each glossary entry';

--
-- Dumping data for table `mdl_glossary_entries_categories`
--


--
-- Table structure for table `mdl_glossary_formats`
--

CREATE TABLE `mdl_glossary_formats` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL DEFAULT '',
  `popupformatname` varchar(50) NOT NULL DEFAULT '',
  `visible` tinyint(2) NOT NULL DEFAULT '1',
  `showgroup` tinyint(2) NOT NULL DEFAULT '1',
  `defaultmode` varchar(50) NOT NULL DEFAULT '',
  `defaulthook` varchar(50) NOT NULL DEFAULT '',
  `sortkey` varchar(50) NOT NULL DEFAULT '',
  `sortorder` varchar(50) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='Setting of the display formats';

--
-- Dumping data for table `mdl_glossary_formats`
--

INSERT INTO `mdl_glossary_formats` VALUES (1,'continuous','continuous',1,1,'','','',''),(2,'dictionary','dictionary',1,1,'','','',''),(3,'encyclopedia','encyclopedia',1,1,'','','',''),(4,'entrylist','entrylist',1,1,'','','',''),(5,'faq','faq',1,1,'','','',''),(6,'fullwithauthor','fullwithauthor',1,1,'','','',''),(7,'fullwithoutauthor','fullwithoutauthor',1,1,'','','','');

--
-- Table structure for table `mdl_grade_categories`
--

CREATE TABLE `mdl_grade_categories` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) NOT NULL,
  `parent` bigint(10) DEFAULT NULL,
  `depth` bigint(10) NOT NULL DEFAULT '0',
  `path` varchar(255) DEFAULT NULL,
  `fullname` varchar(255) NOT NULL DEFAULT '',
  `aggregation` bigint(10) NOT NULL DEFAULT '0',
  `keephigh` bigint(10) NOT NULL DEFAULT '0',
  `droplow` bigint(10) NOT NULL DEFAULT '0',
  `aggregateonlygraded` tinyint(1) NOT NULL DEFAULT '0',
  `aggregateoutcomes` tinyint(1) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  `hidden` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_gradcate_cou_ix` (`courseid`),
  KEY `mdl_gradcate_par_ix` (`parent`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='This table keeps information about categories, used for grou';

--
-- Dumping data for table `mdl_grade_categories`
--


--
-- Table structure for table `mdl_grade_categories_history`
--

CREATE TABLE `mdl_grade_categories_history` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `action` bigint(10) NOT NULL DEFAULT '0',
  `oldid` bigint(10) NOT NULL,
  `source` varchar(255) DEFAULT NULL,
  `timemodified` bigint(10) DEFAULT NULL,
  `loggeduser` bigint(10) DEFAULT NULL,
  `courseid` bigint(10) NOT NULL,
  `parent` bigint(10) DEFAULT NULL,
  `depth` bigint(10) NOT NULL DEFAULT '0',
  `path` varchar(255) DEFAULT NULL,
  `fullname` varchar(255) NOT NULL DEFAULT '',
  `aggregation` bigint(10) NOT NULL DEFAULT '0',
  `keephigh` bigint(10) NOT NULL DEFAULT '0',
  `droplow` bigint(10) NOT NULL DEFAULT '0',
  `aggregateonlygraded` tinyint(1) NOT NULL DEFAULT '0',
  `aggregateoutcomes` tinyint(1) NOT NULL DEFAULT '0',
  `aggregatesubcats` tinyint(1) NOT NULL DEFAULT '0',
  `hidden` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_gradcatehist_act_ix` (`action`),
  KEY `mdl_gradcatehist_old_ix` (`oldid`),
  KEY `mdl_gradcatehist_cou_ix` (`courseid`),
  KEY `mdl_gradcatehist_par_ix` (`parent`),
  KEY `mdl_gradcatehist_log_ix` (`loggeduser`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='History of grade_categories';

--
-- Dumping data for table `mdl_grade_categories_history`
--


--
-- Table structure for table `mdl_grade_grades`
--

CREATE TABLE `mdl_grade_grades` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `itemid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `rawgrade` decimal(10,5) DEFAULT NULL,
  `rawgrademax` decimal(10,5) NOT NULL DEFAULT '100.00000',
  `rawgrademin` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `rawscaleid` bigint(10) DEFAULT NULL,
  `usermodified` bigint(10) DEFAULT NULL,
  `finalgrade` decimal(10,5) DEFAULT NULL,
  `hidden` bigint(10) NOT NULL DEFAULT '0',
  `locked` bigint(10) NOT NULL DEFAULT '0',
  `locktime` bigint(10) NOT NULL DEFAULT '0',
  `exported` bigint(10) NOT NULL DEFAULT '0',
  `overridden` bigint(10) NOT NULL DEFAULT '0',
  `excluded` bigint(10) NOT NULL DEFAULT '0',
  `feedback` longtext,
  `feedbackformat` bigint(10) NOT NULL DEFAULT '0',
  `information` longtext,
  `informationformat` bigint(10) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) DEFAULT NULL,
  `timemodified` bigint(10) DEFAULT NULL,
  `aggregationstatus` varchar(10) NOT NULL DEFAULT 'unknown',
  `aggregationweight` decimal(10,5) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_gradgrad_useite_uix` (`userid`,`itemid`),
  KEY `mdl_gradgrad_locloc_ix` (`locked`,`locktime`),
  KEY `mdl_gradgrad_ite_ix` (`itemid`),
  KEY `mdl_gradgrad_use_ix` (`userid`),
  KEY `mdl_gradgrad_raw_ix` (`rawscaleid`),
  KEY `mdl_gradgrad_use2_ix` (`usermodified`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='grade_grades  This table keeps individual grades for each us';

--
-- Dumping data for table `mdl_grade_grades`
--


--
-- Table structure for table `mdl_grade_grades_history`
--

CREATE TABLE `mdl_grade_grades_history` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `action` bigint(10) NOT NULL DEFAULT '0',
  `oldid` bigint(10) NOT NULL,
  `source` varchar(255) DEFAULT NULL,
  `timemodified` bigint(10) DEFAULT NULL,
  `loggeduser` bigint(10) DEFAULT NULL,
  `itemid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `rawgrade` decimal(10,5) DEFAULT NULL,
  `rawgrademax` decimal(10,5) NOT NULL DEFAULT '100.00000',
  `rawgrademin` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `rawscaleid` bigint(10) DEFAULT NULL,
  `usermodified` bigint(10) DEFAULT NULL,
  `finalgrade` decimal(10,5) DEFAULT NULL,
  `hidden` bigint(10) NOT NULL DEFAULT '0',
  `locked` bigint(10) NOT NULL DEFAULT '0',
  `locktime` bigint(10) NOT NULL DEFAULT '0',
  `exported` bigint(10) NOT NULL DEFAULT '0',
  `overridden` bigint(10) NOT NULL DEFAULT '0',
  `excluded` bigint(10) NOT NULL DEFAULT '0',
  `feedback` longtext,
  `feedbackformat` bigint(10) NOT NULL DEFAULT '0',
  `information` longtext,
  `informationformat` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_gradgradhist_act_ix` (`action`),
  KEY `mdl_gradgradhist_tim_ix` (`timemodified`),
  KEY `mdl_gradgradhist_old_ix` (`oldid`),
  KEY `mdl_gradgradhist_ite_ix` (`itemid`),
  KEY `mdl_gradgradhist_use_ix` (`userid`),
  KEY `mdl_gradgradhist_raw_ix` (`rawscaleid`),
  KEY `mdl_gradgradhist_use2_ix` (`usermodified`),
  KEY `mdl_gradgradhist_log_ix` (`loggeduser`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='History table';

--
-- Dumping data for table `mdl_grade_grades_history`
--


--
-- Table structure for table `mdl_grade_import_newitem`
--

CREATE TABLE `mdl_grade_import_newitem` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `itemname` varchar(255) NOT NULL DEFAULT '',
  `importcode` bigint(10) NOT NULL,
  `importer` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_gradimponewi_imp_ix` (`importer`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='temporary table for storing new grade_item names from grade ';

--
-- Dumping data for table `mdl_grade_import_newitem`
--


--
-- Table structure for table `mdl_grade_import_values`
--

CREATE TABLE `mdl_grade_import_values` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `itemid` bigint(10) DEFAULT NULL,
  `newgradeitem` bigint(10) DEFAULT NULL,
  `userid` bigint(10) NOT NULL,
  `finalgrade` decimal(10,5) DEFAULT NULL,
  `feedback` longtext,
  `importcode` bigint(10) NOT NULL,
  `importer` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_gradimpovalu_ite_ix` (`itemid`),
  KEY `mdl_gradimpovalu_new_ix` (`newgradeitem`),
  KEY `mdl_gradimpovalu_imp_ix` (`importer`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Temporary table for importing grades';

--
-- Dumping data for table `mdl_grade_import_values`
--


--
-- Table structure for table `mdl_grade_items`
--

CREATE TABLE `mdl_grade_items` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) DEFAULT NULL,
  `categoryid` bigint(10) DEFAULT NULL,
  `itemname` varchar(255) DEFAULT NULL,
  `itemtype` varchar(30) NOT NULL DEFAULT '',
  `itemmodule` varchar(30) DEFAULT NULL,
  `iteminstance` bigint(10) DEFAULT NULL,
  `itemnumber` bigint(10) DEFAULT NULL,
  `iteminfo` longtext,
  `idnumber` varchar(255) DEFAULT NULL,
  `calculation` longtext,
  `gradetype` smallint(4) NOT NULL DEFAULT '1',
  `grademax` decimal(10,5) NOT NULL DEFAULT '100.00000',
  `grademin` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `scaleid` bigint(10) DEFAULT NULL,
  `outcomeid` bigint(10) DEFAULT NULL,
  `gradepass` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `multfactor` decimal(10,5) NOT NULL DEFAULT '1.00000',
  `plusfactor` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `aggregationcoef` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `aggregationcoef2` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  `display` bigint(10) NOT NULL DEFAULT '0',
  `decimals` tinyint(1) DEFAULT NULL,
  `hidden` bigint(10) NOT NULL DEFAULT '0',
  `locked` bigint(10) NOT NULL DEFAULT '0',
  `locktime` bigint(10) NOT NULL DEFAULT '0',
  `needsupdate` bigint(10) NOT NULL DEFAULT '0',
  `weightoverride` tinyint(1) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) DEFAULT NULL,
  `timemodified` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_graditem_locloc_ix` (`locked`,`locktime`),
  KEY `mdl_graditem_itenee_ix` (`itemtype`,`needsupdate`),
  KEY `mdl_graditem_gra_ix` (`gradetype`),
  KEY `mdl_graditem_idncou_ix` (`idnumber`,`courseid`),
  KEY `mdl_graditem_cou_ix` (`courseid`),
  KEY `mdl_graditem_cat_ix` (`categoryid`),
  KEY `mdl_graditem_sca_ix` (`scaleid`),
  KEY `mdl_graditem_out_ix` (`outcomeid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='This table keeps information about gradeable items (ie colum';

--
-- Dumping data for table `mdl_grade_items`
--


--
-- Table structure for table `mdl_grade_items_history`
--

CREATE TABLE `mdl_grade_items_history` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `action` bigint(10) NOT NULL DEFAULT '0',
  `oldid` bigint(10) NOT NULL,
  `source` varchar(255) DEFAULT NULL,
  `timemodified` bigint(10) DEFAULT NULL,
  `loggeduser` bigint(10) DEFAULT NULL,
  `courseid` bigint(10) DEFAULT NULL,
  `categoryid` bigint(10) DEFAULT NULL,
  `itemname` varchar(255) DEFAULT NULL,
  `itemtype` varchar(30) NOT NULL DEFAULT '',
  `itemmodule` varchar(30) DEFAULT NULL,
  `iteminstance` bigint(10) DEFAULT NULL,
  `itemnumber` bigint(10) DEFAULT NULL,
  `iteminfo` longtext,
  `idnumber` varchar(255) DEFAULT NULL,
  `calculation` longtext,
  `gradetype` smallint(4) NOT NULL DEFAULT '1',
  `grademax` decimal(10,5) NOT NULL DEFAULT '100.00000',
  `grademin` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `scaleid` bigint(10) DEFAULT NULL,
  `outcomeid` bigint(10) DEFAULT NULL,
  `gradepass` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `multfactor` decimal(10,5) NOT NULL DEFAULT '1.00000',
  `plusfactor` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `aggregationcoef` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `aggregationcoef2` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  `hidden` bigint(10) NOT NULL DEFAULT '0',
  `locked` bigint(10) NOT NULL DEFAULT '0',
  `locktime` bigint(10) NOT NULL DEFAULT '0',
  `needsupdate` bigint(10) NOT NULL DEFAULT '0',
  `display` bigint(10) NOT NULL DEFAULT '0',
  `decimals` tinyint(1) DEFAULT NULL,
  `weightoverride` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_graditemhist_act_ix` (`action`),
  KEY `mdl_graditemhist_old_ix` (`oldid`),
  KEY `mdl_graditemhist_cou_ix` (`courseid`),
  KEY `mdl_graditemhist_cat_ix` (`categoryid`),
  KEY `mdl_graditemhist_sca_ix` (`scaleid`),
  KEY `mdl_graditemhist_out_ix` (`outcomeid`),
  KEY `mdl_graditemhist_log_ix` (`loggeduser`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='History of grade_items';

--
-- Dumping data for table `mdl_grade_items_history`
--


--
-- Table structure for table `mdl_grade_letters`
--

CREATE TABLE `mdl_grade_letters` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `contextid` bigint(10) NOT NULL,
  `lowerboundary` decimal(10,5) NOT NULL,
  `letter` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_gradlett_conlowlet_uix` (`contextid`,`lowerboundary`,`letter`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Repository for grade letters, for courses and other moodle e';

--
-- Dumping data for table `mdl_grade_letters`
--


--
-- Table structure for table `mdl_grade_outcomes`
--

CREATE TABLE `mdl_grade_outcomes` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) DEFAULT NULL,
  `shortname` varchar(255) NOT NULL DEFAULT '',
  `fullname` longtext NOT NULL,
  `scaleid` bigint(10) DEFAULT NULL,
  `description` longtext,
  `descriptionformat` tinyint(2) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) DEFAULT NULL,
  `timemodified` bigint(10) DEFAULT NULL,
  `usermodified` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_gradoutc_cousho_uix` (`courseid`,`shortname`),
  KEY `mdl_gradoutc_cou_ix` (`courseid`),
  KEY `mdl_gradoutc_sca_ix` (`scaleid`),
  KEY `mdl_gradoutc_use_ix` (`usermodified`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='This table describes the outcomes used in the system. An out';

--
-- Dumping data for table `mdl_grade_outcomes`
--


--
-- Table structure for table `mdl_grade_outcomes_courses`
--

CREATE TABLE `mdl_grade_outcomes_courses` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) NOT NULL,
  `outcomeid` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_gradoutccour_couout_uix` (`courseid`,`outcomeid`),
  KEY `mdl_gradoutccour_cou_ix` (`courseid`),
  KEY `mdl_gradoutccour_out_ix` (`outcomeid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='stores what outcomes are used in what courses.';

--
-- Dumping data for table `mdl_grade_outcomes_courses`
--


--
-- Table structure for table `mdl_grade_outcomes_history`
--

CREATE TABLE `mdl_grade_outcomes_history` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `action` bigint(10) NOT NULL DEFAULT '0',
  `oldid` bigint(10) NOT NULL,
  `source` varchar(255) DEFAULT NULL,
  `timemodified` bigint(10) DEFAULT NULL,
  `loggeduser` bigint(10) DEFAULT NULL,
  `courseid` bigint(10) DEFAULT NULL,
  `shortname` varchar(255) NOT NULL DEFAULT '',
  `fullname` longtext NOT NULL,
  `scaleid` bigint(10) DEFAULT NULL,
  `description` longtext,
  `descriptionformat` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_gradoutchist_act_ix` (`action`),
  KEY `mdl_gradoutchist_old_ix` (`oldid`),
  KEY `mdl_gradoutchist_cou_ix` (`courseid`),
  KEY `mdl_gradoutchist_sca_ix` (`scaleid`),
  KEY `mdl_gradoutchist_log_ix` (`loggeduser`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='History table';

--
-- Dumping data for table `mdl_grade_outcomes_history`
--


--
-- Table structure for table `mdl_grade_settings`
--

CREATE TABLE `mdl_grade_settings` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) NOT NULL,
  `name` varchar(255) NOT NULL DEFAULT '',
  `value` longtext,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_gradsett_counam_uix` (`courseid`,`name`),
  KEY `mdl_gradsett_cou_ix` (`courseid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='gradebook settings';

--
-- Dumping data for table `mdl_grade_settings`
--


--
-- Table structure for table `mdl_grading_areas`
--

CREATE TABLE `mdl_grading_areas` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `contextid` bigint(10) NOT NULL,
  `component` varchar(100) NOT NULL DEFAULT '',
  `areaname` varchar(100) NOT NULL DEFAULT '',
  `activemethod` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_gradarea_concomare_uix` (`contextid`,`component`,`areaname`),
  KEY `mdl_gradarea_con_ix` (`contextid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Identifies gradable areas where advanced grading can happen.';

--
-- Dumping data for table `mdl_grading_areas`
--


--
-- Table structure for table `mdl_grading_definitions`
--

CREATE TABLE `mdl_grading_definitions` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `areaid` bigint(10) NOT NULL,
  `method` varchar(100) NOT NULL DEFAULT '',
  `name` varchar(255) NOT NULL DEFAULT '',
  `description` longtext,
  `descriptionformat` tinyint(2) DEFAULT NULL,
  `status` bigint(10) NOT NULL DEFAULT '0',
  `copiedfromid` bigint(10) DEFAULT NULL,
  `timecreated` bigint(10) NOT NULL,
  `usercreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  `usermodified` bigint(10) NOT NULL,
  `timecopied` bigint(10) DEFAULT '0',
  `options` longtext,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_graddefi_aremet_uix` (`areaid`,`method`),
  KEY `mdl_graddefi_are_ix` (`areaid`),
  KEY `mdl_graddefi_use_ix` (`usermodified`),
  KEY `mdl_graddefi_use2_ix` (`usercreated`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Contains the basic information about an advanced grading for';

--
-- Dumping data for table `mdl_grading_definitions`
--


--
-- Table structure for table `mdl_grading_instances`
--

CREATE TABLE `mdl_grading_instances` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `definitionid` bigint(10) NOT NULL,
  `raterid` bigint(10) NOT NULL,
  `itemid` bigint(10) DEFAULT NULL,
  `rawgrade` decimal(10,5) DEFAULT NULL,
  `status` bigint(10) NOT NULL DEFAULT '0',
  `feedback` longtext,
  `feedbackformat` tinyint(2) DEFAULT NULL,
  `timemodified` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_gradinst_def_ix` (`definitionid`),
  KEY `mdl_gradinst_rat_ix` (`raterid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Grading form instance is an assessment record for one gradab';

--
-- Dumping data for table `mdl_grading_instances`
--


--
-- Table structure for table `mdl_gradingform_guide_comments`
--

CREATE TABLE `mdl_gradingform_guide_comments` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `definitionid` bigint(10) NOT NULL,
  `sortorder` bigint(10) NOT NULL,
  `description` longtext,
  `descriptionformat` tinyint(2) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_gradguidcomm_def_ix` (`definitionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='frequently used comments used in marking guide';

--
-- Dumping data for table `mdl_gradingform_guide_comments`
--


--
-- Table structure for table `mdl_gradingform_guide_criteria`
--

CREATE TABLE `mdl_gradingform_guide_criteria` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `definitionid` bigint(10) NOT NULL,
  `sortorder` bigint(10) NOT NULL,
  `shortname` varchar(255) NOT NULL DEFAULT '',
  `description` longtext,
  `descriptionformat` tinyint(2) DEFAULT NULL,
  `descriptionmarkers` longtext,
  `descriptionmarkersformat` tinyint(2) DEFAULT NULL,
  `maxscore` decimal(10,5) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_gradguidcrit_def_ix` (`definitionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores the rows of the criteria grid.';

--
-- Dumping data for table `mdl_gradingform_guide_criteria`
--


--
-- Table structure for table `mdl_gradingform_guide_fillings`
--

CREATE TABLE `mdl_gradingform_guide_fillings` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `instanceid` bigint(10) NOT NULL,
  `criterionid` bigint(10) NOT NULL,
  `remark` longtext,
  `remarkformat` tinyint(2) DEFAULT NULL,
  `score` decimal(10,5) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_gradguidfill_inscri_uix` (`instanceid`,`criterionid`),
  KEY `mdl_gradguidfill_ins_ix` (`instanceid`),
  KEY `mdl_gradguidfill_cri_ix` (`criterionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores the data of how the guide is filled by a particular r';

--
-- Dumping data for table `mdl_gradingform_guide_fillings`
--


--
-- Table structure for table `mdl_gradingform_rubric_criteria`
--

CREATE TABLE `mdl_gradingform_rubric_criteria` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `definitionid` bigint(10) NOT NULL,
  `sortorder` bigint(10) NOT NULL,
  `description` longtext,
  `descriptionformat` tinyint(2) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_gradrubrcrit_def_ix` (`definitionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores the rows of the rubric grid.';

--
-- Dumping data for table `mdl_gradingform_rubric_criteria`
--


--
-- Table structure for table `mdl_gradingform_rubric_fillings`
--

CREATE TABLE `mdl_gradingform_rubric_fillings` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `instanceid` bigint(10) NOT NULL,
  `criterionid` bigint(10) NOT NULL,
  `levelid` bigint(10) DEFAULT NULL,
  `remark` longtext,
  `remarkformat` tinyint(2) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_gradrubrfill_inscri_uix` (`instanceid`,`criterionid`),
  KEY `mdl_gradrubrfill_lev_ix` (`levelid`),
  KEY `mdl_gradrubrfill_ins_ix` (`instanceid`),
  KEY `mdl_gradrubrfill_cri_ix` (`criterionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores the data of how the rubric is filled by a particular ';

--
-- Dumping data for table `mdl_gradingform_rubric_fillings`
--


--
-- Table structure for table `mdl_gradingform_rubric_levels`
--

CREATE TABLE `mdl_gradingform_rubric_levels` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `criterionid` bigint(10) NOT NULL,
  `score` decimal(10,5) NOT NULL,
  `definition` longtext,
  `definitionformat` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_gradrubrleve_cri_ix` (`criterionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores the columns of the rubric grid.';

--
-- Dumping data for table `mdl_gradingform_rubric_levels`
--


--
-- Table structure for table `mdl_groupings`
--

CREATE TABLE `mdl_groupings` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `idnumber` varchar(100) NOT NULL DEFAULT '',
  `description` longtext,
  `descriptionformat` tinyint(2) NOT NULL DEFAULT '0',
  `configdata` longtext,
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_grou_idn2_ix` (`idnumber`),
  KEY `mdl_grou_cou2_ix` (`courseid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='A grouping is a collection of groups. WAS: groups_groupings';

--
-- Dumping data for table `mdl_groupings`
--


--
-- Table structure for table `mdl_groupings_groups`
--

CREATE TABLE `mdl_groupings_groups` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `groupingid` bigint(10) NOT NULL DEFAULT '0',
  `groupid` bigint(10) NOT NULL DEFAULT '0',
  `timeadded` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_grougrou_gro_ix` (`groupingid`),
  KEY `mdl_grougrou_gro2_ix` (`groupid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Link a grouping to a group (note, groups can be in multiple ';

--
-- Dumping data for table `mdl_groupings_groups`
--


--
-- Table structure for table `mdl_groups`
--

CREATE TABLE `mdl_groups` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) NOT NULL,
  `idnumber` varchar(100) NOT NULL DEFAULT '',
  `name` varchar(254) NOT NULL DEFAULT '',
  `description` longtext,
  `descriptionformat` tinyint(2) NOT NULL DEFAULT '0',
  `enrolmentkey` varchar(50) DEFAULT NULL,
  `picture` bigint(10) NOT NULL DEFAULT '0',
  `hidepicture` tinyint(1) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_grou_idn_ix` (`idnumber`),
  KEY `mdl_grou_cou_ix` (`courseid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Each record represents a group.';

--
-- Dumping data for table `mdl_groups`
--


--
-- Table structure for table `mdl_groups_members`
--

CREATE TABLE `mdl_groups_members` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `groupid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `timeadded` bigint(10) NOT NULL DEFAULT '0',
  `component` varchar(100) NOT NULL DEFAULT '',
  `itemid` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_groumemb_gro_ix` (`groupid`),
  KEY `mdl_groumemb_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Link a user to a group.';

--
-- Dumping data for table `mdl_groups_members`
--


--
-- Table structure for table `mdl_imscp`
--

CREATE TABLE `mdl_imscp` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `intro` longtext,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `revision` bigint(10) NOT NULL DEFAULT '0',
  `keepold` bigint(10) NOT NULL DEFAULT '-1',
  `structure` longtext,
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_imsc_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='each record is one imscp resource';

--
-- Dumping data for table `mdl_imscp`
--


--
-- Table structure for table `mdl_label`
--

CREATE TABLE `mdl_label` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `intro` longtext NOT NULL,
  `introformat` smallint(4) DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_labe_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Defines labels';

--
-- Dumping data for table `mdl_label`
--


--
-- Table structure for table `mdl_lesson`
--

CREATE TABLE `mdl_lesson` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `intro` longtext,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `practice` smallint(3) NOT NULL DEFAULT '0',
  `modattempts` smallint(3) NOT NULL DEFAULT '0',
  `usepassword` smallint(3) NOT NULL DEFAULT '0',
  `password` varchar(32) NOT NULL DEFAULT '',
  `dependency` bigint(10) NOT NULL DEFAULT '0',
  `conditions` longtext NOT NULL,
  `grade` smallint(3) NOT NULL DEFAULT '0',
  `custom` smallint(3) NOT NULL DEFAULT '0',
  `ongoing` smallint(3) NOT NULL DEFAULT '0',
  `usemaxgrade` smallint(3) NOT NULL DEFAULT '0',
  `maxanswers` smallint(3) NOT NULL DEFAULT '4',
  `maxattempts` smallint(3) NOT NULL DEFAULT '5',
  `review` smallint(3) NOT NULL DEFAULT '0',
  `nextpagedefault` smallint(3) NOT NULL DEFAULT '0',
  `feedback` smallint(3) NOT NULL DEFAULT '1',
  `minquestions` smallint(3) NOT NULL DEFAULT '0',
  `maxpages` smallint(3) NOT NULL DEFAULT '0',
  `timed` smallint(3) NOT NULL DEFAULT '0',
  `maxtime` bigint(10) NOT NULL DEFAULT '0',
  `retake` smallint(3) NOT NULL DEFAULT '1',
  `activitylink` bigint(10) NOT NULL DEFAULT '0',
  `mediafile` varchar(255) NOT NULL DEFAULT '',
  `mediaheight` bigint(10) NOT NULL DEFAULT '100',
  `mediawidth` bigint(10) NOT NULL DEFAULT '650',
  `mediaclose` smallint(3) NOT NULL DEFAULT '0',
  `slideshow` smallint(3) NOT NULL DEFAULT '0',
  `width` bigint(10) NOT NULL DEFAULT '640',
  `height` bigint(10) NOT NULL DEFAULT '480',
  `bgcolor` varchar(7) NOT NULL DEFAULT '#FFFFFF',
  `displayleft` smallint(3) NOT NULL DEFAULT '0',
  `displayleftif` smallint(3) NOT NULL DEFAULT '0',
  `progressbar` smallint(3) NOT NULL DEFAULT '0',
  `highscores` smallint(3) NOT NULL DEFAULT '0',
  `maxhighscores` bigint(10) NOT NULL DEFAULT '0',
  `available` bigint(10) NOT NULL DEFAULT '0',
  `deadline` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_less_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Defines lesson';

--
-- Dumping data for table `mdl_lesson`
--


--
-- Table structure for table `mdl_lesson_answers`
--

CREATE TABLE `mdl_lesson_answers` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `lessonid` bigint(10) NOT NULL DEFAULT '0',
  `pageid` bigint(10) NOT NULL DEFAULT '0',
  `jumpto` bigint(11) NOT NULL DEFAULT '0',
  `grade` smallint(4) NOT NULL DEFAULT '0',
  `score` bigint(10) NOT NULL DEFAULT '0',
  `flags` smallint(3) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `answer` longtext,
  `answerformat` tinyint(2) NOT NULL DEFAULT '0',
  `response` longtext,
  `responseformat` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_lessansw_les_ix` (`lessonid`),
  KEY `mdl_lessansw_pag_ix` (`pageid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Defines lesson_answers';

--
-- Dumping data for table `mdl_lesson_answers`
--


--
-- Table structure for table `mdl_lesson_attempts`
--

CREATE TABLE `mdl_lesson_attempts` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `lessonid` bigint(10) NOT NULL DEFAULT '0',
  `pageid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `answerid` bigint(10) NOT NULL DEFAULT '0',
  `retry` smallint(3) NOT NULL DEFAULT '0',
  `correct` bigint(10) NOT NULL DEFAULT '0',
  `useranswer` longtext,
  `timeseen` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_lessatte_use_ix` (`userid`),
  KEY `mdl_lessatte_les_ix` (`lessonid`),
  KEY `mdl_lessatte_pag_ix` (`pageid`),
  KEY `mdl_lessatte_ans_ix` (`answerid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Defines lesson_attempts';

--
-- Dumping data for table `mdl_lesson_attempts`
--


--
-- Table structure for table `mdl_lesson_branch`
--

CREATE TABLE `mdl_lesson_branch` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `lessonid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `pageid` bigint(10) NOT NULL DEFAULT '0',
  `retry` bigint(10) NOT NULL DEFAULT '0',
  `flag` smallint(3) NOT NULL DEFAULT '0',
  `timeseen` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_lessbran_use_ix` (`userid`),
  KEY `mdl_lessbran_les_ix` (`lessonid`),
  KEY `mdl_lessbran_pag_ix` (`pageid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='branches for each lesson/user';

--
-- Dumping data for table `mdl_lesson_branch`
--


--
-- Table structure for table `mdl_lesson_grades`
--

CREATE TABLE `mdl_lesson_grades` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `lessonid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `grade` double NOT NULL DEFAULT '0',
  `late` smallint(3) NOT NULL DEFAULT '0',
  `completed` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_lessgrad_use_ix` (`userid`),
  KEY `mdl_lessgrad_les_ix` (`lessonid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Defines lesson_grades';

--
-- Dumping data for table `mdl_lesson_grades`
--


--
-- Table structure for table `mdl_lesson_high_scores`
--

CREATE TABLE `mdl_lesson_high_scores` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `lessonid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `gradeid` bigint(10) NOT NULL DEFAULT '0',
  `nickname` varchar(5) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_lesshighscor_use_ix` (`userid`),
  KEY `mdl_lesshighscor_les_ix` (`lessonid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='high scores for each lesson';

--
-- Dumping data for table `mdl_lesson_high_scores`
--


--
-- Table structure for table `mdl_lesson_pages`
--

CREATE TABLE `mdl_lesson_pages` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `lessonid` bigint(10) NOT NULL DEFAULT '0',
  `prevpageid` bigint(10) NOT NULL DEFAULT '0',
  `nextpageid` bigint(10) NOT NULL DEFAULT '0',
  `qtype` smallint(3) NOT NULL DEFAULT '0',
  `qoption` smallint(3) NOT NULL DEFAULT '0',
  `layout` smallint(3) NOT NULL DEFAULT '1',
  `display` smallint(3) NOT NULL DEFAULT '1',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `title` varchar(255) NOT NULL DEFAULT '',
  `contents` longtext NOT NULL,
  `contentsformat` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_lesspage_les_ix` (`lessonid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Defines lesson_pages';

--
-- Dumping data for table `mdl_lesson_pages`
--


--
-- Table structure for table `mdl_lesson_timer`
--

CREATE TABLE `mdl_lesson_timer` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `lessonid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `starttime` bigint(10) NOT NULL DEFAULT '0',
  `lessontime` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_lesstime_use_ix` (`userid`),
  KEY `mdl_lesstime_les_ix` (`lessonid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='lesson timer for each lesson';

--
-- Dumping data for table `mdl_lesson_timer`
--


--
-- Table structure for table `mdl_license`
--

CREATE TABLE `mdl_license` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `shortname` varchar(255) DEFAULT NULL,
  `fullname` longtext,
  `source` varchar(255) DEFAULT NULL,
  `enabled` tinyint(1) NOT NULL DEFAULT '1',
  `version` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COMMENT='store licenses used by moodle';

--
-- Dumping data for table `mdl_license`
--

INSERT INTO `mdl_license` VALUES (1,'unknown','Unknown license','',1,2010033100),(2,'allrightsreserved','All rights reserved','http://en.wikipedia.org/wiki/All_rights_reserved',1,2010033100),(3,'public','Public Domain','http://creativecommons.org/licenses/publicdomain/',1,2010033100),(4,'cc','Creative Commons','http://creativecommons.org/licenses/by/3.0/',1,2010033100),(5,'cc-nd','Creative Commons - NoDerivs','http://creativecommons.org/licenses/by-nd/3.0/',1,2010033100),(6,'cc-nc-nd','Creative Commons - No Commercial NoDerivs','http://creativecommons.org/licenses/by-nc-nd/3.0/',1,2010033100),(7,'cc-nc','Creative Commons - No Commercial','http://creativecommons.org/licenses/by-nc/3.0/',1,2013051500),(8,'cc-nc-sa','Creative Commons - No Commercial ShareAlike','http://creativecommons.org/licenses/by-nc-sa/3.0/',1,2010033100),(9,'cc-sa','Creative Commons - ShareAlike','http://creativecommons.org/licenses/by-sa/3.0/',1,2010033100);

--
-- Table structure for table `mdl_lock_db`
--

CREATE TABLE `mdl_lock_db` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `resourcekey` varchar(255) NOT NULL DEFAULT '',
  `expires` bigint(10) DEFAULT NULL,
  `owner` varchar(36) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_lockdb_res_uix` (`resourcekey`),
  KEY `mdl_lockdb_exp_ix` (`expires`),
  KEY `mdl_lockdb_own_ix` (`owner`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores active and inactive lock types for db locking method.';

--
-- Dumping data for table `mdl_lock_db`
--


--
-- Table structure for table `mdl_log`
--

CREATE TABLE `mdl_log` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `time` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `ip` varchar(45) NOT NULL DEFAULT '',
  `course` bigint(10) NOT NULL DEFAULT '0',
  `module` varchar(20) NOT NULL DEFAULT '',
  `cmid` bigint(10) NOT NULL DEFAULT '0',
  `action` varchar(40) NOT NULL DEFAULT '',
  `url` varchar(100) NOT NULL DEFAULT '',
  `info` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_log_coumodact_ix` (`course`,`module`,`action`),
  KEY `mdl_log_tim_ix` (`time`),
  KEY `mdl_log_act_ix` (`action`),
  KEY `mdl_log_usecou_ix` (`userid`,`course`),
  KEY `mdl_log_cmi_ix` (`cmid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Every action is logged as far as possible';

--
-- Dumping data for table `mdl_log`
--


--
-- Table structure for table `mdl_log_display`
--

CREATE TABLE `mdl_log_display` (
  `id` bigint(10) 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 '',
  `component` varchar(100) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_logdisp_modact_uix` (`module`,`action`)
) ENGINE=InnoDB AUTO_INCREMENT=188 DEFAULT CHARSET=utf8 COMMENT='For a particular module/action, specifies a moodle table/fie';

--
-- Dumping data for table `mdl_log_display`
--

INSERT INTO `mdl_log_display` VALUES (1,'course','user report','user','CONCAT(firstname, \' \', lastname)','moodle'),(2,'course','view','course','fullname','moodle'),(3,'course','view section','course_sections','name','moodle'),(4,'course','update','course','fullname','moodle'),(5,'course','hide','course','fullname','moodle'),(6,'course','show','course','fullname','moodle'),(7,'course','move','course','fullname','moodle'),(8,'course','enrol','course','fullname','moodle'),(9,'course','unenrol','course','fullname','moodle'),(10,'course','report log','course','fullname','moodle'),(11,'course','report live','course','fullname','moodle'),(12,'course','report outline','course','fullname','moodle'),(13,'course','report participation','course','fullname','moodle'),(14,'course','report stats','course','fullname','moodle'),(15,'category','add','course_categories','name','moodle'),(16,'category','hide','course_categories','name','moodle'),(17,'category','move','course_categories','name','moodle'),(18,'category','show','course_categories','name','moodle'),(19,'category','update','course_categories','name','moodle'),(20,'message','write','user','CONCAT(firstname, \' \', lastname)','moodle'),(21,'message','read','user','CONCAT(firstname, \' \', lastname)','moodle'),(22,'message','add contact','user','CONCAT(firstname, \' \', lastname)','moodle'),(23,'message','remove contact','user','CONCAT(firstname, \' \', lastname)','moodle'),(24,'message','block contact','user','CONCAT(firstname, \' \', lastname)','moodle'),(25,'message','unblock contact','user','CONCAT(firstname, \' \', lastname)','moodle'),(26,'group','view','groups','name','moodle'),(27,'tag','update','tag','name','moodle'),(28,'tag','flag','tag','name','moodle'),(29,'user','view','user','CONCAT(firstname, \' \', lastname)','moodle'),(30,'assign','add','assign','name','mod_assign'),(31,'assign','delete mod','assign','name','mod_assign'),(32,'assign','download all submissions','assign','name','mod_assign'),(33,'assign','grade submission','assign','name','mod_assign'),(34,'assign','lock submission','assign','name','mod_assign'),(35,'assign','reveal identities','assign','name','mod_assign'),(36,'assign','revert submission to draft','assign','name','mod_assign'),(37,'assign','set marking workflow state','assign','name','mod_assign'),(38,'assign','submission statement accepted','assign','name','mod_assign'),(39,'assign','submit','assign','name','mod_assign'),(40,'assign','submit for grading','assign','name','mod_assign'),(41,'assign','unlock submission','assign','name','mod_assign'),(42,'assign','update','assign','name','mod_assign'),(43,'assign','upload','assign','name','mod_assign'),(44,'assign','view','assign','name','mod_assign'),(45,'assign','view all','course','fullname','mod_assign'),(46,'assign','view confirm submit assignment form','assign','name','mod_assign'),(47,'assign','view grading form','assign','name','mod_assign'),(48,'assign','view submission','assign','name','mod_assign'),(49,'assign','view submission grading table','assign','name','mod_assign'),(50,'assign','view submit assignment form','assign','name','mod_assign'),(51,'assign','view feedback','assign','name','mod_assign'),(52,'assign','view batch set marking workflow state','assign','name','mod_assign'),(53,'assignment','view','assignment','name','mod_assignment'),(54,'assignment','add','assignment','name','mod_assignment'),(55,'assignment','update','assignment','name','mod_assignment'),(56,'assignment','view submission','assignment','name','mod_assignment'),(57,'assignment','upload','assignment','name','mod_assignment'),(58,'book','add','book','name','mod_book'),(59,'book','update','book','name','mod_book'),(60,'book','view','book','name','mod_book'),(61,'book','add chapter','book_chapters','title','mod_book'),(62,'book','update chapter','book_chapters','title','mod_book'),(63,'book','view chapter','book_chapters','title','mod_book'),(64,'chat','view','chat','name','mod_chat'),(65,'chat','add','chat','name','mod_chat'),(66,'chat','update','chat','name','mod_chat'),(67,'chat','report','chat','name','mod_chat'),(68,'chat','talk','chat','name','mod_chat'),(69,'choice','view','choice','name','mod_choice'),(70,'choice','update','choice','name','mod_choice'),(71,'choice','add','choice','name','mod_choice'),(72,'choice','report','choice','name','mod_choice'),(73,'choice','choose','choice','name','mod_choice'),(74,'choice','choose again','choice','name','mod_choice'),(75,'data','view','data','name','mod_data'),(76,'data','add','data','name','mod_data'),(77,'data','update','data','name','mod_data'),(78,'data','record delete','data','name','mod_data'),(79,'data','fields add','data_fields','name','mod_data'),(80,'data','fields update','data_fields','name','mod_data'),(81,'data','templates saved','data','name','mod_data'),(82,'data','templates def','data','name','mod_data'),(83,'feedback','startcomplete','feedback','name','mod_feedback'),(84,'feedback','submit','feedback','name','mod_feedback'),(85,'feedback','delete','feedback','name','mod_feedback'),(86,'feedback','view','feedback','name','mod_feedback'),(87,'feedback','view all','course','shortname','mod_feedback'),(88,'folder','view','folder','name','mod_folder'),(89,'folder','view all','folder','name','mod_folder'),(90,'folder','update','folder','name','mod_folder'),(91,'folder','add','folder','name','mod_folder'),(92,'forum','add','forum','name','mod_forum'),(93,'forum','update','forum','name','mod_forum'),(94,'forum','add discussion','forum_discussions','name','mod_forum'),(95,'forum','add post','forum_posts','subject','mod_forum'),(96,'forum','update post','forum_posts','subject','mod_forum'),(97,'forum','user report','user','CONCAT(firstname, \' \', lastname)','mod_forum'),(98,'forum','move discussion','forum_discussions','name','mod_forum'),(99,'forum','view subscribers','forum','name','mod_forum'),(100,'forum','view discussion','forum_discussions','name','mod_forum'),(101,'forum','view forum','forum','name','mod_forum'),(102,'forum','subscribe','forum','name','mod_forum'),(103,'forum','unsubscribe','forum','name','mod_forum'),(104,'glossary','add','glossary','name','mod_glossary'),(105,'glossary','update','glossary','name','mod_glossary'),(106,'glossary','view','glossary','name','mod_glossary'),(107,'glossary','view all','glossary','name','mod_glossary'),(108,'glossary','add entry','glossary','name','mod_glossary'),(109,'glossary','update entry','glossary','name','mod_glossary'),(110,'glossary','add category','glossary','name','mod_glossary'),(111,'glossary','update category','glossary','name','mod_glossary'),(112,'glossary','delete category','glossary','name','mod_glossary'),(113,'glossary','approve entry','glossary','name','mod_glossary'),(114,'glossary','disapprove entry','glossary','name','mod_glossary'),(115,'glossary','view entry','glossary_entries','concept','mod_glossary'),(116,'imscp','view','imscp','name','mod_imscp'),(117,'imscp','view all','imscp','name','mod_imscp'),(118,'imscp','update','imscp','name','mod_imscp'),(119,'imscp','add','imscp','name','mod_imscp'),(120,'label','add','label','name','mod_label'),(121,'label','update','label','name','mod_label'),(122,'lesson','start','lesson','name','mod_lesson'),(123,'lesson','end','lesson','name','mod_lesson'),(124,'lesson','view','lesson_pages','title','mod_lesson'),(125,'lti','view','lti','name','mod_lti'),(126,'lti','launch','lti','name','mod_lti'),(127,'lti','view all','lti','name','mod_lti'),(128,'page','view','page','name','mod_page'),(129,'page','view all','page','name','mod_page'),(130,'page','update','page','name','mod_page'),(131,'page','add','page','name','mod_page'),(132,'quiz','add','quiz','name','mod_quiz'),(133,'quiz','update','quiz','name','mod_quiz'),(134,'quiz','view','quiz','name','mod_quiz'),(135,'quiz','report','quiz','name','mod_quiz'),(136,'quiz','attempt','quiz','name','mod_quiz'),(137,'quiz','submit','quiz','name','mod_quiz'),(138,'quiz','review','quiz','name','mod_quiz'),(139,'quiz','editquestions','quiz','name','mod_quiz'),(140,'quiz','preview','quiz','name','mod_quiz'),(141,'quiz','start attempt','quiz','name','mod_quiz'),(142,'quiz','close attempt','quiz','name','mod_quiz'),(143,'quiz','continue attempt','quiz','name','mod_quiz'),(144,'quiz','edit override','quiz','name','mod_quiz'),(145,'quiz','delete override','quiz','name','mod_quiz'),(146,'quiz','view summary','quiz','name','mod_quiz'),(147,'resource','view','resource','name','mod_resource'),(148,'resource','view all','resource','name','mod_resource'),(149,'resource','update','resource','name','mod_resource'),(150,'resource','add','resource','name','mod_resource'),(151,'scorm','view','scorm','name','mod_scorm'),(152,'scorm','review','scorm','name','mod_scorm'),(153,'scorm','update','scorm','name','mod_scorm'),(154,'scorm','add','scorm','name','mod_scorm'),(155,'survey','add','survey','name','mod_survey'),(156,'survey','update','survey','name','mod_survey'),(157,'survey','download','survey','name','mod_survey'),(158,'survey','view form','survey','name','mod_survey'),(159,'survey','view graph','survey','name','mod_survey'),(160,'survey','view report','survey','name','mod_survey'),(161,'survey','submit','survey','name','mod_survey'),(162,'url','view','url','name','mod_url'),(163,'url','view all','url','name','mod_url'),(164,'url','update','url','name','mod_url'),(165,'url','add','url','name','mod_url'),(166,'workshop','add','workshop','name','mod_workshop'),(167,'workshop','update','workshop','name','mod_workshop'),(168,'workshop','view','workshop','name','mod_workshop'),(169,'workshop','view all','workshop','name','mod_workshop'),(170,'workshop','add submission','workshop_submissions','title','mod_workshop'),(171,'workshop','update submission','workshop_submissions','title','mod_workshop'),(172,'workshop','view submission','workshop_submissions','title','mod_workshop'),(173,'workshop','add assessment','workshop_submissions','title','mod_workshop'),(174,'workshop','update assessment','workshop_submissions','title','mod_workshop'),(175,'workshop','add example','workshop_submissions','title','mod_workshop'),(176,'workshop','update example','workshop_submissions','title','mod_workshop'),(177,'workshop','view example','workshop_submissions','title','mod_workshop'),(178,'workshop','add reference assessment','workshop_submissions','title','mod_workshop'),(179,'workshop','update reference assessment','workshop_submissions','title','mod_workshop'),(180,'workshop','add example assessment','workshop_submissions','title','mod_workshop'),(181,'workshop','update example assessment','workshop_submissions','title','mod_workshop'),(182,'workshop','update aggregate grades','workshop','name','mod_workshop'),(183,'workshop','update clear aggregated grades','workshop','name','mod_workshop'),(184,'workshop','update clear assessments','workshop','name','mod_workshop'),(185,'book','exportimscp','book','name','booktool_exportimscp'),(186,'book','print','book','name','booktool_print'),(187,'book','print chapter','book_chapters','title','booktool_print');

--
-- Table structure for table `mdl_log_queries`
--

CREATE TABLE `mdl_log_queries` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `qtype` mediumint(5) NOT NULL,
  `sqltext` longtext NOT NULL,
  `sqlparams` longtext,
  `error` mediumint(5) NOT NULL DEFAULT '0',
  `info` longtext,
  `backtrace` longtext,
  `exectime` decimal(10,5) NOT NULL,
  `timelogged` bigint(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Logged database queries.';

--
-- Dumping data for table `mdl_log_queries`
--


--
-- Table structure for table `mdl_logstore_standard_log`
--

CREATE TABLE `mdl_logstore_standard_log` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `eventname` varchar(255) NOT NULL DEFAULT '',
  `component` varchar(100) NOT NULL DEFAULT '',
  `action` varchar(100) NOT NULL DEFAULT '',
  `target` varchar(100) NOT NULL DEFAULT '',
  `objecttable` varchar(50) DEFAULT NULL,
  `objectid` bigint(10) DEFAULT NULL,
  `crud` varchar(1) NOT NULL DEFAULT '',
  `edulevel` tinyint(1) NOT NULL,
  `contextid` bigint(10) NOT NULL,
  `contextlevel` bigint(10) NOT NULL,
  `contextinstanceid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `courseid` bigint(10) DEFAULT NULL,
  `relateduserid` bigint(10) DEFAULT NULL,
  `anonymous` tinyint(1) NOT NULL DEFAULT '0',
  `other` longtext,
  `timecreated` bigint(10) NOT NULL,
  `origin` varchar(10) DEFAULT NULL,
  `ip` varchar(45) DEFAULT NULL,
  `realuserid` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_logsstanlog_tim_ix` (`timecreated`),
  KEY `mdl_logsstanlog_couanotim_ix` (`courseid`,`anonymous`,`timecreated`),
  KEY `mdl_logsstanlog_useconconcr_ix` (`userid`,`contextlevel`,`contextinstanceid`,`crud`,`edulevel`,`timecreated`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='Standard log table';

--
-- Dumping data for table `mdl_logstore_standard_log`
--

INSERT INTO `mdl_logstore_standard_log` VALUES (1,'\\core\\event\\user_loggedin','core','loggedin','user','user',2,'r',0,1,10,0,2,0,NULL,0,'a:1:{s:8:\"username\";s:5:\"admin\";}',1442833655,'web','10.2.1.254',NULL),(2,'\\core\\event\\user_password_updated','core','updated','user_password',NULL,NULL,'u',0,9,30,2,2,0,2,0,'a:1:{s:14:\"forgottenreset\";b:0;}',1442833729,'web','10.2.1.254',NULL),(3,'\\core\\event\\user_updated','core','updated','user','user',2,'u',0,9,30,2,2,0,2,0,'N;',1442833729,'web','10.2.1.254',NULL),(4,'\\core\\event\\course_viewed','core','viewed','course',NULL,NULL,'r',2,6,50,1,2,1,NULL,0,'N;',1442833771,'web','10.2.1.254',NULL);

--
-- Table structure for table `mdl_lti`
--

CREATE TABLE `mdl_lti` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `intro` longtext,
  `introformat` smallint(4) DEFAULT '0',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `typeid` bigint(10) DEFAULT NULL,
  `toolurl` longtext NOT NULL,
  `securetoolurl` longtext,
  `instructorchoicesendname` tinyint(1) DEFAULT NULL,
  `instructorchoicesendemailaddr` tinyint(1) DEFAULT NULL,
  `instructorchoiceallowroster` tinyint(1) DEFAULT NULL,
  `instructorchoiceallowsetting` tinyint(1) DEFAULT NULL,
  `instructorcustomparameters` varchar(255) DEFAULT NULL,
  `instructorchoiceacceptgrades` tinyint(1) DEFAULT NULL,
  `grade` bigint(10) NOT NULL DEFAULT '100',
  `launchcontainer` tinyint(2) NOT NULL DEFAULT '1',
  `resourcekey` varchar(255) DEFAULT NULL,
  `password` varchar(255) DEFAULT NULL,
  `debuglaunch` tinyint(1) NOT NULL DEFAULT '0',
  `showtitlelaunch` tinyint(1) NOT NULL DEFAULT '0',
  `showdescriptionlaunch` tinyint(1) NOT NULL DEFAULT '0',
  `servicesalt` varchar(40) DEFAULT NULL,
  `icon` longtext,
  `secureicon` longtext,
  PRIMARY KEY (`id`),
  KEY `mdl_lti_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='This table contains Basic LTI activities instances';

--
-- Dumping data for table `mdl_lti`
--


--
-- Table structure for table `mdl_lti_submission`
--

CREATE TABLE `mdl_lti_submission` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `ltiid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `datesubmitted` bigint(10) NOT NULL,
  `dateupdated` bigint(10) NOT NULL,
  `gradepercent` decimal(10,5) NOT NULL,
  `originalgrade` decimal(10,5) NOT NULL,
  `launchid` bigint(10) NOT NULL,
  `state` tinyint(2) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_ltisubm_lti_ix` (`ltiid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Keeps track of individual submissions for LTI activities.';

--
-- Dumping data for table `mdl_lti_submission`
--


--
-- Table structure for table `mdl_lti_tool_proxies`
--

CREATE TABLE `mdl_lti_tool_proxies` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL DEFAULT 'Tool Provider',
  `regurl` longtext,
  `state` tinyint(2) NOT NULL DEFAULT '1',
  `guid` varchar(255) DEFAULT NULL,
  `secret` varchar(255) DEFAULT NULL,
  `vendorcode` varchar(255) DEFAULT NULL,
  `capabilityoffered` longtext NOT NULL,
  `serviceoffered` longtext NOT NULL,
  `toolproxy` longtext,
  `createdby` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_ltitoolprox_gui_uix` (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='LTI tool proxy registrations';

--
-- Dumping data for table `mdl_lti_tool_proxies`
--


--
-- Table structure for table `mdl_lti_tool_settings`
--

CREATE TABLE `mdl_lti_tool_settings` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `toolproxyid` bigint(10) NOT NULL,
  `course` bigint(10) DEFAULT NULL,
  `coursemoduleid` bigint(10) DEFAULT NULL,
  `settings` longtext NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_ltitoolsett_too_ix` (`toolproxyid`),
  KEY `mdl_ltitoolsett_cou_ix` (`course`),
  KEY `mdl_ltitoolsett_cou2_ix` (`coursemoduleid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='LTI tool setting values';

--
-- Dumping data for table `mdl_lti_tool_settings`
--


--
-- Table structure for table `mdl_lti_types`
--

CREATE TABLE `mdl_lti_types` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL DEFAULT 'basiclti Activity',
  `baseurl` longtext NOT NULL,
  `tooldomain` varchar(255) NOT NULL DEFAULT '',
  `state` tinyint(2) NOT NULL DEFAULT '2',
  `course` bigint(10) NOT NULL,
  `coursevisible` tinyint(1) NOT NULL DEFAULT '0',
  `toolproxyid` bigint(10) DEFAULT NULL,
  `enabledcapability` longtext,
  `parameter` longtext,
  `icon` longtext,
  `secureicon` longtext,
  `createdby` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_ltitype_cou_ix` (`course`),
  KEY `mdl_ltitype_too_ix` (`tooldomain`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Basic LTI pre-configured activities';

--
-- Dumping data for table `mdl_lti_types`
--


--
-- Table structure for table `mdl_lti_types_config`
--

CREATE TABLE `mdl_lti_types_config` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `typeid` bigint(10) NOT NULL,
  `name` varchar(100) NOT NULL DEFAULT '',
  `value` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_ltitypeconf_typ_ix` (`typeid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Basic LTI types configuration';

--
-- Dumping data for table `mdl_lti_types_config`
--


--
-- Table structure for table `mdl_message`
--

CREATE TABLE `mdl_message` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `useridfrom` bigint(10) NOT NULL DEFAULT '0',
  `useridto` bigint(10) NOT NULL DEFAULT '0',
  `subject` longtext,
  `fullmessage` longtext,
  `fullmessageformat` smallint(4) DEFAULT '0',
  `fullmessagehtml` longtext,
  `smallmessage` longtext,
  `notification` tinyint(1) DEFAULT '0',
  `contexturl` longtext,
  `contexturlname` longtext,
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_mess_use_ix` (`useridfrom`),
  KEY `mdl_mess_use2_ix` (`useridto`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores all unread messages';

--
-- Dumping data for table `mdl_message`
--


--
-- Table structure for table `mdl_message_airnotifier_devices`
--

CREATE TABLE `mdl_message_airnotifier_devices` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userdeviceid` bigint(10) NOT NULL,
  `enable` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_messairndevi_use_uix` (`userdeviceid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Store information about the devices registered in Airnotifie';

--
-- Dumping data for table `mdl_message_airnotifier_devices`
--


--
-- Table structure for table `mdl_message_contacts`
--

CREATE TABLE `mdl_message_contacts` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `contactid` bigint(10) NOT NULL DEFAULT '0',
  `blocked` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_messcont_usecon_uix` (`userid`,`contactid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Maintains lists of relationships between users';

--
-- Dumping data for table `mdl_message_contacts`
--


--
-- Table structure for table `mdl_message_processors`
--

CREATE TABLE `mdl_message_processors` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(166) NOT NULL DEFAULT '',
  `enabled` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='List of message output plugins';

--
-- Dumping data for table `mdl_message_processors`
--

INSERT INTO `mdl_message_processors` VALUES (1,'airnotifier',0),(2,'email',1),(3,'jabber',1),(4,'popup',1);

--
-- Table structure for table `mdl_message_providers`
--

CREATE TABLE `mdl_message_providers` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL DEFAULT '',
  `component` varchar(200) NOT NULL DEFAULT '',
  `capability` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_messprov_comnam_uix` (`component`,`name`)
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8 COMMENT='This table stores the message providers (modules and core sy';

--
-- Dumping data for table `mdl_message_providers`
--

INSERT INTO `mdl_message_providers` VALUES (1,'notices','moodle','moodle/site:config'),(2,'errors','moodle','moodle/site:config'),(3,'availableupdate','moodle','moodle/site:config'),(4,'instantmessage','moodle',NULL),(5,'backup','moodle','moodle/site:config'),(6,'courserequested','moodle','moodle/site:approvecourse'),(7,'courserequestapproved','moodle','moodle/course:request'),(8,'courserequestrejected','moodle','moodle/course:request'),(9,'badgerecipientnotice','moodle','moodle/badges:earnbadge'),(10,'badgecreatornotice','moodle',NULL),(11,'assign_notification','mod_assign',NULL),(12,'assignment_updates','mod_assignment',NULL),(13,'submission','mod_feedback',NULL),(14,'message','mod_feedback',NULL),(15,'posts','mod_forum',NULL),(16,'graded_essay','mod_lesson',NULL),(17,'submission','mod_quiz','mod/quiz:emailnotifysubmission'),(18,'confirmation','mod_quiz','mod/quiz:emailconfirmsubmission'),(19,'attempt_overdue','mod_quiz','mod/quiz:emailwarnoverdue'),(20,'flatfile_enrolment','enrol_flatfile',NULL),(21,'imsenterprise_enrolment','enrol_imsenterprise',NULL),(22,'expiry_notification','enrol_manual',NULL),(23,'paypal_enrolment','enrol_paypal',NULL),(24,'expiry_notification','enrol_self',NULL),(25,'invalidrecipienthandler','tool_messageinbound',NULL),(26,'messageprocessingerror','tool_messageinbound',NULL),(27,'messageprocessingsuccess','tool_messageinbound',NULL),(28,'notification','tool_monitor','tool/monitor:subscribe');

--
-- Table structure for table `mdl_message_read`
--

CREATE TABLE `mdl_message_read` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `useridfrom` bigint(10) NOT NULL DEFAULT '0',
  `useridto` bigint(10) NOT NULL DEFAULT '0',
  `subject` longtext,
  `fullmessage` longtext,
  `fullmessageformat` smallint(4) DEFAULT '0',
  `fullmessagehtml` longtext,
  `smallmessage` longtext,
  `notification` tinyint(1) DEFAULT '0',
  `contexturl` longtext,
  `contexturlname` longtext,
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timeread` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_messread_use_ix` (`useridfrom`),
  KEY `mdl_messread_use2_ix` (`useridto`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores all messages that have been read';

--
-- Dumping data for table `mdl_message_read`
--


--
-- Table structure for table `mdl_message_working`
--

CREATE TABLE `mdl_message_working` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `unreadmessageid` bigint(10) NOT NULL,
  `processorid` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_messwork_unr_ix` (`unreadmessageid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Lists all the messages and processors that need to be proces';

--
-- Dumping data for table `mdl_message_working`
--


--
-- Table structure for table `mdl_messageinbound_datakeys`
--

CREATE TABLE `mdl_messageinbound_datakeys` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `handler` bigint(10) NOT NULL,
  `datavalue` bigint(10) NOT NULL,
  `datakey` varchar(64) DEFAULT NULL,
  `timecreated` bigint(10) NOT NULL,
  `expires` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_messdata_handat_uix` (`handler`,`datavalue`),
  KEY `mdl_messdata_han_ix` (`handler`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Inbound Message data item secret keys.';

--
-- Dumping data for table `mdl_messageinbound_datakeys`
--


--
-- Table structure for table `mdl_messageinbound_handlers`
--

CREATE TABLE `mdl_messageinbound_handlers` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `component` varchar(100) NOT NULL DEFAULT '',
  `classname` varchar(255) NOT NULL DEFAULT '',
  `defaultexpiration` bigint(10) NOT NULL DEFAULT '86400',
  `validateaddress` tinyint(1) NOT NULL DEFAULT '1',
  `enabled` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_messhand_cla_uix` (`classname`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='Inbound Message Handler definitions.';

--
-- Dumping data for table `mdl_messageinbound_handlers`
--

INSERT INTO `mdl_messageinbound_handlers` VALUES (1,'core','\\core\\message\\inbound\\private_files_handler',604800,1,0),(2,'mod_forum','\\mod_forum\\message\\inbound\\reply_handler',604800,1,0),(3,'tool_messageinbound','\\tool_messageinbound\\message\\inbound\\invalid_recipient_handler',604800,0,1);

--
-- Table structure for table `mdl_messageinbound_messagelist`
--

CREATE TABLE `mdl_messageinbound_messagelist` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `messageid` longtext NOT NULL,
  `userid` bigint(10) NOT NULL,
  `address` longtext NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_messmess_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='A list of message IDs for existing replies';

--
-- Dumping data for table `mdl_messageinbound_messagelist`
--


--
-- Table structure for table `mdl_mnet_application`
--

CREATE TABLE `mdl_mnet_application` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL DEFAULT '',
  `display_name` varchar(50) NOT NULL DEFAULT '',
  `xmlrpc_server_url` varchar(255) NOT NULL DEFAULT '',
  `sso_land_url` varchar(255) NOT NULL DEFAULT '',
  `sso_jump_url` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='Information about applications on remote hosts';

--
-- Dumping data for table `mdl_mnet_application`
--

INSERT INTO `mdl_mnet_application` VALUES (1,'moodle','Moodle','/mnet/xmlrpc/server.php','/auth/mnet/land.php','/auth/mnet/jump.php'),(2,'mahara','Mahara','/api/xmlrpc/server.php','/auth/xmlrpc/land.php','/auth/xmlrpc/jump.php');

--
-- Table structure for table `mdl_mnet_host`
--

CREATE TABLE `mdl_mnet_host` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `deleted` tinyint(1) NOT NULL DEFAULT '0',
  `wwwroot` varchar(255) NOT NULL DEFAULT '',
  `ip_address` varchar(45) NOT NULL DEFAULT '',
  `name` varchar(80) NOT NULL DEFAULT '',
  `public_key` longtext NOT NULL,
  `public_key_expires` bigint(10) NOT NULL DEFAULT '0',
  `transport` tinyint(2) NOT NULL DEFAULT '0',
  `portno` mediumint(5) NOT NULL DEFAULT '0',
  `last_connect_time` bigint(10) NOT NULL DEFAULT '0',
  `last_log_id` bigint(10) NOT NULL DEFAULT '0',
  `force_theme` tinyint(1) NOT NULL DEFAULT '0',
  `theme` varchar(100) DEFAULT NULL,
  `applicationid` bigint(10) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `mdl_mnethost_app_ix` (`applicationid`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='Information about the local and remote hosts for RPC';

--
-- Dumping data for table `mdl_mnet_host`
--

INSERT INTO `mdl_mnet_host` VALUES (1,0,'http://moodle','10.2.1.254','','',0,0,0,0,0,0,NULL,1),(2,0,'','','All Hosts','',0,0,0,0,0,0,NULL,1);

--
-- Table structure for table `mdl_mnet_host2service`
--

CREATE TABLE `mdl_mnet_host2service` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `hostid` bigint(10) NOT NULL DEFAULT '0',
  `serviceid` bigint(10) NOT NULL DEFAULT '0',
  `publish` tinyint(1) NOT NULL DEFAULT '0',
  `subscribe` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_mnethost_hosser_uix` (`hostid`,`serviceid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Information about the services for a given host';

--
-- Dumping data for table `mdl_mnet_host2service`
--


--
-- Table structure for table `mdl_mnet_log`
--

CREATE TABLE `mdl_mnet_log` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `hostid` bigint(10) NOT NULL DEFAULT '0',
  `remoteid` bigint(10) NOT NULL DEFAULT '0',
  `time` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `ip` varchar(45) NOT NULL DEFAULT '',
  `course` bigint(10) NOT NULL DEFAULT '0',
  `coursename` varchar(40) NOT NULL DEFAULT '',
  `module` varchar(20) NOT NULL DEFAULT '',
  `cmid` bigint(10) NOT NULL DEFAULT '0',
  `action` varchar(40) NOT NULL DEFAULT '',
  `url` varchar(100) NOT NULL DEFAULT '',
  `info` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_mnetlog_hosusecou_ix` (`hostid`,`userid`,`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Store session data from users migrating to other sites';

--
-- Dumping data for table `mdl_mnet_log`
--


--
-- Table structure for table `mdl_mnet_remote_rpc`
--

CREATE TABLE `mdl_mnet_remote_rpc` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `functionname` varchar(40) NOT NULL DEFAULT '',
  `xmlrpcpath` varchar(80) NOT NULL DEFAULT '',
  `plugintype` varchar(20) NOT NULL DEFAULT '',
  `pluginname` varchar(20) NOT NULL DEFAULT '',
  `enabled` tinyint(1) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COMMENT='This table describes functions that might be called remotely';

--
-- Dumping data for table `mdl_mnet_remote_rpc`
--

INSERT INTO `mdl_mnet_remote_rpc` VALUES (1,'user_authorise','auth/mnet/auth.php/user_authorise','auth','mnet',1),(2,'keepalive_server','auth/mnet/auth.php/keepalive_server','auth','mnet',1),(3,'kill_children','auth/mnet/auth.php/kill_children','auth','mnet',1),(4,'refresh_log','auth/mnet/auth.php/refresh_log','auth','mnet',1),(5,'fetch_user_image','auth/mnet/auth.php/fetch_user_image','auth','mnet',1),(6,'fetch_theme_info','auth/mnet/auth.php/fetch_theme_info','auth','mnet',1),(7,'update_enrolments','auth/mnet/auth.php/update_enrolments','auth','mnet',1),(8,'keepalive_client','auth/mnet/auth.php/keepalive_client','auth','mnet',1),(9,'kill_child','auth/mnet/auth.php/kill_child','auth','mnet',1),(10,'available_courses','enrol/mnet/enrol.php/available_courses','enrol','mnet',1),(11,'user_enrolments','enrol/mnet/enrol.php/user_enrolments','enrol','mnet',1),(12,'enrol_user','enrol/mnet/enrol.php/enrol_user','enrol','mnet',1),(13,'unenrol_user','enrol/mnet/enrol.php/unenrol_user','enrol','mnet',1),(14,'course_enrolments','enrol/mnet/enrol.php/course_enrolments','enrol','mnet',1),(15,'send_content_intent','portfolio/mahara/lib.php/send_content_intent','portfolio','mahara',1),(16,'send_content_ready','portfolio/mahara/lib.php/send_content_ready','portfolio','mahara',1);

--
-- Table structure for table `mdl_mnet_remote_service2rpc`
--

CREATE TABLE `mdl_mnet_remote_service2rpc` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `serviceid` bigint(10) NOT NULL DEFAULT '0',
  `rpcid` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_mnetremoserv_rpcser_uix` (`rpcid`,`serviceid`)
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COMMENT='Group functions or methods under a service';

--
-- Dumping data for table `mdl_mnet_remote_service2rpc`
--

INSERT INTO `mdl_mnet_remote_service2rpc` VALUES (1,1,1),(2,1,2),(3,1,3),(4,1,4),(5,1,5),(6,1,6),(7,1,7),(8,2,8),(9,2,9),(10,3,10),(11,3,11),(12,3,12),(13,3,13),(14,3,14),(15,4,15),(16,4,16);

--
-- Table structure for table `mdl_mnet_rpc`
--

CREATE TABLE `mdl_mnet_rpc` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `functionname` varchar(40) NOT NULL DEFAULT '',
  `xmlrpcpath` varchar(80) NOT NULL DEFAULT '',
  `plugintype` varchar(20) NOT NULL DEFAULT '',
  `pluginname` varchar(20) NOT NULL DEFAULT '',
  `enabled` tinyint(1) NOT NULL DEFAULT '0',
  `help` longtext NOT NULL,
  `profile` longtext NOT NULL,
  `filename` varchar(100) NOT NULL DEFAULT '',
  `classname` varchar(150) DEFAULT NULL,
  `static` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_mnetrpc_enaxml_ix` (`enabled`,`xmlrpcpath`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='Functions or methods that we may publish or subscribe to';

--
-- Dumping data for table `mdl_mnet_rpc`
--

INSERT INTO `mdl_mnet_rpc` VALUES (1,'user_authorise','auth/mnet/auth.php/user_authorise','auth','mnet',1,'Return user data for the provided token, compare with user_agent string.','a:2:{s:10:\"parameters\";a:2:{i:0;a:3:{s:4:\"name\";s:5:\"token\";s:4:\"type\";s:6:\"string\";s:11:\"description\";s:37:\"The unique ID provided by remotehost.\";}i:1;a:3:{s:4:\"name\";s:9:\"useragent\";s:4:\"type\";s:6:\"string\";s:11:\"description\";s:0:\"\";}}s:6:\"return\";a:2:{s:4:\"type\";s:5:\"array\";s:11:\"description\";s:44:\"$userdata Array of user info for remote host\";}}','auth.php','auth_plugin_mnet',0),(2,'keepalive_server','auth/mnet/auth.php/keepalive_server','auth','mnet',1,'Receives an array of usernames from a remote machine and prods their\nsessions to keep them alive','a:2:{s:10:\"parameters\";a:1:{i:0;a:3:{s:4:\"name\";s:5:\"array\";s:4:\"type\";s:5:\"array\";s:11:\"description\";s:21:\"An array of usernames\";}}s:6:\"return\";a:2:{s:4:\"type\";s:6:\"string\";s:11:\"description\";s:28:\"\"All ok\" or an error message\";}}','auth.php','auth_plugin_mnet',0),(3,'kill_children','auth/mnet/auth.php/kill_children','auth','mnet',1,'The IdP uses this function to kill child sessions on other hosts','a:2:{s:10:\"parameters\";a:2:{i:0;a:3:{s:4:\"name\";s:8:\"username\";s:4:\"type\";s:6:\"string\";s:11:\"description\";s:28:\"Username for session to kill\";}i:1;a:3:{s:4:\"name\";s:9:\"useragent\";s:4:\"type\";s:6:\"string\";s:11:\"description\";s:0:\"\";}}s:6:\"return\";a:2:{s:4:\"type\";s:6:\"string\";s:11:\"description\";s:39:\"A plaintext report of what has happened\";}}','auth.php','auth_plugin_mnet',0),(4,'refresh_log','auth/mnet/auth.php/refresh_log','auth','mnet',1,'Receives an array of log entries from an SP and adds them to the mnet_log\ntable','a:2:{s:10:\"parameters\";a:1:{i:0;a:3:{s:4:\"name\";s:5:\"array\";s:4:\"type\";s:5:\"array\";s:11:\"description\";s:21:\"An array of usernames\";}}s:6:\"return\";a:2:{s:4:\"type\";s:6:\"string\";s:11:\"description\";s:28:\"\"All ok\" or an error message\";}}','auth.php','auth_plugin_mnet',0),(5,'fetch_user_image','auth/mnet/auth.php/fetch_user_image','auth','mnet',1,'Returns the user\'s profile image info\nIf the user exists and has a profile picture, the returned array will contain keys:\n f1          - the content of the default 100x100px image\n f1_mimetype - the mimetype of the f1 file\n f2          - the content of the 35x35px variant of the image\n f2_mimetype - the mimetype of the f2 file\nThe mimetype information was added in Moodle 2.0. In Moodle 1.x, images are always jpegs.','a:2:{s:10:\"parameters\";a:1:{i:0;a:3:{s:4:\"name\";s:8:\"username\";s:4:\"type\";s:3:\"int\";s:11:\"description\";s:18:\"The id of the user\";}}s:6:\"return\";a:2:{s:4:\"type\";s:5:\"array\";s:11:\"description\";s:84:\"false if user not found, empty array if no picture exists, array with data otherwise\";}}','auth.php','auth_plugin_mnet',0),(6,'fetch_theme_info','auth/mnet/auth.php/fetch_theme_info','auth','mnet',1,'Returns the theme information and logo url as strings.','a:2:{s:10:\"parameters\";a:0:{}s:6:\"return\";a:2:{s:4:\"type\";s:6:\"string\";s:11:\"description\";s:14:\"The theme info\";}}','auth.php','auth_plugin_mnet',0),(7,'update_enrolments','auth/mnet/auth.php/update_enrolments','auth','mnet',1,'Invoke this function _on_ the IDP to update it with enrolment info local to\nthe SP right after calling user_authorise()\nNormally called by the SP after calling user_authorise()','a:2:{s:10:\"parameters\";a:2:{i:0;a:3:{s:4:\"name\";s:8:\"username\";s:4:\"type\";s:6:\"string\";s:11:\"description\";s:12:\"The username\";}i:1;a:3:{s:4:\"name\";s:7:\"courses\";s:4:\"type\";s:5:\"array\";s:11:\"description\";s:0:\"\";}}s:6:\"return\";a:2:{s:4:\"type\";s:4:\"bool\";s:11:\"description\";s:0:\"\";}}','auth.php','auth_plugin_mnet',0),(8,'keepalive_client','auth/mnet/auth.php/keepalive_client','auth','mnet',1,'Poll the IdP server to let it know that a user it has authenticated is still\nonline','a:2:{s:10:\"parameters\";a:0:{}s:6:\"return\";a:2:{s:4:\"type\";s:4:\"void\";s:11:\"description\";s:0:\"\";}}','auth.php','auth_plugin_mnet',0),(9,'kill_child','auth/mnet/auth.php/kill_child','auth','mnet',1,'When the IdP requests that child sessions are terminated,\nthis function will be called on each of the child hosts. The machine that\ncalls the function (over xmlrpc) provides us with the mnethostid we need.','a:2:{s:10:\"parameters\";a:2:{i:0;a:3:{s:4:\"name\";s:8:\"username\";s:4:\"type\";s:6:\"string\";s:11:\"description\";s:28:\"Username for session to kill\";}i:1;a:3:{s:4:\"name\";s:9:\"useragent\";s:4:\"type\";s:6:\"string\";s:11:\"description\";s:0:\"\";}}s:6:\"return\";a:2:{s:4:\"type\";s:4:\"bool\";s:11:\"description\";s:15:\"True on success\";}}','auth.php','auth_plugin_mnet',0),(10,'available_courses','enrol/mnet/enrol.php/available_courses','enrol','mnet',1,'Returns list of courses that we offer to the caller for remote enrolment of their users\nSince Moodle 2.0, courses are made available for MNet peers by creating an instance\nof enrol_mnet plugin for the course. Hidden courses are not returned. If there are two\ninstances - one specific for the host and one for \'All hosts\', the setting of the specific\none is used. The id of the peer is kept in customint1, no other custom fields are used.','a:2:{s:10:\"parameters\";a:0:{}s:6:\"return\";a:2:{s:4:\"type\";s:5:\"array\";s:11:\"description\";s:0:\"\";}}','enrol.php','enrol_mnet_mnetservice_enrol',0),(11,'user_enrolments','enrol/mnet/enrol.php/user_enrolments','enrol','mnet',1,'This method has never been implemented in Moodle MNet API','a:2:{s:10:\"parameters\";a:0:{}s:6:\"return\";a:2:{s:4:\"type\";s:5:\"array\";s:11:\"description\";s:11:\"empty array\";}}','enrol.php','enrol_mnet_mnetservice_enrol',0),(12,'enrol_user','enrol/mnet/enrol.php/enrol_user','enrol','mnet',1,'Enrol remote user to our course\nIf we do not have local record for the remote user in our database,\nit gets created here.','a:2:{s:10:\"parameters\";a:2:{i:0;a:3:{s:4:\"name\";s:8:\"userdata\";s:4:\"type\";s:5:\"array\";s:11:\"description\";s:14:\"user details {\";}i:1;a:3:{s:4:\"name\";s:8:\"courseid\";s:4:\"type\";s:3:\"int\";s:11:\"description\";s:19:\"our local course id\";}}s:6:\"return\";a:2:{s:4:\"type\";s:4:\"bool\";s:11:\"description\";s:69:\"true if the enrolment has been successful, throws exception otherwise\";}}','enrol.php','enrol_mnet_mnetservice_enrol',0),(13,'unenrol_user','enrol/mnet/enrol.php/unenrol_user','enrol','mnet',1,'Unenrol remote user from our course\nOnly users enrolled via enrol_mnet plugin can be unenrolled remotely. If the\nremote user is enrolled into the local course via some other enrol plugin\n(enrol_manual for example), the remote host can\'t touch such enrolment. Please\ndo not report this behaviour as bug, it is a feature ;-)','a:2:{s:10:\"parameters\";a:2:{i:0;a:3:{s:4:\"name\";s:8:\"username\";s:4:\"type\";s:6:\"string\";s:11:\"description\";s:18:\"of the remote user\";}i:1;a:3:{s:4:\"name\";s:8:\"courseid\";s:4:\"type\";s:3:\"int\";s:11:\"description\";s:0:\"\";}}s:6:\"return\";a:2:{s:4:\"type\";s:4:\"bool\";s:11:\"description\";s:71:\"true if the unenrolment has been successful, throws exception otherwise\";}}','enrol.php','enrol_mnet_mnetservice_enrol',0),(14,'course_enrolments','enrol/mnet/enrol.php/course_enrolments','enrol','mnet',1,'Returns a list of users from the client server who are enrolled in our course\nSuitable instance of enrol_mnet must be created in the course. This method will not\nreturn any information about the enrolments in courses that are not available for\nremote enrolment, even if their users are enrolled into them via other plugin\n(note the difference from {@link self::user_enrolments()}).\nThis method will return enrolment information for users from hosts regardless\nthe enrolment plugin. It does not matter if the user was enrolled remotely by\ntheir admin or locally. Once the course is available for remote enrolments, we\nwill tell them everything about their users.\nIn Moodle 1.x the returned array used to be indexed by username. The side effect\nof MDL-19219 fix is that we do not need to use such index and therefore we can\nreturn all enrolment records. MNet clients 1.x will only use the last record for\nthe student, if she is enrolled via multiple plugins.','a:2:{s:10:\"parameters\";a:2:{i:0;a:3:{s:4:\"name\";s:8:\"courseid\";s:4:\"type\";s:3:\"int\";s:11:\"description\";s:16:\"ID of our course\";}i:1;a:3:{s:4:\"name\";s:5:\"roles\";s:4:\"type\";s:5:\"array\";s:11:\"description\";s:0:\"\";}}s:6:\"return\";a:2:{s:4:\"type\";s:5:\"array\";s:11:\"description\";s:0:\"\";}}','enrol.php','enrol_mnet_mnetservice_enrol',0),(15,'fetch_file','portfolio/mahara/lib.php/fetch_file','portfolio','mahara',1,'xmlrpc (mnet) function to get the file.\nreads in the file and returns it base_64 encoded\nso that it can be enrypted by mnet.','a:2:{s:10:\"parameters\";a:1:{i:0;a:3:{s:4:\"name\";s:5:\"token\";s:4:\"type\";s:6:\"string\";s:11:\"description\";s:56:\"the token recieved previously during send_content_intent\";}}s:6:\"return\";a:2:{s:4:\"type\";s:4:\"void\";s:11:\"description\";s:0:\"\";}}','lib.php','portfolio_plugin_mahara',1);

--
-- Table structure for table `mdl_mnet_service`
--

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) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='A service is a group of functions';

--
-- Dumping data for table `mdl_mnet_service`
--

INSERT INTO `mdl_mnet_service` VALUES (1,'sso_idp','','1',1),(2,'sso_sp','','1',1),(3,'mnet_enrol','','1',1),(4,'pf','','1',1);

--
-- Table structure for table `mdl_mnet_service2rpc`
--

CREATE TABLE `mdl_mnet_service2rpc` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `serviceid` bigint(10) NOT NULL DEFAULT '0',
  `rpcid` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_mnetserv_rpcser_uix` (`rpcid`,`serviceid`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='Group functions or methods under a service';

--
-- Dumping data for table `mdl_mnet_service2rpc`
--

INSERT INTO `mdl_mnet_service2rpc` VALUES (1,1,1),(2,1,2),(3,1,3),(4,1,4),(5,1,5),(6,1,6),(7,1,7),(8,2,8),(9,2,9),(10,3,10),(11,3,11),(12,3,12),(13,3,13),(14,3,14),(15,4,15);

--
-- Table structure for table `mdl_mnet_session`
--

CREATE TABLE `mdl_mnet_session` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `username` varchar(100) NOT NULL DEFAULT '',
  `token` varchar(40) NOT NULL DEFAULT '',
  `mnethostid` bigint(10) NOT NULL DEFAULT '0',
  `useragent` varchar(40) NOT NULL DEFAULT '',
  `confirm_timeout` bigint(10) NOT NULL DEFAULT '0',
  `session_id` varchar(40) NOT NULL DEFAULT '',
  `expires` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_mnetsess_tok_uix` (`token`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Store session data from users migrating to other sites';

--
-- Dumping data for table `mdl_mnet_session`
--


--
-- Table structure for table `mdl_mnet_sso_access_control`
--

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) NOT NULL DEFAULT '0',
  `accessctrl` varchar(20) NOT NULL DEFAULT 'allow',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_mnetssoaccecont_mneuse_uix` (`mnet_host_id`,`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Users by host permitted (or not) to login from a remote prov';

--
-- Dumping data for table `mdl_mnet_sso_access_control`
--


--
-- Table structure for table `mdl_mnetservice_enrol_courses`
--

CREATE TABLE `mdl_mnetservice_enrol_courses` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `hostid` bigint(10) NOT NULL,
  `remoteid` bigint(10) NOT NULL,
  `categoryid` bigint(10) NOT NULL,
  `categoryname` varchar(255) NOT NULL DEFAULT '',
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  `fullname` varchar(254) NOT NULL DEFAULT '',
  `shortname` varchar(100) NOT NULL DEFAULT '',
  `idnumber` varchar(100) NOT NULL DEFAULT '',
  `summary` longtext NOT NULL,
  `summaryformat` smallint(3) DEFAULT '0',
  `startdate` bigint(10) NOT NULL,
  `roleid` bigint(10) NOT NULL,
  `rolename` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_mnetenrocour_hosrem_uix` (`hostid`,`remoteid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Caches the information fetched via XML-RPC about courses on ';

--
-- Dumping data for table `mdl_mnetservice_enrol_courses`
--


--
-- Table structure for table `mdl_mnetservice_enrol_enrolments`
--

CREATE TABLE `mdl_mnetservice_enrol_enrolments` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `hostid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `remotecourseid` bigint(10) NOT NULL,
  `rolename` varchar(255) NOT NULL DEFAULT '',
  `enroltime` bigint(10) NOT NULL DEFAULT '0',
  `enroltype` varchar(20) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_mnetenroenro_use_ix` (`userid`),
  KEY `mdl_mnetenroenro_hos_ix` (`hostid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Caches the information about enrolments of our local users i';

--
-- Dumping data for table `mdl_mnetservice_enrol_enrolments`
--


--
-- Table structure for table `mdl_modules`
--

CREATE TABLE `mdl_modules` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) NOT NULL DEFAULT '',
  `cron` bigint(10) NOT NULL DEFAULT '0',
  `lastcron` bigint(10) NOT NULL DEFAULT '0',
  `search` varchar(255) NOT NULL DEFAULT '',
  `visible` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `mdl_modu_nam_ix` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8 COMMENT='modules available in the site';

--
-- Dumping data for table `mdl_modules`
--

INSERT INTO `mdl_modules` VALUES (1,'assign',60,0,'',1),(2,'assignment',60,0,'',0),(3,'book',0,0,'',1),(4,'chat',300,0,'',1),(5,'choice',0,0,'',1),(6,'data',0,0,'',1),(7,'feedback',0,0,'',0),(8,'folder',0,0,'',1),(9,'forum',0,0,'',1),(10,'glossary',0,0,'',1),(11,'imscp',0,0,'',1),(12,'label',0,0,'',1),(13,'lesson',0,0,'',1),(14,'lti',0,0,'',1),(15,'page',0,0,'',1),(16,'quiz',60,0,'',1),(17,'resource',0,0,'',1),(18,'scorm',300,0,'',1),(19,'survey',0,0,'',1),(20,'url',0,0,'',1),(21,'wiki',0,0,'',1),(22,'workshop',60,0,'',1);

--
-- Table structure for table `mdl_my_pages`
--

CREATE TABLE `mdl_my_pages` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) DEFAULT '0',
  `name` varchar(200) NOT NULL DEFAULT '',
  `private` tinyint(1) NOT NULL DEFAULT '1',
  `sortorder` mediumint(6) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_mypage_usepri_ix` (`userid`,`private`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='Extra user pages for the My Moodle system';

--
-- Dumping data for table `mdl_my_pages`
--

INSERT INTO `mdl_my_pages` VALUES (1,NULL,'__default',0,0),(2,NULL,'__default',1,0);

--
-- Table structure for table `mdl_page`
--

CREATE TABLE `mdl_page` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `intro` longtext,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `content` longtext,
  `contentformat` smallint(4) NOT NULL DEFAULT '0',
  `legacyfiles` smallint(4) NOT NULL DEFAULT '0',
  `legacyfileslast` bigint(10) DEFAULT NULL,
  `display` smallint(4) NOT NULL DEFAULT '0',
  `displayoptions` longtext,
  `revision` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_page_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Each record is one page and its config data';

--
-- Dumping data for table `mdl_page`
--


--
-- Table structure for table `mdl_portfolio_instance`
--

CREATE TABLE `mdl_portfolio_instance` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `plugin` varchar(50) NOT NULL DEFAULT '',
  `name` varchar(255) NOT NULL DEFAULT '',
  `visible` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='base table (not including config data) for instances of port';

--
-- Dumping data for table `mdl_portfolio_instance`
--


--
-- Table structure for table `mdl_portfolio_instance_config`
--

CREATE TABLE `mdl_portfolio_instance_config` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `instance` bigint(10) NOT NULL,
  `name` varchar(255) NOT NULL DEFAULT '',
  `value` longtext,
  PRIMARY KEY (`id`),
  KEY `mdl_portinstconf_nam_ix` (`name`),
  KEY `mdl_portinstconf_ins_ix` (`instance`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='config for portfolio plugin instances';

--
-- Dumping data for table `mdl_portfolio_instance_config`
--


--
-- Table structure for table `mdl_portfolio_instance_user`
--

CREATE TABLE `mdl_portfolio_instance_user` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `instance` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `name` varchar(255) NOT NULL DEFAULT '',
  `value` longtext,
  PRIMARY KEY (`id`),
  KEY `mdl_portinstuser_ins_ix` (`instance`),
  KEY `mdl_portinstuser_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='user data for portfolio instances.';

--
-- Dumping data for table `mdl_portfolio_instance_user`
--


--
-- Table structure for table `mdl_portfolio_log`
--

CREATE TABLE `mdl_portfolio_log` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL,
  `time` bigint(10) NOT NULL,
  `portfolio` bigint(10) NOT NULL,
  `caller_class` varchar(150) NOT NULL DEFAULT '',
  `caller_file` varchar(255) NOT NULL DEFAULT '',
  `caller_component` varchar(255) DEFAULT NULL,
  `caller_sha1` varchar(255) NOT NULL DEFAULT '',
  `tempdataid` bigint(10) NOT NULL DEFAULT '0',
  `returnurl` varchar(255) NOT NULL DEFAULT '',
  `continueurl` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_portlog_use_ix` (`userid`),
  KEY `mdl_portlog_por_ix` (`portfolio`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='log of portfolio transfers (used to later check for duplicat';

--
-- Dumping data for table `mdl_portfolio_log`
--


--
-- Table structure for table `mdl_portfolio_mahara_queue`
--

CREATE TABLE `mdl_portfolio_mahara_queue` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `transferid` bigint(10) NOT NULL,
  `token` varchar(50) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_portmahaqueu_tok_ix` (`token`),
  KEY `mdl_portmahaqueu_tra_ix` (`transferid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='maps mahara tokens to transfer ids';

--
-- Dumping data for table `mdl_portfolio_mahara_queue`
--


--
-- Table structure for table `mdl_portfolio_tempdata`
--

CREATE TABLE `mdl_portfolio_tempdata` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `data` longtext,
  `expirytime` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `instance` bigint(10) DEFAULT '0',
  `queued` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_porttemp_use_ix` (`userid`),
  KEY `mdl_porttemp_ins_ix` (`instance`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='stores temporary data for portfolio exports. the id of this ';

--
-- Dumping data for table `mdl_portfolio_tempdata`
--


--
-- Table structure for table `mdl_post`
--

CREATE TABLE `mdl_post` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `module` varchar(20) NOT NULL DEFAULT '',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `groupid` bigint(10) NOT NULL DEFAULT '0',
  `moduleid` bigint(10) NOT NULL DEFAULT '0',
  `coursemoduleid` bigint(10) NOT NULL DEFAULT '0',
  `subject` varchar(128) NOT NULL DEFAULT '',
  `summary` longtext,
  `content` longtext,
  `uniquehash` varchar(255) NOT NULL DEFAULT '',
  `rating` bigint(10) NOT NULL DEFAULT '0',
  `format` bigint(10) NOT NULL DEFAULT '0',
  `summaryformat` tinyint(2) NOT NULL DEFAULT '0',
  `attachment` varchar(100) DEFAULT NULL,
  `publishstate` varchar(20) NOT NULL DEFAULT 'draft',
  `lastmodified` bigint(10) NOT NULL DEFAULT '0',
  `created` bigint(10) NOT NULL DEFAULT '0',
  `usermodified` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_post_iduse_uix` (`id`,`userid`),
  KEY `mdl_post_las_ix` (`lastmodified`),
  KEY `mdl_post_mod_ix` (`module`),
  KEY `mdl_post_sub_ix` (`subject`),
  KEY `mdl_post_use_ix` (`usermodified`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Generic post table to hold data blog entries etc in differen';

--
-- Dumping data for table `mdl_post`
--


--
-- Table structure for table `mdl_profiling`
--

CREATE TABLE `mdl_profiling` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `runid` varchar(32) NOT NULL DEFAULT '',
  `url` varchar(255) NOT NULL DEFAULT '',
  `data` longtext NOT NULL,
  `totalexecutiontime` bigint(10) NOT NULL,
  `totalcputime` bigint(10) NOT NULL,
  `totalcalls` bigint(10) NOT NULL,
  `totalmemory` bigint(10) NOT NULL,
  `runreference` tinyint(2) NOT NULL DEFAULT '0',
  `runcomment` varchar(255) NOT NULL DEFAULT '',
  `timecreated` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_prof_run_uix` (`runid`),
  KEY `mdl_prof_urlrun_ix` (`url`,`runreference`),
  KEY `mdl_prof_timrun_ix` (`timecreated`,`runreference`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores the results of all the profiling runs';

--
-- Dumping data for table `mdl_profiling`
--


--
-- Table structure for table `mdl_qtype_essay_options`
--

CREATE TABLE `mdl_qtype_essay_options` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionid` bigint(10) NOT NULL,
  `responseformat` varchar(16) NOT NULL DEFAULT 'editor',
  `responserequired` tinyint(2) NOT NULL DEFAULT '1',
  `responsefieldlines` smallint(4) NOT NULL DEFAULT '15',
  `attachments` smallint(4) NOT NULL DEFAULT '0',
  `attachmentsrequired` smallint(4) NOT NULL DEFAULT '0',
  `graderinfo` longtext,
  `graderinfoformat` smallint(4) NOT NULL DEFAULT '0',
  `responsetemplate` longtext,
  `responsetemplateformat` smallint(4) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_qtypessaopti_que_uix` (`questionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Extra options for essay questions.';

--
-- Dumping data for table `mdl_qtype_essay_options`
--


--
-- Table structure for table `mdl_qtype_match_options`
--

CREATE TABLE `mdl_qtype_match_options` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionid` bigint(10) NOT NULL DEFAULT '0',
  `shuffleanswers` smallint(4) NOT NULL DEFAULT '1',
  `correctfeedback` longtext NOT NULL,
  `correctfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `partiallycorrectfeedback` longtext NOT NULL,
  `partiallycorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `incorrectfeedback` longtext NOT NULL,
  `incorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `shownumcorrect` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_qtypmatcopti_que_uix` (`questionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Defines the question-type specific options for matching ques';

--
-- Dumping data for table `mdl_qtype_match_options`
--


--
-- Table structure for table `mdl_qtype_match_subquestions`
--

CREATE TABLE `mdl_qtype_match_subquestions` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionid` bigint(10) NOT NULL DEFAULT '0',
  `questiontext` longtext NOT NULL,
  `questiontextformat` tinyint(2) NOT NULL DEFAULT '0',
  `answertext` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_qtypmatcsubq_que_ix` (`questionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='The subquestions that make up a matching question';

--
-- Dumping data for table `mdl_qtype_match_subquestions`
--


--
-- Table structure for table `mdl_qtype_multichoice_options`
--

CREATE TABLE `mdl_qtype_multichoice_options` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionid` bigint(10) NOT NULL DEFAULT '0',
  `layout` smallint(4) NOT NULL DEFAULT '0',
  `single` smallint(4) NOT NULL DEFAULT '0',
  `shuffleanswers` smallint(4) NOT NULL DEFAULT '1',
  `correctfeedback` longtext NOT NULL,
  `correctfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `partiallycorrectfeedback` longtext NOT NULL,
  `partiallycorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `incorrectfeedback` longtext NOT NULL,
  `incorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `answernumbering` varchar(10) NOT NULL DEFAULT 'abc',
  `shownumcorrect` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_qtypmultopti_que_uix` (`questionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Options for multiple choice questions';

--
-- Dumping data for table `mdl_qtype_multichoice_options`
--


--
-- Table structure for table `mdl_qtype_randomsamatch_options`
--

CREATE TABLE `mdl_qtype_randomsamatch_options` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionid` bigint(10) NOT NULL DEFAULT '0',
  `choose` bigint(10) NOT NULL DEFAULT '4',
  `subcats` tinyint(2) NOT NULL DEFAULT '1',
  `correctfeedback` longtext NOT NULL,
  `correctfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `partiallycorrectfeedback` longtext NOT NULL,
  `partiallycorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `incorrectfeedback` longtext NOT NULL,
  `incorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `shownumcorrect` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_qtyprandopti_que_uix` (`questionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Info about a random short-answer matching question';

--
-- Dumping data for table `mdl_qtype_randomsamatch_options`
--


--
-- Table structure for table `mdl_qtype_shortanswer_options`
--

CREATE TABLE `mdl_qtype_shortanswer_options` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionid` bigint(10) NOT NULL DEFAULT '0',
  `usecase` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_qtypshoropti_que_uix` (`questionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Options for short answer questions';

--
-- Dumping data for table `mdl_qtype_shortanswer_options`
--


--
-- Table structure for table `mdl_question`
--

CREATE TABLE `mdl_question` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `category` bigint(10) NOT NULL DEFAULT '0',
  `parent` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `questiontext` longtext NOT NULL,
  `questiontextformat` tinyint(2) NOT NULL DEFAULT '0',
  `generalfeedback` longtext NOT NULL,
  `generalfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `defaultmark` decimal(12,7) NOT NULL DEFAULT '1.0000000',
  `penalty` decimal(12,7) NOT NULL DEFAULT '0.3333333',
  `qtype` varchar(20) NOT NULL DEFAULT '',
  `length` bigint(10) NOT NULL DEFAULT '1',
  `stamp` varchar(255) NOT NULL DEFAULT '',
  `version` varchar(255) NOT NULL DEFAULT '',
  `hidden` tinyint(1) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `createdby` bigint(10) DEFAULT NULL,
  `modifiedby` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_ques_cat_ix` (`category`),
  KEY `mdl_ques_par_ix` (`parent`),
  KEY `mdl_ques_cre_ix` (`createdby`),
  KEY `mdl_ques_mod_ix` (`modifiedby`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='The questions themselves';

--
-- Dumping data for table `mdl_question`
--


--
-- Table structure for table `mdl_question_answers`
--

CREATE TABLE `mdl_question_answers` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `question` bigint(10) NOT NULL DEFAULT '0',
  `answer` longtext NOT NULL,
  `answerformat` tinyint(2) NOT NULL DEFAULT '0',
  `fraction` decimal(12,7) NOT NULL DEFAULT '0.0000000',
  `feedback` longtext NOT NULL,
  `feedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_quesansw_que_ix` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Answers, with a fractional grade (0-1) and feedback';

--
-- Dumping data for table `mdl_question_answers`
--


--
-- Table structure for table `mdl_question_attempt_step_data`
--

CREATE TABLE `mdl_question_attempt_step_data` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `attemptstepid` bigint(10) NOT NULL,
  `name` varchar(32) NOT NULL DEFAULT '',
  `value` longtext,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_quesattestepdata_attna_uix` (`attemptstepid`,`name`),
  KEY `mdl_quesattestepdata_att_ix` (`attemptstepid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Each question_attempt_step has an associative array of the d';

--
-- Dumping data for table `mdl_question_attempt_step_data`
--


--
-- Table structure for table `mdl_question_attempt_steps`
--

CREATE TABLE `mdl_question_attempt_steps` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionattemptid` bigint(10) NOT NULL,
  `sequencenumber` bigint(10) NOT NULL,
  `state` varchar(13) NOT NULL DEFAULT '',
  `fraction` decimal(12,7) DEFAULT NULL,
  `timecreated` bigint(10) NOT NULL,
  `userid` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_quesattestep_queseq_uix` (`questionattemptid`,`sequencenumber`),
  KEY `mdl_quesattestep_que_ix` (`questionattemptid`),
  KEY `mdl_quesattestep_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores one step in in a question attempt. As well as the dat';

--
-- Dumping data for table `mdl_question_attempt_steps`
--


--
-- Table structure for table `mdl_question_attempts`
--

CREATE TABLE `mdl_question_attempts` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionusageid` bigint(10) NOT NULL,
  `slot` bigint(10) NOT NULL,
  `behaviour` varchar(32) NOT NULL DEFAULT '',
  `questionid` bigint(10) NOT NULL,
  `variant` bigint(10) NOT NULL DEFAULT '1',
  `maxmark` decimal(12,7) NOT NULL,
  `minfraction` decimal(12,7) NOT NULL,
  `maxfraction` decimal(12,7) NOT NULL DEFAULT '1.0000000',
  `flagged` tinyint(1) NOT NULL DEFAULT '0',
  `questionsummary` longtext,
  `rightanswer` longtext,
  `responsesummary` longtext,
  `timemodified` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_quesatte_queslo_uix` (`questionusageid`,`slot`),
  KEY `mdl_quesatte_beh_ix` (`behaviour`),
  KEY `mdl_quesatte_que_ix` (`questionid`),
  KEY `mdl_quesatte_que2_ix` (`questionusageid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Each row here corresponds to an attempt at one question, as ';

--
-- Dumping data for table `mdl_question_attempts`
--


--
-- Table structure for table `mdl_question_calculated`
--

CREATE TABLE `mdl_question_calculated` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `question` bigint(10) NOT NULL DEFAULT '0',
  `answer` bigint(10) 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',
  PRIMARY KEY (`id`),
  KEY `mdl_quescalc_ans_ix` (`answer`),
  KEY `mdl_quescalc_que_ix` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Options for questions of type calculated';

--
-- Dumping data for table `mdl_question_calculated`
--


--
-- Table structure for table `mdl_question_calculated_options`
--

CREATE TABLE `mdl_question_calculated_options` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `question` bigint(10) NOT NULL DEFAULT '0',
  `synchronize` tinyint(2) NOT NULL DEFAULT '0',
  `single` smallint(4) NOT NULL DEFAULT '0',
  `shuffleanswers` smallint(4) NOT NULL DEFAULT '0',
  `correctfeedback` longtext,
  `correctfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `partiallycorrectfeedback` longtext,
  `partiallycorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `incorrectfeedback` longtext,
  `incorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `answernumbering` varchar(10) NOT NULL DEFAULT 'abc',
  `shownumcorrect` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_quescalcopti_que_ix` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Options for questions of type calculated';

--
-- Dumping data for table `mdl_question_calculated_options`
--


--
-- Table structure for table `mdl_question_categories`
--

CREATE TABLE `mdl_question_categories` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL DEFAULT '',
  `contextid` bigint(10) NOT NULL DEFAULT '0',
  `info` longtext NOT NULL,
  `infoformat` tinyint(2) NOT NULL DEFAULT '0',
  `stamp` varchar(255) NOT NULL DEFAULT '',
  `parent` bigint(10) NOT NULL DEFAULT '0',
  `sortorder` bigint(10) NOT NULL DEFAULT '999',
  PRIMARY KEY (`id`),
  KEY `mdl_quescate_con_ix` (`contextid`),
  KEY `mdl_quescate_par_ix` (`parent`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Categories are for grouping questions';

--
-- Dumping data for table `mdl_question_categories`
--


--
-- Table structure for table `mdl_question_dataset_definitions`
--

CREATE TABLE `mdl_question_dataset_definitions` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `category` bigint(10) 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) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_quesdatadefi_cat_ix` (`category`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Organises and stores properties for dataset items';

--
-- Dumping data for table `mdl_question_dataset_definitions`
--


--
-- Table structure for table `mdl_question_dataset_items`
--

CREATE TABLE `mdl_question_dataset_items` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `definition` bigint(10) NOT NULL DEFAULT '0',
  `itemnumber` bigint(10) NOT NULL DEFAULT '0',
  `value` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_quesdataitem_def_ix` (`definition`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Individual dataset items';

--
-- Dumping data for table `mdl_question_dataset_items`
--


--
-- Table structure for table `mdl_question_datasets`
--

CREATE TABLE `mdl_question_datasets` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `question` bigint(10) NOT NULL DEFAULT '0',
  `datasetdefinition` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_quesdata_quedat_ix` (`question`,`datasetdefinition`),
  KEY `mdl_quesdata_que_ix` (`question`),
  KEY `mdl_quesdata_dat_ix` (`datasetdefinition`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Many-many relation between questions and dataset definitions';

--
-- Dumping data for table `mdl_question_datasets`
--


--
-- Table structure for table `mdl_question_hints`
--

CREATE TABLE `mdl_question_hints` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionid` bigint(10) NOT NULL,
  `hint` longtext NOT NULL,
  `hintformat` smallint(4) NOT NULL DEFAULT '0',
  `shownumcorrect` tinyint(1) DEFAULT NULL,
  `clearwrong` tinyint(1) DEFAULT NULL,
  `options` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_queshint_que_ix` (`questionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores the the part of the question definition that gives di';

--
-- Dumping data for table `mdl_question_hints`
--


--
-- Table structure for table `mdl_question_multianswer`
--

CREATE TABLE `mdl_question_multianswer` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `question` bigint(10) NOT NULL DEFAULT '0',
  `sequence` longtext NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_quesmult_que_ix` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Options for multianswer questions';

--
-- Dumping data for table `mdl_question_multianswer`
--


--
-- Table structure for table `mdl_question_numerical`
--

CREATE TABLE `mdl_question_numerical` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `question` bigint(10) NOT NULL DEFAULT '0',
  `answer` bigint(10) NOT NULL DEFAULT '0',
  `tolerance` varchar(255) NOT NULL DEFAULT '0.0',
  PRIMARY KEY (`id`),
  KEY `mdl_quesnume_ans_ix` (`answer`),
  KEY `mdl_quesnume_que_ix` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Options for numerical questions.';

--
-- Dumping data for table `mdl_question_numerical`
--


--
-- Table structure for table `mdl_question_numerical_options`
--

CREATE TABLE `mdl_question_numerical_options` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `question` bigint(10) NOT NULL DEFAULT '0',
  `showunits` smallint(4) NOT NULL DEFAULT '0',
  `unitsleft` smallint(4) NOT NULL DEFAULT '0',
  `unitgradingtype` smallint(4) NOT NULL DEFAULT '0',
  `unitpenalty` decimal(12,7) NOT NULL DEFAULT '0.1000000',
  PRIMARY KEY (`id`),
  KEY `mdl_quesnumeopti_que_ix` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Options for questions of type numerical This table is also u';

--
-- Dumping data for table `mdl_question_numerical_options`
--


--
-- Table structure for table `mdl_question_numerical_units`
--

CREATE TABLE `mdl_question_numerical_units` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `question` bigint(10) NOT NULL DEFAULT '0',
  `multiplier` decimal(40,20) NOT NULL DEFAULT '1.00000000000000000000',
  `unit` varchar(50) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_quesnumeunit_queuni_uix` (`question`,`unit`),
  KEY `mdl_quesnumeunit_que_ix` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Optional unit options for numerical questions. This table is';

--
-- Dumping data for table `mdl_question_numerical_units`
--


--
-- Table structure for table `mdl_question_response_analysis`
--

CREATE TABLE `mdl_question_response_analysis` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `hashcode` varchar(40) NOT NULL DEFAULT '',
  `whichtries` varchar(255) NOT NULL DEFAULT '',
  `timemodified` bigint(10) NOT NULL,
  `questionid` bigint(10) NOT NULL,
  `variant` bigint(10) DEFAULT NULL,
  `subqid` varchar(100) NOT NULL DEFAULT '',
  `aid` varchar(100) DEFAULT NULL,
  `response` longtext,
  `credit` decimal(15,5) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Analysis of student responses given to questions.';

--
-- Dumping data for table `mdl_question_response_analysis`
--


--
-- Table structure for table `mdl_question_response_count`
--

CREATE TABLE `mdl_question_response_count` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `analysisid` bigint(10) NOT NULL,
  `try` bigint(10) NOT NULL,
  `rcount` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_quesrespcoun_ana_ix` (`analysisid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Count for each responses for each try at a question.';

--
-- Dumping data for table `mdl_question_response_count`
--


--
-- Table structure for table `mdl_question_statistics`
--

CREATE TABLE `mdl_question_statistics` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `hashcode` varchar(40) NOT NULL DEFAULT '',
  `timemodified` bigint(10) NOT NULL,
  `questionid` bigint(10) NOT NULL,
  `slot` bigint(10) DEFAULT NULL,
  `subquestion` smallint(4) NOT NULL,
  `variant` bigint(10) DEFAULT NULL,
  `s` bigint(10) NOT NULL DEFAULT '0',
  `effectiveweight` decimal(15,5) DEFAULT NULL,
  `negcovar` tinyint(2) NOT NULL DEFAULT '0',
  `discriminationindex` decimal(15,5) DEFAULT NULL,
  `discriminativeefficiency` decimal(15,5) DEFAULT NULL,
  `sd` decimal(15,10) DEFAULT NULL,
  `facility` decimal(15,10) DEFAULT NULL,
  `subquestions` longtext,
  `maxmark` decimal(12,7) DEFAULT NULL,
  `positions` longtext,
  `randomguessscore` decimal(12,7) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Statistics for individual questions used in an activity.';

--
-- Dumping data for table `mdl_question_statistics`
--


--
-- Table structure for table `mdl_question_truefalse`
--

CREATE TABLE `mdl_question_truefalse` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `question` bigint(10) NOT NULL DEFAULT '0',
  `trueanswer` bigint(10) NOT NULL DEFAULT '0',
  `falseanswer` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_questrue_que_ix` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Options for True-False questions';

--
-- Dumping data for table `mdl_question_truefalse`
--


--
-- Table structure for table `mdl_question_usages`
--

CREATE TABLE `mdl_question_usages` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `contextid` bigint(10) NOT NULL,
  `component` varchar(255) NOT NULL DEFAULT '',
  `preferredbehaviour` varchar(32) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_quesusag_con_ix` (`contextid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='This table''s main purpose it to assign a unique id to each a';

--
-- Dumping data for table `mdl_question_usages`
--


--
-- Table structure for table `mdl_quiz`
--

CREATE TABLE `mdl_quiz` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `intro` longtext NOT NULL,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `timeopen` bigint(10) NOT NULL DEFAULT '0',
  `timeclose` bigint(10) NOT NULL DEFAULT '0',
  `timelimit` bigint(10) NOT NULL DEFAULT '0',
  `overduehandling` varchar(16) NOT NULL DEFAULT 'autoabandon',
  `graceperiod` bigint(10) NOT NULL DEFAULT '0',
  `preferredbehaviour` varchar(32) NOT NULL DEFAULT '',
  `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',
  `questiondecimalpoints` smallint(4) NOT NULL DEFAULT '-1',
  `reviewattempt` mediumint(6) NOT NULL DEFAULT '0',
  `reviewcorrectness` mediumint(6) NOT NULL DEFAULT '0',
  `reviewmarks` mediumint(6) NOT NULL DEFAULT '0',
  `reviewspecificfeedback` mediumint(6) NOT NULL DEFAULT '0',
  `reviewgeneralfeedback` mediumint(6) NOT NULL DEFAULT '0',
  `reviewrightanswer` mediumint(6) NOT NULL DEFAULT '0',
  `reviewoverallfeedback` mediumint(6) NOT NULL DEFAULT '0',
  `questionsperpage` bigint(10) NOT NULL DEFAULT '0',
  `navmethod` varchar(16) NOT NULL DEFAULT 'free',
  `shufflequestions` smallint(4) NOT NULL DEFAULT '0',
  `shuffleanswers` smallint(4) NOT NULL DEFAULT '0',
  `sumgrades` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `grade` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `password` varchar(255) NOT NULL DEFAULT '',
  `subnet` varchar(255) NOT NULL DEFAULT '',
  `browsersecurity` varchar(32) NOT NULL DEFAULT '',
  `delay1` bigint(10) NOT NULL DEFAULT '0',
  `delay2` bigint(10) NOT NULL DEFAULT '0',
  `showuserpicture` smallint(4) NOT NULL DEFAULT '0',
  `showblocks` smallint(4) NOT NULL DEFAULT '0',
  `completionattemptsexhausted` tinyint(1) DEFAULT '0',
  `completionpass` tinyint(1) DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_quiz_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='The settings for each quiz.';

--
-- Dumping data for table `mdl_quiz`
--


--
-- Table structure for table `mdl_quiz_attempts`
--

CREATE TABLE `mdl_quiz_attempts` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `quiz` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `attempt` mediumint(6) NOT NULL DEFAULT '0',
  `uniqueid` bigint(10) NOT NULL DEFAULT '0',
  `layout` longtext NOT NULL,
  `currentpage` bigint(10) NOT NULL DEFAULT '0',
  `preview` smallint(3) NOT NULL DEFAULT '0',
  `state` varchar(16) NOT NULL DEFAULT 'inprogress',
  `timestart` bigint(10) NOT NULL DEFAULT '0',
  `timefinish` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `timecheckstate` bigint(10) DEFAULT '0',
  `sumgrades` decimal(10,5) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_quizatte_quiuseatt_uix` (`quiz`,`userid`,`attempt`),
  UNIQUE KEY `mdl_quizatte_uni_uix` (`uniqueid`),
  KEY `mdl_quizatte_statim_ix` (`state`,`timecheckstate`),
  KEY `mdl_quizatte_qui_ix` (`quiz`),
  KEY `mdl_quizatte_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores users attempts at quizzes.';

--
-- Dumping data for table `mdl_quiz_attempts`
--


--
-- Table structure for table `mdl_quiz_feedback`
--

CREATE TABLE `mdl_quiz_feedback` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `quizid` bigint(10) NOT NULL DEFAULT '0',
  `feedbacktext` longtext NOT NULL,
  `feedbacktextformat` tinyint(2) NOT NULL DEFAULT '0',
  `mingrade` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `maxgrade` decimal(10,5) NOT NULL DEFAULT '0.00000',
  PRIMARY KEY (`id`),
  KEY `mdl_quizfeed_qui_ix` (`quizid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Feedback given to students based on which grade band their o';

--
-- Dumping data for table `mdl_quiz_feedback`
--


--
-- Table structure for table `mdl_quiz_grades`
--

CREATE TABLE `mdl_quiz_grades` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `quiz` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `grade` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_quizgrad_use_ix` (`userid`),
  KEY `mdl_quizgrad_qui_ix` (`quiz`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores the overall grade for each user on the quiz, based on';

--
-- Dumping data for table `mdl_quiz_grades`
--


--
-- Table structure for table `mdl_quiz_overrides`
--

CREATE TABLE `mdl_quiz_overrides` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `quiz` bigint(10) NOT NULL DEFAULT '0',
  `groupid` bigint(10) DEFAULT NULL,
  `userid` bigint(10) DEFAULT NULL,
  `timeopen` bigint(10) DEFAULT NULL,
  `timeclose` bigint(10) DEFAULT NULL,
  `timelimit` bigint(10) DEFAULT NULL,
  `attempts` mediumint(6) DEFAULT NULL,
  `password` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_quizover_qui_ix` (`quiz`),
  KEY `mdl_quizover_gro_ix` (`groupid`),
  KEY `mdl_quizover_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='The overrides to quiz settings on a per-user and per-group b';

--
-- Dumping data for table `mdl_quiz_overrides`
--


--
-- Table structure for table `mdl_quiz_overview_regrades`
--

CREATE TABLE `mdl_quiz_overview_regrades` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `questionusageid` bigint(10) NOT NULL,
  `slot` bigint(10) NOT NULL,
  `newfraction` decimal(12,7) DEFAULT NULL,
  `oldfraction` decimal(12,7) DEFAULT NULL,
  `regraded` smallint(4) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='This table records which question attempts need regrading an';

--
-- Dumping data for table `mdl_quiz_overview_regrades`
--


--
-- Table structure for table `mdl_quiz_reports`
--

CREATE TABLE `mdl_quiz_reports` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `displayorder` bigint(10) NOT NULL,
  `capability` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_quizrepo_nam_uix` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='Lists all the installed quiz reports and their display order';

--
-- Dumping data for table `mdl_quiz_reports`
--

INSERT INTO `mdl_quiz_reports` VALUES (1,'grading',6000,'mod/quiz:grade'),(2,'overview',10000,NULL),(3,'responses',9000,NULL),(4,'statistics',8000,'quiz/statistics:view');

--
-- Table structure for table `mdl_quiz_slots`
--

CREATE TABLE `mdl_quiz_slots` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `slot` bigint(10) NOT NULL,
  `quizid` bigint(10) NOT NULL DEFAULT '0',
  `page` bigint(10) NOT NULL,
  `questionid` bigint(10) NOT NULL DEFAULT '0',
  `maxmark` decimal(12,7) NOT NULL DEFAULT '0.0000000',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_quizslot_quislo_uix` (`quizid`,`slot`),
  KEY `mdl_quizslot_qui_ix` (`quizid`),
  KEY `mdl_quizslot_que_ix` (`questionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores the question used in a quiz, with the order, and for ';

--
-- Dumping data for table `mdl_quiz_slots`
--


--
-- Table structure for table `mdl_quiz_statistics`
--

CREATE TABLE `mdl_quiz_statistics` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `hashcode` varchar(40) NOT NULL DEFAULT '',
  `whichattempts` smallint(4) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  `firstattemptscount` bigint(10) NOT NULL,
  `highestattemptscount` bigint(10) NOT NULL,
  `lastattemptscount` bigint(10) NOT NULL,
  `allattemptscount` bigint(10) NOT NULL,
  `firstattemptsavg` decimal(15,5) DEFAULT NULL,
  `highestattemptsavg` decimal(15,5) DEFAULT NULL,
  `lastattemptsavg` decimal(15,5) DEFAULT NULL,
  `allattemptsavg` decimal(15,5) DEFAULT NULL,
  `median` decimal(15,5) DEFAULT NULL,
  `standarddeviation` decimal(15,5) DEFAULT NULL,
  `skewness` decimal(15,10) DEFAULT NULL,
  `kurtosis` decimal(15,5) DEFAULT NULL,
  `cic` decimal(15,10) DEFAULT NULL,
  `errorratio` decimal(15,10) DEFAULT NULL,
  `standarderror` decimal(15,10) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='table to cache results from analysis done in statistics repo';

--
-- Dumping data for table `mdl_quiz_statistics`
--


--
-- Table structure for table `mdl_rating`
--

CREATE TABLE `mdl_rating` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `contextid` bigint(10) NOT NULL,
  `component` varchar(100) NOT NULL DEFAULT '',
  `ratingarea` varchar(50) NOT NULL DEFAULT '',
  `itemid` bigint(10) NOT NULL,
  `scaleid` bigint(10) NOT NULL,
  `rating` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_rati_comratconite_ix` (`component`,`ratingarea`,`contextid`,`itemid`),
  KEY `mdl_rati_con_ix` (`contextid`),
  KEY `mdl_rati_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='moodle ratings';

--
-- Dumping data for table `mdl_rating`
--


--
-- Table structure for table `mdl_registration_hubs`
--

CREATE TABLE `mdl_registration_hubs` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `token` varchar(255) NOT NULL DEFAULT '',
  `hubname` varchar(255) NOT NULL DEFAULT '',
  `huburl` varchar(255) NOT NULL DEFAULT '',
  `confirmed` tinyint(1) NOT NULL DEFAULT '0',
  `secret` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='hub where the site is registered on with their associated to';

--
-- Dumping data for table `mdl_registration_hubs`
--


--
-- Table structure for table `mdl_repository`
--

CREATE TABLE `mdl_repository` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `type` varchar(255) NOT NULL DEFAULT '',
  `visible` tinyint(1) DEFAULT '1',
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COMMENT='This table contains one entry for every configured external ';

--
-- Dumping data for table `mdl_repository`
--

INSERT INTO `mdl_repository` VALUES (1,'areafiles',1,1),(2,'local',1,2),(3,'recent',1,3),(4,'upload',1,4),(5,'url',1,5),(6,'user',1,6),(7,'wikimedia',1,7),(8,'youtube',1,8);

--
-- Table structure for table `mdl_repository_instance_config`
--

CREATE TABLE `mdl_repository_instance_config` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `instanceid` bigint(10) NOT NULL,
  `name` varchar(255) NOT NULL DEFAULT '',
  `value` longtext,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='The config for intances';

--
-- Dumping data for table `mdl_repository_instance_config`
--


--
-- Table structure for table `mdl_repository_instances`
--

CREATE TABLE `mdl_repository_instances` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL DEFAULT '',
  `typeid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `contextid` bigint(10) NOT NULL,
  `username` varchar(255) DEFAULT NULL,
  `password` varchar(255) DEFAULT NULL,
  `timecreated` bigint(10) DEFAULT NULL,
  `timemodified` bigint(10) DEFAULT NULL,
  `readonly` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COMMENT='This table contains one entry for every configured external ';

--
-- Dumping data for table `mdl_repository_instances`
--

INSERT INTO `mdl_repository_instances` VALUES (1,'',1,0,1,NULL,NULL,1442833435,1442833435,0),(2,'',2,0,1,NULL,NULL,1442833435,1442833435,0),(3,'',3,0,1,NULL,NULL,1442833436,1442833436,0),(4,'',4,0,1,NULL,NULL,1442833436,1442833436,0),(5,'',5,0,1,NULL,NULL,1442833436,1442833436,0),(6,'',6,0,1,NULL,NULL,1442833436,1442833436,0),(7,'',7,0,1,NULL,NULL,1442833438,1442833438,0),(8,'',8,0,1,NULL,NULL,1442833438,1442833438,0);

--
-- Table structure for table `mdl_resource`
--

CREATE TABLE `mdl_resource` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `intro` longtext,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `tobemigrated` smallint(4) NOT NULL DEFAULT '0',
  `legacyfiles` smallint(4) NOT NULL DEFAULT '0',
  `legacyfileslast` bigint(10) DEFAULT NULL,
  `display` smallint(4) NOT NULL DEFAULT '0',
  `displayoptions` longtext,
  `filterfiles` smallint(4) NOT NULL DEFAULT '0',
  `revision` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_reso_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Each record is one resource and its config data';

--
-- Dumping data for table `mdl_resource`
--


--
-- Table structure for table `mdl_resource_old`
--

CREATE TABLE `mdl_resource_old` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `type` varchar(30) NOT NULL DEFAULT '',
  `reference` varchar(255) NOT NULL DEFAULT '',
  `intro` longtext,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `alltext` longtext NOT NULL,
  `popup` longtext NOT NULL,
  `options` varchar(255) NOT NULL DEFAULT '',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `oldid` bigint(10) NOT NULL,
  `cmid` bigint(10) DEFAULT NULL,
  `newmodule` varchar(50) DEFAULT NULL,
  `newid` bigint(10) DEFAULT NULL,
  `migrated` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_resoold_old_uix` (`oldid`),
  KEY `mdl_resoold_cmi_ix` (`cmid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='backup of all old resource instances from 1.9';

--
-- Dumping data for table `mdl_resource_old`
--


--
-- Table structure for table `mdl_role`
--

CREATE TABLE `mdl_role` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL DEFAULT '',
  `shortname` varchar(100) NOT NULL DEFAULT '',
  `description` longtext NOT NULL,
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  `archetype` varchar(30) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_role_sor_uix` (`sortorder`),
  UNIQUE KEY `mdl_role_sho_uix` (`shortname`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COMMENT='moodle roles';

--
-- Dumping data for table `mdl_role`
--

INSERT INTO `mdl_role` VALUES (1,'','manager','',1,'manager'),(2,'','coursecreator','',2,'coursecreator'),(3,'','editingteacher','',3,'editingteacher'),(4,'','teacher','',4,'teacher'),(5,'','student','',5,'student'),(6,'','guest','',6,'guest'),(7,'','user','',7,'user'),(8,'','frontpage','',8,'frontpage');

--
-- Table structure for table `mdl_role_allow_assign`
--

CREATE TABLE `mdl_role_allow_assign` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `roleid` bigint(10) NOT NULL DEFAULT '0',
  `allowassign` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_rolealloassi_rolall_uix` (`roleid`,`allowassign`),
  KEY `mdl_rolealloassi_rol_ix` (`roleid`),
  KEY `mdl_rolealloassi_all_ix` (`allowassign`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='this defines what role can assign what role';

--
-- Dumping data for table `mdl_role_allow_assign`
--

INSERT INTO `mdl_role_allow_assign` VALUES (1,1,1),(2,1,2),(3,1,3),(4,1,4),(5,1,5),(6,3,4),(7,3,5);

--
-- Table structure for table `mdl_role_allow_override`
--

CREATE TABLE `mdl_role_allow_override` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `roleid` bigint(10) NOT NULL DEFAULT '0',
  `allowoverride` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_rolealloover_rolall_uix` (`roleid`,`allowoverride`),
  KEY `mdl_rolealloover_rol_ix` (`roleid`),
  KEY `mdl_rolealloover_all_ix` (`allowoverride`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COMMENT='this defines what role can override what role';

--
-- Dumping data for table `mdl_role_allow_override`
--

INSERT INTO `mdl_role_allow_override` VALUES (1,1,1),(2,1,2),(3,1,3),(4,1,4),(5,1,5),(6,1,6),(7,1,7),(8,1,8),(9,3,4),(10,3,5),(11,3,6);

--
-- Table structure for table `mdl_role_allow_switch`
--

CREATE TABLE `mdl_role_allow_switch` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `roleid` bigint(10) NOT NULL,
  `allowswitch` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_rolealloswit_rolall_uix` (`roleid`,`allowswitch`),
  KEY `mdl_rolealloswit_rol_ix` (`roleid`),
  KEY `mdl_rolealloswit_all_ix` (`allowswitch`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COMMENT='This table stores which which other roles a user is allowed ';

--
-- Dumping data for table `mdl_role_allow_switch`
--

INSERT INTO `mdl_role_allow_switch` VALUES (1,1,3),(2,1,4),(3,1,5),(4,1,6),(5,3,4),(6,3,5),(7,3,6),(8,4,5),(9,4,6);

--
-- Table structure for table `mdl_role_assignments`
--

CREATE TABLE `mdl_role_assignments` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `roleid` bigint(10) NOT NULL DEFAULT '0',
  `contextid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `modifierid` bigint(10) NOT NULL DEFAULT '0',
  `component` varchar(100) NOT NULL DEFAULT '',
  `itemid` bigint(10) NOT NULL DEFAULT '0',
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_roleassi_sor_ix` (`sortorder`),
  KEY `mdl_roleassi_rolcon_ix` (`roleid`,`contextid`),
  KEY `mdl_roleassi_useconrol_ix` (`userid`,`contextid`,`roleid`),
  KEY `mdl_roleassi_comiteuse_ix` (`component`,`itemid`,`userid`),
  KEY `mdl_roleassi_rol_ix` (`roleid`),
  KEY `mdl_roleassi_con_ix` (`contextid`),
  KEY `mdl_roleassi_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='assigning roles in different context';

--
-- Dumping data for table `mdl_role_assignments`
--


--
-- Table structure for table `mdl_role_capabilities`
--

CREATE TABLE `mdl_role_capabilities` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `contextid` bigint(10) NOT NULL DEFAULT '0',
  `roleid` bigint(10) NOT NULL DEFAULT '0',
  `capability` varchar(255) NOT NULL DEFAULT '',
  `permission` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `modifierid` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_rolecapa_rolconcap_uix` (`roleid`,`contextid`,`capability`),
  KEY `mdl_rolecapa_rol_ix` (`roleid`),
  KEY `mdl_rolecapa_con_ix` (`contextid`),
  KEY `mdl_rolecapa_mod_ix` (`modifierid`),
  KEY `mdl_rolecapa_cap_ix` (`capability`)
) ENGINE=InnoDB AUTO_INCREMENT=1155 DEFAULT CHARSET=utf8 COMMENT='permission has to be signed, overriding a capability for a p';

--
-- Dumping data for table `mdl_role_capabilities`
--

INSERT INTO `mdl_role_capabilities` VALUES (1,1,1,'moodle/site:readallmessages',1,1442833403,0),(2,1,3,'moodle/site:readallmessages',1,1442833403,0),(3,1,1,'moodle/site:sendmessage',1,1442833403,0),(4,1,7,'moodle/site:sendmessage',1,1442833403,0),(5,1,1,'moodle/site:approvecourse',1,1442833403,0),(6,1,3,'moodle/backup:backupcourse',1,1442833403,0),(7,1,1,'moodle/backup:backupcourse',1,1442833403,0),(8,1,3,'moodle/backup:backupsection',1,1442833403,0),(9,1,1,'moodle/backup:backupsection',1,1442833403,0),(10,1,3,'moodle/backup:backupactivity',1,1442833403,0),(11,1,1,'moodle/backup:backupactivity',1,1442833403,0),(12,1,3,'moodle/backup:backuptargethub',1,1442833403,0),(13,1,1,'moodle/backup:backuptargethub',1,1442833403,0),(14,1,3,'moodle/backup:backuptargetimport',1,1442833403,0),(15,1,1,'moodle/backup:backuptargetimport',1,1442833403,0),(16,1,3,'moodle/backup:downloadfile',1,1442833403,0),(17,1,1,'moodle/backup:downloadfile',1,1442833403,0),(18,1,3,'moodle/backup:configure',1,1442833403,0),(19,1,1,'moodle/backup:configure',1,1442833403,0),(20,1,1,'moodle/backup:userinfo',1,1442833403,0),(21,1,1,'moodle/backup:anonymise',1,1442833404,0),(22,1,3,'moodle/restore:restorecourse',1,1442833404,0),(23,1,1,'moodle/restore:restorecourse',1,1442833404,0),(24,1,3,'moodle/restore:restoresection',1,1442833404,0),(25,1,1,'moodle/restore:restoresection',1,1442833404,0),(26,1,3,'moodle/restore:restoreactivity',1,1442833404,0),(27,1,1,'moodle/restore:restoreactivity',1,1442833404,0),(28,1,3,'moodle/restore:restoretargethub',1,1442833404,0),(29,1,1,'moodle/restore:restoretargethub',1,1442833404,0),(30,1,3,'moodle/restore:restoretargetimport',1,1442833404,0),(31,1,1,'moodle/restore:restoretargetimport',1,1442833404,0),(32,1,3,'moodle/restore:uploadfile',1,1442833404,0),(33,1,1,'moodle/restore:uploadfile',1,1442833404,0),(34,1,3,'moodle/restore:configure',1,1442833404,0),(35,1,1,'moodle/restore:configure',1,1442833404,0),(36,1,2,'moodle/restore:rolldates',1,1442833404,0),(37,1,1,'moodle/restore:rolldates',1,1442833404,0),(38,1,1,'moodle/restore:userinfo',1,1442833404,0),(39,1,1,'moodle/restore:createuser',1,1442833404,0),(40,1,3,'moodle/site:manageblocks',1,1442833404,0),(41,1,1,'moodle/site:manageblocks',1,1442833404,0),(42,1,4,'moodle/site:accessallgroups',1,1442833404,0),(43,1,3,'moodle/site:accessallgroups',1,1442833404,0),(44,1,1,'moodle/site:accessallgroups',1,1442833404,0),(45,1,4,'moodle/site:viewfullnames',1,1442833404,0),(46,1,3,'moodle/site:viewfullnames',1,1442833404,0),(47,1,1,'moodle/site:viewfullnames',1,1442833404,0),(48,1,4,'moodle/site:viewuseridentity',1,1442833404,0),(49,1,3,'moodle/site:viewuseridentity',1,1442833404,0),(50,1,1,'moodle/site:viewuseridentity',1,1442833404,0),(51,1,4,'moodle/site:viewreports',1,1442833404,0),(52,1,3,'moodle/site:viewreports',1,1442833404,0),(53,1,1,'moodle/site:viewreports',1,1442833404,0),(54,1,3,'moodle/site:trustcontent',1,1442833404,0),(55,1,1,'moodle/site:trustcontent',1,1442833404,0),(56,1,1,'moodle/site:uploadusers',1,1442833404,0),(57,1,3,'moodle/filter:manage',1,1442833404,0),(58,1,1,'moodle/filter:manage',1,1442833404,0),(59,1,1,'moodle/user:create',1,1442833404,0),(60,1,1,'moodle/user:delete',1,1442833404,0),(61,1,1,'moodle/user:update',1,1442833404,0),(62,1,6,'moodle/user:viewdetails',1,1442833404,0),(63,1,5,'moodle/user:viewdetails',1,1442833404,0),(64,1,4,'moodle/user:viewdetails',1,1442833404,0),(65,1,3,'moodle/user:viewdetails',1,1442833404,0),(66,1,1,'moodle/user:viewdetails',1,1442833404,0),(67,1,1,'moodle/user:viewalldetails',1,1442833404,0),(68,1,1,'moodle/user:viewlastip',1,1442833404,0),(69,1,4,'moodle/user:viewhiddendetails',1,1442833404,0),(70,1,3,'moodle/user:viewhiddendetails',1,1442833404,0),(71,1,1,'moodle/user:viewhiddendetails',1,1442833404,0),(72,1,1,'moodle/user:loginas',1,1442833404,0),(73,1,1,'moodle/user:managesyspages',1,1442833404,0),(74,1,7,'moodle/user:manageownblocks',1,1442833404,0),(75,1,7,'moodle/user:manageownfiles',1,1442833404,0),(76,1,1,'moodle/my:configsyspages',1,1442833404,0),(77,1,3,'moodle/role:assign',1,1442833404,0),(78,1,1,'moodle/role:assign',1,1442833404,0),(79,1,4,'moodle/role:review',1,1442833404,0),(80,1,3,'moodle/role:review',1,1442833404,0),(81,1,1,'moodle/role:review',1,1442833404,0),(82,1,1,'moodle/role:override',1,1442833404,0),(83,1,3,'moodle/role:safeoverride',1,1442833404,0),(84,1,1,'moodle/role:manage',1,1442833404,0),(85,1,3,'moodle/role:switchroles',1,1442833404,0),(86,1,1,'moodle/role:switchroles',1,1442833404,0),(87,1,1,'moodle/category:manage',1,1442833404,0),(88,1,2,'moodle/category:viewhiddencategories',1,1442833404,0),(89,1,1,'moodle/category:viewhiddencategories',1,1442833404,0),(90,1,1,'moodle/cohort:manage',1,1442833404,0),(91,1,1,'moodle/cohort:assign',1,1442833404,0),(92,1,3,'moodle/cohort:view',1,1442833404,0),(93,1,1,'moodle/cohort:view',1,1442833404,0),(94,1,2,'moodle/course:create',1,1442833404,0),(95,1,1,'moodle/course:create',1,1442833404,0),(96,1,7,'moodle/course:request',1,1442833404,0),(97,1,1,'moodle/course:delete',1,1442833404,0),(98,1,3,'moodle/course:update',1,1442833404,0),(99,1,1,'moodle/course:update',1,1442833404,0),(100,1,1,'moodle/course:view',1,1442833404,0),(101,1,3,'moodle/course:enrolreview',1,1442833404,0),(102,1,1,'moodle/course:enrolreview',1,1442833404,0),(103,1,3,'moodle/course:enrolconfig',1,1442833404,0),(104,1,1,'moodle/course:enrolconfig',1,1442833404,0),(105,1,3,'moodle/course:reviewotherusers',1,1442833404,0),(106,1,1,'moodle/course:reviewotherusers',1,1442833404,0),(107,1,4,'moodle/course:bulkmessaging',1,1442833404,0),(108,1,3,'moodle/course:bulkmessaging',1,1442833404,0),(109,1,1,'moodle/course:bulkmessaging',1,1442833404,0),(110,1,4,'moodle/course:viewhiddenuserfields',1,1442833404,0),(111,1,3,'moodle/course:viewhiddenuserfields',1,1442833404,0),(112,1,1,'moodle/course:viewhiddenuserfields',1,1442833404,0),(113,1,2,'moodle/course:viewhiddencourses',1,1442833404,0),(114,1,4,'moodle/course:viewhiddencourses',1,1442833404,0),(115,1,3,'moodle/course:viewhiddencourses',1,1442833404,0),(116,1,1,'moodle/course:viewhiddencourses',1,1442833404,0),(117,1,3,'moodle/course:visibility',1,1442833404,0),(118,1,1,'moodle/course:visibility',1,1442833404,0),(119,1,3,'moodle/course:managefiles',1,1442833404,0),(120,1,1,'moodle/course:managefiles',1,1442833404,0),(121,1,3,'moodle/course:manageactivities',1,1442833404,0),(122,1,1,'moodle/course:manageactivities',1,1442833404,0),(123,1,3,'moodle/course:activityvisibility',1,1442833404,0),(124,1,1,'moodle/course:activityvisibility',1,1442833404,0),(125,1,4,'moodle/course:viewhiddenactivities',1,1442833404,0),(126,1,3,'moodle/course:viewhiddenactivities',1,1442833404,0),(127,1,1,'moodle/course:viewhiddenactivities',1,1442833404,0),(128,1,5,'moodle/course:viewparticipants',1,1442833404,0),(129,1,4,'moodle/course:viewparticipants',1,1442833404,0),(130,1,3,'moodle/course:viewparticipants',1,1442833404,0),(131,1,1,'moodle/course:viewparticipants',1,1442833404,0),(132,1,3,'moodle/course:changefullname',1,1442833404,0),(133,1,1,'moodle/course:changefullname',1,1442833404,0),(134,1,3,'moodle/course:changeshortname',1,1442833404,0),(135,1,1,'moodle/course:changeshortname',1,1442833404,0),(136,1,3,'moodle/course:changeidnumber',1,1442833404,0),(137,1,1,'moodle/course:changeidnumber',1,1442833404,0),(138,1,3,'moodle/course:changecategory',1,1442833404,0),(139,1,1,'moodle/course:changecategory',1,1442833404,0),(140,1,3,'moodle/course:changesummary',1,1442833404,0),(141,1,1,'moodle/course:changesummary',1,1442833404,0),(142,1,1,'moodle/site:viewparticipants',1,1442833404,0),(143,1,5,'moodle/course:isincompletionreports',1,1442833404,0),(144,1,5,'moodle/course:viewscales',1,1442833404,0),(145,1,4,'moodle/course:viewscales',1,1442833404,0),(146,1,3,'moodle/course:viewscales',1,1442833404,0),(147,1,1,'moodle/course:viewscales',1,1442833404,0),(148,1,3,'moodle/course:managescales',1,1442833404,0),(149,1,1,'moodle/course:managescales',1,1442833404,0),(150,1,3,'moodle/course:managegroups',1,1442833404,0),(151,1,1,'moodle/course:managegroups',1,1442833404,0),(152,1,3,'moodle/course:reset',1,1442833404,0),(153,1,1,'moodle/course:reset',1,1442833405,0),(154,1,3,'moodle/course:viewsuspendedusers',1,1442833405,0),(155,1,1,'moodle/course:viewsuspendedusers',1,1442833405,0),(156,1,6,'moodle/blog:view',1,1442833405,0),(157,1,7,'moodle/blog:view',1,1442833405,0),(158,1,5,'moodle/blog:view',1,1442833405,0),(159,1,4,'moodle/blog:view',1,1442833405,0),(160,1,3,'moodle/blog:view',1,1442833405,0),(161,1,1,'moodle/blog:view',1,1442833405,0),(162,1,6,'moodle/blog:search',1,1442833405,0),(163,1,7,'moodle/blog:search',1,1442833405,0),(164,1,5,'moodle/blog:search',1,1442833405,0),(165,1,4,'moodle/blog:search',1,1442833405,0),(166,1,3,'moodle/blog:search',1,1442833405,0),(167,1,1,'moodle/blog:search',1,1442833405,0),(168,1,1,'moodle/blog:viewdrafts',1,1442833405,0),(169,1,7,'moodle/blog:create',1,1442833405,0),(170,1,1,'moodle/blog:create',1,1442833405,0),(171,1,4,'moodle/blog:manageentries',1,1442833405,0),(172,1,3,'moodle/blog:manageentries',1,1442833405,0),(173,1,1,'moodle/blog:manageentries',1,1442833405,0),(174,1,5,'moodle/blog:manageexternal',1,1442833405,0),(175,1,7,'moodle/blog:manageexternal',1,1442833405,0),(176,1,4,'moodle/blog:manageexternal',1,1442833405,0),(177,1,3,'moodle/blog:manageexternal',1,1442833405,0),(178,1,1,'moodle/blog:manageexternal',1,1442833405,0),(179,1,7,'moodle/calendar:manageownentries',1,1442833405,0),(180,1,1,'moodle/calendar:manageownentries',1,1442833405,0),(181,1,4,'moodle/calendar:managegroupentries',1,1442833405,0),(182,1,3,'moodle/calendar:managegroupentries',1,1442833405,0),(183,1,1,'moodle/calendar:managegroupentries',1,1442833405,0),(184,1,4,'moodle/calendar:manageentries',1,1442833405,0),(185,1,3,'moodle/calendar:manageentries',1,1442833405,0),(186,1,1,'moodle/calendar:manageentries',1,1442833405,0),(187,1,1,'moodle/user:editprofile',1,1442833405,0),(188,1,6,'moodle/user:editownprofile',-1000,1442833405,0),(189,1,7,'moodle/user:editownprofile',1,1442833405,0),(190,1,1,'moodle/user:editownprofile',1,1442833405,0),(191,1,6,'moodle/user:changeownpassword',-1000,1442833405,0),(192,1,7,'moodle/user:changeownpassword',1,1442833405,0),(193,1,1,'moodle/user:changeownpassword',1,1442833405,0),(194,1,5,'moodle/user:readuserposts',1,1442833405,0),(195,1,4,'moodle/user:readuserposts',1,1442833405,0),(196,1,3,'moodle/user:readuserposts',1,1442833405,0),(197,1,1,'moodle/user:readuserposts',1,1442833405,0),(198,1,5,'moodle/user:readuserblogs',1,1442833405,0),(199,1,4,'moodle/user:readuserblogs',1,1442833405,0),(200,1,3,'moodle/user:readuserblogs',1,1442833405,0),(201,1,1,'moodle/user:readuserblogs',1,1442833405,0),(202,1,1,'moodle/user:editmessageprofile',1,1442833405,0),(203,1,6,'moodle/user:editownmessageprofile',-1000,1442833405,0),(204,1,7,'moodle/user:editownmessageprofile',1,1442833405,0),(205,1,1,'moodle/user:editownmessageprofile',1,1442833405,0),(206,1,3,'moodle/question:managecategory',1,1442833405,0),(207,1,1,'moodle/question:managecategory',1,1442833405,0),(208,1,3,'moodle/question:add',1,1442833405,0),(209,1,1,'moodle/question:add',1,1442833405,0),(210,1,3,'moodle/question:editmine',1,1442833405,0),(211,1,1,'moodle/question:editmine',1,1442833405,0),(212,1,3,'moodle/question:editall',1,1442833405,0),(213,1,1,'moodle/question:editall',1,1442833405,0),(214,1,3,'moodle/question:viewmine',1,1442833405,0),(215,1,1,'moodle/question:viewmine',1,1442833405,0),(216,1,3,'moodle/question:viewall',1,1442833405,0),(217,1,1,'moodle/question:viewall',1,1442833405,0),(218,1,3,'moodle/question:usemine',1,1442833405,0),(219,1,1,'moodle/question:usemine',1,1442833405,0),(220,1,3,'moodle/question:useall',1,1442833405,0),(221,1,1,'moodle/question:useall',1,1442833405,0),(222,1,3,'moodle/question:movemine',1,1442833405,0),(223,1,1,'moodle/question:movemine',1,1442833405,0),(224,1,3,'moodle/question:moveall',1,1442833405,0),(225,1,1,'moodle/question:moveall',1,1442833405,0),(226,1,1,'moodle/question:config',1,1442833405,0),(227,1,5,'moodle/question:flag',1,1442833405,0),(228,1,4,'moodle/question:flag',1,1442833405,0),(229,1,3,'moodle/question:flag',1,1442833405,0),(230,1,1,'moodle/question:flag',1,1442833405,0),(231,1,4,'moodle/site:doclinks',1,1442833405,0),(232,1,3,'moodle/site:doclinks',1,1442833405,0),(233,1,1,'moodle/site:doclinks',1,1442833405,0),(234,1,3,'moodle/course:sectionvisibility',1,1442833405,0),(235,1,1,'moodle/course:sectionvisibility',1,1442833405,0),(236,1,3,'moodle/course:useremail',1,1442833405,0),(237,1,1,'moodle/course:useremail',1,1442833405,0),(238,1,3,'moodle/course:viewhiddensections',1,1442833405,0),(239,1,1,'moodle/course:viewhiddensections',1,1442833405,0),(240,1,3,'moodle/course:setcurrentsection',1,1442833405,0),(241,1,1,'moodle/course:setcurrentsection',1,1442833405,0),(242,1,3,'moodle/course:movesections',1,1442833405,0),(243,1,1,'moodle/course:movesections',1,1442833405,0),(244,1,4,'moodle/grade:viewall',1,1442833405,0),(245,1,3,'moodle/grade:viewall',1,1442833405,0),(246,1,1,'moodle/grade:viewall',1,1442833405,0),(247,1,5,'moodle/grade:view',1,1442833405,0),(248,1,4,'moodle/grade:viewhidden',1,1442833405,0),(249,1,3,'moodle/grade:viewhidden',1,1442833405,0),(250,1,1,'moodle/grade:viewhidden',1,1442833405,0),(251,1,3,'moodle/grade:import',1,1442833405,0),(252,1,1,'moodle/grade:import',1,1442833405,0),(253,1,4,'moodle/grade:export',1,1442833405,0),(254,1,3,'moodle/grade:export',1,1442833405,0),(255,1,1,'moodle/grade:export',1,1442833405,0),(256,1,3,'moodle/grade:manage',1,1442833405,0),(257,1,1,'moodle/grade:manage',1,1442833405,0),(258,1,3,'moodle/grade:edit',1,1442833405,0),(259,1,1,'moodle/grade:edit',1,1442833405,0),(260,1,3,'moodle/grade:managegradingforms',1,1442833405,0),(261,1,1,'moodle/grade:managegradingforms',1,1442833405,0),(262,1,1,'moodle/grade:sharegradingforms',1,1442833405,0),(263,1,1,'moodle/grade:managesharedforms',1,1442833405,0),(264,1,3,'moodle/grade:manageoutcomes',1,1442833405,0),(265,1,1,'moodle/grade:manageoutcomes',1,1442833405,0),(266,1,3,'moodle/grade:manageletters',1,1442833405,0),(267,1,1,'moodle/grade:manageletters',1,1442833405,0),(268,1,3,'moodle/grade:hide',1,1442833405,0),(269,1,1,'moodle/grade:hide',1,1442833405,0),(270,1,3,'moodle/grade:lock',1,1442833405,0),(271,1,1,'moodle/grade:lock',1,1442833405,0),(272,1,3,'moodle/grade:unlock',1,1442833405,0),(273,1,1,'moodle/grade:unlock',1,1442833405,0),(274,1,7,'moodle/my:manageblocks',1,1442833405,0),(275,1,4,'moodle/notes:view',1,1442833405,0),(276,1,3,'moodle/notes:view',1,1442833405,0),(277,1,1,'moodle/notes:view',1,1442833405,0),(278,1,4,'moodle/notes:manage',1,1442833405,0),(279,1,3,'moodle/notes:manage',1,1442833405,0),(280,1,1,'moodle/notes:manage',1,1442833405,0),(281,1,4,'moodle/tag:manage',1,1442833405,0),(282,1,3,'moodle/tag:manage',1,1442833406,0),(283,1,1,'moodle/tag:manage',1,1442833406,0),(284,1,1,'moodle/tag:create',1,1442833406,0),(285,1,7,'moodle/tag:create',1,1442833406,0),(286,1,1,'moodle/tag:edit',1,1442833406,0),(287,1,7,'moodle/tag:edit',1,1442833406,0),(288,1,1,'moodle/tag:flag',1,1442833406,0),(289,1,7,'moodle/tag:flag',1,1442833406,0),(290,1,4,'moodle/tag:editblocks',1,1442833406,0),(291,1,3,'moodle/tag:editblocks',1,1442833406,0),(292,1,1,'moodle/tag:editblocks',1,1442833406,0),(293,1,6,'moodle/block:view',1,1442833406,0),(294,1,7,'moodle/block:view',1,1442833406,0),(295,1,5,'moodle/block:view',1,1442833406,0),(296,1,4,'moodle/block:view',1,1442833406,0),(297,1,3,'moodle/block:view',1,1442833406,0),(298,1,3,'moodle/block:edit',1,1442833406,0),(299,1,1,'moodle/block:edit',1,1442833406,0),(300,1,7,'moodle/portfolio:export',1,1442833406,0),(301,1,5,'moodle/portfolio:export',1,1442833406,0),(302,1,4,'moodle/portfolio:export',1,1442833406,0),(303,1,3,'moodle/portfolio:export',1,1442833406,0),(304,1,8,'moodle/comment:view',1,1442833406,0),(305,1,6,'moodle/comment:view',1,1442833406,0),(306,1,7,'moodle/comment:view',1,1442833406,0),(307,1,5,'moodle/comment:view',1,1442833406,0),(308,1,4,'moodle/comment:view',1,1442833406,0),(309,1,3,'moodle/comment:view',1,1442833406,0),(310,1,1,'moodle/comment:view',1,1442833406,0),(311,1,7,'moodle/comment:post',1,1442833406,0),(312,1,5,'moodle/comment:post',1,1442833406,0),(313,1,4,'moodle/comment:post',1,1442833406,0),(314,1,3,'moodle/comment:post',1,1442833406,0),(315,1,1,'moodle/comment:post',1,1442833406,0),(316,1,3,'moodle/comment:delete',1,1442833406,0),(317,1,1,'moodle/comment:delete',1,1442833406,0),(318,1,1,'moodle/webservice:createtoken',1,1442833406,0),(319,1,7,'moodle/webservice:createmobiletoken',1,1442833406,0),(320,1,7,'moodle/rating:view',1,1442833406,0),(321,1,5,'moodle/rating:view',1,1442833406,0),(322,1,4,'moodle/rating:view',1,1442833406,0),(323,1,3,'moodle/rating:view',1,1442833406,0),(324,1,1,'moodle/rating:view',1,1442833407,0),(325,1,7,'moodle/rating:viewany',1,1442833407,0),(326,1,5,'moodle/rating:viewany',1,1442833407,0),(327,1,4,'moodle/rating:viewany',1,1442833407,0),(328,1,3,'moodle/rating:viewany',1,1442833407,0),(329,1,1,'moodle/rating:viewany',1,1442833407,0),(330,1,7,'moodle/rating:viewall',1,1442833407,0),(331,1,5,'moodle/rating:viewall',1,1442833407,0),(332,1,4,'moodle/rating:viewall',1,1442833407,0),(333,1,3,'moodle/rating:viewall',1,1442833407,0),(334,1,1,'moodle/rating:viewall',1,1442833407,0),(335,1,7,'moodle/rating:rate',1,1442833407,0),(336,1,5,'moodle/rating:rate',1,1442833407,0),(337,1,4,'moodle/rating:rate',1,1442833407,0),(338,1,3,'moodle/rating:rate',1,1442833407,0),(339,1,1,'moodle/rating:rate',1,1442833407,0),(340,1,1,'moodle/course:publish',1,1442833407,0),(341,1,4,'moodle/course:markcomplete',1,1442833407,0),(342,1,3,'moodle/course:markcomplete',1,1442833407,0),(343,1,1,'moodle/course:markcomplete',1,1442833407,0),(344,1,1,'moodle/community:add',1,1442833407,0),(345,1,4,'moodle/community:add',1,1442833407,0),(346,1,3,'moodle/community:add',1,1442833407,0),(347,1,1,'moodle/community:download',1,1442833407,0),(348,1,3,'moodle/community:download',1,1442833407,0),(349,1,1,'moodle/badges:manageglobalsettings',1,1442833407,0),(350,1,7,'moodle/badges:viewbadges',1,1442833407,0),(351,1,7,'moodle/badges:manageownbadges',1,1442833407,0),(352,1,7,'moodle/badges:viewotherbadges',1,1442833407,0),(353,1,7,'moodle/badges:earnbadge',1,1442833407,0),(354,1,1,'moodle/badges:createbadge',1,1442833407,0),(355,1,3,'moodle/badges:createbadge',1,1442833407,0),(356,1,1,'moodle/badges:deletebadge',1,1442833407,0),(357,1,3,'moodle/badges:deletebadge',1,1442833407,0),(358,1,1,'moodle/badges:configuredetails',1,1442833407,0),(359,1,3,'moodle/badges:configuredetails',1,1442833407,0),(360,1,1,'moodle/badges:configurecriteria',1,1442833407,0),(361,1,3,'moodle/badges:configurecriteria',1,1442833407,0),(362,1,1,'moodle/badges:configuremessages',1,1442833407,0),(363,1,3,'moodle/badges:configuremessages',1,1442833407,0),(364,1,1,'moodle/badges:awardbadge',1,1442833407,0),(365,1,4,'moodle/badges:awardbadge',1,1442833407,0),(366,1,3,'moodle/badges:awardbadge',1,1442833407,0),(367,1,1,'moodle/badges:viewawarded',1,1442833407,0),(368,1,4,'moodle/badges:viewawarded',1,1442833407,0),(369,1,3,'moodle/badges:viewawarded',1,1442833407,0),(370,1,6,'mod/assign:view',1,1442833417,0),(371,1,5,'mod/assign:view',1,1442833417,0),(372,1,4,'mod/assign:view',1,1442833417,0),(373,1,3,'mod/assign:view',1,1442833417,0),(374,1,1,'mod/assign:view',1,1442833417,0),(375,1,5,'mod/assign:submit',1,1442833417,0),(376,1,4,'mod/assign:grade',1,1442833417,0),(377,1,3,'mod/assign:grade',1,1442833417,0),(378,1,1,'mod/assign:grade',1,1442833417,0),(379,1,4,'mod/assign:exportownsubmission',1,1442833417,0),(380,1,3,'mod/assign:exportownsubmission',1,1442833417,0),(381,1,1,'mod/assign:exportownsubmission',1,1442833417,0),(382,1,5,'mod/assign:exportownsubmission',1,1442833417,0),(383,1,3,'mod/assign:addinstance',1,1442833417,0),(384,1,1,'mod/assign:addinstance',1,1442833417,0),(385,1,4,'mod/assign:grantextension',1,1442833417,0),(386,1,3,'mod/assign:grantextension',1,1442833417,0),(387,1,1,'mod/assign:grantextension',1,1442833417,0),(388,1,3,'mod/assign:revealidentities',1,1442833417,0),(389,1,1,'mod/assign:revealidentities',1,1442833417,0),(390,1,3,'mod/assign:reviewgrades',1,1442833417,0),(391,1,1,'mod/assign:reviewgrades',1,1442833417,0),(392,1,3,'mod/assign:releasegrades',1,1442833417,0),(393,1,1,'mod/assign:releasegrades',1,1442833417,0),(394,1,3,'mod/assign:managegrades',1,1442833417,0),(395,1,1,'mod/assign:managegrades',1,1442833417,0),(396,1,3,'mod/assign:manageallocations',1,1442833417,0),(397,1,1,'mod/assign:manageallocations',1,1442833417,0),(398,1,3,'mod/assign:viewgrades',1,1442833417,0),(399,1,1,'mod/assign:viewgrades',1,1442833417,0),(400,1,4,'mod/assign:viewgrades',1,1442833418,0),(401,1,1,'mod/assign:viewblinddetails',1,1442833418,0),(402,1,4,'mod/assign:receivegradernotifications',1,1442833418,0),(403,1,3,'mod/assign:receivegradernotifications',1,1442833418,0),(404,1,1,'mod/assign:receivegradernotifications',1,1442833418,0),(405,1,6,'mod/assignment:view',1,1442833418,0),(406,1,5,'mod/assignment:view',1,1442833418,0),(407,1,4,'mod/assignment:view',1,1442833418,0),(408,1,3,'mod/assignment:view',1,1442833418,0),(409,1,1,'mod/assignment:view',1,1442833418,0),(410,1,3,'mod/assignment:addinstance',1,1442833418,0),(411,1,1,'mod/assignment:addinstance',1,1442833418,0),(412,1,5,'mod/assignment:submit',1,1442833418,0),(413,1,4,'mod/assignment:grade',1,1442833418,0),(414,1,3,'mod/assignment:grade',1,1442833418,0),(415,1,1,'mod/assignment:grade',1,1442833418,0),(416,1,4,'mod/assignment:exportownsubmission',1,1442833418,0),(417,1,3,'mod/assignment:exportownsubmission',1,1442833418,0),(418,1,1,'mod/assignment:exportownsubmission',1,1442833418,0),(419,1,5,'mod/assignment:exportownsubmission',1,1442833418,0),(420,1,3,'mod/book:addinstance',1,1442833418,0),(421,1,1,'mod/book:addinstance',1,1442833418,0),(422,1,6,'mod/book:read',1,1442833418,0),(423,1,8,'mod/book:read',1,1442833418,0),(424,1,5,'mod/book:read',1,1442833418,0),(425,1,4,'mod/book:read',1,1442833418,0),(426,1,3,'mod/book:read',1,1442833418,0),(427,1,1,'mod/book:read',1,1442833418,0),(428,1,4,'mod/book:viewhiddenchapters',1,1442833418,0),(429,1,3,'mod/book:viewhiddenchapters',1,1442833418,0),(430,1,1,'mod/book:viewhiddenchapters',1,1442833418,0),(431,1,3,'mod/book:edit',1,1442833418,0),(432,1,1,'mod/book:edit',1,1442833418,0),(433,1,3,'mod/chat:addinstance',1,1442833418,0),(434,1,1,'mod/chat:addinstance',1,1442833418,0),(435,1,5,'mod/chat:chat',1,1442833418,0),(436,1,4,'mod/chat:chat',1,1442833418,0),(437,1,3,'mod/chat:chat',1,1442833418,0),(438,1,1,'mod/chat:chat',1,1442833418,0),(439,1,5,'mod/chat:readlog',1,1442833418,0),(440,1,4,'mod/chat:readlog',1,1442833418,0),(441,1,3,'mod/chat:readlog',1,1442833418,0),(442,1,1,'mod/chat:readlog',1,1442833418,0),(443,1,4,'mod/chat:deletelog',1,1442833418,0),(444,1,3,'mod/chat:deletelog',1,1442833418,0),(445,1,1,'mod/chat:deletelog',1,1442833418,0),(446,1,4,'mod/chat:exportparticipatedsession',1,1442833418,0),(447,1,3,'mod/chat:exportparticipatedsession',1,1442833418,0),(448,1,1,'mod/chat:exportparticipatedsession',1,1442833418,0),(449,1,4,'mod/chat:exportsession',1,1442833418,0),(450,1,3,'mod/chat:exportsession',1,1442833418,0),(451,1,1,'mod/chat:exportsession',1,1442833418,0),(452,1,3,'mod/choice:addinstance',1,1442833418,0),(453,1,1,'mod/choice:addinstance',1,1442833418,0),(454,1,5,'mod/choice:choose',1,1442833418,0),(455,1,4,'mod/choice:choose',1,1442833418,0),(456,1,3,'mod/choice:choose',1,1442833418,0),(457,1,4,'mod/choice:readresponses',1,1442833418,0),(458,1,3,'mod/choice:readresponses',1,1442833418,0),(459,1,1,'mod/choice:readresponses',1,1442833418,0),(460,1,4,'mod/choice:deleteresponses',1,1442833418,0),(461,1,3,'mod/choice:deleteresponses',1,1442833418,0),(462,1,1,'mod/choice:deleteresponses',1,1442833418,0),(463,1,4,'mod/choice:downloadresponses',1,1442833418,0),(464,1,3,'mod/choice:downloadresponses',1,1442833418,0),(465,1,1,'mod/choice:downloadresponses',1,1442833418,0),(466,1,3,'mod/data:addinstance',1,1442833418,0),(467,1,1,'mod/data:addinstance',1,1442833418,0),(468,1,8,'mod/data:viewentry',1,1442833418,0),(469,1,6,'mod/data:viewentry',1,1442833419,0),(470,1,5,'mod/data:viewentry',1,1442833419,0),(471,1,4,'mod/data:viewentry',1,1442833419,0),(472,1,3,'mod/data:viewentry',1,1442833419,0),(473,1,1,'mod/data:viewentry',1,1442833419,0),(474,1,5,'mod/data:writeentry',1,1442833419,0),(475,1,4,'mod/data:writeentry',1,1442833419,0),(476,1,3,'mod/data:writeentry',1,1442833419,0),(477,1,1,'mod/data:writeentry',1,1442833419,0),(478,1,5,'mod/data:comment',1,1442833419,0),(479,1,4,'mod/data:comment',1,1442833419,0),(480,1,3,'mod/data:comment',1,1442833419,0),(481,1,1,'mod/data:comment',1,1442833419,0),(482,1,4,'mod/data:rate',1,1442833419,0),(483,1,3,'mod/data:rate',1,1442833419,0),(484,1,1,'mod/data:rate',1,1442833419,0),(485,1,4,'mod/data:viewrating',1,1442833419,0),(486,1,3,'mod/data:viewrating',1,1442833419,0),(487,1,1,'mod/data:viewrating',1,1442833419,0),(488,1,4,'mod/data:viewanyrating',1,1442833419,0),(489,1,3,'mod/data:viewanyrating',1,1442833419,0),(490,1,1,'mod/data:viewanyrating',1,1442833419,0),(491,1,4,'mod/data:viewallratings',1,1442833419,0),(492,1,3,'mod/data:viewallratings',1,1442833419,0),(493,1,1,'mod/data:viewallratings',1,1442833419,0),(494,1,4,'mod/data:approve',1,1442833419,0),(495,1,3,'mod/data:approve',1,1442833419,0),(496,1,1,'mod/data:approve',1,1442833419,0),(497,1,4,'mod/data:manageentries',1,1442833419,0),(498,1,3,'mod/data:manageentries',1,1442833419,0),(499,1,1,'mod/data:manageentries',1,1442833419,0),(500,1,4,'mod/data:managecomments',1,1442833419,0),(501,1,3,'mod/data:managecomments',1,1442833419,0),(502,1,1,'mod/data:managecomments',1,1442833419,0),(503,1,3,'mod/data:managetemplates',1,1442833419,0),(504,1,1,'mod/data:managetemplates',1,1442833419,0),(505,1,4,'mod/data:viewalluserpresets',1,1442833419,0),(506,1,3,'mod/data:viewalluserpresets',1,1442833419,0),(507,1,1,'mod/data:viewalluserpresets',1,1442833419,0),(508,1,1,'mod/data:manageuserpresets',1,1442833419,0),(509,1,1,'mod/data:exportentry',1,1442833419,0),(510,1,4,'mod/data:exportentry',1,1442833419,0),(511,1,3,'mod/data:exportentry',1,1442833419,0),(512,1,1,'mod/data:exportownentry',1,1442833419,0),(513,1,4,'mod/data:exportownentry',1,1442833419,0),(514,1,3,'mod/data:exportownentry',1,1442833419,0),(515,1,5,'mod/data:exportownentry',1,1442833419,0),(516,1,1,'mod/data:exportallentries',1,1442833419,0),(517,1,4,'mod/data:exportallentries',1,1442833419,0),(518,1,3,'mod/data:exportallentries',1,1442833419,0),(519,1,1,'mod/data:exportuserinfo',1,1442833419,0),(520,1,4,'mod/data:exportuserinfo',1,1442833419,0),(521,1,3,'mod/data:exportuserinfo',1,1442833419,0),(522,1,3,'mod/feedback:addinstance',1,1442833419,0),(523,1,1,'mod/feedback:addinstance',1,1442833419,0),(524,1,6,'mod/feedback:view',1,1442833419,0),(525,1,5,'mod/feedback:view',1,1442833419,0),(526,1,4,'mod/feedback:view',1,1442833419,0),(527,1,3,'mod/feedback:view',1,1442833419,0),(528,1,1,'mod/feedback:view',1,1442833419,0),(529,1,5,'mod/feedback:complete',1,1442833419,0),(530,1,5,'mod/feedback:viewanalysepage',1,1442833419,0),(531,1,3,'mod/feedback:viewanalysepage',1,1442833419,0),(532,1,1,'mod/feedback:viewanalysepage',1,1442833419,0),(533,1,3,'mod/feedback:deletesubmissions',1,1442833419,0),(534,1,1,'mod/feedback:deletesubmissions',1,1442833419,0),(535,1,1,'mod/feedback:mapcourse',1,1442833419,0),(536,1,3,'mod/feedback:edititems',1,1442833419,0),(537,1,1,'mod/feedback:edititems',1,1442833419,0),(538,1,3,'mod/feedback:createprivatetemplate',1,1442833419,0),(539,1,1,'mod/feedback:createprivatetemplate',1,1442833419,0),(540,1,3,'mod/feedback:createpublictemplate',1,1442833419,0),(541,1,1,'mod/feedback:createpublictemplate',1,1442833419,0),(542,1,3,'mod/feedback:deletetemplate',1,1442833419,0),(543,1,1,'mod/feedback:deletetemplate',1,1442833419,0),(544,1,4,'mod/feedback:viewreports',1,1442833419,0),(545,1,3,'mod/feedback:viewreports',1,1442833419,0),(546,1,1,'mod/feedback:viewreports',1,1442833419,0),(547,1,4,'mod/feedback:receivemail',1,1442833419,0),(548,1,3,'mod/feedback:receivemail',1,1442833419,0),(549,1,3,'mod/folder:addinstance',1,1442833419,0),(550,1,1,'mod/folder:addinstance',1,1442833419,0),(551,1,6,'mod/folder:view',1,1442833419,0),(552,1,7,'mod/folder:view',1,1442833419,0),(553,1,3,'mod/folder:managefiles',1,1442833419,0),(554,1,3,'mod/forum:addinstance',1,1442833419,0),(555,1,1,'mod/forum:addinstance',1,1442833419,0),(556,1,8,'mod/forum:viewdiscussion',1,1442833419,0),(557,1,6,'mod/forum:viewdiscussion',1,1442833419,0),(558,1,5,'mod/forum:viewdiscussion',1,1442833419,0),(559,1,4,'mod/forum:viewdiscussion',1,1442833419,0),(560,1,3,'mod/forum:viewdiscussion',1,1442833419,0),(561,1,1,'mod/forum:viewdiscussion',1,1442833419,0),(562,1,4,'mod/forum:viewhiddentimedposts',1,1442833419,0),(563,1,3,'mod/forum:viewhiddentimedposts',1,1442833419,0),(564,1,1,'mod/forum:viewhiddentimedposts',1,1442833419,0),(565,1,5,'mod/forum:startdiscussion',1,1442833419,0),(566,1,4,'mod/forum:startdiscussion',1,1442833419,0),(567,1,3,'mod/forum:startdiscussion',1,1442833419,0),(568,1,1,'mod/forum:startdiscussion',1,1442833419,0),(569,1,5,'mod/forum:replypost',1,1442833419,0),(570,1,4,'mod/forum:replypost',1,1442833419,0),(571,1,3,'mod/forum:replypost',1,1442833419,0),(572,1,1,'mod/forum:replypost',1,1442833419,0),(573,1,4,'mod/forum:addnews',1,1442833419,0),(574,1,3,'mod/forum:addnews',1,1442833419,0),(575,1,1,'mod/forum:addnews',1,1442833419,0),(576,1,4,'mod/forum:replynews',1,1442833419,0),(577,1,3,'mod/forum:replynews',1,1442833419,0),(578,1,1,'mod/forum:replynews',1,1442833419,0),(579,1,5,'mod/forum:viewrating',1,1442833419,0),(580,1,4,'mod/forum:viewrating',1,1442833419,0),(581,1,3,'mod/forum:viewrating',1,1442833419,0),(582,1,1,'mod/forum:viewrating',1,1442833419,0),(583,1,4,'mod/forum:viewanyrating',1,1442833419,0),(584,1,3,'mod/forum:viewanyrating',1,1442833419,0),(585,1,1,'mod/forum:viewanyrating',1,1442833419,0),(586,1,4,'mod/forum:viewallratings',1,1442833419,0),(587,1,3,'mod/forum:viewallratings',1,1442833419,0),(588,1,1,'mod/forum:viewallratings',1,1442833419,0),(589,1,4,'mod/forum:rate',1,1442833419,0),(590,1,3,'mod/forum:rate',1,1442833419,0),(591,1,1,'mod/forum:rate',1,1442833420,0),(592,1,5,'mod/forum:createattachment',1,1442833420,0),(593,1,4,'mod/forum:createattachment',1,1442833420,0),(594,1,3,'mod/forum:createattachment',1,1442833420,0),(595,1,1,'mod/forum:createattachment',1,1442833420,0),(596,1,5,'mod/forum:deleteownpost',1,1442833420,0),(597,1,4,'mod/forum:deleteownpost',1,1442833420,0),(598,1,3,'mod/forum:deleteownpost',1,1442833420,0),(599,1,1,'mod/forum:deleteownpost',1,1442833420,0),(600,1,4,'mod/forum:deleteanypost',1,1442833420,0),(601,1,3,'mod/forum:deleteanypost',1,1442833420,0),(602,1,1,'mod/forum:deleteanypost',1,1442833420,0),(603,1,4,'mod/forum:splitdiscussions',1,1442833420,0),(604,1,3,'mod/forum:splitdiscussions',1,1442833420,0),(605,1,1,'mod/forum:splitdiscussions',1,1442833420,0),(606,1,4,'mod/forum:movediscussions',1,1442833420,0),(607,1,3,'mod/forum:movediscussions',1,1442833420,0),(608,1,1,'mod/forum:movediscussions',1,1442833420,0),(609,1,4,'mod/forum:editanypost',1,1442833420,0),(610,1,3,'mod/forum:editanypost',1,1442833420,0),(611,1,1,'mod/forum:editanypost',1,1442833420,0),(612,1,4,'mod/forum:viewqandawithoutposting',1,1442833420,0),(613,1,3,'mod/forum:viewqandawithoutposting',1,1442833420,0),(614,1,1,'mod/forum:viewqandawithoutposting',1,1442833420,0),(615,1,4,'mod/forum:viewsubscribers',1,1442833420,0),(616,1,3,'mod/forum:viewsubscribers',1,1442833420,0),(617,1,1,'mod/forum:viewsubscribers',1,1442833420,0),(618,1,4,'mod/forum:managesubscriptions',1,1442833420,0),(619,1,3,'mod/forum:managesubscriptions',1,1442833420,0),(620,1,1,'mod/forum:managesubscriptions',1,1442833420,0),(621,1,4,'mod/forum:postwithoutthrottling',1,1442833420,0),(622,1,3,'mod/forum:postwithoutthrottling',1,1442833420,0),(623,1,1,'mod/forum:postwithoutthrottling',1,1442833420,0),(624,1,4,'mod/forum:exportdiscussion',1,1442833420,0),(625,1,3,'mod/forum:exportdiscussion',1,1442833420,0),(626,1,1,'mod/forum:exportdiscussion',1,1442833420,0),(627,1,4,'mod/forum:exportpost',1,1442833420,0),(628,1,3,'mod/forum:exportpost',1,1442833420,0),(629,1,1,'mod/forum:exportpost',1,1442833420,0),(630,1,4,'mod/forum:exportownpost',1,1442833420,0),(631,1,3,'mod/forum:exportownpost',1,1442833420,0),(632,1,1,'mod/forum:exportownpost',1,1442833420,0),(633,1,5,'mod/forum:exportownpost',1,1442833420,0),(634,1,4,'mod/forum:addquestion',1,1442833420,0),(635,1,3,'mod/forum:addquestion',1,1442833420,0),(636,1,1,'mod/forum:addquestion',1,1442833420,0),(637,1,5,'mod/forum:allowforcesubscribe',1,1442833420,0),(638,1,4,'mod/forum:allowforcesubscribe',1,1442833420,0),(639,1,3,'mod/forum:allowforcesubscribe',1,1442833420,0),(640,1,8,'mod/forum:allowforcesubscribe',1,1442833420,0),(641,1,3,'mod/glossary:addinstance',1,1442833420,0),(642,1,1,'mod/glossary:addinstance',1,1442833420,0),(643,1,8,'mod/glossary:view',1,1442833420,0),(644,1,6,'mod/glossary:view',1,1442833420,0),(645,1,5,'mod/glossary:view',1,1442833420,0),(646,1,4,'mod/glossary:view',1,1442833420,0),(647,1,3,'mod/glossary:view',1,1442833420,0),(648,1,1,'mod/glossary:view',1,1442833420,0),(649,1,5,'mod/glossary:write',1,1442833420,0),(650,1,4,'mod/glossary:write',1,1442833420,0),(651,1,3,'mod/glossary:write',1,1442833420,0),(652,1,1,'mod/glossary:write',1,1442833420,0),(653,1,4,'mod/glossary:manageentries',1,1442833420,0),(654,1,3,'mod/glossary:manageentries',1,1442833420,0),(655,1,1,'mod/glossary:manageentries',1,1442833420,0),(656,1,4,'mod/glossary:managecategories',1,1442833420,0),(657,1,3,'mod/glossary:managecategories',1,1442833420,0),(658,1,1,'mod/glossary:managecategories',1,1442833420,0),(659,1,5,'mod/glossary:comment',1,1442833420,0),(660,1,4,'mod/glossary:comment',1,1442833420,0),(661,1,3,'mod/glossary:comment',1,1442833420,0),(662,1,1,'mod/glossary:comment',1,1442833420,0),(663,1,4,'mod/glossary:managecomments',1,1442833420,0),(664,1,3,'mod/glossary:managecomments',1,1442833420,0),(665,1,1,'mod/glossary:managecomments',1,1442833420,0),(666,1,4,'mod/glossary:import',1,1442833420,0),(667,1,3,'mod/glossary:import',1,1442833420,0),(668,1,1,'mod/glossary:import',1,1442833420,0),(669,1,4,'mod/glossary:export',1,1442833420,0),(670,1,3,'mod/glossary:export',1,1442833420,0),(671,1,1,'mod/glossary:export',1,1442833420,0),(672,1,4,'mod/glossary:approve',1,1442833420,0),(673,1,3,'mod/glossary:approve',1,1442833420,0),(674,1,1,'mod/glossary:approve',1,1442833420,0),(675,1,4,'mod/glossary:rate',1,1442833420,0),(676,1,3,'mod/glossary:rate',1,1442833420,0),(677,1,1,'mod/glossary:rate',1,1442833420,0),(678,1,4,'mod/glossary:viewrating',1,1442833420,0),(679,1,3,'mod/glossary:viewrating',1,1442833420,0),(680,1,1,'mod/glossary:viewrating',1,1442833420,0),(681,1,4,'mod/glossary:viewanyrating',1,1442833420,0),(682,1,3,'mod/glossary:viewanyrating',1,1442833420,0),(683,1,1,'mod/glossary:viewanyrating',1,1442833420,0),(684,1,4,'mod/glossary:viewallratings',1,1442833420,0),(685,1,3,'mod/glossary:viewallratings',1,1442833420,0),(686,1,1,'mod/glossary:viewallratings',1,1442833420,0),(687,1,4,'mod/glossary:exportentry',1,1442833420,0),(688,1,3,'mod/glossary:exportentry',1,1442833420,0),(689,1,1,'mod/glossary:exportentry',1,1442833420,0),(690,1,4,'mod/glossary:exportownentry',1,1442833420,0),(691,1,3,'mod/glossary:exportownentry',1,1442833420,0),(692,1,1,'mod/glossary:exportownentry',1,1442833420,0),(693,1,5,'mod/glossary:exportownentry',1,1442833420,0),(694,1,6,'mod/imscp:view',1,1442833420,0),(695,1,7,'mod/imscp:view',1,1442833420,0),(696,1,3,'mod/imscp:addinstance',1,1442833420,0),(697,1,1,'mod/imscp:addinstance',1,1442833420,0),(698,1,3,'mod/label:addinstance',1,1442833420,0),(699,1,1,'mod/label:addinstance',1,1442833420,0),(700,1,3,'mod/lesson:addinstance',1,1442833421,0),(701,1,1,'mod/lesson:addinstance',1,1442833421,0),(702,1,3,'mod/lesson:edit',1,1442833421,0),(703,1,1,'mod/lesson:edit',1,1442833421,0),(704,1,4,'mod/lesson:grade',1,1442833421,0),(705,1,3,'mod/lesson:grade',1,1442833421,0),(706,1,1,'mod/lesson:grade',1,1442833421,0),(707,1,4,'mod/lesson:manage',1,1442833421,0),(708,1,3,'mod/lesson:manage',1,1442833421,0),(709,1,1,'mod/lesson:manage',1,1442833421,0),(710,1,5,'mod/lti:view',1,1442833421,0),(711,1,4,'mod/lti:view',1,1442833421,0),(712,1,3,'mod/lti:view',1,1442833421,0),(713,1,1,'mod/lti:view',1,1442833421,0),(714,1,3,'mod/lti:addinstance',1,1442833421,0),(715,1,1,'mod/lti:addinstance',1,1442833421,0),(716,1,4,'mod/lti:manage',1,1442833421,0),(717,1,3,'mod/lti:manage',1,1442833421,0),(718,1,1,'mod/lti:manage',1,1442833421,0),(719,1,3,'mod/lti:addcoursetool',1,1442833421,0),(720,1,1,'mod/lti:addcoursetool',1,1442833421,0),(721,1,3,'mod/lti:requesttooladd',1,1442833421,0),(722,1,1,'mod/lti:requesttooladd',1,1442833421,0),(723,1,6,'mod/page:view',1,1442833421,0),(724,1,7,'mod/page:view',1,1442833421,0),(725,1,3,'mod/page:addinstance',1,1442833421,0),(726,1,1,'mod/page:addinstance',1,1442833421,0),(727,1,6,'mod/quiz:view',1,1442833421,0),(728,1,5,'mod/quiz:view',1,1442833421,0),(729,1,4,'mod/quiz:view',1,1442833421,0),(730,1,3,'mod/quiz:view',1,1442833421,0),(731,1,1,'mod/quiz:view',1,1442833421,0),(732,1,3,'mod/quiz:addinstance',1,1442833421,0),(733,1,1,'mod/quiz:addinstance',1,1442833421,0),(734,1,5,'mod/quiz:attempt',1,1442833421,0),(735,1,5,'mod/quiz:reviewmyattempts',1,1442833421,0),(736,1,3,'mod/quiz:manage',1,1442833421,0),(737,1,1,'mod/quiz:manage',1,1442833421,0),(738,1,3,'mod/quiz:manageoverrides',1,1442833421,0),(739,1,1,'mod/quiz:manageoverrides',1,1442833421,0),(740,1,4,'mod/quiz:preview',1,1442833421,0),(741,1,3,'mod/quiz:preview',1,1442833421,0),(742,1,1,'mod/quiz:preview',1,1442833421,0),(743,1,4,'mod/quiz:grade',1,1442833421,0),(744,1,3,'mod/quiz:grade',1,1442833421,0),(745,1,1,'mod/quiz:grade',1,1442833421,0),(746,1,4,'mod/quiz:regrade',1,1442833421,0),(747,1,3,'mod/quiz:regrade',1,1442833421,0),(748,1,1,'mod/quiz:regrade',1,1442833421,0),(749,1,4,'mod/quiz:viewreports',1,1442833421,0),(750,1,3,'mod/quiz:viewreports',1,1442833421,0),(751,1,1,'mod/quiz:viewreports',1,1442833421,0),(752,1,3,'mod/quiz:deleteattempts',1,1442833421,0),(753,1,1,'mod/quiz:deleteattempts',1,1442833421,0),(754,1,6,'mod/resource:view',1,1442833421,0),(755,1,7,'mod/resource:view',1,1442833421,0),(756,1,3,'mod/resource:addinstance',1,1442833421,0),(757,1,1,'mod/resource:addinstance',1,1442833421,0),(758,1,3,'mod/scorm:addinstance',1,1442833422,0),(759,1,1,'mod/scorm:addinstance',1,1442833422,0),(760,1,4,'mod/scorm:viewreport',1,1442833422,0),(761,1,3,'mod/scorm:viewreport',1,1442833422,0),(762,1,1,'mod/scorm:viewreport',1,1442833422,0),(763,1,5,'mod/scorm:skipview',1,1442833422,0),(764,1,5,'mod/scorm:savetrack',1,1442833422,0),(765,1,4,'mod/scorm:savetrack',1,1442833422,0),(766,1,3,'mod/scorm:savetrack',1,1442833422,0),(767,1,1,'mod/scorm:savetrack',1,1442833422,0),(768,1,5,'mod/scorm:viewscores',1,1442833422,0),(769,1,4,'mod/scorm:viewscores',1,1442833422,0),(770,1,3,'mod/scorm:viewscores',1,1442833422,0),(771,1,1,'mod/scorm:viewscores',1,1442833422,0),(772,1,4,'mod/scorm:deleteresponses',1,1442833422,0),(773,1,3,'mod/scorm:deleteresponses',1,1442833422,0),(774,1,1,'mod/scorm:deleteresponses',1,1442833422,0),(775,1,3,'mod/survey:addinstance',1,1442833422,0),(776,1,1,'mod/survey:addinstance',1,1442833422,0),(777,1,5,'mod/survey:participate',1,1442833422,0),(778,1,4,'mod/survey:participate',1,1442833422,0),(779,1,3,'mod/survey:participate',1,1442833422,0),(780,1,1,'mod/survey:participate',1,1442833422,0),(781,1,4,'mod/survey:readresponses',1,1442833422,0),(782,1,3,'mod/survey:readresponses',1,1442833422,0),(783,1,1,'mod/survey:readresponses',1,1442833422,0),(784,1,4,'mod/survey:download',1,1442833422,0),(785,1,3,'mod/survey:download',1,1442833422,0),(786,1,1,'mod/survey:download',1,1442833422,0),(787,1,6,'mod/url:view',1,1442833422,0),(788,1,7,'mod/url:view',1,1442833422,0),(789,1,3,'mod/url:addinstance',1,1442833422,0),(790,1,1,'mod/url:addinstance',1,1442833422,0),(791,1,3,'mod/wiki:addinstance',1,1442833422,0),(792,1,1,'mod/wiki:addinstance',1,1442833422,0),(793,1,6,'mod/wiki:viewpage',1,1442833422,0),(794,1,5,'mod/wiki:viewpage',1,1442833422,0),(795,1,4,'mod/wiki:viewpage',1,1442833422,0),(796,1,3,'mod/wiki:viewpage',1,1442833422,0),(797,1,1,'mod/wiki:viewpage',1,1442833422,0),(798,1,5,'mod/wiki:editpage',1,1442833422,0),(799,1,4,'mod/wiki:editpage',1,1442833422,0),(800,1,3,'mod/wiki:editpage',1,1442833422,0),(801,1,1,'mod/wiki:editpage',1,1442833422,0),(802,1,5,'mod/wiki:createpage',1,1442833422,0),(803,1,4,'mod/wiki:createpage',1,1442833422,0),(804,1,3,'mod/wiki:createpage',1,1442833422,0),(805,1,1,'mod/wiki:createpage',1,1442833422,0),(806,1,5,'mod/wiki:viewcomment',1,1442833422,0),(807,1,4,'mod/wiki:viewcomment',1,1442833422,0),(808,1,3,'mod/wiki:viewcomment',1,1442833423,0),(809,1,1,'mod/wiki:viewcomment',1,1442833423,0),(810,1,5,'mod/wiki:editcomment',1,1442833423,0),(811,1,4,'mod/wiki:editcomment',1,1442833423,0),(812,1,3,'mod/wiki:editcomment',1,1442833423,0),(813,1,1,'mod/wiki:editcomment',1,1442833423,0),(814,1,4,'mod/wiki:managecomment',1,1442833423,0),(815,1,3,'mod/wiki:managecomment',1,1442833423,0),(816,1,1,'mod/wiki:managecomment',1,1442833423,0),(817,1,4,'mod/wiki:managefiles',1,1442833423,0),(818,1,3,'mod/wiki:managefiles',1,1442833423,0),(819,1,1,'mod/wiki:managefiles',1,1442833423,0),(820,1,4,'mod/wiki:overridelock',1,1442833423,0),(821,1,3,'mod/wiki:overridelock',1,1442833423,0),(822,1,1,'mod/wiki:overridelock',1,1442833423,0),(823,1,4,'mod/wiki:managewiki',1,1442833423,0),(824,1,3,'mod/wiki:managewiki',1,1442833423,0),(825,1,1,'mod/wiki:managewiki',1,1442833423,0),(826,1,6,'mod/workshop:view',1,1442833423,0),(827,1,5,'mod/workshop:view',1,1442833423,0),(828,1,4,'mod/workshop:view',1,1442833423,0),(829,1,3,'mod/workshop:view',1,1442833423,0),(830,1,1,'mod/workshop:view',1,1442833423,0),(831,1,3,'mod/workshop:addinstance',1,1442833423,0),(832,1,1,'mod/workshop:addinstance',1,1442833423,0),(833,1,4,'mod/workshop:switchphase',1,1442833423,0),(834,1,3,'mod/workshop:switchphase',1,1442833423,0),(835,1,1,'mod/workshop:switchphase',1,1442833423,0),(836,1,3,'mod/workshop:editdimensions',1,1442833423,0),(837,1,1,'mod/workshop:editdimensions',1,1442833423,0),(838,1,5,'mod/workshop:submit',1,1442833423,0),(839,1,5,'mod/workshop:peerassess',1,1442833423,0),(840,1,4,'mod/workshop:manageexamples',1,1442833423,0),(841,1,3,'mod/workshop:manageexamples',1,1442833423,0),(842,1,1,'mod/workshop:manageexamples',1,1442833423,0),(843,1,4,'mod/workshop:allocate',1,1442833423,0),(844,1,3,'mod/workshop:allocate',1,1442833423,0),(845,1,1,'mod/workshop:allocate',1,1442833423,0),(846,1,4,'mod/workshop:publishsubmissions',1,1442833423,0),(847,1,3,'mod/workshop:publishsubmissions',1,1442833423,0),(848,1,1,'mod/workshop:publishsubmissions',1,1442833423,0),(849,1,5,'mod/workshop:viewauthornames',1,1442833423,0),(850,1,4,'mod/workshop:viewauthornames',1,1442833423,0),(851,1,3,'mod/workshop:viewauthornames',1,1442833423,0),(852,1,1,'mod/workshop:viewauthornames',1,1442833423,0),(853,1,4,'mod/workshop:viewreviewernames',1,1442833423,0),(854,1,3,'mod/workshop:viewreviewernames',1,1442833423,0),(855,1,1,'mod/workshop:viewreviewernames',1,1442833423,0),(856,1,4,'mod/workshop:viewallsubmissions',1,1442833423,0),(857,1,3,'mod/workshop:viewallsubmissions',1,1442833423,0),(858,1,1,'mod/workshop:viewallsubmissions',1,1442833423,0),(859,1,5,'mod/workshop:viewpublishedsubmissions',1,1442833423,0),(860,1,4,'mod/workshop:viewpublishedsubmissions',1,1442833423,0),(861,1,3,'mod/workshop:viewpublishedsubmissions',1,1442833423,0),(862,1,1,'mod/workshop:viewpublishedsubmissions',1,1442833423,0),(863,1,5,'mod/workshop:viewauthorpublished',1,1442833423,0),(864,1,4,'mod/workshop:viewauthorpublished',1,1442833423,0),(865,1,3,'mod/workshop:viewauthorpublished',1,1442833423,0),(866,1,1,'mod/workshop:viewauthorpublished',1,1442833423,0),(867,1,4,'mod/workshop:viewallassessments',1,1442833423,0),(868,1,3,'mod/workshop:viewallassessments',1,1442833423,0),(869,1,1,'mod/workshop:viewallassessments',1,1442833423,0),(870,1,4,'mod/workshop:overridegrades',1,1442833423,0),(871,1,3,'mod/workshop:overridegrades',1,1442833423,0),(872,1,1,'mod/workshop:overridegrades',1,1442833423,0),(873,1,4,'mod/workshop:ignoredeadlines',1,1442833423,0),(874,1,3,'mod/workshop:ignoredeadlines',1,1442833423,0),(875,1,1,'mod/workshop:ignoredeadlines',1,1442833423,0),(876,1,1,'enrol/category:config',1,1442833424,0),(877,1,3,'enrol/category:config',1,1442833424,0),(878,1,3,'enrol/cohort:config',1,1442833424,0),(879,1,1,'enrol/cohort:config',1,1442833424,0),(880,1,1,'enrol/cohort:unenrol',1,1442833424,0),(881,1,1,'enrol/database:unenrol',1,1442833425,0),(882,1,1,'enrol/database:config',1,1442833425,0),(883,1,3,'enrol/database:config',1,1442833425,0),(884,1,1,'enrol/guest:config',1,1442833425,0),(885,1,3,'enrol/guest:config',1,1442833425,0),(886,1,1,'enrol/imsenterprise:config',1,1442833425,0),(887,1,3,'enrol/imsenterprise:config',1,1442833425,0),(888,1,1,'enrol/ldap:manage',1,1442833425,0),(889,1,1,'enrol/manual:config',1,1442833425,0),(890,1,1,'enrol/manual:enrol',1,1442833425,0),(891,1,3,'enrol/manual:enrol',1,1442833425,0),(892,1,1,'enrol/manual:manage',1,1442833425,0),(893,1,3,'enrol/manual:manage',1,1442833425,0),(894,1,1,'enrol/manual:unenrol',1,1442833425,0),(895,1,3,'enrol/manual:unenrol',1,1442833425,0),(896,1,1,'enrol/meta:config',1,1442833425,0),(897,1,3,'enrol/meta:config',1,1442833425,0),(898,1,1,'enrol/meta:selectaslinked',1,1442833425,0),(899,1,1,'enrol/meta:unenrol',1,1442833425,0),(900,1,1,'enrol/mnet:config',1,1442833425,0),(901,1,3,'enrol/mnet:config',1,1442833425,0),(902,1,1,'enrol/paypal:config',1,1442833426,0),(903,1,1,'enrol/paypal:manage',1,1442833426,0),(904,1,3,'enrol/paypal:manage',1,1442833426,0),(905,1,1,'enrol/paypal:unenrol',1,1442833426,0),(906,1,3,'enrol/self:config',1,1442833426,0),(907,1,1,'enrol/self:config',1,1442833426,0),(908,1,3,'enrol/self:manage',1,1442833426,0),(909,1,1,'enrol/self:manage',1,1442833426,0),(910,1,5,'enrol/self:unenrolself',1,1442833426,0),(911,1,3,'enrol/self:unenrol',1,1442833426,0),(912,1,1,'enrol/self:unenrol',1,1442833426,0),(913,1,7,'message/airnotifier:managedevice',1,1442833426,0),(914,1,3,'block/activity_modules:addinstance',1,1442833426,0),(915,1,1,'block/activity_modules:addinstance',1,1442833427,0),(916,1,7,'block/admin_bookmarks:myaddinstance',1,1442833427,0),(917,1,3,'block/admin_bookmarks:addinstance',1,1442833427,0),(918,1,1,'block/admin_bookmarks:addinstance',1,1442833427,0),(919,1,3,'block/badges:addinstance',1,1442833427,0),(920,1,1,'block/badges:addinstance',1,1442833427,0),(921,1,7,'block/badges:myaddinstance',1,1442833427,0),(922,1,3,'block/blog_menu:addinstance',1,1442833427,0),(923,1,1,'block/blog_menu:addinstance',1,1442833427,0),(924,1,3,'block/blog_recent:addinstance',1,1442833427,0),(925,1,1,'block/blog_recent:addinstance',1,1442833427,0),(926,1,3,'block/blog_tags:addinstance',1,1442833427,0),(927,1,1,'block/blog_tags:addinstance',1,1442833427,0),(928,1,7,'block/calendar_month:myaddinstance',1,1442833427,0),(929,1,3,'block/calendar_month:addinstance',1,1442833427,0),(930,1,1,'block/calendar_month:addinstance',1,1442833427,0),(931,1,7,'block/calendar_upcoming:myaddinstance',1,1442833427,0),(932,1,3,'block/calendar_upcoming:addinstance',1,1442833427,0),(933,1,1,'block/calendar_upcoming:addinstance',1,1442833427,0),(934,1,7,'block/comments:myaddinstance',1,1442833427,0),(935,1,3,'block/comments:addinstance',1,1442833427,0),(936,1,1,'block/comments:addinstance',1,1442833427,0),(937,1,7,'block/community:myaddinstance',1,1442833427,0),(938,1,3,'block/community:addinstance',1,1442833427,0),(939,1,1,'block/community:addinstance',1,1442833427,0),(940,1,3,'block/completionstatus:addinstance',1,1442833427,0),(941,1,1,'block/completionstatus:addinstance',1,1442833427,0),(942,1,7,'block/course_list:myaddinstance',1,1442833428,0),(943,1,3,'block/course_list:addinstance',1,1442833428,0),(944,1,1,'block/course_list:addinstance',1,1442833428,0),(945,1,7,'block/course_overview:myaddinstance',1,1442833428,0),(946,1,3,'block/course_overview:addinstance',1,1442833428,0),(947,1,1,'block/course_overview:addinstance',1,1442833428,0),(948,1,3,'block/course_summary:addinstance',1,1442833428,0),(949,1,1,'block/course_summary:addinstance',1,1442833428,0),(950,1,3,'block/feedback:addinstance',1,1442833428,0),(951,1,1,'block/feedback:addinstance',1,1442833428,0),(952,1,7,'block/glossary_random:myaddinstance',1,1442833428,0),(953,1,3,'block/glossary_random:addinstance',1,1442833428,0),(954,1,1,'block/glossary_random:addinstance',1,1442833428,0),(955,1,7,'block/html:myaddinstance',1,1442833428,0),(956,1,3,'block/html:addinstance',1,1442833428,0),(957,1,1,'block/html:addinstance',1,1442833428,0),(958,1,3,'block/login:addinstance',1,1442833428,0),(959,1,1,'block/login:addinstance',1,1442833428,0),(960,1,7,'block/mentees:myaddinstance',1,1442833428,0),(961,1,3,'block/mentees:addinstance',1,1442833428,0),(962,1,1,'block/mentees:addinstance',1,1442833428,0),(963,1,7,'block/messages:myaddinstance',1,1442833428,0),(964,1,3,'block/messages:addinstance',1,1442833428,0),(965,1,1,'block/messages:addinstance',1,1442833428,0),(966,1,7,'block/mnet_hosts:myaddinstance',1,1442833428,0),(967,1,3,'block/mnet_hosts:addinstance',1,1442833428,0),(968,1,1,'block/mnet_hosts:addinstance',1,1442833428,0),(969,1,7,'block/myprofile:myaddinstance',1,1442833428,0),(970,1,3,'block/myprofile:addinstance',1,1442833428,0),(971,1,1,'block/myprofile:addinstance',1,1442833428,0),(972,1,7,'block/navigation:myaddinstance',1,1442833429,0),(973,1,3,'block/navigation:addinstance',1,1442833429,0),(974,1,1,'block/navigation:addinstance',1,1442833429,0),(975,1,7,'block/news_items:myaddinstance',1,1442833429,0),(976,1,3,'block/news_items:addinstance',1,1442833429,0),(977,1,1,'block/news_items:addinstance',1,1442833429,0),(978,1,7,'block/online_users:myaddinstance',1,1442833429,0),(979,1,3,'block/online_users:addinstance',1,1442833429,0),(980,1,1,'block/online_users:addinstance',1,1442833429,0),(981,1,7,'block/online_users:viewlist',1,1442833429,0),(982,1,6,'block/online_users:viewlist',1,1442833429,0),(983,1,5,'block/online_users:viewlist',1,1442833429,0),(984,1,4,'block/online_users:viewlist',1,1442833429,0),(985,1,3,'block/online_users:viewlist',1,1442833429,0),(986,1,1,'block/online_users:viewlist',1,1442833429,0),(987,1,3,'block/participants:addinstance',1,1442833429,0),(988,1,1,'block/participants:addinstance',1,1442833429,0),(989,1,7,'block/private_files:myaddinstance',1,1442833429,0),(990,1,3,'block/private_files:addinstance',1,1442833429,0),(991,1,1,'block/private_files:addinstance',1,1442833429,0),(992,1,3,'block/quiz_results:addinstance',1,1442833429,0),(993,1,1,'block/quiz_results:addinstance',1,1442833429,0),(994,1,3,'block/recent_activity:addinstance',1,1442833429,0),(995,1,1,'block/recent_activity:addinstance',1,1442833429,0),(996,1,7,'block/recent_activity:viewaddupdatemodule',1,1442833429,0),(997,1,7,'block/recent_activity:viewdeletemodule',1,1442833429,0),(998,1,7,'block/rss_client:myaddinstance',1,1442833429,0),(999,1,3,'block/rss_client:addinstance',1,1442833429,0),(1000,1,1,'block/rss_client:addinstance',1,1442833429,0),(1001,1,4,'block/rss_client:manageownfeeds',1,1442833429,0),(1002,1,3,'block/rss_client:manageownfeeds',1,1442833429,0),(1003,1,1,'block/rss_client:manageownfeeds',1,1442833429,0),(1004,1,1,'block/rss_client:manageanyfeeds',1,1442833429,0),(1005,1,3,'block/search_forums:addinstance',1,1442833429,0),(1006,1,1,'block/search_forums:addinstance',1,1442833429,0),(1007,1,3,'block/section_links:addinstance',1,1442833429,0),(1008,1,1,'block/section_links:addinstance',1,1442833429,0),(1009,1,3,'block/selfcompletion:addinstance',1,1442833429,0),(1010,1,1,'block/selfcompletion:addinstance',1,1442833429,0),(1011,1,7,'block/settings:myaddinstance',1,1442833430,0),(1012,1,3,'block/settings:addinstance',1,1442833430,0),(1013,1,1,'block/settings:addinstance',1,1442833430,0),(1014,1,3,'block/site_main_menu:addinstance',1,1442833430,0),(1015,1,1,'block/site_main_menu:addinstance',1,1442833430,0),(1016,1,3,'block/social_activities:addinstance',1,1442833430,0),(1017,1,1,'block/social_activities:addinstance',1,1442833430,0),(1018,1,3,'block/tag_flickr:addinstance',1,1442833430,0),(1019,1,1,'block/tag_flickr:addinstance',1,1442833430,0),(1020,1,3,'block/tag_youtube:addinstance',1,1442833430,0),(1021,1,1,'block/tag_youtube:addinstance',1,1442833430,0),(1022,1,7,'block/tags:myaddinstance',1,1442833430,0),(1023,1,3,'block/tags:addinstance',1,1442833430,0),(1024,1,1,'block/tags:addinstance',1,1442833430,0),(1025,1,4,'report/completion:view',1,1442833432,0),(1026,1,3,'report/completion:view',1,1442833432,0),(1027,1,1,'report/completion:view',1,1442833432,0),(1028,1,4,'report/courseoverview:view',1,1442833432,0),(1029,1,3,'report/courseoverview:view',1,1442833432,0),(1030,1,1,'report/courseoverview:view',1,1442833432,0),(1031,1,4,'report/log:view',1,1442833432,0),(1032,1,3,'report/log:view',1,1442833432,0),(1033,1,1,'report/log:view',1,1442833432,0),(1034,1,4,'report/log:viewtoday',1,1442833432,0),(1035,1,3,'report/log:viewtoday',1,1442833432,0),(1036,1,1,'report/log:viewtoday',1,1442833432,0),(1037,1,4,'report/loglive:view',1,1442833432,0),(1038,1,3,'report/loglive:view',1,1442833432,0),(1039,1,1,'report/loglive:view',1,1442833432,0),(1040,1,4,'report/outline:view',1,1442833432,0),(1041,1,3,'report/outline:view',1,1442833432,0),(1042,1,1,'report/outline:view',1,1442833432,0),(1043,1,4,'report/participation:view',1,1442833432,0),(1044,1,3,'report/participation:view',1,1442833432,0),(1045,1,1,'report/participation:view',1,1442833432,0),(1046,1,1,'report/performance:view',1,1442833433,0),(1047,1,4,'report/progress:view',1,1442833433,0),(1048,1,3,'report/progress:view',1,1442833433,0),(1049,1,1,'report/progress:view',1,1442833433,0),(1050,1,1,'report/security:view',1,1442833433,0),(1051,1,4,'report/stats:view',1,1442833433,0),(1052,1,3,'report/stats:view',1,1442833433,0),(1053,1,1,'report/stats:view',1,1442833433,0),(1054,1,4,'gradeexport/ods:view',1,1442833433,0),(1055,1,3,'gradeexport/ods:view',1,1442833433,0),(1056,1,1,'gradeexport/ods:view',1,1442833433,0),(1057,1,1,'gradeexport/ods:publish',1,1442833433,0),(1058,1,4,'gradeexport/txt:view',1,1442833433,0),(1059,1,3,'gradeexport/txt:view',1,1442833433,0),(1060,1,1,'gradeexport/txt:view',1,1442833433,0),(1061,1,1,'gradeexport/txt:publish',1,1442833433,0),(1062,1,4,'gradeexport/xls:view',1,1442833433,0),(1063,1,3,'gradeexport/xls:view',1,1442833433,0),(1064,1,1,'gradeexport/xls:view',1,1442833433,0),(1065,1,1,'gradeexport/xls:publish',1,1442833433,0),(1066,1,4,'gradeexport/xml:view',1,1442833433,0),(1067,1,3,'gradeexport/xml:view',1,1442833433,0),(1068,1,1,'gradeexport/xml:view',1,1442833433,0),(1069,1,1,'gradeexport/xml:publish',1,1442833433,0),(1070,1,3,'gradeimport/csv:view',1,1442833434,0),(1071,1,1,'gradeimport/csv:view',1,1442833434,0),(1072,1,3,'gradeimport/direct:view',1,1442833434,0),(1073,1,1,'gradeimport/direct:view',1,1442833434,0),(1074,1,3,'gradeimport/xml:view',1,1442833434,0),(1075,1,1,'gradeimport/xml:view',1,1442833434,0),(1076,1,1,'gradeimport/xml:publish',1,1442833434,0),(1077,1,4,'gradereport/grader:view',1,1442833434,0),(1078,1,3,'gradereport/grader:view',1,1442833434,0),(1079,1,1,'gradereport/grader:view',1,1442833434,0),(1080,1,4,'gradereport/history:view',1,1442833434,0),(1081,1,3,'gradereport/history:view',1,1442833434,0),(1082,1,1,'gradereport/history:view',1,1442833434,0),(1083,1,4,'gradereport/outcomes:view',1,1442833434,0),(1084,1,3,'gradereport/outcomes:view',1,1442833434,0),(1085,1,1,'gradereport/outcomes:view',1,1442833434,0),(1086,1,5,'gradereport/overview:view',1,1442833434,0),(1087,1,1,'gradereport/overview:view',1,1442833434,0),(1088,1,3,'gradereport/singleview:view',1,1442833434,0),(1089,1,1,'gradereport/singleview:view',1,1442833434,0),(1090,1,5,'gradereport/user:view',1,1442833434,0),(1091,1,4,'gradereport/user:view',1,1442833434,0),(1092,1,3,'gradereport/user:view',1,1442833434,0),(1093,1,1,'gradereport/user:view',1,1442833434,0),(1094,1,7,'repository/alfresco:view',1,1442833435,0),(1095,1,7,'repository/areafiles:view',1,1442833435,0),(1096,1,7,'repository/boxnet:view',1,1442833435,0),(1097,1,2,'repository/coursefiles:view',1,1442833435,0),(1098,1,4,'repository/coursefiles:view',1,1442833435,0),(1099,1,3,'repository/coursefiles:view',1,1442833435,0),(1100,1,1,'repository/coursefiles:view',1,1442833435,0),(1101,1,7,'repository/dropbox:view',1,1442833435,0),(1102,1,7,'repository/equella:view',1,1442833435,0),(1103,1,2,'repository/filesystem:view',1,1442833435,0),(1104,1,4,'repository/filesystem:view',1,1442833435,0),(1105,1,3,'repository/filesystem:view',1,1442833435,0),(1106,1,1,'repository/filesystem:view',1,1442833435,0),(1107,1,7,'repository/flickr:view',1,1442833435,0),(1108,1,7,'repository/flickr_public:view',1,1442833435,0),(1109,1,7,'repository/googledocs:view',1,1442833435,0),(1110,1,2,'repository/local:view',1,1442833435,0),(1111,1,4,'repository/local:view',1,1442833436,0),(1112,1,3,'repository/local:view',1,1442833436,0),(1113,1,1,'repository/local:view',1,1442833436,0),(1114,1,7,'repository/merlot:view',1,1442833436,0),(1115,1,7,'repository/picasa:view',1,1442833436,0),(1116,1,7,'repository/recent:view',1,1442833436,0),(1117,1,7,'repository/s3:view',1,1442833436,0),(1118,1,7,'repository/skydrive:view',1,1442833436,0),(1119,1,7,'repository/upload:view',1,1442833436,0),(1120,1,7,'repository/url:view',1,1442833436,0),(1121,1,7,'repository/user:view',1,1442833436,0),(1122,1,2,'repository/webdav:view',1,1442833437,0),(1123,1,4,'repository/webdav:view',1,1442833437,0),(1124,1,3,'repository/webdav:view',1,1442833437,0),(1125,1,1,'repository/webdav:view',1,1442833437,0),(1126,1,7,'repository/wikimedia:view',1,1442833438,0),(1127,1,7,'repository/youtube:view',1,1442833438,0),(1128,1,1,'tool/customlang:view',1,1442833439,0),(1129,1,1,'tool/customlang:edit',1,1442833439,0),(1130,1,4,'tool/monitor:subscribe',1,1442833440,0),(1131,1,3,'tool/monitor:subscribe',1,1442833440,0),(1132,1,1,'tool/monitor:subscribe',1,1442833440,0),(1133,1,4,'tool/monitor:managerules',1,1442833440,0),(1134,1,3,'tool/monitor:managerules',1,1442833440,0),(1135,1,1,'tool/monitor:managerules',1,1442833440,0),(1136,1,1,'tool/monitor:managetool',1,1442833440,0),(1137,1,1,'tool/uploaduser:uploaduserpictures',1,1442833441,0),(1138,1,3,'booktool/importhtml:import',1,1442833443,0),(1139,1,1,'booktool/importhtml:import',1,1442833443,0),(1140,1,6,'booktool/print:print',1,1442833443,0),(1141,1,8,'booktool/print:print',1,1442833443,0),(1142,1,5,'booktool/print:print',1,1442833443,0),(1143,1,4,'booktool/print:print',1,1442833443,0),(1144,1,3,'booktool/print:print',1,1442833443,0),(1145,1,1,'booktool/print:print',1,1442833443,0),(1146,1,4,'quiz/grading:viewstudentnames',1,1442833444,0),(1147,1,3,'quiz/grading:viewstudentnames',1,1442833444,0),(1148,1,1,'quiz/grading:viewstudentnames',1,1442833444,0),(1149,1,4,'quiz/grading:viewidnumber',1,1442833444,0),(1150,1,3,'quiz/grading:viewidnumber',1,1442833444,0),(1151,1,1,'quiz/grading:viewidnumber',1,1442833444,0),(1152,1,4,'quiz/statistics:view',1,1442833444,0),(1153,1,3,'quiz/statistics:view',1,1442833444,0),(1154,1,1,'quiz/statistics:view',1,1442833444,0);

--
-- Table structure for table `mdl_role_context_levels`
--

CREATE TABLE `mdl_role_context_levels` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `roleid` bigint(10) NOT NULL,
  `contextlevel` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_rolecontleve_conrol_uix` (`contextlevel`,`roleid`),
  KEY `mdl_rolecontleve_rol_ix` (`roleid`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COMMENT='Lists which roles can be assigned at which context levels. T';

--
-- Dumping data for table `mdl_role_context_levels`
--

INSERT INTO `mdl_role_context_levels` VALUES (1,1,10),(4,2,10),(2,1,40),(5,2,40),(3,1,50),(6,3,50),(8,4,50),(10,5,50),(7,3,70),(9,4,70),(11,5,70);

--
-- Table structure for table `mdl_role_names`
--

CREATE TABLE `mdl_role_names` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `roleid` bigint(10) NOT NULL DEFAULT '0',
  `contextid` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_rolename_rolcon_uix` (`roleid`,`contextid`),
  KEY `mdl_rolename_rol_ix` (`roleid`),
  KEY `mdl_rolename_con_ix` (`contextid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='role names in native strings';

--
-- Dumping data for table `mdl_role_names`
--


--
-- Table structure for table `mdl_role_sortorder`
--

CREATE TABLE `mdl_role_sortorder` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL,
  `roleid` bigint(10) NOT NULL,
  `contextid` bigint(10) NOT NULL,
  `sortoder` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_rolesort_userolcon_uix` (`userid`,`roleid`,`contextid`),
  KEY `mdl_rolesort_use_ix` (`userid`),
  KEY `mdl_rolesort_rol_ix` (`roleid`),
  KEY `mdl_rolesort_con_ix` (`contextid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='sort order of course managers in a course';

--
-- Dumping data for table `mdl_role_sortorder`
--


--
-- Table structure for table `mdl_scale`
--

CREATE TABLE `mdl_scale` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `scale` longtext NOT NULL,
  `description` longtext NOT NULL,
  `descriptionformat` tinyint(2) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_scal_cou_ix` (`courseid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Defines grading scales';

--
-- Dumping data for table `mdl_scale`
--


--
-- Table structure for table `mdl_scale_history`
--

CREATE TABLE `mdl_scale_history` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `action` bigint(10) NOT NULL DEFAULT '0',
  `oldid` bigint(10) NOT NULL,
  `source` varchar(255) DEFAULT NULL,
  `timemodified` bigint(10) DEFAULT NULL,
  `loggeduser` bigint(10) DEFAULT NULL,
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `scale` longtext NOT NULL,
  `description` longtext NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_scalhist_act_ix` (`action`),
  KEY `mdl_scalhist_old_ix` (`oldid`),
  KEY `mdl_scalhist_cou_ix` (`courseid`),
  KEY `mdl_scalhist_log_ix` (`loggeduser`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='History table';

--
-- Dumping data for table `mdl_scale_history`
--


--
-- Table structure for table `mdl_scorm`
--

CREATE TABLE `mdl_scorm` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `scormtype` varchar(50) NOT NULL DEFAULT 'local',
  `reference` varchar(255) NOT NULL DEFAULT '',
  `intro` longtext NOT NULL,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `version` varchar(9) NOT NULL DEFAULT '',
  `maxgrade` double NOT NULL DEFAULT '0',
  `grademethod` tinyint(2) NOT NULL DEFAULT '0',
  `whatgrade` bigint(10) NOT NULL DEFAULT '0',
  `maxattempt` bigint(10) NOT NULL DEFAULT '1',
  `forcecompleted` tinyint(1) NOT NULL DEFAULT '1',
  `forcenewattempt` tinyint(1) NOT NULL DEFAULT '0',
  `lastattemptlock` tinyint(1) NOT NULL DEFAULT '0',
  `displayattemptstatus` tinyint(1) NOT NULL DEFAULT '1',
  `displaycoursestructure` tinyint(1) NOT NULL DEFAULT '1',
  `updatefreq` tinyint(1) NOT NULL DEFAULT '0',
  `sha1hash` varchar(40) DEFAULT NULL,
  `md5hash` varchar(32) NOT NULL DEFAULT '',
  `revision` bigint(10) NOT NULL DEFAULT '0',
  `launch` bigint(10) NOT NULL DEFAULT '0',
  `skipview` tinyint(1) NOT NULL DEFAULT '1',
  `hidebrowse` tinyint(1) NOT NULL DEFAULT '0',
  `hidetoc` tinyint(1) NOT NULL DEFAULT '0',
  `nav` tinyint(1) NOT NULL DEFAULT '1',
  `navpositionleft` bigint(10) DEFAULT '-100',
  `navpositiontop` bigint(10) DEFAULT '-100',
  `auto` tinyint(1) NOT NULL DEFAULT '0',
  `popup` tinyint(1) NOT NULL DEFAULT '0',
  `options` varchar(255) NOT NULL DEFAULT '',
  `width` bigint(10) NOT NULL DEFAULT '100',
  `height` bigint(10) NOT NULL DEFAULT '600',
  `timeopen` bigint(10) NOT NULL DEFAULT '0',
  `timeclose` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `completionstatusrequired` tinyint(1) DEFAULT NULL,
  `completionscorerequired` tinyint(2) DEFAULT NULL,
  `displayactivityname` smallint(4) NOT NULL DEFAULT '1',
  `autocommit` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_scor_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='each table is one SCORM module and its configuration';

--
-- Dumping data for table `mdl_scorm`
--


--
-- Table structure for table `mdl_scorm_aicc_session`
--

CREATE TABLE `mdl_scorm_aicc_session` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `scormid` bigint(10) NOT NULL DEFAULT '0',
  `hacpsession` varchar(255) NOT NULL DEFAULT '',
  `scoid` bigint(10) DEFAULT '0',
  `scormmode` varchar(50) DEFAULT NULL,
  `scormstatus` varchar(255) DEFAULT NULL,
  `attempt` bigint(10) DEFAULT NULL,
  `lessonstatus` varchar(255) DEFAULT NULL,
  `sessiontime` varchar(255) DEFAULT NULL,
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_scoraiccsess_sco_ix` (`scormid`),
  KEY `mdl_scoraiccsess_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Used by AICC HACP to store session information';

--
-- Dumping data for table `mdl_scorm_aicc_session`
--


--
-- Table structure for table `mdl_scorm_scoes`
--

CREATE TABLE `mdl_scorm_scoes` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `scorm` bigint(10) 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` longtext NOT NULL,
  `scormtype` varchar(5) NOT NULL DEFAULT '',
  `title` varchar(255) NOT NULL DEFAULT '',
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_scorscoe_sco_ix` (`scorm`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='each SCO part of the SCORM module';

--
-- Dumping data for table `mdl_scorm_scoes`
--


--
-- Table structure for table `mdl_scorm_scoes_data`
--

CREATE TABLE `mdl_scorm_scoes_data` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `scoid` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `value` longtext NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_scorscoedata_sco_ix` (`scoid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Contains variable data get from packages';

--
-- Dumping data for table `mdl_scorm_scoes_data`
--


--
-- Table structure for table `mdl_scorm_scoes_track`
--

CREATE TABLE `mdl_scorm_scoes_track` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `scormid` bigint(10) NOT NULL DEFAULT '0',
  `scoid` bigint(10) NOT NULL DEFAULT '0',
  `attempt` bigint(10) NOT NULL DEFAULT '1',
  `element` varchar(255) NOT NULL DEFAULT '',
  `value` longtext NOT NULL,
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_scorscoetrac_usescosco_uix` (`userid`,`scormid`,`scoid`,`attempt`,`element`),
  KEY `mdl_scorscoetrac_use_ix` (`userid`),
  KEY `mdl_scorscoetrac_ele_ix` (`element`),
  KEY `mdl_scorscoetrac_sco_ix` (`scormid`),
  KEY `mdl_scorscoetrac_sco2_ix` (`scoid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='to track SCOes';

--
-- Dumping data for table `mdl_scorm_scoes_track`
--


--
-- Table structure for table `mdl_scorm_seq_mapinfo`
--

CREATE TABLE `mdl_scorm_seq_mapinfo` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `scoid` bigint(10) NOT NULL DEFAULT '0',
  `objectiveid` bigint(10) NOT NULL DEFAULT '0',
  `targetobjectiveid` bigint(10) NOT NULL DEFAULT '0',
  `readsatisfiedstatus` tinyint(1) NOT NULL DEFAULT '1',
  `readnormalizedmeasure` tinyint(1) NOT NULL DEFAULT '1',
  `writesatisfiedstatus` tinyint(1) NOT NULL DEFAULT '0',
  `writenormalizedmeasure` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_scorseqmapi_scoidobj_uix` (`scoid`,`id`,`objectiveid`),
  KEY `mdl_scorseqmapi_sco_ix` (`scoid`),
  KEY `mdl_scorseqmapi_obj_ix` (`objectiveid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='SCORM2004 objective mapinfo description';

--
-- Dumping data for table `mdl_scorm_seq_mapinfo`
--


--
-- Table structure for table `mdl_scorm_seq_objective`
--

CREATE TABLE `mdl_scorm_seq_objective` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `scoid` bigint(10) NOT NULL DEFAULT '0',
  `primaryobj` tinyint(1) NOT NULL DEFAULT '0',
  `objectiveid` varchar(255) NOT NULL DEFAULT '',
  `satisfiedbymeasure` tinyint(1) NOT NULL DEFAULT '1',
  `minnormalizedmeasure` float(11,4) NOT NULL DEFAULT '0.0000',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_scorseqobje_scoid_uix` (`scoid`,`id`),
  KEY `mdl_scorseqobje_sco_ix` (`scoid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='SCORM2004 objective description';

--
-- Dumping data for table `mdl_scorm_seq_objective`
--


--
-- Table structure for table `mdl_scorm_seq_rolluprule`
--

CREATE TABLE `mdl_scorm_seq_rolluprule` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `scoid` bigint(10) NOT NULL DEFAULT '0',
  `childactivityset` varchar(15) NOT NULL DEFAULT '',
  `minimumcount` bigint(10) NOT NULL DEFAULT '0',
  `minimumpercent` float(11,4) NOT NULL DEFAULT '0.0000',
  `conditioncombination` varchar(3) NOT NULL DEFAULT 'all',
  `action` varchar(15) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_scorseqroll_scoid_uix` (`scoid`,`id`),
  KEY `mdl_scorseqroll_sco_ix` (`scoid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='SCORM2004 sequencing rule';

--
-- Dumping data for table `mdl_scorm_seq_rolluprule`
--


--
-- Table structure for table `mdl_scorm_seq_rolluprulecond`
--

CREATE TABLE `mdl_scorm_seq_rolluprulecond` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `scoid` bigint(10) NOT NULL DEFAULT '0',
  `rollupruleid` bigint(10) NOT NULL DEFAULT '0',
  `operator` varchar(5) NOT NULL DEFAULT 'noOp',
  `cond` varchar(25) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_scorseqroll_scorolid_uix` (`scoid`,`rollupruleid`,`id`),
  KEY `mdl_scorseqroll_sco2_ix` (`scoid`),
  KEY `mdl_scorseqroll_rol_ix` (`rollupruleid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='SCORM2004 sequencing rule';

--
-- Dumping data for table `mdl_scorm_seq_rolluprulecond`
--


--
-- Table structure for table `mdl_scorm_seq_rulecond`
--

CREATE TABLE `mdl_scorm_seq_rulecond` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `scoid` bigint(10) NOT NULL DEFAULT '0',
  `ruleconditionsid` bigint(10) 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',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_scorseqrule_idscorul_uix` (`id`,`scoid`,`ruleconditionsid`),
  KEY `mdl_scorseqrule_sco2_ix` (`scoid`),
  KEY `mdl_scorseqrule_rul_ix` (`ruleconditionsid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='SCORM2004 rule condition';

--
-- Dumping data for table `mdl_scorm_seq_rulecond`
--


--
-- Table structure for table `mdl_scorm_seq_ruleconds`
--

CREATE TABLE `mdl_scorm_seq_ruleconds` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `scoid` bigint(10) NOT NULL DEFAULT '0',
  `conditioncombination` varchar(3) NOT NULL DEFAULT 'all',
  `ruletype` tinyint(2) NOT NULL DEFAULT '0',
  `action` varchar(25) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_scorseqrule_scoid_uix` (`scoid`,`id`),
  KEY `mdl_scorseqrule_sco_ix` (`scoid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='SCORM2004 rule conditions';

--
-- Dumping data for table `mdl_scorm_seq_ruleconds`
--


--
-- Table structure for table `mdl_sessions`
--

CREATE TABLE `mdl_sessions` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `state` bigint(10) NOT NULL DEFAULT '0',
  `sid` varchar(128) NOT NULL DEFAULT '',
  `userid` bigint(10) NOT NULL,
  `sessdata` longtext,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  `firstip` varchar(45) DEFAULT NULL,
  `lastip` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_sess_sid_uix` (`sid`),
  KEY `mdl_sess_sta_ix` (`state`),
  KEY `mdl_sess_tim_ix` (`timecreated`),
  KEY `mdl_sess_tim2_ix` (`timemodified`),
  KEY `mdl_sess_use_ix` (`userid`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='Database based session storage - now recommended';

--
-- Dumping data for table `mdl_sessions`
--

INSERT INTO `mdl_sessions` VALUES (2,0,'d6d5crncjm0g0hfsbqa0pdaec4',2,NULL,1442833655,1442834961,'10.2.1.254','10.2.1.254');

--
-- Table structure for table `mdl_stats_daily`
--

CREATE TABLE `mdl_stats_daily` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `timeend` bigint(10) NOT NULL DEFAULT '0',
  `roleid` bigint(10) NOT NULL DEFAULT '0',
  `stattype` varchar(20) NOT NULL DEFAULT 'activity',
  `stat1` bigint(10) NOT NULL DEFAULT '0',
  `stat2` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_statdail_cou_ix` (`courseid`),
  KEY `mdl_statdail_tim_ix` (`timeend`),
  KEY `mdl_statdail_rol_ix` (`roleid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='to accumulate daily stats';

--
-- Dumping data for table `mdl_stats_daily`
--


--
-- Table structure for table `mdl_stats_monthly`
--

CREATE TABLE `mdl_stats_monthly` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `timeend` bigint(10) NOT NULL DEFAULT '0',
  `roleid` bigint(10) NOT NULL DEFAULT '0',
  `stattype` varchar(20) NOT NULL DEFAULT 'activity',
  `stat1` bigint(10) NOT NULL DEFAULT '0',
  `stat2` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_statmont_cou_ix` (`courseid`),
  KEY `mdl_statmont_tim_ix` (`timeend`),
  KEY `mdl_statmont_rol_ix` (`roleid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='To accumulate monthly stats';

--
-- Dumping data for table `mdl_stats_monthly`
--


--
-- Table structure for table `mdl_stats_user_daily`
--

CREATE TABLE `mdl_stats_user_daily` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `roleid` bigint(10) NOT NULL DEFAULT '0',
  `timeend` bigint(10) NOT NULL DEFAULT '0',
  `statsreads` bigint(10) NOT NULL DEFAULT '0',
  `statswrites` bigint(10) NOT NULL DEFAULT '0',
  `stattype` varchar(30) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_statuserdail_cou_ix` (`courseid`),
  KEY `mdl_statuserdail_use_ix` (`userid`),
  KEY `mdl_statuserdail_rol_ix` (`roleid`),
  KEY `mdl_statuserdail_tim_ix` (`timeend`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='To accumulate daily stats per course/user';

--
-- Dumping data for table `mdl_stats_user_daily`
--


--
-- Table structure for table `mdl_stats_user_monthly`
--

CREATE TABLE `mdl_stats_user_monthly` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `roleid` bigint(10) NOT NULL DEFAULT '0',
  `timeend` bigint(10) NOT NULL DEFAULT '0',
  `statsreads` bigint(10) NOT NULL DEFAULT '0',
  `statswrites` bigint(10) NOT NULL DEFAULT '0',
  `stattype` varchar(30) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_statusermont_cou_ix` (`courseid`),
  KEY `mdl_statusermont_use_ix` (`userid`),
  KEY `mdl_statusermont_rol_ix` (`roleid`),
  KEY `mdl_statusermont_tim_ix` (`timeend`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='To accumulate monthly stats per course/user';

--
-- Dumping data for table `mdl_stats_user_monthly`
--


--
-- Table structure for table `mdl_stats_user_weekly`
--

CREATE TABLE `mdl_stats_user_weekly` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `roleid` bigint(10) NOT NULL DEFAULT '0',
  `timeend` bigint(10) NOT NULL DEFAULT '0',
  `statsreads` bigint(10) NOT NULL DEFAULT '0',
  `statswrites` bigint(10) NOT NULL DEFAULT '0',
  `stattype` varchar(30) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_statuserweek_cou_ix` (`courseid`),
  KEY `mdl_statuserweek_use_ix` (`userid`),
  KEY `mdl_statuserweek_rol_ix` (`roleid`),
  KEY `mdl_statuserweek_tim_ix` (`timeend`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='To accumulate weekly stats per course/user';

--
-- Dumping data for table `mdl_stats_user_weekly`
--


--
-- Table structure for table `mdl_stats_weekly`
--

CREATE TABLE `mdl_stats_weekly` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `timeend` bigint(10) NOT NULL DEFAULT '0',
  `roleid` bigint(10) NOT NULL DEFAULT '0',
  `stattype` varchar(20) NOT NULL DEFAULT 'activity',
  `stat1` bigint(10) NOT NULL DEFAULT '0',
  `stat2` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_statweek_cou_ix` (`courseid`),
  KEY `mdl_statweek_tim_ix` (`timeend`),
  KEY `mdl_statweek_rol_ix` (`roleid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='To accumulate weekly stats';

--
-- Dumping data for table `mdl_stats_weekly`
--


--
-- Table structure for table `mdl_survey`
--

CREATE TABLE `mdl_survey` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `template` bigint(10) NOT NULL DEFAULT '0',
  `days` mediumint(6) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `intro` longtext NOT NULL,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `questions` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_surv_cou_ix` (`course`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='Each record is one SURVEY module with its configuration';

--
-- Dumping data for table `mdl_survey`
--

INSERT INTO `mdl_survey` VALUES (1,0,0,0,985017600,985017600,'collesaname','collesaintro',0,'25,26,27,28,29,30,43,44'),(2,0,0,0,985017600,985017600,'collespname','collespintro',0,'31,32,33,34,35,36,43,44'),(3,0,0,0,985017600,985017600,'collesapname','collesapintro',0,'37,38,39,40,41,42,43,44'),(4,0,0,0,985017600,985017600,'attlsname','attlsintro',0,'65,67,68'),(5,0,0,0,985017600,985017600,'ciqname','ciqintro',0,'69,70,71,72,73');

--
-- Table structure for table `mdl_survey_analysis`
--

CREATE TABLE `mdl_survey_analysis` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `survey` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `notes` longtext NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_survanal_use_ix` (`userid`),
  KEY `mdl_survanal_sur_ix` (`survey`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='text about each survey submission';

--
-- Dumping data for table `mdl_survey_analysis`
--


--
-- Table structure for table `mdl_survey_answers`
--

CREATE TABLE `mdl_survey_answers` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `survey` bigint(10) NOT NULL DEFAULT '0',
  `question` bigint(10) NOT NULL DEFAULT '0',
  `time` bigint(10) NOT NULL DEFAULT '0',
  `answer1` longtext NOT NULL,
  `answer2` longtext NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_survansw_use_ix` (`userid`),
  KEY `mdl_survansw_sur_ix` (`survey`),
  KEY `mdl_survansw_que_ix` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='the answers to each questions filled by the users';

--
-- Dumping data for table `mdl_survey_answers`
--


--
-- Table structure for table `mdl_survey_questions`
--

CREATE TABLE `mdl_survey_questions` (
  `id` bigint(10) 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` longtext,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=74 DEFAULT CHARSET=utf8 COMMENT='the questions conforming one survey';

--
-- Dumping data for table `mdl_survey_questions`
--

INSERT INTO `mdl_survey_questions` VALUES (1,'colles1','colles1short','','',1,'scaletimes5'),(2,'colles2','colles2short','','',1,'scaletimes5'),(3,'colles3','colles3short','','',1,'scaletimes5'),(4,'colles4','colles4short','','',1,'scaletimes5'),(5,'colles5','colles5short','','',1,'scaletimes5'),(6,'colles6','colles6short','','',1,'scaletimes5'),(7,'colles7','colles7short','','',1,'scaletimes5'),(8,'colles8','colles8short','','',1,'scaletimes5'),(9,'colles9','colles9short','','',1,'scaletimes5'),(10,'colles10','colles10short','','',1,'scaletimes5'),(11,'colles11','colles11short','','',1,'scaletimes5'),(12,'colles12','colles12short','','',1,'scaletimes5'),(13,'colles13','colles13short','','',1,'scaletimes5'),(14,'colles14','colles14short','','',1,'scaletimes5'),(15,'colles15','colles15short','','',1,'scaletimes5'),(16,'colles16','colles16short','','',1,'scaletimes5'),(17,'colles17','colles17short','','',1,'scaletimes5'),(18,'colles18','colles18short','','',1,'scaletimes5'),(19,'colles19','colles19short','','',1,'scaletimes5'),(20,'colles20','colles20short','','',1,'scaletimes5'),(21,'colles21','colles21short','','',1,'scaletimes5'),(22,'colles22','colles22short','','',1,'scaletimes5'),(23,'colles23','colles23short','','',1,'scaletimes5'),(24,'colles24','colles24short','','',1,'scaletimes5'),(25,'collesm1','collesm1short','1,2,3,4','collesmintro',1,'scaletimes5'),(26,'collesm2','collesm2short','5,6,7,8','collesmintro',1,'scaletimes5'),(27,'collesm3','collesm3short','9,10,11,12','collesmintro',1,'scaletimes5'),(28,'collesm4','collesm4short','13,14,15,16','collesmintro',1,'scaletimes5'),(29,'collesm5','collesm5short','17,18,19,20','collesmintro',1,'scaletimes5'),(30,'collesm6','collesm6short','21,22,23,24','collesmintro',1,'scaletimes5'),(31,'collesm1','collesm1short','1,2,3,4','collesmintro',2,'scaletimes5'),(32,'collesm2','collesm2short','5,6,7,8','collesmintro',2,'scaletimes5'),(33,'collesm3','collesm3short','9,10,11,12','collesmintro',2,'scaletimes5'),(34,'collesm4','collesm4short','13,14,15,16','collesmintro',2,'scaletimes5'),(35,'collesm5','collesm5short','17,18,19,20','collesmintro',2,'scaletimes5'),(36,'collesm6','collesm6short','21,22,23,24','collesmintro',2,'scaletimes5'),(37,'collesm1','collesm1short','1,2,3,4','collesmintro',3,'scaletimes5'),(38,'collesm2','collesm2short','5,6,7,8','collesmintro',3,'scaletimes5'),(39,'collesm3','collesm3short','9,10,11,12','collesmintro',3,'scaletimes5'),(40,'collesm4','collesm4short','13,14,15,16','collesmintro',3,'scaletimes5'),(41,'collesm5','collesm5short','17,18,19,20','collesmintro',3,'scaletimes5'),(42,'collesm6','collesm6short','21,22,23,24','collesmintro',3,'scaletimes5'),(43,'howlong','','','',1,'howlongoptions'),(44,'othercomments','','','',0,NULL),(45,'attls1','attls1short','','',1,'scaleagree5'),(46,'attls2','attls2short','','',1,'scaleagree5'),(47,'attls3','attls3short','','',1,'scaleagree5'),(48,'attls4','attls4short','','',1,'scaleagree5'),(49,'attls5','attls5short','','',1,'scaleagree5'),(50,'attls6','attls6short','','',1,'scaleagree5'),(51,'attls7','attls7short','','',1,'scaleagree5'),(52,'attls8','attls8short','','',1,'scaleagree5'),(53,'attls9','attls9short','','',1,'scaleagree5'),(54,'attls10','attls10short','','',1,'scaleagree5'),(55,'attls11','attls11short','','',1,'scaleagree5'),(56,'attls12','attls12short','','',1,'scaleagree5'),(57,'attls13','attls13short','','',1,'scaleagree5'),(58,'attls14','attls14short','','',1,'scaleagree5'),(59,'attls15','attls15short','','',1,'scaleagree5'),(60,'attls16','attls16short','','',1,'scaleagree5'),(61,'attls17','attls17short','','',1,'scaleagree5'),(62,'attls18','attls18short','','',1,'scaleagree5'),(63,'attls19','attls19short','','',1,'scaleagree5'),(64,'attls20','attls20short','','',1,'scaleagree5'),(65,'attlsm1','attlsm1','45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64','attlsmintro',1,'scaleagree5'),(66,'-','-','-','-',0,'-'),(67,'attlsm2','attlsm2','63,62,59,57,55,49,52,50,48,47','attlsmintro',-1,'scaleagree5'),(68,'attlsm3','attlsm3','46,54,45,51,60,53,56,58,61,64','attlsmintro',-1,'scaleagree5'),(69,'ciq1','ciq1short','','',0,NULL),(70,'ciq2','ciq2short','','',0,NULL),(71,'ciq3','ciq3short','','',0,NULL),(72,'ciq4','ciq4short','','',0,NULL),(73,'ciq5','ciq5short','','',0,NULL);

--
-- Table structure for table `mdl_tag`
--

CREATE TABLE `mdl_tag` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL,
  `name` varchar(255) NOT NULL DEFAULT '',
  `rawname` varchar(255) NOT NULL DEFAULT '',
  `tagtype` varchar(255) DEFAULT NULL,
  `description` longtext,
  `descriptionformat` tinyint(2) NOT NULL DEFAULT '0',
  `flag` smallint(4) DEFAULT '0',
  `timemodified` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_tag_nam_uix` (`name`),
  UNIQUE KEY `mdl_tag_idnam_uix` (`id`,`name`),
  KEY `mdl_tag_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Tag table - this generic table will replace the old "tags" t';

--
-- Dumping data for table `mdl_tag`
--


--
-- Table structure for table `mdl_tag_correlation`
--

CREATE TABLE `mdl_tag_correlation` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `tagid` bigint(10) NOT NULL,
  `correlatedtags` longtext NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_tagcorr_tag_ix` (`tagid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='The rationale for the ''tag_correlation'' table is performance';

--
-- Dumping data for table `mdl_tag_correlation`
--


--
-- Table structure for table `mdl_tag_instance`
--

CREATE TABLE `mdl_tag_instance` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `tagid` bigint(10) NOT NULL,
  `component` varchar(100) DEFAULT NULL,
  `itemtype` varchar(255) NOT NULL DEFAULT '',
  `itemid` bigint(10) NOT NULL,
  `contextid` bigint(10) DEFAULT NULL,
  `tiuserid` bigint(10) NOT NULL DEFAULT '0',
  `ordering` bigint(10) DEFAULT NULL,
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_taginst_iteitetagtiu_uix` (`itemtype`,`itemid`,`tagid`,`tiuserid`),
  KEY `mdl_taginst_tag_ix` (`tagid`),
  KEY `mdl_taginst_con_ix` (`contextid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='tag_instance table holds the information of associations bet';

--
-- Dumping data for table `mdl_tag_instance`
--


--
-- Table structure for table `mdl_task_adhoc`
--

CREATE TABLE `mdl_task_adhoc` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `component` varchar(255) NOT NULL DEFAULT '',
  `classname` varchar(255) NOT NULL DEFAULT '',
  `nextruntime` bigint(10) NOT NULL,
  `faildelay` bigint(10) DEFAULT NULL,
  `customdata` longtext,
  `blocking` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_taskadho_nex_ix` (`nextruntime`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='List of adhoc tasks waiting to run.';

--
-- Dumping data for table `mdl_task_adhoc`
--


--
-- Table structure for table `mdl_task_scheduled`
--

CREATE TABLE `mdl_task_scheduled` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `component` varchar(255) NOT NULL DEFAULT '',
  `classname` varchar(255) NOT NULL DEFAULT '',
  `lastruntime` bigint(10) DEFAULT NULL,
  `nextruntime` bigint(10) DEFAULT NULL,
  `blocking` tinyint(2) NOT NULL DEFAULT '0',
  `minute` varchar(25) NOT NULL DEFAULT '',
  `hour` varchar(25) NOT NULL DEFAULT '',
  `day` varchar(25) NOT NULL DEFAULT '',
  `month` varchar(25) NOT NULL DEFAULT '',
  `dayofweek` varchar(25) NOT NULL DEFAULT '',
  `faildelay` bigint(10) DEFAULT NULL,
  `customised` tinyint(2) NOT NULL DEFAULT '0',
  `disabled` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_tasksche_cla_uix` (`classname`)
) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=utf8 COMMENT='List of scheduled tasks to be run by cron.';

--
-- Dumping data for table `mdl_task_scheduled`
--

INSERT INTO `mdl_task_scheduled` VALUES (1,'moodle','\\core\\task\\session_cleanup_task',0,0,0,'*','*','*','*','*',0,0,0),(2,'moodle','\\core\\task\\delete_unconfirmed_users_task',0,0,0,'0','*','*','*','*',0,0,0),(3,'moodle','\\core\\task\\delete_incomplete_users_task',0,0,0,'5','*','*','*','*',0,0,0),(4,'moodle','\\core\\task\\backup_cleanup_task',0,0,0,'10','*','*','*','*',0,0,0),(5,'moodle','\\core\\task\\tag_cron_task',0,0,0,'20','*','*','*','*',0,0,0),(6,'moodle','\\core\\task\\context_cleanup_task',0,0,0,'25','*','*','*','*',0,0,0),(7,'moodle','\\core\\task\\cache_cleanup_task',0,0,0,'30','*','*','*','*',0,0,0),(8,'moodle','\\core\\task\\messaging_cleanup_task',0,0,0,'35','*','*','*','*',0,0,0),(9,'moodle','\\core\\task\\send_new_user_passwords_task',0,0,0,'*','*','*','*','*',0,0,0),(10,'moodle','\\core\\task\\send_failed_login_notifications_task',0,0,0,'*','*','*','*','*',0,0,0),(11,'moodle','\\core\\task\\create_contexts_task',0,0,1,'*','*','*','*','*',0,0,0),(12,'moodle','\\core\\task\\legacy_plugin_cron_task',0,0,0,'*','*','*','*','*',0,0,0),(13,'moodle','\\core\\task\\grade_cron_task',0,0,0,'*','*','*','*','*',0,0,0),(14,'moodle','\\core\\task\\events_cron_task',0,0,0,'*','*','*','*','*',0,0,0),(15,'moodle','\\core\\task\\completion_cron_task',0,0,0,'*','*','*','*','*',0,0,0),(16,'moodle','\\core\\task\\portfolio_cron_task',0,0,0,'*','*','*','*','*',0,0,0),(17,'moodle','\\core\\task\\plagiarism_cron_task',0,0,0,'*','*','*','*','*',0,0,0),(18,'moodle','\\core\\task\\calendar_cron_task',0,0,0,'*','*','*','*','*',0,0,0),(19,'moodle','\\core\\task\\blog_cron_task',0,0,0,'*','*','*','*','*',0,0,0),(20,'moodle','\\core\\task\\question_cron_task',0,0,0,'*','*','*','*','*',0,0,0),(21,'moodle','\\core\\task\\registration_cron_task',0,0,0,'0','3','*','*','*',0,0,0),(22,'moodle','\\core\\task\\check_for_updates_task',0,0,0,'0','*/2','*','*','*',0,0,0),(23,'moodle','\\core\\task\\cache_cron_task',0,0,0,'50','*','*','*','*',0,0,0),(24,'moodle','\\core\\task\\automated_backup_task',0,0,0,'50','*','*','*','*',0,0,0),(25,'moodle','\\core\\task\\badges_cron_task',0,0,0,'*/5','*','*','*','*',0,0,0),(26,'moodle','\\core\\task\\file_temp_cleanup_task',0,0,0,'55','*/6','*','*','*',0,0,0),(27,'moodle','\\core\\task\\file_trash_cleanup_task',0,0,0,'55','*/6','*','*','*',0,0,0),(28,'moodle','\\core\\task\\stats_cron_task',0,0,0,'0','*','*','*','*',0,0,0),(29,'moodle','\\core\\task\\password_reset_cleanup_task',0,0,0,'0','*/6','*','*','*',0,0,0),(30,'mod_forum','\\mod_forum\\task\\cron_task',0,0,0,'*','*','*','*','*',0,0,0),(31,'enrol_imsenterprise','\\enrol_imsenterprise\\task\\cron_task',0,0,0,'10','*','*','*','*',0,0,0),(32,'tool_langimport','\\tool_langimport\\task\\update_langpacks_task',0,0,0,'11','4','*','*','*',0,0,0),(33,'tool_messageinbound','\\tool_messageinbound\\task\\pickup_task',0,0,0,'*','*','*','*','*',0,0,0),(34,'tool_messageinbound','\\tool_messageinbound\\task\\cleanup_task',0,0,0,'55','1','*','*','*',0,0,0),(35,'tool_monitor','\\tool_monitor\\task\\clean_events',0,0,0,'*','*','*','*','*',0,0,0),(36,'logstore_legacy','\\logstore_legacy\\task\\cleanup_task',0,0,0,'*','5','*','*','*',0,0,0),(37,'logstore_standard','\\logstore_standard\\task\\cleanup_task',0,0,0,'*','4','*','*','*',0,0,0);

--
-- Table structure for table `mdl_timezone`
--

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(6) 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(6) NOT NULL DEFAULT '00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Rules for calculating local wall clock time for users';

--
-- Dumping data for table `mdl_timezone`
--


--
-- Table structure for table `mdl_tool_customlang`
--

CREATE TABLE `mdl_tool_customlang` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `lang` varchar(20) NOT NULL DEFAULT '',
  `componentid` bigint(10) NOT NULL,
  `stringid` varchar(255) NOT NULL DEFAULT '',
  `original` longtext NOT NULL,
  `master` longtext,
  `local` longtext,
  `timemodified` bigint(10) NOT NULL,
  `timecustomized` bigint(10) DEFAULT NULL,
  `outdated` smallint(3) DEFAULT '0',
  `modified` smallint(3) DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_toolcust_lancomstr_uix` (`lang`,`componentid`,`stringid`),
  KEY `mdl_toolcust_com_ix` (`componentid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Contains the working checkout of all strings and their custo';

--
-- Dumping data for table `mdl_tool_customlang`
--


--
-- Table structure for table `mdl_tool_customlang_components`
--

CREATE TABLE `mdl_tool_customlang_components` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL DEFAULT '',
  `version` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Contains the list of all installed plugins that provide thei';

--
-- Dumping data for table `mdl_tool_customlang_components`
--


--
-- Table structure for table `mdl_tool_monitor_events`
--

CREATE TABLE `mdl_tool_monitor_events` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `eventname` varchar(254) NOT NULL DEFAULT '',
  `contextid` bigint(10) NOT NULL,
  `contextlevel` bigint(10) NOT NULL,
  `contextinstanceid` bigint(10) NOT NULL,
  `link` varchar(254) NOT NULL DEFAULT '',
  `courseid` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='A table that keeps a log of events related to subscriptions';

--
-- Dumping data for table `mdl_tool_monitor_events`
--


--
-- Table structure for table `mdl_tool_monitor_history`
--

CREATE TABLE `mdl_tool_monitor_history` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `sid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `timesent` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_toolmonihist_sidusetim_uix` (`sid`,`userid`,`timesent`),
  KEY `mdl_toolmonihist_sid_ix` (`sid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table to store history of message notifications sent';

--
-- Dumping data for table `mdl_tool_monitor_history`
--


--
-- Table structure for table `mdl_tool_monitor_rules`
--

CREATE TABLE `mdl_tool_monitor_rules` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `description` longtext,
  `descriptionformat` tinyint(1) NOT NULL,
  `name` varchar(254) NOT NULL DEFAULT '',
  `userid` bigint(10) NOT NULL,
  `courseid` bigint(10) NOT NULL,
  `plugin` varchar(254) NOT NULL DEFAULT '',
  `eventname` varchar(254) NOT NULL DEFAULT '',
  `template` longtext NOT NULL,
  `templateformat` tinyint(1) NOT NULL,
  `frequency` smallint(4) NOT NULL,
  `timewindow` mediumint(5) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_toolmonirule_couuse_ix` (`courseid`,`userid`),
  KEY `mdl_toolmonirule_eve_ix` (`eventname`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table to store rules';

--
-- Dumping data for table `mdl_tool_monitor_rules`
--


--
-- Table structure for table `mdl_tool_monitor_subscriptions`
--

CREATE TABLE `mdl_tool_monitor_subscriptions` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) NOT NULL,
  `ruleid` bigint(10) NOT NULL,
  `cmid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  `lastnotificationsent` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_toolmonisubs_couuse_ix` (`courseid`,`userid`),
  KEY `mdl_toolmonisubs_rul_ix` (`ruleid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table to store user subscriptions to various rules';

--
-- Dumping data for table `mdl_tool_monitor_subscriptions`
--


--
-- Table structure for table `mdl_upgrade_log`
--

CREATE TABLE `mdl_upgrade_log` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `type` bigint(10) NOT NULL,
  `plugin` varchar(100) DEFAULT NULL,
  `version` varchar(100) DEFAULT NULL,
  `targetversion` varchar(100) DEFAULT NULL,
  `info` varchar(255) NOT NULL DEFAULT '',
  `details` longtext,
  `backtrace` longtext,
  `userid` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_upgrlog_tim_ix` (`timemodified`),
  KEY `mdl_upgrlog_typtim_ix` (`type`,`timemodified`),
  KEY `mdl_upgrlog_use_ix` (`userid`)
) ENGINE=InnoDB AUTO_INCREMENT=1062 DEFAULT CHARSET=utf8 COMMENT='Upgrade logging';

--
-- Dumping data for table `mdl_upgrade_log`
--

INSERT INTO `mdl_upgrade_log` VALUES (1,0,'core','2014111001.04','2014111001.04','Upgrade savepoint reached',NULL,'',0,1442833408),(2,0,'core','2014111001.04','2014111001.04','Core installed',NULL,'',0,1442833416),(3,0,'availability_completion',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833417),(4,0,'availability_completion','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833417),(5,0,'availability_completion','2014111000','2014111000','Plugin installed',NULL,'',0,1442833417),(6,0,'availability_date',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833417),(7,0,'availability_date','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833417),(8,0,'availability_date','2014111000','2014111000','Plugin installed',NULL,'',0,1442833417),(9,0,'availability_grade',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833417),(10,0,'availability_grade','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833417),(11,0,'availability_grade','2014111000','2014111000','Plugin installed',NULL,'',0,1442833417),(12,0,'availability_group',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833417),(13,0,'availability_group','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833417),(14,0,'availability_group','2014111000','2014111000','Plugin installed',NULL,'',0,1442833417),(15,0,'availability_grouping',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833417),(16,0,'availability_grouping','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833417),(17,0,'availability_grouping','2014111000','2014111000','Plugin installed',NULL,'',0,1442833417),(18,0,'availability_profile',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833417),(19,0,'availability_profile','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833417),(20,0,'availability_profile','2014111000','2014111000','Plugin installed',NULL,'',0,1442833417),(21,0,'qtype_calculated',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833417),(22,0,'qtype_calculated','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833417),(23,0,'qtype_calculated','2014111000','2014111000','Plugin installed',NULL,'',0,1442833417),(24,0,'qtype_calculatedmulti',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833417),(25,0,'qtype_calculatedmulti','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833417),(26,0,'qtype_calculatedmulti','2014111000','2014111000','Plugin installed',NULL,'',0,1442833417),(27,0,'qtype_calculatedsimple',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833417),(28,0,'qtype_calculatedsimple','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833417),(29,0,'qtype_calculatedsimple','2014111000','2014111000','Plugin installed',NULL,'',0,1442833417),(30,0,'qtype_description',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833417),(31,0,'qtype_description','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833417),(32,0,'qtype_description','2014111000','2014111000','Plugin installed',NULL,'',0,1442833417),(33,0,'qtype_essay',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833417),(34,0,'qtype_essay','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833417),(35,0,'qtype_essay','2014111000','2014111000','Plugin installed',NULL,'',0,1442833417),(36,0,'qtype_match',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833417),(37,0,'qtype_match','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833417),(38,0,'qtype_match','2014111000','2014111000','Plugin installed',NULL,'',0,1442833417),(39,0,'qtype_missingtype',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833417),(40,0,'qtype_missingtype','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833417),(41,0,'qtype_missingtype','2014111000','2014111000','Plugin installed',NULL,'',0,1442833417),(42,0,'qtype_multianswer',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833417),(43,0,'qtype_multianswer','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833417),(44,0,'qtype_multianswer','2014111000','2014111000','Plugin installed',NULL,'',0,1442833417),(45,0,'qtype_multichoice',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833417),(46,0,'qtype_multichoice','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833417),(47,0,'qtype_multichoice','2014111000','2014111000','Plugin installed',NULL,'',0,1442833417),(48,0,'qtype_numerical',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833417),(49,0,'qtype_numerical','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833417),(50,0,'qtype_numerical','2014111000','2014111000','Plugin installed',NULL,'',0,1442833417),(51,0,'qtype_random',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833417),(52,0,'qtype_random','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833417),(53,0,'qtype_random','2014111000','2014111000','Plugin installed',NULL,'',0,1442833417),(54,0,'qtype_randomsamatch',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833417),(55,0,'qtype_randomsamatch','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833417),(56,0,'qtype_randomsamatch','2014111000','2014111000','Plugin installed',NULL,'',0,1442833417),(57,0,'qtype_shortanswer',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833417),(58,0,'qtype_shortanswer','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833417),(59,0,'qtype_shortanswer','2014111000','2014111000','Plugin installed',NULL,'',0,1442833417),(60,0,'qtype_truefalse',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833417),(61,0,'qtype_truefalse','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833417),(62,0,'qtype_truefalse','2014111000','2014111000','Plugin installed',NULL,'',0,1442833417),(63,0,'mod_assign',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833417),(64,0,'mod_assign','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833417),(65,0,'mod_assign','2014111000','2014111000','Plugin installed',NULL,'',0,1442833418),(66,0,'mod_assignment',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833418),(67,0,'mod_assignment','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833418),(68,0,'mod_assignment','2014111000','2014111000','Plugin installed',NULL,'',0,1442833418),(69,0,'mod_book',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833418),(70,0,'mod_book','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833418),(71,0,'mod_book','2014111000','2014111000','Plugin installed',NULL,'',0,1442833418),(72,0,'mod_chat',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833418),(73,0,'mod_chat','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833418),(74,0,'mod_chat','2014111000','2014111000','Plugin installed',NULL,'',0,1442833418),(75,0,'mod_choice',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833418),(76,0,'mod_choice','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833418),(77,0,'mod_choice','2014111000','2014111000','Plugin installed',NULL,'',0,1442833418),(78,0,'mod_data',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833418),(79,0,'mod_data','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833418),(80,0,'mod_data','2014111000','2014111000','Plugin installed',NULL,'',0,1442833419),(81,0,'mod_feedback',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833419),(82,0,'mod_feedback','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833419),(83,0,'mod_feedback','2014111000','2014111000','Plugin installed',NULL,'',0,1442833419),(84,0,'mod_folder',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833419),(85,0,'mod_folder','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833419),(86,0,'mod_folder','2014111000','2014111000','Plugin installed',NULL,'',0,1442833419),(87,0,'mod_forum',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833419),(88,0,'mod_forum','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833419),(89,0,'mod_forum','2014111000','2014111000','Plugin installed',NULL,'',0,1442833420),(90,0,'mod_glossary',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833420),(91,0,'mod_glossary','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833420),(92,0,'mod_glossary','2014111000','2014111000','Plugin installed',NULL,'',0,1442833420),(93,0,'mod_imscp',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833420),(94,0,'mod_imscp','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833420),(95,0,'mod_imscp','2014111000','2014111000','Plugin installed',NULL,'',0,1442833420),(96,0,'mod_label',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833420),(97,0,'mod_label','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833420),(98,0,'mod_label','2014111000','2014111000','Plugin installed',NULL,'',0,1442833420),(99,0,'mod_lesson',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833420),(100,0,'mod_lesson','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833421),(101,0,'mod_lesson','2014111000','2014111000','Plugin installed',NULL,'',0,1442833421),(102,0,'mod_lti',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833421),(103,0,'mod_lti','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833421),(104,0,'mod_lti','2014111000','2014111000','Plugin installed',NULL,'',0,1442833421),(105,0,'mod_page',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833421),(106,0,'mod_page','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833421),(107,0,'mod_page','2014111000','2014111000','Plugin installed',NULL,'',0,1442833421),(108,0,'mod_quiz',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833421),(109,0,'mod_quiz','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833421),(110,0,'mod_quiz','2014111000','2014111000','Plugin installed',NULL,'',0,1442833421),(111,0,'mod_resource',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833421),(112,0,'mod_resource','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833421),(113,0,'mod_resource','2014111000','2014111000','Plugin installed',NULL,'',0,1442833421),(114,0,'mod_scorm',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833421),(115,0,'mod_scorm','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833422),(116,0,'mod_scorm','2014111000','2014111000','Plugin installed',NULL,'',0,1442833422),(117,0,'mod_survey',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833422),(118,0,'mod_survey','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833422),(119,0,'mod_survey','2014111000','2014111000','Plugin installed',NULL,'',0,1442833422),(120,0,'mod_url',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833422),(121,0,'mod_url','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833422),(122,0,'mod_url','2014111000','2014111000','Plugin installed',NULL,'',0,1442833422),(123,0,'mod_wiki',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833422),(124,0,'mod_wiki','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833422),(125,0,'mod_wiki','2014111000','2014111000','Plugin installed',NULL,'',0,1442833423),(126,0,'mod_workshop',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833423),(127,0,'mod_workshop','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833423),(128,0,'mod_workshop','2014111000','2014111000','Plugin installed',NULL,'',0,1442833423),(129,0,'auth_cas',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833423),(130,0,'auth_cas','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833423),(131,0,'auth_cas','2014111000','2014111000','Plugin installed',NULL,'',0,1442833423),(132,0,'auth_db',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833423),(133,0,'auth_db','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833423),(134,0,'auth_db','2014111000','2014111000','Plugin installed',NULL,'',0,1442833423),(135,0,'auth_email',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833423),(136,0,'auth_email','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833423),(137,0,'auth_email','2014111000','2014111000','Plugin installed',NULL,'',0,1442833423),(138,0,'auth_fc',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833423),(139,0,'auth_fc','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833423),(140,0,'auth_fc','2014111000','2014111000','Plugin installed',NULL,'',0,1442833423),(141,0,'auth_imap',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833423),(142,0,'auth_imap','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833423),(143,0,'auth_imap','2014111000','2014111000','Plugin installed',NULL,'',0,1442833423),(144,0,'auth_ldap',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833423),(145,0,'auth_ldap','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833423),(146,0,'auth_ldap','2014111000','2014111000','Plugin installed',NULL,'',0,1442833423),(147,0,'auth_manual',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833423),(148,0,'auth_manual','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833423),(149,0,'auth_manual','2014111000','2014111000','Plugin installed',NULL,'',0,1442833424),(150,0,'auth_mnet',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833424),(151,0,'auth_mnet','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833424),(152,0,'auth_mnet','2014111000','2014111000','Plugin installed',NULL,'',0,1442833424),(153,0,'auth_nntp',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833424),(154,0,'auth_nntp','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833424),(155,0,'auth_nntp','2014111000','2014111000','Plugin installed',NULL,'',0,1442833424),(156,0,'auth_nologin',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833424),(157,0,'auth_nologin','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833424),(158,0,'auth_nologin','2014111000','2014111000','Plugin installed',NULL,'',0,1442833424),(159,0,'auth_none',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833424),(160,0,'auth_none','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833424),(161,0,'auth_none','2014111000','2014111000','Plugin installed',NULL,'',0,1442833424),(162,0,'auth_pam',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833424),(163,0,'auth_pam','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833424),(164,0,'auth_pam','2014111000','2014111000','Plugin installed',NULL,'',0,1442833424),(165,0,'auth_pop3',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833424),(166,0,'auth_pop3','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833424),(167,0,'auth_pop3','2014111000','2014111000','Plugin installed',NULL,'',0,1442833424),(168,0,'auth_radius',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833424),(169,0,'auth_radius','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833424),(170,0,'auth_radius','2014111000','2014111000','Plugin installed',NULL,'',0,1442833424),(171,0,'auth_shibboleth',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833424),(172,0,'auth_shibboleth','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833424),(173,0,'auth_shibboleth','2014111000','2014111000','Plugin installed',NULL,'',0,1442833424),(174,0,'auth_webservice',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833424),(175,0,'auth_webservice','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833424),(176,0,'auth_webservice','2014111000','2014111000','Plugin installed',NULL,'',0,1442833424),(177,0,'calendartype_gregorian',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833424),(178,0,'calendartype_gregorian','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833424),(179,0,'calendartype_gregorian','2014111000','2014111000','Plugin installed',NULL,'',0,1442833424),(180,0,'enrol_category',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833424),(181,0,'enrol_category','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833424),(182,0,'enrol_category','2014111000','2014111000','Plugin installed',NULL,'',0,1442833424),(183,0,'enrol_cohort',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833424),(184,0,'enrol_cohort','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833424),(185,0,'enrol_cohort','2014111000','2014111000','Plugin installed',NULL,'',0,1442833425),(186,0,'enrol_database',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833425),(187,0,'enrol_database','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833425),(188,0,'enrol_database','2014111000','2014111000','Plugin installed',NULL,'',0,1442833425),(189,0,'enrol_flatfile',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833425),(190,0,'enrol_flatfile','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833425),(191,0,'enrol_flatfile','2014111000','2014111000','Plugin installed',NULL,'',0,1442833425),(192,0,'enrol_guest',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833425),(193,0,'enrol_guest','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833425),(194,0,'enrol_guest','2014111000','2014111000','Plugin installed',NULL,'',0,1442833425),(195,0,'enrol_imsenterprise',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833425),(196,0,'enrol_imsenterprise','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833425),(197,0,'enrol_imsenterprise','2014111000','2014111000','Plugin installed',NULL,'',0,1442833425),(198,0,'enrol_ldap',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833425),(199,0,'enrol_ldap','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833425),(200,0,'enrol_ldap','2014111000','2014111000','Plugin installed',NULL,'',0,1442833425),(201,0,'enrol_manual',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833425),(202,0,'enrol_manual','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833425),(203,0,'enrol_manual','2014111000','2014111000','Plugin installed',NULL,'',0,1442833425),(204,0,'enrol_meta',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833425),(205,0,'enrol_meta','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833425),(206,0,'enrol_meta','2014111000','2014111000','Plugin installed',NULL,'',0,1442833425),(207,0,'enrol_mnet',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833425),(208,0,'enrol_mnet','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833425),(209,0,'enrol_mnet','2014111000','2014111000','Plugin installed',NULL,'',0,1442833425),(210,0,'enrol_paypal',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833425),(211,0,'enrol_paypal','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833426),(212,0,'enrol_paypal','2014111000','2014111000','Plugin installed',NULL,'',0,1442833426),(213,0,'enrol_self',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833426),(214,0,'enrol_self','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833426),(215,0,'enrol_self','2014111000','2014111000','Plugin installed',NULL,'',0,1442833426),(216,0,'message_airnotifier',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833426),(217,0,'message_airnotifier','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833426),(218,0,'message_airnotifier','2014111000','2014111000','Plugin installed',NULL,'',0,1442833426),(219,0,'message_email',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833426),(220,0,'message_email','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833426),(221,0,'message_email','2014111000','2014111000','Plugin installed',NULL,'',0,1442833426),(222,0,'message_jabber',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833426),(223,0,'message_jabber','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833426),(224,0,'message_jabber','2014111000','2014111000','Plugin installed',NULL,'',0,1442833426),(225,0,'message_popup',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833426),(226,0,'message_popup','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833426),(227,0,'message_popup','2014111000','2014111000','Plugin installed',NULL,'',0,1442833426),(228,0,'block_activity_modules',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833426),(229,0,'block_activity_modules','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833426),(230,0,'block_activity_modules','2014111000','2014111000','Plugin installed',NULL,'',0,1442833427),(231,0,'block_admin_bookmarks',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833427),(232,0,'block_admin_bookmarks','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833427),(233,0,'block_admin_bookmarks','2014111000','2014111000','Plugin installed',NULL,'',0,1442833427),(234,0,'block_badges',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833427),(235,0,'block_badges','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833427),(236,0,'block_badges','2014111000','2014111000','Plugin installed',NULL,'',0,1442833427),(237,0,'block_blog_menu',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833427),(238,0,'block_blog_menu','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833427),(239,0,'block_blog_menu','2014111000','2014111000','Plugin installed',NULL,'',0,1442833427),(240,0,'block_blog_recent',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833427),(241,0,'block_blog_recent','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833427),(242,0,'block_blog_recent','2014111000','2014111000','Plugin installed',NULL,'',0,1442833427),(243,0,'block_blog_tags',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833427),(244,0,'block_blog_tags','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833427),(245,0,'block_blog_tags','2014111000','2014111000','Plugin installed',NULL,'',0,1442833427),(246,0,'block_calendar_month',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833427),(247,0,'block_calendar_month','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833427),(248,0,'block_calendar_month','2014111000','2014111000','Plugin installed',NULL,'',0,1442833427),(249,0,'block_calendar_upcoming',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833427),(250,0,'block_calendar_upcoming','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833427),(251,0,'block_calendar_upcoming','2014111000','2014111000','Plugin installed',NULL,'',0,1442833427),(252,0,'block_comments',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833427),(253,0,'block_comments','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833427),(254,0,'block_comments','2014111000','2014111000','Plugin installed',NULL,'',0,1442833427),(255,0,'block_community',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833427),(256,0,'block_community','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833427),(257,0,'block_community','2014111000','2014111000','Plugin installed',NULL,'',0,1442833427),(258,0,'block_completionstatus',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833427),(259,0,'block_completionstatus','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833427),(260,0,'block_completionstatus','2014111000','2014111000','Plugin installed',NULL,'',0,1442833428),(261,0,'block_course_list',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833428),(262,0,'block_course_list','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833428),(263,0,'block_course_list','2014111000','2014111000','Plugin installed',NULL,'',0,1442833428),(264,0,'block_course_overview',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833428),(265,0,'block_course_overview','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833428),(266,0,'block_course_overview','2014111000','2014111000','Plugin installed',NULL,'',0,1442833428),(267,0,'block_course_summary',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833428),(268,0,'block_course_summary','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833428),(269,0,'block_course_summary','2014111000','2014111000','Plugin installed',NULL,'',0,1442833428),(270,0,'block_feedback',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833428),(271,0,'block_feedback','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833428),(272,0,'block_feedback','2014111000','2014111000','Plugin installed',NULL,'',0,1442833428),(273,0,'block_glossary_random',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833428),(274,0,'block_glossary_random','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833428),(275,0,'block_glossary_random','2014111000','2014111000','Plugin installed',NULL,'',0,1442833428),(276,0,'block_html',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833428),(277,0,'block_html','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833428),(278,0,'block_html','2014111000','2014111000','Plugin installed',NULL,'',0,1442833428),(279,0,'block_login',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833428),(280,0,'block_login','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833428),(281,0,'block_login','2014111000','2014111000','Plugin installed',NULL,'',0,1442833428),(282,0,'block_mentees',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833428),(283,0,'block_mentees','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833428),(284,0,'block_mentees','2014111000','2014111000','Plugin installed',NULL,'',0,1442833428),(285,0,'block_messages',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833428),(286,0,'block_messages','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833428),(287,0,'block_messages','2014111000','2014111000','Plugin installed',NULL,'',0,1442833428),(288,0,'block_mnet_hosts',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833428),(289,0,'block_mnet_hosts','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833428),(290,0,'block_mnet_hosts','2014111000','2014111000','Plugin installed',NULL,'',0,1442833428),(291,0,'block_myprofile',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833428),(292,0,'block_myprofile','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833428),(293,0,'block_myprofile','2014111000','2014111000','Plugin installed',NULL,'',0,1442833428),(294,0,'block_navigation',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833429),(295,0,'block_navigation','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833429),(296,0,'block_navigation','2014111000','2014111000','Plugin installed',NULL,'',0,1442833429),(297,0,'block_news_items',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833429),(298,0,'block_news_items','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833429),(299,0,'block_news_items','2014111000','2014111000','Plugin installed',NULL,'',0,1442833429),(300,0,'block_online_users',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833429),(301,0,'block_online_users','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833429),(302,0,'block_online_users','2014111000','2014111000','Plugin installed',NULL,'',0,1442833429),(303,0,'block_participants',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833429),(304,0,'block_participants','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833429),(305,0,'block_participants','2014111000','2014111000','Plugin installed',NULL,'',0,1442833429),(306,0,'block_private_files',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833429),(307,0,'block_private_files','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833429),(308,0,'block_private_files','2014111000','2014111000','Plugin installed',NULL,'',0,1442833429),(309,0,'block_quiz_results',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833429),(310,0,'block_quiz_results','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833429),(311,0,'block_quiz_results','2014111000','2014111000','Plugin installed',NULL,'',0,1442833429),(312,0,'block_recent_activity',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833429),(313,0,'block_recent_activity','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833429),(314,0,'block_recent_activity','2014111000','2014111000','Plugin installed',NULL,'',0,1442833429),(315,0,'block_rss_client',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833429),(316,0,'block_rss_client','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833429),(317,0,'block_rss_client','2014111000','2014111000','Plugin installed',NULL,'',0,1442833429),(318,0,'block_search_forums',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833429),(319,0,'block_search_forums','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833429),(320,0,'block_search_forums','2014111000','2014111000','Plugin installed',NULL,'',0,1442833429),(321,0,'block_section_links',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833429),(322,0,'block_section_links','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833429),(323,0,'block_section_links','2014111000','2014111000','Plugin installed',NULL,'',0,1442833429),(324,0,'block_selfcompletion',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833429),(325,0,'block_selfcompletion','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833429),(326,0,'block_selfcompletion','2014111000','2014111000','Plugin installed',NULL,'',0,1442833430),(327,0,'block_settings',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833430),(328,0,'block_settings','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833430),(329,0,'block_settings','2014111000','2014111000','Plugin installed',NULL,'',0,1442833430),(330,0,'block_site_main_menu',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833430),(331,0,'block_site_main_menu','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833430),(332,0,'block_site_main_menu','2014111000','2014111000','Plugin installed',NULL,'',0,1442833430),(333,0,'block_social_activities',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833430),(334,0,'block_social_activities','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833430),(335,0,'block_social_activities','2014111000','2014111000','Plugin installed',NULL,'',0,1442833430),(336,0,'block_tag_flickr',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833430),(337,0,'block_tag_flickr','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833430),(338,0,'block_tag_flickr','2014111000','2014111000','Plugin installed',NULL,'',0,1442833430),(339,0,'block_tag_youtube',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833430),(340,0,'block_tag_youtube','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833430),(341,0,'block_tag_youtube','2014111000','2014111000','Plugin installed',NULL,'',0,1442833430),(342,0,'block_tags',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833430),(343,0,'block_tags','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833430),(344,0,'block_tags','2014111000','2014111000','Plugin installed',NULL,'',0,1442833430),(345,0,'filter_activitynames',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833430),(346,0,'filter_activitynames','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833430),(347,0,'filter_activitynames','2014111000','2014111000','Plugin installed',NULL,'',0,1442833430),(348,0,'filter_algebra',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833430),(349,0,'filter_algebra','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833430),(350,0,'filter_algebra','2014111000','2014111000','Plugin installed',NULL,'',0,1442833430),(351,0,'filter_censor',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833430),(352,0,'filter_censor','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833430),(353,0,'filter_censor','2014111000','2014111000','Plugin installed',NULL,'',0,1442833430),(354,0,'filter_data',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833430),(355,0,'filter_data','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833430),(356,0,'filter_data','2014111000','2014111000','Plugin installed',NULL,'',0,1442833430),(357,0,'filter_emailprotect',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833430),(358,0,'filter_emailprotect','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833431),(359,0,'filter_emailprotect','2014111000','2014111000','Plugin installed',NULL,'',0,1442833431),(360,0,'filter_emoticon',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833431),(361,0,'filter_emoticon','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833431),(362,0,'filter_emoticon','2014111000','2014111000','Plugin installed',NULL,'',0,1442833431),(363,0,'filter_glossary',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833431),(364,0,'filter_glossary','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833431),(365,0,'filter_glossary','2014111000','2014111000','Plugin installed',NULL,'',0,1442833431),(366,0,'filter_mathjaxloader',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833431),(367,0,'filter_mathjaxloader','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833431),(368,0,'filter_mathjaxloader','2014111000','2014111000','Plugin installed',NULL,'',0,1442833431),(369,0,'filter_mediaplugin',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833431),(370,0,'filter_mediaplugin','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833431),(371,0,'filter_mediaplugin','2014111000','2014111000','Plugin installed',NULL,'',0,1442833431),(372,0,'filter_multilang',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833431),(373,0,'filter_multilang','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833431),(374,0,'filter_multilang','2014111000','2014111000','Plugin installed',NULL,'',0,1442833431),(375,0,'filter_tex',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833431),(376,0,'filter_tex','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833431),(377,0,'filter_tex','2014111000','2014111000','Plugin installed',NULL,'',0,1442833431),(378,0,'filter_tidy',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833431),(379,0,'filter_tidy','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833431),(380,0,'filter_tidy','2014111000','2014111000','Plugin installed',NULL,'',0,1442833431),(381,0,'filter_urltolink',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833431),(382,0,'filter_urltolink','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833431),(383,0,'filter_urltolink','2014111000','2014111000','Plugin installed',NULL,'',0,1442833431),(384,0,'editor_atto',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833431),(385,0,'editor_atto','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833431),(386,0,'editor_atto','2014111000','2014111000','Plugin installed',NULL,'',0,1442833431),(387,0,'editor_textarea',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833431),(388,0,'editor_textarea','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833431),(389,0,'editor_textarea','2014111000','2014111000','Plugin installed',NULL,'',0,1442833431),(390,0,'editor_tinymce',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833431),(391,0,'editor_tinymce','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833431),(392,0,'editor_tinymce','2014111000','2014111000','Plugin installed',NULL,'',0,1442833431),(393,0,'format_singleactivity',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833431),(394,0,'format_singleactivity','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833431),(395,0,'format_singleactivity','2014111000','2014111000','Plugin installed',NULL,'',0,1442833431),(396,0,'format_social',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833431),(397,0,'format_social','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833431),(398,0,'format_social','2014111000','2014111000','Plugin installed',NULL,'',0,1442833431),(399,0,'format_topics',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833431),(400,0,'format_topics','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833431),(401,0,'format_topics','2014111000','2014111000','Plugin installed',NULL,'',0,1442833431),(402,0,'format_weeks',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833431),(403,0,'format_weeks','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833431),(404,0,'format_weeks','2014111000','2014111000','Plugin installed',NULL,'',0,1442833431),(405,0,'profilefield_checkbox',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833432),(406,0,'profilefield_checkbox','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833432),(407,0,'profilefield_checkbox','2014111000','2014111000','Plugin installed',NULL,'',0,1442833432),(408,0,'profilefield_datetime',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833432),(409,0,'profilefield_datetime','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833432),(410,0,'profilefield_datetime','2014111000','2014111000','Plugin installed',NULL,'',0,1442833432),(411,0,'profilefield_menu',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833432),(412,0,'profilefield_menu','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833432),(413,0,'profilefield_menu','2014111000','2014111000','Plugin installed',NULL,'',0,1442833432),(414,0,'profilefield_text',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833432),(415,0,'profilefield_text','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833432),(416,0,'profilefield_text','2014111000','2014111000','Plugin installed',NULL,'',0,1442833432),(417,0,'profilefield_textarea',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833432),(418,0,'profilefield_textarea','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833432),(419,0,'profilefield_textarea','2014111000','2014111000','Plugin installed',NULL,'',0,1442833432),(420,0,'report_backups',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833432),(421,0,'report_backups','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833432),(422,0,'report_backups','2014111000','2014111000','Plugin installed',NULL,'',0,1442833432),(423,0,'report_completion',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833432),(424,0,'report_completion','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833432),(425,0,'report_completion','2014111000','2014111000','Plugin installed',NULL,'',0,1442833432),(426,0,'report_configlog',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833432),(427,0,'report_configlog','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833432),(428,0,'report_configlog','2014111000','2014111000','Plugin installed',NULL,'',0,1442833432),(429,0,'report_courseoverview',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833432),(430,0,'report_courseoverview','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833432),(431,0,'report_courseoverview','2014111000','2014111000','Plugin installed',NULL,'',0,1442833432),(432,0,'report_eventlist',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833432),(433,0,'report_eventlist','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833432),(434,0,'report_eventlist','2014111000','2014111000','Plugin installed',NULL,'',0,1442833432),(435,0,'report_log',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833432),(436,0,'report_log','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833432),(437,0,'report_log','2014111000','2014111000','Plugin installed',NULL,'',0,1442833432),(438,0,'report_loglive',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833432),(439,0,'report_loglive','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833432),(440,0,'report_loglive','2014111000','2014111000','Plugin installed',NULL,'',0,1442833432),(441,0,'report_outline',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833432),(442,0,'report_outline','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833432),(443,0,'report_outline','2014111000','2014111000','Plugin installed',NULL,'',0,1442833432),(444,0,'report_participation',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833432),(445,0,'report_participation','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833432),(446,0,'report_participation','2014111000','2014111000','Plugin installed',NULL,'',0,1442833432),(447,0,'report_performance',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833433),(448,0,'report_performance','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833433),(449,0,'report_performance','2014111000','2014111000','Plugin installed',NULL,'',0,1442833433),(450,0,'report_progress',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833433),(451,0,'report_progress','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833433),(452,0,'report_progress','2014111000','2014111000','Plugin installed',NULL,'',0,1442833433),(453,0,'report_questioninstances',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833433),(454,0,'report_questioninstances','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833433),(455,0,'report_questioninstances','2014111000','2014111000','Plugin installed',NULL,'',0,1442833433),(456,0,'report_security',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833433),(457,0,'report_security','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833433),(458,0,'report_security','2014111000','2014111000','Plugin installed',NULL,'',0,1442833433),(459,0,'report_stats',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833433),(460,0,'report_stats','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833433),(461,0,'report_stats','2014111000','2014111000','Plugin installed',NULL,'',0,1442833433),(462,0,'gradeexport_ods',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833433),(463,0,'gradeexport_ods','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833433),(464,0,'gradeexport_ods','2014111000','2014111000','Plugin installed',NULL,'',0,1442833433),(465,0,'gradeexport_txt',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833433),(466,0,'gradeexport_txt','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833433),(467,0,'gradeexport_txt','2014111000','2014111000','Plugin installed',NULL,'',0,1442833433),(468,0,'gradeexport_xls',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833433),(469,0,'gradeexport_xls','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833433),(470,0,'gradeexport_xls','2014111000','2014111000','Plugin installed',NULL,'',0,1442833433),(471,0,'gradeexport_xml',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833433),(472,0,'gradeexport_xml','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833433),(473,0,'gradeexport_xml','2014111000','2014111000','Plugin installed',NULL,'',0,1442833433),(474,0,'gradeimport_csv',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833433),(475,0,'gradeimport_csv','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833433),(476,0,'gradeimport_csv','2014111000','2014111000','Plugin installed',NULL,'',0,1442833434),(477,0,'gradeimport_direct',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833434),(478,0,'gradeimport_direct','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833434),(479,0,'gradeimport_direct','2014111000','2014111000','Plugin installed',NULL,'',0,1442833434),(480,0,'gradeimport_xml',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833434),(481,0,'gradeimport_xml','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833434),(482,0,'gradeimport_xml','2014111000','2014111000','Plugin installed',NULL,'',0,1442833434),(483,0,'gradereport_grader',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833434),(484,0,'gradereport_grader','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833434),(485,0,'gradereport_grader','2014111000','2014111000','Plugin installed',NULL,'',0,1442833434),(486,0,'gradereport_history',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833434),(487,0,'gradereport_history','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833434),(488,0,'gradereport_history','2014111000','2014111000','Plugin installed',NULL,'',0,1442833434),(489,0,'gradereport_outcomes',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833434),(490,0,'gradereport_outcomes','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833434),(491,0,'gradereport_outcomes','2014111000','2014111000','Plugin installed',NULL,'',0,1442833434),(492,0,'gradereport_overview',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833434),(493,0,'gradereport_overview','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833434),(494,0,'gradereport_overview','2014111000','2014111000','Plugin installed',NULL,'',0,1442833434),(495,0,'gradereport_singleview',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833434),(496,0,'gradereport_singleview','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833434),(497,0,'gradereport_singleview','2014111000','2014111000','Plugin installed',NULL,'',0,1442833434),(498,0,'gradereport_user',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833434),(499,0,'gradereport_user','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833434),(500,0,'gradereport_user','2014111000','2014111000','Plugin installed',NULL,'',0,1442833434),(501,0,'gradingform_guide',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833434),(502,0,'gradingform_guide','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833434),(503,0,'gradingform_guide','2014111000','2014111000','Plugin installed',NULL,'',0,1442833434),(504,0,'gradingform_rubric',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833434),(505,0,'gradingform_rubric','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833434),(506,0,'gradingform_rubric','2014111000','2014111000','Plugin installed',NULL,'',0,1442833434),(507,0,'mnetservice_enrol',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833434),(508,0,'mnetservice_enrol','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833434),(509,0,'mnetservice_enrol','2014111000','2014111000','Plugin installed',NULL,'',0,1442833434),(510,0,'webservice_amf',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833434),(511,0,'webservice_amf','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833434),(512,0,'webservice_amf','2014111000','2014111000','Plugin installed',NULL,'',0,1442833434),(513,0,'webservice_rest',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833434),(514,0,'webservice_rest','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833435),(515,0,'webservice_rest','2014111000','2014111000','Plugin installed',NULL,'',0,1442833435),(516,0,'webservice_soap',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833435),(517,0,'webservice_soap','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833435),(518,0,'webservice_soap','2014111000','2014111000','Plugin installed',NULL,'',0,1442833435),(519,0,'webservice_xmlrpc',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833435),(520,0,'webservice_xmlrpc','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833435),(521,0,'webservice_xmlrpc','2014111000','2014111000','Plugin installed',NULL,'',0,1442833435),(522,0,'repository_alfresco',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833435),(523,0,'repository_alfresco','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833435),(524,0,'repository_alfresco','2014111000','2014111000','Plugin installed',NULL,'',0,1442833435),(525,0,'repository_areafiles',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833435),(526,0,'repository_areafiles','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833435),(527,0,'repository_areafiles','2014111000','2014111000','Plugin installed',NULL,'',0,1442833435),(528,0,'repository_boxnet',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833435),(529,0,'repository_boxnet','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833435),(530,0,'repository_boxnet','2014111000','2014111000','Plugin installed',NULL,'',0,1442833435),(531,0,'repository_coursefiles',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833435),(532,0,'repository_coursefiles','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833435),(533,0,'repository_coursefiles','2014111000','2014111000','Plugin installed',NULL,'',0,1442833435),(534,0,'repository_dropbox',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833435),(535,0,'repository_dropbox','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833435),(536,0,'repository_dropbox','2014111000','2014111000','Plugin installed',NULL,'',0,1442833435),(537,0,'repository_equella',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833435),(538,0,'repository_equella','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833435),(539,0,'repository_equella','2014111000','2014111000','Plugin installed',NULL,'',0,1442833435),(540,0,'repository_filesystem',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833435),(541,0,'repository_filesystem','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833435),(542,0,'repository_filesystem','2014111000','2014111000','Plugin installed',NULL,'',0,1442833435),(543,0,'repository_flickr',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833435),(544,0,'repository_flickr','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833435),(545,0,'repository_flickr','2014111000','2014111000','Plugin installed',NULL,'',0,1442833435),(546,0,'repository_flickr_public',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833435),(547,0,'repository_flickr_public','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833435),(548,0,'repository_flickr_public','2014111000','2014111000','Plugin installed',NULL,'',0,1442833435),(549,0,'repository_googledocs',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833435),(550,0,'repository_googledocs','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833435),(551,0,'repository_googledocs','2014111000','2014111000','Plugin installed',NULL,'',0,1442833435),(552,0,'repository_local',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833435),(553,0,'repository_local','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833435),(554,0,'repository_local','2014111000','2014111000','Plugin installed',NULL,'',0,1442833436),(555,0,'repository_merlot',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833436),(556,0,'repository_merlot','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833436),(557,0,'repository_merlot','2014111000','2014111000','Plugin installed',NULL,'',0,1442833436),(558,0,'repository_picasa',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833436),(559,0,'repository_picasa','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833436),(560,0,'repository_picasa','2014111000','2014111000','Plugin installed',NULL,'',0,1442833436),(561,0,'repository_recent',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833436),(562,0,'repository_recent','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833436),(563,0,'repository_recent','2014111000','2014111000','Plugin installed',NULL,'',0,1442833436),(564,0,'repository_s3',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833436),(565,0,'repository_s3','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833436),(566,0,'repository_s3','2014111000','2014111000','Plugin installed',NULL,'',0,1442833436),(567,0,'repository_skydrive',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833436),(568,0,'repository_skydrive','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833436),(569,0,'repository_skydrive','2014111000','2014111000','Plugin installed',NULL,'',0,1442833436),(570,0,'repository_upload',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833436),(571,0,'repository_upload','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833436),(572,0,'repository_upload','2014111000','2014111000','Plugin installed',NULL,'',0,1442833436),(573,0,'repository_url',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833436),(574,0,'repository_url','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833436),(575,0,'repository_url','2014111000','2014111000','Plugin installed',NULL,'',0,1442833436),(576,0,'repository_user',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833436),(577,0,'repository_user','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833436),(578,0,'repository_user','2014111000','2014111000','Plugin installed',NULL,'',0,1442833436),(579,0,'repository_webdav',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833436),(580,0,'repository_webdav','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833436),(581,0,'repository_webdav','2014111000','2014111000','Plugin installed',NULL,'',0,1442833437),(582,0,'repository_wikimedia',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833437),(583,0,'repository_wikimedia','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833438),(584,0,'repository_wikimedia','2014111000','2014111000','Plugin installed',NULL,'',0,1442833438),(585,0,'repository_youtube',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833438),(586,0,'repository_youtube','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833438),(587,0,'repository_youtube','2014111000','2014111000','Plugin installed',NULL,'',0,1442833438),(588,0,'portfolio_boxnet',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833438),(589,0,'portfolio_boxnet','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833438),(590,0,'portfolio_boxnet','2014111000','2014111000','Plugin installed',NULL,'',0,1442833438),(591,0,'portfolio_download',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833438),(592,0,'portfolio_download','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833438),(593,0,'portfolio_download','2014111000','2014111000','Plugin installed',NULL,'',0,1442833438),(594,0,'portfolio_flickr',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833438),(595,0,'portfolio_flickr','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833438),(596,0,'portfolio_flickr','2014111000','2014111000','Plugin installed',NULL,'',0,1442833438),(597,0,'portfolio_googledocs',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833438),(598,0,'portfolio_googledocs','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833438),(599,0,'portfolio_googledocs','2014111000','2014111000','Plugin installed',NULL,'',0,1442833438),(600,0,'portfolio_mahara',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833438),(601,0,'portfolio_mahara','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833438),(602,0,'portfolio_mahara','2014111000','2014111000','Plugin installed',NULL,'',0,1442833438),(603,0,'portfolio_picasa',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833438),(604,0,'portfolio_picasa','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833438),(605,0,'portfolio_picasa','2014111000','2014111000','Plugin installed',NULL,'',0,1442833438),(606,0,'qbehaviour_adaptive',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833438),(607,0,'qbehaviour_adaptive','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833438),(608,0,'qbehaviour_adaptive','2014111000','2014111000','Plugin installed',NULL,'',0,1442833438),(609,0,'qbehaviour_adaptivenopenalty',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833438),(610,0,'qbehaviour_adaptivenopenalty','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833438),(611,0,'qbehaviour_adaptivenopenalty','2014111000','2014111000','Plugin installed',NULL,'',0,1442833438),(612,0,'qbehaviour_deferredcbm',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833438),(613,0,'qbehaviour_deferredcbm','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833438),(614,0,'qbehaviour_deferredcbm','2014111000','2014111000','Plugin installed',NULL,'',0,1442833438),(615,0,'qbehaviour_deferredfeedback',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833438),(616,0,'qbehaviour_deferredfeedback','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833438),(617,0,'qbehaviour_deferredfeedback','2014111000','2014111000','Plugin installed',NULL,'',0,1442833438),(618,0,'qbehaviour_immediatecbm',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833438),(619,0,'qbehaviour_immediatecbm','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833438),(620,0,'qbehaviour_immediatecbm','2014111000','2014111000','Plugin installed',NULL,'',0,1442833438),(621,0,'qbehaviour_immediatefeedback',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833438),(622,0,'qbehaviour_immediatefeedback','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833438),(623,0,'qbehaviour_immediatefeedback','2014111000','2014111000','Plugin installed',NULL,'',0,1442833438),(624,0,'qbehaviour_informationitem',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833438),(625,0,'qbehaviour_informationitem','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833438),(626,0,'qbehaviour_informationitem','2014111000','2014111000','Plugin installed',NULL,'',0,1442833438),(627,0,'qbehaviour_interactive',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833438),(628,0,'qbehaviour_interactive','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833438),(629,0,'qbehaviour_interactive','2014111000','2014111000','Plugin installed',NULL,'',0,1442833438),(630,0,'qbehaviour_interactivecountback',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833438),(631,0,'qbehaviour_interactivecountback','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833438),(632,0,'qbehaviour_interactivecountback','2014111000','2014111000','Plugin installed',NULL,'',0,1442833439),(633,0,'qbehaviour_manualgraded',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833439),(634,0,'qbehaviour_manualgraded','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833439),(635,0,'qbehaviour_manualgraded','2014111000','2014111000','Plugin installed',NULL,'',0,1442833439),(636,0,'qbehaviour_missing',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833439),(637,0,'qbehaviour_missing','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833439),(638,0,'qbehaviour_missing','2014111000','2014111000','Plugin installed',NULL,'',0,1442833439),(639,0,'qformat_aiken',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833439),(640,0,'qformat_aiken','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833439),(641,0,'qformat_aiken','2014111000','2014111000','Plugin installed',NULL,'',0,1442833439),(642,0,'qformat_blackboard_six',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833439),(643,0,'qformat_blackboard_six','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833439),(644,0,'qformat_blackboard_six','2014111000','2014111000','Plugin installed',NULL,'',0,1442833439),(645,0,'qformat_examview',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833439),(646,0,'qformat_examview','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833439),(647,0,'qformat_examview','2014111000','2014111000','Plugin installed',NULL,'',0,1442833439),(648,0,'qformat_gift',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833439),(649,0,'qformat_gift','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833439),(650,0,'qformat_gift','2014111000','2014111000','Plugin installed',NULL,'',0,1442833439),(651,0,'qformat_missingword',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833439),(652,0,'qformat_missingword','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833439),(653,0,'qformat_missingword','2014111000','2014111000','Plugin installed',NULL,'',0,1442833439),(654,0,'qformat_multianswer',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833439),(655,0,'qformat_multianswer','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833439),(656,0,'qformat_multianswer','2014111000','2014111000','Plugin installed',NULL,'',0,1442833439),(657,0,'qformat_webct',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833439),(658,0,'qformat_webct','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833439),(659,0,'qformat_webct','2014111000','2014111000','Plugin installed',NULL,'',0,1442833439),(660,0,'qformat_xhtml',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833439),(661,0,'qformat_xhtml','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833439),(662,0,'qformat_xhtml','2014111000','2014111000','Plugin installed',NULL,'',0,1442833439),(663,0,'qformat_xml',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833439),(664,0,'qformat_xml','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833439),(665,0,'qformat_xml','2014111000','2014111000','Plugin installed',NULL,'',0,1442833439),(666,0,'tool_assignmentupgrade',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833439),(667,0,'tool_assignmentupgrade','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833439),(668,0,'tool_assignmentupgrade','2014111000','2014111000','Plugin installed',NULL,'',0,1442833439),(669,0,'tool_availabilityconditions',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833439),(670,0,'tool_availabilityconditions','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833439),(671,0,'tool_availabilityconditions','2014111000','2014111000','Plugin installed',NULL,'',0,1442833439),(672,0,'tool_behat',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833439),(673,0,'tool_behat','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833439),(674,0,'tool_behat','2014111000','2014111000','Plugin installed',NULL,'',0,1442833439),(675,0,'tool_capability',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833439),(676,0,'tool_capability','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833439),(677,0,'tool_capability','2014111000','2014111000','Plugin installed',NULL,'',0,1442833439),(678,0,'tool_customlang',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833439),(679,0,'tool_customlang','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833439),(680,0,'tool_customlang','2014111000','2014111000','Plugin installed',NULL,'',0,1442833439),(681,0,'tool_dbtransfer',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833439),(682,0,'tool_dbtransfer','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833439),(683,0,'tool_dbtransfer','2014111000','2014111000','Plugin installed',NULL,'',0,1442833440),(684,0,'tool_generator',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833440),(685,0,'tool_generator','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833440),(686,0,'tool_generator','2014111000','2014111000','Plugin installed',NULL,'',0,1442833440),(687,0,'tool_health',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833440),(688,0,'tool_health','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833440),(689,0,'tool_health','2014111000','2014111000','Plugin installed',NULL,'',0,1442833440),(690,0,'tool_innodb',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833440),(691,0,'tool_innodb','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833440),(692,0,'tool_innodb','2014111000','2014111000','Plugin installed',NULL,'',0,1442833440),(693,0,'tool_installaddon',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833440),(694,0,'tool_installaddon','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833440),(695,0,'tool_installaddon','2014111000','2014111000','Plugin installed',NULL,'',0,1442833440),(696,0,'tool_langimport',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833440),(697,0,'tool_langimport','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833440),(698,0,'tool_langimport','2014111000','2014111000','Plugin installed',NULL,'',0,1442833440),(699,0,'tool_log',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833440),(700,0,'tool_log','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833440),(701,0,'tool_log','2014111000','2014111000','Plugin installed',NULL,'',0,1442833440),(702,0,'tool_messageinbound',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833440),(703,0,'tool_messageinbound','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833440),(704,0,'tool_messageinbound','2014111000','2014111000','Plugin installed',NULL,'',0,1442833440),(705,0,'tool_monitor',NULL,'2014111001','Starting plugin installation',NULL,'',0,1442833440),(706,0,'tool_monitor','2014111001','2014111001','Upgrade savepoint reached',NULL,'',0,1442833440),(707,0,'tool_monitor','2014111001','2014111001','Plugin installed',NULL,'',0,1442833440),(708,0,'tool_multilangupgrade',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833440),(709,0,'tool_multilangupgrade','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833440),(710,0,'tool_multilangupgrade','2014111000','2014111000','Plugin installed',NULL,'',0,1442833441),(711,0,'tool_phpunit',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833441),(712,0,'tool_phpunit','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833441),(713,0,'tool_phpunit','2014111000','2014111000','Plugin installed',NULL,'',0,1442833441),(714,0,'tool_profiling',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833441),(715,0,'tool_profiling','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833441),(716,0,'tool_profiling','2014111000','2014111000','Plugin installed',NULL,'',0,1442833441),(717,0,'tool_replace',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833441),(718,0,'tool_replace','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833441),(719,0,'tool_replace','2014111000','2014111000','Plugin installed',NULL,'',0,1442833441),(720,0,'tool_spamcleaner',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833441),(721,0,'tool_spamcleaner','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833441),(722,0,'tool_spamcleaner','2014111000','2014111000','Plugin installed',NULL,'',0,1442833441),(723,0,'tool_task',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833441),(724,0,'tool_task','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833441),(725,0,'tool_task','2014111000','2014111000','Plugin installed',NULL,'',0,1442833441),(726,0,'tool_timezoneimport',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833441),(727,0,'tool_timezoneimport','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833441),(728,0,'tool_timezoneimport','2014111000','2014111000','Plugin installed',NULL,'',0,1442833441),(729,0,'tool_unsuproles',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833441),(730,0,'tool_unsuproles','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833441),(731,0,'tool_unsuproles','2014111000','2014111000','Plugin installed',NULL,'',0,1442833441),(732,0,'tool_uploadcourse',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833441),(733,0,'tool_uploadcourse','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833441),(734,0,'tool_uploadcourse','2014111000','2014111000','Plugin installed',NULL,'',0,1442833441),(735,0,'tool_uploaduser',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833441),(736,0,'tool_uploaduser','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833441),(737,0,'tool_uploaduser','2014111000','2014111000','Plugin installed',NULL,'',0,1442833441),(738,0,'tool_xmldb',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833441),(739,0,'tool_xmldb','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833441),(740,0,'tool_xmldb','2014111000','2014111000','Plugin installed',NULL,'',0,1442833441),(741,0,'cachestore_file',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833441),(742,0,'cachestore_file','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833441),(743,0,'cachestore_file','2014111000','2014111000','Plugin installed',NULL,'',0,1442833441),(744,0,'cachestore_memcache',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833441),(745,0,'cachestore_memcache','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833441),(746,0,'cachestore_memcache','2014111000','2014111000','Plugin installed',NULL,'',0,1442833441),(747,0,'cachestore_memcached',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833441),(748,0,'cachestore_memcached','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833441),(749,0,'cachestore_memcached','2014111000','2014111000','Plugin installed',NULL,'',0,1442833441),(750,0,'cachestore_mongodb',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833441),(751,0,'cachestore_mongodb','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833441),(752,0,'cachestore_mongodb','2014111000','2014111000','Plugin installed',NULL,'',0,1442833441),(753,0,'cachestore_session',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833441),(754,0,'cachestore_session','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833441),(755,0,'cachestore_session','2014111000','2014111000','Plugin installed',NULL,'',0,1442833442),(756,0,'cachestore_static',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833442),(757,0,'cachestore_static','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833442),(758,0,'cachestore_static','2014111000','2014111000','Plugin installed',NULL,'',0,1442833442),(759,0,'cachelock_file',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833442),(760,0,'cachelock_file','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833442),(761,0,'cachelock_file','2014111000','2014111000','Plugin installed',NULL,'',0,1442833442),(762,0,'theme_base',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833442),(763,0,'theme_base','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833442),(764,0,'theme_base','2014111000','2014111000','Plugin installed',NULL,'',0,1442833442),(765,0,'theme_bootstrapbase',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833442),(766,0,'theme_bootstrapbase','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833442),(767,0,'theme_bootstrapbase','2014111000','2014111000','Plugin installed',NULL,'',0,1442833442),(768,0,'theme_canvas',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833442),(769,0,'theme_canvas','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833442),(770,0,'theme_canvas','2014111000','2014111000','Plugin installed',NULL,'',0,1442833442),(771,0,'theme_clean',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833442),(772,0,'theme_clean','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833442),(773,0,'theme_clean','2014111000','2014111000','Plugin installed',NULL,'',0,1442833442),(774,0,'theme_more',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833442),(775,0,'theme_more','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833442),(776,0,'theme_more','2014111000','2014111000','Plugin installed',NULL,'',0,1442833442),(777,0,'assignsubmission_comments',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833442),(778,0,'assignsubmission_comments','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833442),(779,0,'assignsubmission_comments','2014111000','2014111000','Plugin installed',NULL,'',0,1442833442),(780,0,'assignsubmission_file',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833442),(781,0,'assignsubmission_file','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833442),(782,0,'assignsubmission_file','2014111000','2014111000','Plugin installed',NULL,'',0,1442833442),(783,0,'assignsubmission_onlinetext',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833442),(784,0,'assignsubmission_onlinetext','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833442),(785,0,'assignsubmission_onlinetext','2014111000','2014111000','Plugin installed',NULL,'',0,1442833442),(786,0,'assignfeedback_comments',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833442),(787,0,'assignfeedback_comments','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833442),(788,0,'assignfeedback_comments','2014111000','2014111000','Plugin installed',NULL,'',0,1442833442),(789,0,'assignfeedback_editpdf',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833442),(790,0,'assignfeedback_editpdf','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833442),(791,0,'assignfeedback_editpdf','2014111000','2014111000','Plugin installed',NULL,'',0,1442833442),(792,0,'assignfeedback_file',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833442),(793,0,'assignfeedback_file','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833442),(794,0,'assignfeedback_file','2014111000','2014111000','Plugin installed',NULL,'',0,1442833442),(795,0,'assignfeedback_offline',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833443),(796,0,'assignfeedback_offline','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833443),(797,0,'assignfeedback_offline','2014111000','2014111000','Plugin installed',NULL,'',0,1442833443),(798,0,'assignment_offline',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833443),(799,0,'assignment_offline','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833443),(800,0,'assignment_offline','2014111000','2014111000','Plugin installed',NULL,'',0,1442833443),(801,0,'assignment_online',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833443),(802,0,'assignment_online','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833443),(803,0,'assignment_online','2014111000','2014111000','Plugin installed',NULL,'',0,1442833443),(804,0,'assignment_upload',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833443),(805,0,'assignment_upload','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833443),(806,0,'assignment_upload','2014111000','2014111000','Plugin installed',NULL,'',0,1442833443),(807,0,'assignment_uploadsingle',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833443),(808,0,'assignment_uploadsingle','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833443),(809,0,'assignment_uploadsingle','2014111000','2014111000','Plugin installed',NULL,'',0,1442833443),(810,0,'booktool_exportimscp',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833443),(811,0,'booktool_exportimscp','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833443),(812,0,'booktool_exportimscp','2014111000','2014111000','Plugin installed',NULL,'',0,1442833443),(813,0,'booktool_importhtml',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833443),(814,0,'booktool_importhtml','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833443),(815,0,'booktool_importhtml','2014111000','2014111000','Plugin installed',NULL,'',0,1442833443),(816,0,'booktool_print',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833443),(817,0,'booktool_print','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833443),(818,0,'booktool_print','2014111000','2014111000','Plugin installed',NULL,'',0,1442833443),(819,0,'datafield_checkbox',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833443),(820,0,'datafield_checkbox','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833443),(821,0,'datafield_checkbox','2014111000','2014111000','Plugin installed',NULL,'',0,1442833443),(822,0,'datafield_date',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833443),(823,0,'datafield_date','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833443),(824,0,'datafield_date','2014111000','2014111000','Plugin installed',NULL,'',0,1442833443),(825,0,'datafield_file',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833443),(826,0,'datafield_file','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833443),(827,0,'datafield_file','2014111000','2014111000','Plugin installed',NULL,'',0,1442833443),(828,0,'datafield_latlong',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833443),(829,0,'datafield_latlong','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833443),(830,0,'datafield_latlong','2014111000','2014111000','Plugin installed',NULL,'',0,1442833443),(831,0,'datafield_menu',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833443),(832,0,'datafield_menu','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833443),(833,0,'datafield_menu','2014111000','2014111000','Plugin installed',NULL,'',0,1442833443),(834,0,'datafield_multimenu',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833443),(835,0,'datafield_multimenu','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833443),(836,0,'datafield_multimenu','2014111000','2014111000','Plugin installed',NULL,'',0,1442833443),(837,0,'datafield_number',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833443),(838,0,'datafield_number','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833443),(839,0,'datafield_number','2014111000','2014111000','Plugin installed',NULL,'',0,1442833443),(840,0,'datafield_picture',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833443),(841,0,'datafield_picture','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833443),(842,0,'datafield_picture','2014111000','2014111000','Plugin installed',NULL,'',0,1442833443),(843,0,'datafield_radiobutton',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833443),(844,0,'datafield_radiobutton','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833444),(845,0,'datafield_radiobutton','2014111000','2014111000','Plugin installed',NULL,'',0,1442833444),(846,0,'datafield_text',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833444),(847,0,'datafield_text','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833444),(848,0,'datafield_text','2014111000','2014111000','Plugin installed',NULL,'',0,1442833444),(849,0,'datafield_textarea',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833444),(850,0,'datafield_textarea','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833444),(851,0,'datafield_textarea','2014111000','2014111000','Plugin installed',NULL,'',0,1442833444),(852,0,'datafield_url',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833444),(853,0,'datafield_url','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833444),(854,0,'datafield_url','2014111000','2014111000','Plugin installed',NULL,'',0,1442833444),(855,0,'datapreset_imagegallery',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833444),(856,0,'datapreset_imagegallery','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833444),(857,0,'datapreset_imagegallery','2014111000','2014111000','Plugin installed',NULL,'',0,1442833444),(858,0,'ltiservice_profile',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833444),(859,0,'ltiservice_profile','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833444),(860,0,'ltiservice_profile','2014111000','2014111000','Plugin installed',NULL,'',0,1442833444),(861,0,'ltiservice_toolproxy',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833444),(862,0,'ltiservice_toolproxy','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833444),(863,0,'ltiservice_toolproxy','2014111000','2014111000','Plugin installed',NULL,'',0,1442833444),(864,0,'ltiservice_toolsettings',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833444),(865,0,'ltiservice_toolsettings','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833444),(866,0,'ltiservice_toolsettings','2014111000','2014111000','Plugin installed',NULL,'',0,1442833444),(867,0,'quiz_grading',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833444),(868,0,'quiz_grading','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833444),(869,0,'quiz_grading','2014111000','2014111000','Plugin installed',NULL,'',0,1442833444),(870,0,'quiz_overview',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833444),(871,0,'quiz_overview','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833444),(872,0,'quiz_overview','2014111000','2014111000','Plugin installed',NULL,'',0,1442833444),(873,0,'quiz_responses',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833444),(874,0,'quiz_responses','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833444),(875,0,'quiz_responses','2014111000','2014111000','Plugin installed',NULL,'',0,1442833444),(876,0,'quiz_statistics',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833444),(877,0,'quiz_statistics','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833444),(878,0,'quiz_statistics','2014111000','2014111000','Plugin installed',NULL,'',0,1442833444),(879,0,'quizaccess_delaybetweenattempts',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833444),(880,0,'quizaccess_delaybetweenattempts','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833444),(881,0,'quizaccess_delaybetweenattempts','2014111000','2014111000','Plugin installed',NULL,'',0,1442833444),(882,0,'quizaccess_ipaddress',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833444),(883,0,'quizaccess_ipaddress','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833444),(884,0,'quizaccess_ipaddress','2014111000','2014111000','Plugin installed',NULL,'',0,1442833444),(885,0,'quizaccess_numattempts',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833444),(886,0,'quizaccess_numattempts','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833444),(887,0,'quizaccess_numattempts','2014111000','2014111000','Plugin installed',NULL,'',0,1442833445),(888,0,'quizaccess_openclosedate',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833445),(889,0,'quizaccess_openclosedate','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833445),(890,0,'quizaccess_openclosedate','2014111000','2014111000','Plugin installed',NULL,'',0,1442833445),(891,0,'quizaccess_password',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833445),(892,0,'quizaccess_password','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833445),(893,0,'quizaccess_password','2014111000','2014111000','Plugin installed',NULL,'',0,1442833445),(894,0,'quizaccess_safebrowser',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833445),(895,0,'quizaccess_safebrowser','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833445),(896,0,'quizaccess_safebrowser','2014111000','2014111000','Plugin installed',NULL,'',0,1442833445),(897,0,'quizaccess_securewindow',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833445),(898,0,'quizaccess_securewindow','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833445),(899,0,'quizaccess_securewindow','2014111000','2014111000','Plugin installed',NULL,'',0,1442833445),(900,0,'quizaccess_timelimit',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833445),(901,0,'quizaccess_timelimit','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833445),(902,0,'quizaccess_timelimit','2014111000','2014111000','Plugin installed',NULL,'',0,1442833445),(903,0,'scormreport_basic',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833445),(904,0,'scormreport_basic','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833445),(905,0,'scormreport_basic','2014111000','2014111000','Plugin installed',NULL,'',0,1442833445),(906,0,'scormreport_graphs',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833445),(907,0,'scormreport_graphs','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833445),(908,0,'scormreport_graphs','2014111000','2014111000','Plugin installed',NULL,'',0,1442833445),(909,0,'scormreport_interactions',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833445),(910,0,'scormreport_interactions','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833445),(911,0,'scormreport_interactions','2014111000','2014111000','Plugin installed',NULL,'',0,1442833445),(912,0,'scormreport_objectives',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833445),(913,0,'scormreport_objectives','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833445),(914,0,'scormreport_objectives','2014111000','2014111000','Plugin installed',NULL,'',0,1442833445),(915,0,'workshopform_accumulative',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833445),(916,0,'workshopform_accumulative','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833445),(917,0,'workshopform_accumulative','2014111000','2014111000','Plugin installed',NULL,'',0,1442833445),(918,0,'workshopform_comments',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833445),(919,0,'workshopform_comments','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833445),(920,0,'workshopform_comments','2014111000','2014111000','Plugin installed',NULL,'',0,1442833445),(921,0,'workshopform_numerrors',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833445),(922,0,'workshopform_numerrors','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833445),(923,0,'workshopform_numerrors','2014111000','2014111000','Plugin installed',NULL,'',0,1442833445),(924,0,'workshopform_rubric',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833445),(925,0,'workshopform_rubric','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833445),(926,0,'workshopform_rubric','2014111000','2014111000','Plugin installed',NULL,'',0,1442833445),(927,0,'workshopallocation_manual',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833445),(928,0,'workshopallocation_manual','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833445),(929,0,'workshopallocation_manual','2014111000','2014111000','Plugin installed',NULL,'',0,1442833445),(930,0,'workshopallocation_random',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833445),(931,0,'workshopallocation_random','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833445),(932,0,'workshopallocation_random','2014111000','2014111000','Plugin installed',NULL,'',0,1442833445),(933,0,'workshopallocation_scheduled',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833445),(934,0,'workshopallocation_scheduled','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833445),(935,0,'workshopallocation_scheduled','2014111000','2014111000','Plugin installed',NULL,'',0,1442833445),(936,0,'workshopeval_best',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833445),(937,0,'workshopeval_best','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833445),(938,0,'workshopeval_best','2014111000','2014111000','Plugin installed',NULL,'',0,1442833445),(939,0,'atto_accessibilitychecker',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833445),(940,0,'atto_accessibilitychecker','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833445),(941,0,'atto_accessibilitychecker','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(942,0,'atto_accessibilityhelper',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(943,0,'atto_accessibilityhelper','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(944,0,'atto_accessibilityhelper','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(945,0,'atto_align',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(946,0,'atto_align','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(947,0,'atto_align','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(948,0,'atto_backcolor',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(949,0,'atto_backcolor','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(950,0,'atto_backcolor','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(951,0,'atto_bold',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(952,0,'atto_bold','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(953,0,'atto_bold','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(954,0,'atto_charmap',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(955,0,'atto_charmap','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(956,0,'atto_charmap','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(957,0,'atto_clear',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(958,0,'atto_clear','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(959,0,'atto_clear','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(960,0,'atto_collapse',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(961,0,'atto_collapse','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(962,0,'atto_collapse','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(963,0,'atto_emoticon',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(964,0,'atto_emoticon','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(965,0,'atto_emoticon','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(966,0,'atto_equation',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(967,0,'atto_equation','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(968,0,'atto_equation','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(969,0,'atto_fontcolor',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(970,0,'atto_fontcolor','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(971,0,'atto_fontcolor','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(972,0,'atto_html',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(973,0,'atto_html','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(974,0,'atto_html','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(975,0,'atto_image',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(976,0,'atto_image','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(977,0,'atto_image','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(978,0,'atto_indent',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(979,0,'atto_indent','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(980,0,'atto_indent','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(981,0,'atto_italic',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(982,0,'atto_italic','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(983,0,'atto_italic','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(984,0,'atto_link',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(985,0,'atto_link','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(986,0,'atto_link','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(987,0,'atto_managefiles',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(988,0,'atto_managefiles','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(989,0,'atto_managefiles','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(990,0,'atto_media',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(991,0,'atto_media','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(992,0,'atto_media','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(993,0,'atto_noautolink',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(994,0,'atto_noautolink','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(995,0,'atto_noautolink','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(996,0,'atto_orderedlist',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(997,0,'atto_orderedlist','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(998,0,'atto_orderedlist','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(999,0,'atto_rtl',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(1000,0,'atto_rtl','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(1001,0,'atto_rtl','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(1002,0,'atto_strike',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(1003,0,'atto_strike','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(1004,0,'atto_strike','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(1005,0,'atto_subscript',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(1006,0,'atto_subscript','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(1007,0,'atto_subscript','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(1008,0,'atto_superscript',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(1009,0,'atto_superscript','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(1010,0,'atto_superscript','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(1011,0,'atto_table',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(1012,0,'atto_table','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(1013,0,'atto_table','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(1014,0,'atto_title',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(1015,0,'atto_title','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(1016,0,'atto_title','2014111000','2014111000','Plugin installed',NULL,'',0,1442833446),(1017,0,'atto_underline',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833446),(1018,0,'atto_underline','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833446),(1019,0,'atto_underline','2014111000','2014111000','Plugin installed',NULL,'',0,1442833447),(1020,0,'atto_undo',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833447),(1021,0,'atto_undo','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833447),(1022,0,'atto_undo','2014111000','2014111000','Plugin installed',NULL,'',0,1442833447),(1023,0,'atto_unorderedlist',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833447),(1024,0,'atto_unorderedlist','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833447),(1025,0,'atto_unorderedlist','2014111000','2014111000','Plugin installed',NULL,'',0,1442833447),(1026,0,'tinymce_ctrlhelp',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833447),(1027,0,'tinymce_ctrlhelp','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833447),(1028,0,'tinymce_ctrlhelp','2014111000','2014111000','Plugin installed',NULL,'',0,1442833447),(1029,0,'tinymce_managefiles',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833447),(1030,0,'tinymce_managefiles','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833447),(1031,0,'tinymce_managefiles','2014111000','2014111000','Plugin installed',NULL,'',0,1442833447),(1032,0,'tinymce_moodleemoticon',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833447),(1033,0,'tinymce_moodleemoticon','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833447),(1034,0,'tinymce_moodleemoticon','2014111000','2014111000','Plugin installed',NULL,'',0,1442833447),(1035,0,'tinymce_moodleimage',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833447),(1036,0,'tinymce_moodleimage','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833447),(1037,0,'tinymce_moodleimage','2014111000','2014111000','Plugin installed',NULL,'',0,1442833447),(1038,0,'tinymce_moodlemedia',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833447),(1039,0,'tinymce_moodlemedia','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833447),(1040,0,'tinymce_moodlemedia','2014111000','2014111000','Plugin installed',NULL,'',0,1442833447),(1041,0,'tinymce_moodlenolink',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833447),(1042,0,'tinymce_moodlenolink','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833447),(1043,0,'tinymce_moodlenolink','2014111000','2014111000','Plugin installed',NULL,'',0,1442833447),(1044,0,'tinymce_pdw',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833447),(1045,0,'tinymce_pdw','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833447),(1046,0,'tinymce_pdw','2014111000','2014111000','Plugin installed',NULL,'',0,1442833447),(1047,0,'tinymce_spellchecker',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833447),(1048,0,'tinymce_spellchecker','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833447),(1049,0,'tinymce_spellchecker','2014111000','2014111000','Plugin installed',NULL,'',0,1442833447),(1050,0,'tinymce_wrap',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833447),(1051,0,'tinymce_wrap','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833447),(1052,0,'tinymce_wrap','2014111000','2014111000','Plugin installed',NULL,'',0,1442833447),(1053,0,'logstore_database',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833447),(1054,0,'logstore_database','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833447),(1055,0,'logstore_database','2014111000','2014111000','Plugin installed',NULL,'',0,1442833447),(1056,0,'logstore_legacy',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833447),(1057,0,'logstore_legacy','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833447),(1058,0,'logstore_legacy','2014111000','2014111000','Plugin installed',NULL,'',0,1442833447),(1059,0,'logstore_standard',NULL,'2014111000','Starting plugin installation',NULL,'',0,1442833447),(1060,0,'logstore_standard','2014111000','2014111000','Upgrade savepoint reached',NULL,'',0,1442833447),(1061,0,'logstore_standard','2014111000','2014111000','Plugin installed',NULL,'',0,1442833447);

--
-- Table structure for table `mdl_url`
--

CREATE TABLE `mdl_url` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `intro` longtext,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `externalurl` longtext NOT NULL,
  `display` smallint(4) NOT NULL DEFAULT '0',
  `displayoptions` longtext,
  `parameters` longtext,
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_url_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='each record is one url resource';

--
-- Dumping data for table `mdl_url`
--


--
-- Table structure for table `mdl_user`
--

CREATE TABLE `mdl_user` (
  `id` bigint(10) 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',
  `suspended` tinyint(1) NOT NULL DEFAULT '0',
  `mnethostid` bigint(10) NOT NULL DEFAULT '0',
  `username` varchar(100) NOT NULL DEFAULT '',
  `password` varchar(255) NOT NULL DEFAULT '',
  `idnumber` varchar(255) NOT NULL DEFAULT '',
  `firstname` varchar(100) NOT NULL DEFAULT '',
  `lastname` varchar(100) NOT NULL DEFAULT '',
  `email` varchar(100) NOT NULL DEFAULT '',
  `emailstop` tinyint(1) 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(255) NOT NULL DEFAULT '',
  `department` varchar(255) NOT NULL DEFAULT '',
  `address` varchar(255) NOT NULL DEFAULT '',
  `city` varchar(120) NOT NULL DEFAULT '',
  `country` varchar(2) NOT NULL DEFAULT '',
  `lang` varchar(30) NOT NULL DEFAULT 'en',
  `calendartype` varchar(30) NOT NULL DEFAULT 'gregorian',
  `theme` varchar(50) NOT NULL DEFAULT '',
  `timezone` varchar(100) NOT NULL DEFAULT '99',
  `firstaccess` bigint(10) NOT NULL DEFAULT '0',
  `lastaccess` bigint(10) NOT NULL DEFAULT '0',
  `lastlogin` bigint(10) NOT NULL DEFAULT '0',
  `currentlogin` bigint(10) NOT NULL DEFAULT '0',
  `lastip` varchar(45) NOT NULL DEFAULT '',
  `secret` varchar(15) NOT NULL DEFAULT '',
  `picture` bigint(10) NOT NULL DEFAULT '0',
  `url` varchar(255) NOT NULL DEFAULT '',
  `description` longtext,
  `descriptionformat` tinyint(2) NOT NULL DEFAULT '1',
  `mailformat` tinyint(1) NOT NULL DEFAULT '1',
  `maildigest` tinyint(1) NOT NULL DEFAULT '0',
  `maildisplay` tinyint(2) NOT NULL DEFAULT '2',
  `autosubscribe` tinyint(1) NOT NULL DEFAULT '1',
  `trackforums` tinyint(1) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `trustbitmask` bigint(10) NOT NULL DEFAULT '0',
  `imagealt` varchar(255) DEFAULT NULL,
  `lastnamephonetic` varchar(255) DEFAULT NULL,
  `firstnamephonetic` varchar(255) DEFAULT NULL,
  `middlename` varchar(255) DEFAULT NULL,
  `alternatename` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_user_mneuse_uix` (`mnethostid`,`username`),
  KEY `mdl_user_del_ix` (`deleted`),
  KEY `mdl_user_con_ix` (`confirmed`),
  KEY `mdl_user_fir_ix` (`firstname`),
  KEY `mdl_user_las_ix` (`lastname`),
  KEY `mdl_user_cit_ix` (`city`),
  KEY `mdl_user_cou_ix` (`country`),
  KEY `mdl_user_las2_ix` (`lastaccess`),
  KEY `mdl_user_ema_ix` (`email`),
  KEY `mdl_user_aut_ix` (`auth`),
  KEY `mdl_user_idn_ix` (`idnumber`),
  KEY `mdl_user_fir2_ix` (`firstnamephonetic`),
  KEY `mdl_user_las3_ix` (`lastnamephonetic`),
  KEY `mdl_user_mid_ix` (`middlename`),
  KEY `mdl_user_alt_ix` (`alternatename`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='One record for each person';

--
-- Dumping data for table `mdl_user`
--

INSERT INTO `mdl_user` VALUES (1,'manual',1,0,0,0,1,'guest','$2y$10$tRQu.UGkN91BSZI8kmeALu27y2oQcJepGx7X7kJ78SkJ9Yjtc.oU6','','Invitado',' ','root@localhost',0,'','','','','','','','','','','','','es','gregorian','','99',0,0,0,0,'','',0,'','Este usuario sólo tiene acceso de lectura en ciertos cursos.',1,1,0,2,1,0,0,1442833403,0,NULL,NULL,NULL,NULL,NULL),(2,'manual',1,0,0,0,1,'admin','','','Admin','Usuario','va@va.com',0,'','','','','','','','','','','','','es','gregorian','','99',1442833655,1442834961,0,1442833655,'10.2.1.254','',0,'','',1,1,0,1,1,0,0,1442833729,0,NULL,'','','','');

--
-- Table structure for table `mdl_user_devices`
--

CREATE TABLE `mdl_user_devices` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `appid` varchar(128) NOT NULL DEFAULT '',
  `name` varchar(32) NOT NULL DEFAULT '',
  `model` varchar(32) NOT NULL DEFAULT '',
  `platform` varchar(32) NOT NULL DEFAULT '',
  `version` varchar(32) NOT NULL DEFAULT '',
  `pushid` varchar(255) NOT NULL DEFAULT '',
  `uuid` varchar(255) NOT NULL DEFAULT '',
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_userdevi_pususe_uix` (`pushid`,`userid`),
  KEY `mdl_userdevi_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='This table stores user''s mobile devices information in order';

--
-- Dumping data for table `mdl_user_devices`
--


--
-- Table structure for table `mdl_user_enrolments`
--

CREATE TABLE `mdl_user_enrolments` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `status` bigint(10) NOT NULL DEFAULT '0',
  `enrolid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `timestart` bigint(10) NOT NULL DEFAULT '0',
  `timeend` bigint(10) NOT NULL DEFAULT '2147483647',
  `modifierid` bigint(10) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_userenro_enruse_uix` (`enrolid`,`userid`),
  KEY `mdl_userenro_enr_ix` (`enrolid`),
  KEY `mdl_userenro_use_ix` (`userid`),
  KEY `mdl_userenro_mod_ix` (`modifierid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Users participating in courses (aka enrolled users) - everyb';

--
-- Dumping data for table `mdl_user_enrolments`
--


--
-- Table structure for table `mdl_user_info_category`
--

CREATE TABLE `mdl_user_info_category` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL DEFAULT '',
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Customisable fields categories';

--
-- Dumping data for table `mdl_user_info_category`
--


--
-- Table structure for table `mdl_user_info_data`
--

CREATE TABLE `mdl_user_info_data` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `fieldid` bigint(10) NOT NULL DEFAULT '0',
  `data` longtext NOT NULL,
  `dataformat` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_userinfodata_usefie_uix` (`userid`,`fieldid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Data for the customisable user fields';

--
-- Dumping data for table `mdl_user_info_data`
--


--
-- Table structure for table `mdl_user_info_field`
--

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,
  `descriptionformat` tinyint(2) NOT NULL DEFAULT '0',
  `categoryid` bigint(10) NOT NULL DEFAULT '0',
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  `required` tinyint(2) NOT NULL DEFAULT '0',
  `locked` tinyint(2) NOT NULL DEFAULT '0',
  `visible` smallint(4) NOT NULL DEFAULT '0',
  `forceunique` tinyint(2) NOT NULL DEFAULT '0',
  `signup` tinyint(2) NOT NULL DEFAULT '0',
  `defaultdata` longtext,
  `defaultdataformat` tinyint(2) NOT NULL DEFAULT '0',
  `param1` longtext,
  `param2` longtext,
  `param3` longtext,
  `param4` longtext,
  `param5` longtext,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Customisable user profile fields';

--
-- Dumping data for table `mdl_user_info_field`
--


--
-- Table structure for table `mdl_user_lastaccess`
--

CREATE TABLE `mdl_user_lastaccess` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `courseid` bigint(10) NOT NULL DEFAULT '0',
  `timeaccess` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_userlast_usecou_uix` (`userid`,`courseid`),
  KEY `mdl_userlast_use_ix` (`userid`),
  KEY `mdl_userlast_cou_ix` (`courseid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='To keep track of course page access times, used in online pa';

--
-- Dumping data for table `mdl_user_lastaccess`
--


--
-- Table structure for table `mdl_user_password_resets`
--

CREATE TABLE `mdl_user_password_resets` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL,
  `timerequested` bigint(10) NOT NULL,
  `timererequested` bigint(10) NOT NULL DEFAULT '0',
  `token` varchar(32) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_userpassrese_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='table tracking password reset confirmation tokens';

--
-- Dumping data for table `mdl_user_password_resets`
--


--
-- Table structure for table `mdl_user_preferences`
--

CREATE TABLE `mdl_user_preferences` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `value` varchar(1333) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_userpref_usenam_uix` (`userid`,`name`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COMMENT='Allows modules to store arbitrary user preferences';

--
-- Dumping data for table `mdl_user_preferences`
--

INSERT INTO `mdl_user_preferences` VALUES (1,2,'auth_manual_passwordupdatetime','1442833729'),(2,2,'htmleditor',''),(3,2,'email_bounce_count','1'),(4,2,'email_send_count','1');

--
-- Table structure for table `mdl_user_private_key`
--

CREATE TABLE `mdl_user_private_key` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `script` varchar(128) NOT NULL DEFAULT '',
  `value` varchar(128) NOT NULL DEFAULT '',
  `userid` bigint(10) NOT NULL,
  `instance` bigint(10) DEFAULT NULL,
  `iprestriction` varchar(255) DEFAULT NULL,
  `validuntil` bigint(10) DEFAULT NULL,
  `timecreated` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_userprivkey_scrval_ix` (`script`,`value`),
  KEY `mdl_userprivkey_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='access keys used in cookieless scripts - rss, etc.';

--
-- Dumping data for table `mdl_user_private_key`
--


--
-- Table structure for table `mdl_webdav_locks`
--

CREATE TABLE `mdl_webdav_locks` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `token` varchar(255) NOT NULL DEFAULT '',
  `path` varchar(255) NOT NULL DEFAULT '',
  `expiry` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `recursive` tinyint(1) NOT NULL DEFAULT '0',
  `exclusivelock` tinyint(1) NOT NULL DEFAULT '0',
  `created` bigint(10) NOT NULL DEFAULT '0',
  `modified` bigint(10) NOT NULL DEFAULT '0',
  `owner` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_webdlock_tok_uix` (`token`),
  KEY `mdl_webdlock_pat_ix` (`path`),
  KEY `mdl_webdlock_exp_ix` (`expiry`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Resource locks for WebDAV users';

--
-- Dumping data for table `mdl_webdav_locks`
--


--
-- Table structure for table `mdl_wiki`
--

CREATE TABLE `mdl_wiki` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT 'Wiki',
  `intro` longtext,
  `introformat` smallint(4) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `firstpagetitle` varchar(255) NOT NULL DEFAULT 'First Page',
  `wikimode` varchar(20) NOT NULL DEFAULT 'collaborative',
  `defaultformat` varchar(20) NOT NULL DEFAULT 'creole',
  `forceformat` tinyint(1) NOT NULL DEFAULT '1',
  `editbegin` bigint(10) NOT NULL DEFAULT '0',
  `editend` bigint(10) DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_wiki_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores Wiki activity configuration';

--
-- Dumping data for table `mdl_wiki`
--


--
-- Table structure for table `mdl_wiki_links`
--

CREATE TABLE `mdl_wiki_links` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `subwikiid` bigint(10) NOT NULL DEFAULT '0',
  `frompageid` bigint(10) NOT NULL DEFAULT '0',
  `topageid` bigint(10) NOT NULL DEFAULT '0',
  `tomissingpage` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_wikilink_fro_ix` (`frompageid`),
  KEY `mdl_wikilink_sub_ix` (`subwikiid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Page wiki links';

--
-- Dumping data for table `mdl_wiki_links`
--


--
-- Table structure for table `mdl_wiki_locks`
--

CREATE TABLE `mdl_wiki_locks` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `pageid` bigint(10) NOT NULL DEFAULT '0',
  `sectionname` varchar(255) DEFAULT NULL,
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `lockedat` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Manages page locks';

--
-- Dumping data for table `mdl_wiki_locks`
--


--
-- Table structure for table `mdl_wiki_pages`
--

CREATE TABLE `mdl_wiki_pages` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `subwikiid` bigint(10) NOT NULL DEFAULT '0',
  `title` varchar(255) NOT NULL DEFAULT 'title',
  `cachedcontent` longtext NOT NULL,
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `timerendered` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `pageviews` bigint(10) NOT NULL DEFAULT '0',
  `readonly` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_wikipage_subtituse_uix` (`subwikiid`,`title`,`userid`),
  KEY `mdl_wikipage_sub_ix` (`subwikiid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores wiki pages';

--
-- Dumping data for table `mdl_wiki_pages`
--


--
-- Table structure for table `mdl_wiki_subwikis`
--

CREATE TABLE `mdl_wiki_subwikis` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `wikiid` bigint(10) NOT NULL DEFAULT '0',
  `groupid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_wikisubw_wikgrouse_uix` (`wikiid`,`groupid`,`userid`),
  KEY `mdl_wikisubw_wik_ix` (`wikiid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores subwiki instances';

--
-- Dumping data for table `mdl_wiki_subwikis`
--


--
-- Table structure for table `mdl_wiki_synonyms`
--

CREATE TABLE `mdl_wiki_synonyms` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `subwikiid` bigint(10) NOT NULL DEFAULT '0',
  `pageid` bigint(10) NOT NULL DEFAULT '0',
  `pagesynonym` varchar(255) NOT NULL DEFAULT 'Pagesynonym',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_wikisyno_pagpag_uix` (`pageid`,`pagesynonym`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores wiki pages synonyms';

--
-- Dumping data for table `mdl_wiki_synonyms`
--


--
-- Table structure for table `mdl_wiki_versions`
--

CREATE TABLE `mdl_wiki_versions` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `pageid` bigint(10) NOT NULL DEFAULT '0',
  `content` longtext NOT NULL,
  `contentformat` varchar(20) NOT NULL DEFAULT 'creole',
  `version` mediumint(5) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_wikivers_pag_ix` (`pageid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores wiki page history';

--
-- Dumping data for table `mdl_wiki_versions`
--


--
-- Table structure for table `mdl_workshop`
--

CREATE TABLE `mdl_workshop` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL,
  `name` varchar(255) NOT NULL DEFAULT '',
  `intro` longtext,
  `introformat` smallint(3) NOT NULL DEFAULT '0',
  `instructauthors` longtext,
  `instructauthorsformat` smallint(3) NOT NULL DEFAULT '0',
  `instructreviewers` longtext,
  `instructreviewersformat` smallint(3) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL,
  `phase` smallint(3) DEFAULT '0',
  `useexamples` tinyint(2) DEFAULT '0',
  `usepeerassessment` tinyint(2) DEFAULT '0',
  `useselfassessment` tinyint(2) DEFAULT '0',
  `grade` decimal(10,5) DEFAULT '80.00000',
  `gradinggrade` decimal(10,5) DEFAULT '20.00000',
  `strategy` varchar(30) NOT NULL DEFAULT '',
  `evaluation` varchar(30) NOT NULL DEFAULT '',
  `gradedecimals` smallint(3) DEFAULT '0',
  `nattachments` smallint(3) DEFAULT '0',
  `latesubmissions` tinyint(2) DEFAULT '0',
  `maxbytes` bigint(10) DEFAULT '100000',
  `examplesmode` smallint(3) DEFAULT '0',
  `submissionstart` bigint(10) DEFAULT '0',
  `submissionend` bigint(10) DEFAULT '0',
  `assessmentstart` bigint(10) DEFAULT '0',
  `assessmentend` bigint(10) DEFAULT '0',
  `phaseswitchassessment` tinyint(2) NOT NULL DEFAULT '0',
  `conclusion` longtext,
  `conclusionformat` smallint(3) NOT NULL DEFAULT '1',
  `overallfeedbackmode` smallint(3) DEFAULT '1',
  `overallfeedbackfiles` smallint(3) DEFAULT '0',
  `overallfeedbackmaxbytes` bigint(10) DEFAULT '100000',
  PRIMARY KEY (`id`),
  KEY `mdl_work_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='This table keeps information about the module instances and ';

--
-- Dumping data for table `mdl_workshop`
--


--
-- Table structure for table `mdl_workshop_aggregations`
--

CREATE TABLE `mdl_workshop_aggregations` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL,
  `userid` bigint(10) NOT NULL,
  `gradinggrade` decimal(10,5) DEFAULT NULL,
  `timegraded` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_workaggr_woruse_uix` (`workshopid`,`userid`),
  KEY `mdl_workaggr_wor_ix` (`workshopid`),
  KEY `mdl_workaggr_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Aggregated grades for assessment are stored here. The aggreg';

--
-- Dumping data for table `mdl_workshop_aggregations`
--


--
-- Table structure for table `mdl_workshop_assessments`
--

CREATE TABLE `mdl_workshop_assessments` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `submissionid` bigint(10) NOT NULL,
  `reviewerid` bigint(10) NOT NULL,
  `weight` bigint(10) NOT NULL DEFAULT '1',
  `timecreated` bigint(10) DEFAULT '0',
  `timemodified` bigint(10) DEFAULT '0',
  `grade` decimal(10,5) DEFAULT NULL,
  `gradinggrade` decimal(10,5) DEFAULT NULL,
  `gradinggradeover` decimal(10,5) DEFAULT NULL,
  `gradinggradeoverby` bigint(10) DEFAULT NULL,
  `feedbackauthor` longtext,
  `feedbackauthorformat` smallint(3) DEFAULT '0',
  `feedbackauthorattachment` smallint(3) DEFAULT '0',
  `feedbackreviewer` longtext,
  `feedbackreviewerformat` smallint(3) DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_workasse_sub_ix` (`submissionid`),
  KEY `mdl_workasse_gra_ix` (`gradinggradeoverby`),
  KEY `mdl_workasse_rev_ix` (`reviewerid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Info about the made assessment and automatically calculated ';

--
-- Dumping data for table `mdl_workshop_assessments`
--


--
-- Table structure for table `mdl_workshop_assessments_old`
--

CREATE TABLE `mdl_workshop_assessments_old` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL DEFAULT '0',
  `submissionid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `timegraded` bigint(10) NOT NULL DEFAULT '0',
  `timeagreed` bigint(10) NOT NULL DEFAULT '0',
  `grade` double NOT NULL DEFAULT '0',
  `gradinggrade` smallint(3) NOT NULL DEFAULT '0',
  `teachergraded` smallint(3) NOT NULL DEFAULT '0',
  `mailed` smallint(3) NOT NULL DEFAULT '0',
  `resubmission` smallint(3) NOT NULL DEFAULT '0',
  `donotuse` smallint(3) NOT NULL DEFAULT '0',
  `generalcomment` longtext,
  `teachercomment` longtext,
  `newplugin` varchar(28) DEFAULT NULL,
  `newid` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_workasseold_use_ix` (`userid`),
  KEY `mdl_workasseold_mai_ix` (`mailed`),
  KEY `mdl_workasseold_wor_ix` (`workshopid`),
  KEY `mdl_workasseold_sub_ix` (`submissionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Legacy workshop_assessments table to be dropped later in Moo';

--
-- Dumping data for table `mdl_workshop_assessments_old`
--


--
-- Table structure for table `mdl_workshop_comments_old`
--

CREATE TABLE `mdl_workshop_comments_old` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL DEFAULT '0',
  `assessmentid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `mailed` tinyint(2) NOT NULL DEFAULT '0',
  `comments` longtext NOT NULL,
  `newplugin` varchar(28) DEFAULT NULL,
  `newid` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_workcommold_use_ix` (`userid`),
  KEY `mdl_workcommold_mai_ix` (`mailed`),
  KEY `mdl_workcommold_wor_ix` (`workshopid`),
  KEY `mdl_workcommold_ass_ix` (`assessmentid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Legacy workshop_comments table to be dropped later in Moodle';

--
-- Dumping data for table `mdl_workshop_comments_old`
--


--
-- Table structure for table `mdl_workshop_elements_old`
--

CREATE TABLE `mdl_workshop_elements_old` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL DEFAULT '0',
  `elementno` smallint(3) NOT NULL DEFAULT '0',
  `description` longtext NOT NULL,
  `scale` smallint(3) NOT NULL DEFAULT '0',
  `maxscore` smallint(3) NOT NULL DEFAULT '1',
  `weight` smallint(3) NOT NULL DEFAULT '11',
  `stddev` double NOT NULL DEFAULT '0',
  `totalassessments` bigint(10) NOT NULL DEFAULT '0',
  `newplugin` varchar(28) DEFAULT NULL,
  `newid` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_workelemold_wor_ix` (`workshopid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Legacy workshop_elements table to be dropped later in Moodle';

--
-- Dumping data for table `mdl_workshop_elements_old`
--


--
-- Table structure for table `mdl_workshop_grades`
--

CREATE TABLE `mdl_workshop_grades` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `assessmentid` bigint(10) NOT NULL,
  `strategy` varchar(30) NOT NULL DEFAULT '',
  `dimensionid` bigint(10) NOT NULL,
  `grade` decimal(10,5) NOT NULL,
  `peercomment` longtext,
  `peercommentformat` smallint(3) DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_workgrad_assstrdim_uix` (`assessmentid`,`strategy`,`dimensionid`),
  KEY `mdl_workgrad_ass_ix` (`assessmentid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='How the reviewers filled-up the grading forms, given grades ';

--
-- Dumping data for table `mdl_workshop_grades`
--


--
-- Table structure for table `mdl_workshop_grades_old`
--

CREATE TABLE `mdl_workshop_grades_old` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL DEFAULT '0',
  `assessmentid` bigint(10) NOT NULL DEFAULT '0',
  `elementno` bigint(10) NOT NULL DEFAULT '0',
  `feedback` longtext NOT NULL,
  `grade` smallint(3) NOT NULL DEFAULT '0',
  `newplugin` varchar(28) DEFAULT NULL,
  `newid` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_workgradold_wor_ix` (`workshopid`),
  KEY `mdl_workgradold_ass_ix` (`assessmentid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Legacy workshop_grades table to be dropped later in Moodle 2';

--
-- Dumping data for table `mdl_workshop_grades_old`
--


--
-- Table structure for table `mdl_workshop_old`
--

CREATE TABLE `mdl_workshop_old` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `course` bigint(10) NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `description` longtext NOT NULL,
  `wtype` smallint(3) NOT NULL DEFAULT '0',
  `nelements` smallint(3) NOT NULL DEFAULT '1',
  `nattachments` smallint(3) NOT NULL DEFAULT '0',
  `phase` tinyint(2) NOT NULL DEFAULT '0',
  `format` tinyint(2) NOT NULL DEFAULT '0',
  `gradingstrategy` tinyint(2) NOT NULL DEFAULT '1',
  `resubmit` tinyint(2) NOT NULL DEFAULT '0',
  `agreeassessments` tinyint(2) NOT NULL DEFAULT '0',
  `hidegrades` tinyint(2) NOT NULL DEFAULT '0',
  `anonymous` tinyint(2) NOT NULL DEFAULT '0',
  `includeself` tinyint(2) NOT NULL DEFAULT '0',
  `maxbytes` bigint(10) NOT NULL DEFAULT '100000',
  `submissionstart` bigint(10) NOT NULL DEFAULT '0',
  `assessmentstart` bigint(10) NOT NULL DEFAULT '0',
  `submissionend` bigint(10) NOT NULL DEFAULT '0',
  `assessmentend` bigint(10) NOT NULL DEFAULT '0',
  `releasegrades` bigint(10) NOT NULL DEFAULT '0',
  `grade` smallint(3) NOT NULL DEFAULT '0',
  `gradinggrade` smallint(3) NOT NULL DEFAULT '0',
  `ntassessments` smallint(3) NOT NULL DEFAULT '0',
  `assessmentcomps` smallint(3) NOT NULL DEFAULT '2',
  `nsassessments` smallint(3) NOT NULL DEFAULT '0',
  `overallocation` smallint(3) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) NOT NULL DEFAULT '0',
  `teacherweight` smallint(3) NOT NULL DEFAULT '1',
  `showleaguetable` smallint(3) NOT NULL DEFAULT '0',
  `usepassword` smallint(3) NOT NULL DEFAULT '0',
  `password` varchar(32) NOT NULL DEFAULT '',
  `newplugin` varchar(28) DEFAULT NULL,
  `newid` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_workold_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Legacy workshop table to be dropped later in Moodle 2.x';

--
-- Dumping data for table `mdl_workshop_old`
--


--
-- Table structure for table `mdl_workshop_rubrics_old`
--

CREATE TABLE `mdl_workshop_rubrics_old` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL DEFAULT '0',
  `elementno` bigint(10) NOT NULL DEFAULT '0',
  `rubricno` smallint(3) NOT NULL DEFAULT '0',
  `description` longtext NOT NULL,
  `newplugin` varchar(28) DEFAULT NULL,
  `newid` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_workrubrold_wor_ix` (`workshopid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Legacy workshop_rubrics table to be dropped later in Moodle ';

--
-- Dumping data for table `mdl_workshop_rubrics_old`
--


--
-- Table structure for table `mdl_workshop_stockcomments_old`
--

CREATE TABLE `mdl_workshop_stockcomments_old` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL DEFAULT '0',
  `elementno` bigint(10) NOT NULL DEFAULT '0',
  `comments` longtext NOT NULL,
  `newplugin` varchar(28) DEFAULT NULL,
  `newid` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_workstocold_wor_ix` (`workshopid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Legacy workshop_stockcomments table to be dropped later in M';

--
-- Dumping data for table `mdl_workshop_stockcomments_old`
--


--
-- Table structure for table `mdl_workshop_submissions`
--

CREATE TABLE `mdl_workshop_submissions` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL,
  `example` tinyint(2) DEFAULT '0',
  `authorid` bigint(10) NOT NULL,
  `timecreated` bigint(10) NOT NULL,
  `timemodified` bigint(10) NOT NULL,
  `title` varchar(255) NOT NULL DEFAULT '',
  `content` longtext,
  `contentformat` smallint(3) NOT NULL DEFAULT '0',
  `contenttrust` smallint(3) NOT NULL DEFAULT '0',
  `attachment` tinyint(2) DEFAULT '0',
  `grade` decimal(10,5) DEFAULT NULL,
  `gradeover` decimal(10,5) DEFAULT NULL,
  `gradeoverby` bigint(10) DEFAULT NULL,
  `feedbackauthor` longtext,
  `feedbackauthorformat` smallint(3) DEFAULT '0',
  `timegraded` bigint(10) DEFAULT NULL,
  `published` tinyint(2) DEFAULT '0',
  `late` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_worksubm_wor_ix` (`workshopid`),
  KEY `mdl_worksubm_gra_ix` (`gradeoverby`),
  KEY `mdl_worksubm_aut_ix` (`authorid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Info about the submission and the aggregation of the grade f';

--
-- Dumping data for table `mdl_workshop_submissions`
--


--
-- Table structure for table `mdl_workshop_submissions_old`
--

CREATE TABLE `mdl_workshop_submissions_old` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `title` varchar(100) NOT NULL DEFAULT '',
  `timecreated` bigint(10) NOT NULL DEFAULT '0',
  `mailed` tinyint(2) NOT NULL DEFAULT '0',
  `description` longtext NOT NULL,
  `gradinggrade` smallint(3) NOT NULL DEFAULT '0',
  `finalgrade` smallint(3) NOT NULL DEFAULT '0',
  `late` smallint(3) NOT NULL DEFAULT '0',
  `nassessments` bigint(10) NOT NULL DEFAULT '0',
  `newplugin` varchar(28) DEFAULT NULL,
  `newid` bigint(10) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_worksubmold_use_ix` (`userid`),
  KEY `mdl_worksubmold_mai_ix` (`mailed`),
  KEY `mdl_worksubmold_wor_ix` (`workshopid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Legacy workshop_submissions table to be dropped later in Moo';

--
-- Dumping data for table `mdl_workshop_submissions_old`
--


--
-- Table structure for table `mdl_workshopallocation_scheduled`
--

CREATE TABLE `mdl_workshopallocation_scheduled` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL,
  `enabled` tinyint(2) NOT NULL DEFAULT '0',
  `submissionend` bigint(10) NOT NULL,
  `timeallocated` bigint(10) DEFAULT NULL,
  `settings` longtext,
  `resultstatus` bigint(10) DEFAULT NULL,
  `resultmessage` varchar(1333) DEFAULT NULL,
  `resultlog` longtext,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_worksche_wor_uix` (`workshopid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores the allocation settings for the scheduled allocator';

--
-- Dumping data for table `mdl_workshopallocation_scheduled`
--


--
-- Table structure for table `mdl_workshopeval_best_settings`
--

CREATE TABLE `mdl_workshopeval_best_settings` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL,
  `comparison` smallint(3) DEFAULT '5',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_workbestsett_wor_uix` (`workshopid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Settings for the grading evaluation subplugin Comparison wit';

--
-- Dumping data for table `mdl_workshopeval_best_settings`
--


--
-- Table structure for table `mdl_workshopform_accumulative`
--

CREATE TABLE `mdl_workshopform_accumulative` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL,
  `sort` bigint(10) DEFAULT '0',
  `description` longtext,
  `descriptionformat` smallint(3) DEFAULT '0',
  `grade` bigint(10) NOT NULL,
  `weight` mediumint(5) DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `mdl_workaccu_wor_ix` (`workshopid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='The assessment dimensions definitions of Accumulative gradin';

--
-- Dumping data for table `mdl_workshopform_accumulative`
--


--
-- Table structure for table `mdl_workshopform_comments`
--

CREATE TABLE `mdl_workshopform_comments` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL,
  `sort` bigint(10) DEFAULT '0',
  `description` longtext,
  `descriptionformat` smallint(3) DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_workcomm_wor_ix` (`workshopid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='The assessment dimensions definitions of Comments strategy f';

--
-- Dumping data for table `mdl_workshopform_comments`
--


--
-- Table structure for table `mdl_workshopform_numerrors`
--

CREATE TABLE `mdl_workshopform_numerrors` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL,
  `sort` bigint(10) DEFAULT '0',
  `description` longtext,
  `descriptionformat` smallint(3) DEFAULT '0',
  `descriptiontrust` bigint(10) DEFAULT NULL,
  `grade0` varchar(50) DEFAULT NULL,
  `grade1` varchar(50) DEFAULT NULL,
  `weight` mediumint(5) DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `mdl_worknume_wor_ix` (`workshopid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='The assessment dimensions definitions of Number of errors gr';

--
-- Dumping data for table `mdl_workshopform_numerrors`
--


--
-- Table structure for table `mdl_workshopform_numerrors_map`
--

CREATE TABLE `mdl_workshopform_numerrors_map` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL,
  `nonegative` bigint(10) NOT NULL,
  `grade` decimal(10,5) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_worknumemap_wornon_uix` (`workshopid`,`nonegative`),
  KEY `mdl_worknumemap_wor_ix` (`workshopid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='This maps the number of errors to a percentual grade for sub';

--
-- Dumping data for table `mdl_workshopform_numerrors_map`
--


--
-- Table structure for table `mdl_workshopform_rubric`
--

CREATE TABLE `mdl_workshopform_rubric` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL,
  `sort` bigint(10) DEFAULT '0',
  `description` longtext,
  `descriptionformat` smallint(3) DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_workrubr_wor_ix` (`workshopid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='The assessment dimensions definitions of Rubric grading stra';

--
-- Dumping data for table `mdl_workshopform_rubric`
--


--
-- Table structure for table `mdl_workshopform_rubric_config`
--

CREATE TABLE `mdl_workshopform_rubric_config` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) NOT NULL,
  `layout` varchar(30) DEFAULT 'list',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_workrubrconf_wor_uix` (`workshopid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Configuration table for the Rubric grading strategy';

--
-- Dumping data for table `mdl_workshopform_rubric_config`
--


--
-- Table structure for table `mdl_workshopform_rubric_levels`
--

CREATE TABLE `mdl_workshopform_rubric_levels` (
  `id` bigint(10) NOT NULL AUTO_INCREMENT,
  `dimensionid` bigint(10) NOT NULL,
  `grade` decimal(10,5) NOT NULL,
  `definition` longtext,
  `definitionformat` smallint(3) DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_workrubrleve_dim_ix` (`dimensionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='The definition of rubric rating scales';

--
-- Dumping data for table `mdl_workshopform_rubric_levels`
--



