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

--
-- Volcado de datos para la tabla `mdl_mnet_remote_service2rpc`
--

INSERT INTO `mdl_mnet_remote_service2rpc` (`id`, `serviceid`, `rpcid`) 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);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_mnet_rpc`
--

CREATE TABLE IF NOT EXISTS `mdl_mnet_rpc` (
  `id` bigint(10) unsigned 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) unsigned NOT NULL DEFAULT '0',
  `help` mediumtext NOT NULL,
  `profile` mediumtext 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  DEFAULT CHARSET=utf8 COMMENT='Functions or methods that we may publish or subscribe to' AUTO_INCREMENT=16 ;

--
-- Volcado de datos para la tabla `mdl_mnet_rpc`
--

INSERT INTO `mdl_mnet_rpc` (`id`, `functionname`, `xmlrpcpath`, `plugintype`, `pluginname`, `enabled`, `help`, `profile`, `filename`, `classname`, `static`) 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);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_mnet_service`
--

CREATE TABLE IF NOT EXISTS `mdl_mnet_service` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(40) NOT NULL DEFAULT '',
  `description` varchar(40) NOT NULL DEFAULT '',
  `apiversion` varchar(10) NOT NULL DEFAULT '',
  `offer` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COMMENT='A service is a group of functions' AUTO_INCREMENT=5 ;

--
-- Volcado de datos para la tabla `mdl_mnet_service`
--

INSERT INTO `mdl_mnet_service` (`id`, `name`, `description`, `apiversion`, `offer`) VALUES
(1, 'sso_idp', '', '1', 1),
(2, 'sso_sp', '', '1', 1),
(3, 'mnet_enrol', '', '1', 1),
(4, 'pf', '', '1', 1);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_mnet_service2rpc`
--

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

--
-- Volcado de datos para la tabla `mdl_mnet_service2rpc`
--

INSERT INTO `mdl_mnet_service2rpc` (`id`, `serviceid`, `rpcid`) 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);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_mnet_sso_access_control`
--

CREATE TABLE IF NOT EXISTS `mdl_mnet_sso_access_control` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(100) NOT NULL DEFAULT '',
  `mnet_host_id` bigint(10) unsigned NOT NULL DEFAULT '0',
  `accessctrl` varchar(20) NOT NULL DEFAULT 'allow',
  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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_modules`
--

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

--
-- Volcado de datos para la tabla `mdl_modules`
--

INSERT INTO `mdl_modules` (`id`, `name`, `version`, `cron`, `lastcron`, `search`, `visible`) VALUES
(1, 'assignment', 2011112901, 60, 0, '', 1),
(2, 'chat', 2011112900, 300, 0, '', 1),
(3, 'choice', 2011112900, 0, 0, '', 1),
(4, 'data', 2011112901, 0, 0, '', 1),
(5, 'feedback', 2011112900, 0, 0, '', 0),
(6, 'folder', 2011112900, 0, 0, '', 1),
(7, 'forum', 2011112901, 60, 0, '', 1),
(8, 'glossary', 2011112900, 0, 0, '', 1),
(9, 'imscp', 2011112900, 0, 0, '', 1),
(10, 'label', 2011112900, 0, 0, '', 1),
(11, 'lesson', 2011112901, 0, 0, '', 1),
(12, 'lti', 2011112900, 0, 0, '', 1),
(13, 'page', 2011112900, 0, 0, '', 1),
(14, 'quiz', 2011112904, 60, 0, '', 1),
(15, 'resource', 2011112900, 0, 0, '', 1),
(16, 'scorm', 2011112901, 300, 0, '', 1),
(17, 'survey', 2011112900, 0, 0, '', 1),
(18, 'url', 2011112900, 0, 0, '', 1),
(19, 'wiki', 2011112900, 0, 0, '', 1),
(20, 'workshop', 2011112902, 0, 0, '', 1);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_my_pages`
--

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

--
-- Volcado de datos para la tabla `mdl_my_pages`
--

INSERT INTO `mdl_my_pages` (`id`, `userid`, `name`, `private`, `sortorder`) VALUES
(1, NULL, '__default', 0, 0),
(2, NULL, '__default', 1, 0);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_page`
--

CREATE TABLE IF NOT EXISTS `mdl_page` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` bigint(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `intro` text,
  `introformat` smallint(4) unsigned NOT NULL DEFAULT '0',
  `content` mediumtext,
  `contentformat` smallint(4) unsigned NOT NULL DEFAULT '0',
  `legacyfiles` smallint(4) unsigned NOT NULL DEFAULT '0',
  `legacyfileslast` bigint(10) unsigned DEFAULT NULL,
  `display` smallint(4) unsigned NOT NULL DEFAULT '0',
  `displayoptions` text,
  `revision` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_portfolio_instance`
--

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

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_portfolio_instance_config`
--

CREATE TABLE IF NOT EXISTS `mdl_portfolio_instance_config` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `instance` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_portfolio_instance_user`
--

CREATE TABLE IF NOT EXISTS `mdl_portfolio_instance_user` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `instance` bigint(10) unsigned NOT NULL,
  `userid` bigint(10) unsigned 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.' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_portfolio_log`
--

CREATE TABLE IF NOT EXISTS `mdl_portfolio_log` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) unsigned NOT NULL,
  `time` bigint(10) unsigned NOT NULL,
  `portfolio` bigint(10) unsigned NOT NULL,
  `caller_class` varchar(150) NOT NULL DEFAULT '',
  `caller_file` varchar(255) NOT NULL DEFAULT '',
  `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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_portfolio_tempdata`
--

CREATE TABLE IF NOT EXISTS `mdl_portfolio_tempdata` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `data` longtext,
  `expirytime` bigint(10) unsigned NOT NULL,
  `userid` bigint(10) unsigned NOT NULL,
  `instance` bigint(10) 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 ' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_post`
--

CREATE TABLE IF NOT EXISTS `mdl_post` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `module` varchar(20) NOT NULL DEFAULT '',
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `courseid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `groupid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `moduleid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `coursemoduleid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `subject` varchar(128) NOT NULL DEFAULT '',
  `summary` longtext,
  `content` longtext,
  `uniquehash` varchar(255) NOT NULL DEFAULT '',
  `rating` bigint(10) unsigned NOT NULL DEFAULT '0',
  `format` bigint(10) unsigned NOT NULL DEFAULT '0',
  `summaryformat` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `attachment` varchar(100) DEFAULT NULL,
  `publishstate` varchar(20) NOT NULL DEFAULT 'draft',
  `lastmodified` bigint(10) unsigned NOT NULL DEFAULT '0',
  `created` bigint(10) unsigned NOT NULL DEFAULT '0',
  `usermodified` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_profiling`
--

CREATE TABLE IF NOT EXISTS `mdl_profiling` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `runid` varchar(32) NOT NULL DEFAULT '',
  `url` varchar(255) NOT NULL DEFAULT '',
  `data` longtext NOT NULL,
  `totalexecutiontime` bigint(10) unsigned NOT NULL,
  `totalcputime` bigint(10) unsigned NOT NULL,
  `totalcalls` bigint(10) unsigned NOT NULL,
  `totalmemory` bigint(10) unsigned NOT NULL,
  `runreference` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `runcomment` varchar(255) NOT NULL DEFAULT '',
  `timecreated` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_qtype_essay_options`
--

CREATE TABLE IF NOT EXISTS `mdl_qtype_essay_options` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `questionid` bigint(10) unsigned NOT NULL,
  `responseformat` varchar(16) NOT NULL DEFAULT 'editor',
  `responsefieldlines` smallint(4) NOT NULL DEFAULT '15',
  `attachments` smallint(4) NOT NULL DEFAULT '0',
  `graderinfo` text,
  `graderinfoformat` smallint(4) unsigned 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.' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_question`
--

CREATE TABLE IF NOT EXISTS `mdl_question` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `category` bigint(10) NOT NULL DEFAULT '0',
  `parent` bigint(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `questiontext` text NOT NULL,
  `questiontextformat` tinyint(2) NOT NULL DEFAULT '0',
  `generalfeedback` text 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) unsigned NOT NULL DEFAULT '1',
  `stamp` varchar(255) NOT NULL DEFAULT '',
  `version` varchar(255) NOT NULL DEFAULT '',
  `hidden` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `timecreated` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` bigint(10) unsigned NOT NULL DEFAULT '0',
  `createdby` bigint(10) unsigned DEFAULT NULL,
  `modifiedby` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_question_answers`
--

CREATE TABLE IF NOT EXISTS `mdl_question_answers` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `question` bigint(10) unsigned NOT NULL DEFAULT '0',
  `answer` text NOT NULL,
  `answerformat` tinyint(2) NOT NULL DEFAULT '0',
  `fraction` decimal(12,7) NOT NULL DEFAULT '0.0000000',
  `feedback` text 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_question_attempts`
--

CREATE TABLE IF NOT EXISTS `mdl_question_attempts` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `questionusageid` bigint(10) unsigned NOT NULL,
  `slot` bigint(10) unsigned NOT NULL,
  `behaviour` varchar(32) NOT NULL DEFAULT '',
  `questionid` bigint(10) unsigned NOT NULL,
  `variant` bigint(10) unsigned NOT NULL DEFAULT '1',
  `maxmark` decimal(12,7) NOT NULL,
  `minfraction` decimal(12,7) NOT NULL,
  `flagged` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `questionsummary` text,
  `rightanswer` text,
  `responsesummary` text,
  `timemodified` bigint(10) unsigned NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_quesatte_queslo_uix` (`questionusageid`,`slot`),
  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 ' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_question_attempt_steps`
--

CREATE TABLE IF NOT EXISTS `mdl_question_attempt_steps` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `questionattemptid` bigint(10) unsigned NOT NULL,
  `sequencenumber` bigint(10) unsigned NOT NULL,
  `state` varchar(13) NOT NULL DEFAULT '',
  `fraction` decimal(12,7) DEFAULT NULL,
  `timecreated` bigint(10) unsigned NOT NULL,
  `userid` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_question_attempt_step_data`
--

CREATE TABLE IF NOT EXISTS `mdl_question_attempt_step_data` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `attemptstepid` bigint(10) unsigned NOT NULL,
  `name` varchar(32) NOT NULL DEFAULT '',
  `value` text,
  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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_question_calculated`
--

CREATE TABLE IF NOT EXISTS `mdl_question_calculated` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `question` bigint(10) unsigned NOT NULL DEFAULT '0',
  `answer` bigint(10) unsigned NOT NULL DEFAULT '0',
  `tolerance` varchar(20) NOT NULL DEFAULT '0.0',
  `tolerancetype` bigint(10) NOT NULL DEFAULT '1',
  `correctanswerlength` bigint(10) NOT NULL DEFAULT '2',
  `correctanswerformat` bigint(10) NOT NULL DEFAULT '2',
  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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_question_calculated_options`
--

CREATE TABLE IF NOT EXISTS `mdl_question_calculated_options` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `question` bigint(10) unsigned NOT NULL DEFAULT '0',
  `synchronize` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `single` smallint(4) NOT NULL DEFAULT '0',
  `shuffleanswers` smallint(4) NOT NULL DEFAULT '0',
  `correctfeedback` text,
  `correctfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `partiallycorrectfeedback` text,
  `partiallycorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `incorrectfeedback` text,
  `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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_question_categories`
--

CREATE TABLE IF NOT EXISTS `mdl_question_categories` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL DEFAULT '',
  `contextid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `info` text NOT NULL,
  `infoformat` tinyint(2) NOT NULL DEFAULT '0',
  `stamp` varchar(255) NOT NULL DEFAULT '',
  `parent` bigint(10) unsigned NOT NULL DEFAULT '0',
  `sortorder` bigint(10) unsigned NOT NULL DEFAULT '999',
  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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_question_datasets`
--

CREATE TABLE IF NOT EXISTS `mdl_question_datasets` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `question` bigint(10) unsigned NOT NULL DEFAULT '0',
  `datasetdefinition` bigint(10) unsigned NOT NULL DEFAULT '0',
  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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_question_dataset_definitions`
--

CREATE TABLE IF NOT EXISTS `mdl_question_dataset_definitions` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `category` bigint(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `type` bigint(10) NOT NULL DEFAULT '0',
  `options` varchar(255) NOT NULL DEFAULT '',
  `itemcount` bigint(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_quesdatadefi_cat_ix` (`category`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Organises and stores properties for dataset items' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_question_dataset_items`
--

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

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_question_hints`
--

CREATE TABLE IF NOT EXISTS `mdl_question_hints` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `questionid` bigint(10) unsigned NOT NULL,
  `hint` text NOT NULL,
  `hintformat` smallint(4) unsigned NOT NULL DEFAULT '0',
  `shownumcorrect` tinyint(1) unsigned DEFAULT NULL,
  `clearwrong` tinyint(1) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_question_match`
--

CREATE TABLE IF NOT EXISTS `mdl_question_match` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `question` bigint(10) unsigned NOT NULL DEFAULT '0',
  `subquestions` varchar(255) NOT NULL DEFAULT '',
  `shuffleanswers` smallint(4) NOT NULL DEFAULT '1',
  `correctfeedback` text NOT NULL,
  `correctfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `partiallycorrectfeedback` text NOT NULL,
  `partiallycorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `incorrectfeedback` text NOT NULL,
  `incorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `shownumcorrect` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_quesmatc_que_ix` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Defines fixed matching questions' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_question_match_sub`
--

CREATE TABLE IF NOT EXISTS `mdl_question_match_sub` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `code` bigint(10) unsigned NOT NULL DEFAULT '0',
  `question` bigint(10) unsigned NOT NULL DEFAULT '0',
  `questiontext` text NOT NULL,
  `questiontextformat` tinyint(2) NOT NULL DEFAULT '0',
  `answertext` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_quesmatcsub_que_ix` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Defines the subquestions that make up a matching question' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_question_multianswer`
--

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

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_question_multichoice`
--

CREATE TABLE IF NOT EXISTS `mdl_question_multichoice` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `question` bigint(10) unsigned NOT NULL DEFAULT '0',
  `layout` smallint(4) NOT NULL DEFAULT '0',
  `answers` varchar(255) NOT NULL DEFAULT '',
  `single` smallint(4) NOT NULL DEFAULT '0',
  `shuffleanswers` smallint(4) NOT NULL DEFAULT '1',
  `correctfeedback` text NOT NULL,
  `correctfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `partiallycorrectfeedback` text NOT NULL,
  `partiallycorrectfeedbackformat` tinyint(2) NOT NULL DEFAULT '0',
  `incorrectfeedback` text 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`),
  KEY `mdl_quesmult_que2_ix` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Options for multiple choice questions' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_question_numerical`
--

CREATE TABLE IF NOT EXISTS `mdl_question_numerical` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `question` bigint(10) unsigned NOT NULL DEFAULT '0',
  `answer` bigint(10) unsigned NOT NULL DEFAULT '0',
  `tolerance` varchar(255) NOT NULL DEFAULT '0.0',
  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.' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_question_numerical_options`
--

CREATE TABLE IF NOT EXISTS `mdl_question_numerical_options` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `question` bigint(10) unsigned NOT NULL DEFAULT '0',
  `showunits` smallint(4) unsigned NOT NULL DEFAULT '0',
  `unitsleft` smallint(4) NOT NULL DEFAULT '0',
  `unitgradingtype` smallint(4) unsigned NOT NULL DEFAULT '0',
  `unitpenalty` decimal(12,7) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_question_numerical_units`
--

CREATE TABLE IF NOT EXISTS `mdl_question_numerical_units` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `question` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_question_randomsamatch`
--

CREATE TABLE IF NOT EXISTS `mdl_question_randomsamatch` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `question` bigint(10) unsigned NOT NULL DEFAULT '0',
  `choose` bigint(10) unsigned NOT NULL DEFAULT '4',
  PRIMARY KEY (`id`),
  KEY `mdl_quesrand_que_ix` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Info about a random short-answer matching question' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_question_sessions`
--

CREATE TABLE IF NOT EXISTS `mdl_question_sessions` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `attemptid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `questionid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `newest` bigint(10) unsigned NOT NULL DEFAULT '0',
  `newgraded` bigint(10) unsigned NOT NULL DEFAULT '0',
  `sumpenalty` decimal(12,7) NOT NULL DEFAULT '0.0000000',
  `manualcomment` text NOT NULL,
  `manualcommentformat` tinyint(2) NOT NULL DEFAULT '0',
  `flagged` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_quessess_attque_uix` (`attemptid`,`questionid`),
  KEY `mdl_quessess_att_ix` (`attemptid`),
  KEY `mdl_quessess_que_ix` (`questionid`),
  KEY `mdl_quessess_new_ix` (`newest`),
  KEY `mdl_quessess_new2_ix` (`newgraded`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Gives ids of the newest open and newest graded states' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_question_shortanswer`
--

CREATE TABLE IF NOT EXISTS `mdl_question_shortanswer` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `question` bigint(10) unsigned NOT NULL DEFAULT '0',
  `answers` varchar(255) NOT NULL DEFAULT '',
  `usecase` tinyint(2) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_quesshor_que_ix` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Options for short answer questions' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_question_states`
--

CREATE TABLE IF NOT EXISTS `mdl_question_states` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `attempt` bigint(10) unsigned NOT NULL DEFAULT '0',
  `question` bigint(10) unsigned NOT NULL DEFAULT '0',
  `seq_number` mediumint(6) unsigned NOT NULL DEFAULT '0',
  `answer` text NOT NULL,
  `timestamp` bigint(10) unsigned NOT NULL DEFAULT '0',
  `event` smallint(4) unsigned NOT NULL DEFAULT '0',
  `grade` decimal(12,7) NOT NULL DEFAULT '0.0000000',
  `raw_grade` decimal(12,7) NOT NULL DEFAULT '0.0000000',
  `penalty` decimal(12,7) NOT NULL DEFAULT '0.0000000',
  PRIMARY KEY (`id`),
  KEY `mdl_quesstat_att_ix` (`attempt`),
  KEY `mdl_quesstat_que_ix` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores user responses to an attempt, and percentage grades' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_question_truefalse`
--

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

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_question_usages`
--

CREATE TABLE IF NOT EXISTS `mdl_question_usages` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `contextid` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_quiz_attempts`
--

CREATE TABLE IF NOT EXISTS `mdl_quiz_attempts` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `uniqueid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `quiz` bigint(10) unsigned NOT NULL DEFAULT '0',
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `attempt` mediumint(6) NOT NULL DEFAULT '0',
  `sumgrades` decimal(10,5) DEFAULT NULL,
  `timestart` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timefinish` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` bigint(10) unsigned NOT NULL DEFAULT '0',
  `layout` text NOT NULL,
  `preview` smallint(3) unsigned NOT NULL DEFAULT '0',
  `needsupgradetonewqe` smallint(3) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_quizatte_uni_uix` (`uniqueid`),
  KEY `mdl_quizatte_use_ix` (`userid`),
  KEY `mdl_quizatte_qui_ix` (`quiz`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores various attempts on a quiz' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_quiz_feedback`
--

CREATE TABLE IF NOT EXISTS `mdl_quiz_feedback` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `quizid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `feedbacktext` text 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_quiz_grades`
--

CREATE TABLE IF NOT EXISTS `mdl_quiz_grades` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `quiz` bigint(10) unsigned NOT NULL DEFAULT '0',
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `grade` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `timemodified` bigint(10) unsigned 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='The overall grade for each user on the quiz, based on their ' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_quiz_overview_regrades`
--

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

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_quiz_question_instances`
--

CREATE TABLE IF NOT EXISTS `mdl_quiz_question_instances` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `quiz` bigint(10) unsigned NOT NULL DEFAULT '0',
  `question` bigint(10) unsigned NOT NULL DEFAULT '0',
  `grade` decimal(12,7) NOT NULL DEFAULT '0.0000000',
  PRIMARY KEY (`id`),
  KEY `mdl_quizquesinst_qui_ix` (`quiz`),
  KEY `mdl_quizquesinst_que_ix` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores the maximum possible grade (weight) for each question' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_quiz_question_response_stats`
--

CREATE TABLE IF NOT EXISTS `mdl_quiz_question_response_stats` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `quizstatisticsid` bigint(10) unsigned NOT NULL,
  `questionid` bigint(10) unsigned NOT NULL,
  `subqid` bigint(10) unsigned NOT NULL,
  `aid` bigint(10) unsigned DEFAULT NULL,
  `response` longtext,
  `rcount` bigint(10) unsigned DEFAULT NULL,
  `credit` decimal(15,5) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Quiz question responses.' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_quiz_question_statistics`
--

CREATE TABLE IF NOT EXISTS `mdl_quiz_question_statistics` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `quizstatisticsid` bigint(10) unsigned NOT NULL,
  `questionid` bigint(10) unsigned NOT NULL,
  `slot` bigint(10) unsigned DEFAULT NULL,
  `subquestion` smallint(4) unsigned NOT NULL,
  `s` bigint(10) unsigned NOT NULL DEFAULT '0',
  `effectiveweight` decimal(15,5) DEFAULT NULL,
  `negcovar` tinyint(2) unsigned 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` mediumtext,
  `maxmark` decimal(12,7) DEFAULT NULL,
  `positions` mediumtext,
  `randomguessscore` decimal(12,7) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Default comment for the table, please edit me' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_quiz_reports`
--

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

--
-- Volcado de datos para la tabla `mdl_quiz_reports`
--

INSERT INTO `mdl_quiz_reports` (`id`, `name`, `displayorder`, `lastcron`, `cron`, `capability`) VALUES
(1, 'overview', 10000, 0, 0, NULL),
(2, 'responses', 9000, 0, 0, NULL),
(3, 'grading', 6000, 0, 0, NULL),
(4, 'statistics', 8000, 0, 18000, 'quiz/statistics:view');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_quiz_statistics`
--

CREATE TABLE IF NOT EXISTS `mdl_quiz_statistics` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `quizid` bigint(10) unsigned NOT NULL,
  `groupid` bigint(10) unsigned NOT NULL,
  `allattempts` smallint(4) unsigned NOT NULL,
  `timemodified` bigint(10) unsigned NOT NULL,
  `firstattemptscount` bigint(10) unsigned NOT NULL,
  `allattemptscount` bigint(10) unsigned NOT NULL,
  `firstattemptsavg` 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_rating`
--

CREATE TABLE IF NOT EXISTS `mdl_rating` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `contextid` bigint(10) unsigned NOT NULL,
  `component` varchar(100) NOT NULL DEFAULT '',
  `ratingarea` varchar(50) NOT NULL DEFAULT '',
  `itemid` bigint(10) unsigned NOT NULL,
  `scaleid` bigint(10) NOT NULL,
  `rating` bigint(10) unsigned NOT NULL,
  `userid` bigint(10) unsigned NOT NULL,
  `timecreated` bigint(10) unsigned NOT NULL,
  `timemodified` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_repository`
--

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

--
-- Volcado de datos para la tabla `mdl_repository`
--

INSERT INTO `mdl_repository` (`id`, `type`, `visible`, `sortorder`) VALUES
(1, 'local', 1, 1),
(2, 'recent', 1, 2),
(3, 'upload', 1, 3),
(4, 'user', 1, 4);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_repository_instance_config`
--

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

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_resource`
--

CREATE TABLE IF NOT EXISTS `mdl_resource` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` bigint(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `intro` text,
  `introformat` smallint(4) unsigned NOT NULL DEFAULT '0',
  `tobemigrated` smallint(4) unsigned NOT NULL DEFAULT '0',
  `legacyfiles` smallint(4) unsigned NOT NULL DEFAULT '0',
  `legacyfileslast` bigint(10) unsigned DEFAULT NULL,
  `display` smallint(4) unsigned NOT NULL DEFAULT '0',
  `displayoptions` text,
  `filterfiles` smallint(4) unsigned NOT NULL DEFAULT '0',
  `revision` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_resource_old`
--

CREATE TABLE IF NOT EXISTS `mdl_resource_old` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` bigint(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `type` varchar(30) NOT NULL DEFAULT '',
  `reference` varchar(255) NOT NULL DEFAULT '',
  `intro` text,
  `introformat` smallint(4) unsigned NOT NULL DEFAULT '0',
  `alltext` mediumtext NOT NULL,
  `popup` text NOT NULL,
  `options` varchar(255) NOT NULL DEFAULT '',
  `timemodified` bigint(10) unsigned NOT NULL DEFAULT '0',
  `oldid` bigint(10) unsigned NOT NULL,
  `cmid` bigint(10) unsigned DEFAULT NULL,
  `newmodule` varchar(50) DEFAULT NULL,
  `newid` bigint(10) unsigned DEFAULT NULL,
  `migrated` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_role`
--

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

--
-- Volcado de datos para la tabla `mdl_role`
--

INSERT INTO `mdl_role` (`id`, `name`, `shortname`, `description`, `sortorder`, `archetype`) VALUES
(1, 'Manager', 'manager', 'Managers can access course and modify them, they usually do not participate in courses.', 1, 'manager'),
(2, 'Course creator', 'coursecreator', 'Course creators can create new courses.', 2, 'coursecreator'),
(3, 'Teacher', 'editingteacher', 'Teachers can do anything within a course, including changing the activities and grading students.', 3, 'editingteacher'),
(4, 'Non-editing teacher', 'teacher', 'Non-editing teachers can teach in courses and grade students, but may not alter activities.', 4, 'teacher'),
(5, 'Student', 'student', 'Students generally have fewer privileges within a course.', 5, 'student'),
(6, 'Guest', 'guest', 'Guests have minimal privileges and usually can not enter text anywhere.', 6, 'guest'),
(7, 'Authenticated user', 'user', 'All logged in users.', 7, 'user'),
(8, 'Authenticated user on frontpage', 'frontpage', 'All logged in users in the frontpage course.', 8, 'frontpage');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_role_allow_assign`
--

CREATE TABLE IF NOT EXISTS `mdl_role_allow_assign` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `roleid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `allowassign` bigint(10) unsigned NOT NULL DEFAULT '0',
  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  DEFAULT CHARSET=utf8 COMMENT='this defines what role can assign what role' AUTO_INCREMENT=8 ;

--
-- Volcado de datos para la tabla `mdl_role_allow_assign`
--

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

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_role_allow_override`
--

CREATE TABLE IF NOT EXISTS `mdl_role_allow_override` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `roleid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `allowoverride` bigint(10) unsigned NOT NULL DEFAULT '0',
  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  DEFAULT CHARSET=utf8 COMMENT='this defines what role can override what role' AUTO_INCREMENT=12 ;

--
-- Volcado de datos para la tabla `mdl_role_allow_override`
--

INSERT INTO `mdl_role_allow_override` (`id`, `roleid`, `allowoverride`) 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);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_role_allow_switch`
--

CREATE TABLE IF NOT EXISTS `mdl_role_allow_switch` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `roleid` bigint(10) unsigned NOT NULL,
  `allowswitch` bigint(10) unsigned 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  DEFAULT CHARSET=utf8 COMMENT='This table stores which which other roles a user is allowed ' AUTO_INCREMENT=10 ;

--
-- Volcado de datos para la tabla `mdl_role_allow_switch`
--

INSERT INTO `mdl_role_allow_switch` (`id`, `roleid`, `allowswitch`) 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);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_role_assignments`
--

CREATE TABLE IF NOT EXISTS `mdl_role_assignments` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `roleid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `contextid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` bigint(10) unsigned NOT NULL DEFAULT '0',
  `modifierid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `component` varchar(100) NOT NULL DEFAULT '',
  `itemid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `sortorder` bigint(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_roleassi_sor_ix` (`sortorder`),
  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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_role_capabilities`
--

CREATE TABLE IF NOT EXISTS `mdl_role_capabilities` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `contextid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `roleid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `capability` varchar(255) NOT NULL DEFAULT '',
  `permission` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) unsigned NOT NULL DEFAULT '0',
  `modifierid` bigint(10) unsigned NOT NULL DEFAULT '0',
  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  DEFAULT CHARSET=utf8 COMMENT='permission has to be signed, overriding a capability for a p' AUTO_INCREMENT=906 ;

--
-- Volcado de datos para la tabla `mdl_role_capabilities`
--

INSERT INTO `mdl_role_capabilities` (`id`, `contextid`, `roleid`, `capability`, `permission`, `timemodified`, `modifierid`) VALUES
(1, 1, 1, 'moodle/site:readallmessages', 1, 1379403690, 0),
(2, 1, 3, 'moodle/site:readallmessages', 1, 1379403690, 0),
(3, 1, 1, 'moodle/site:sendmessage', 1, 1379403690, 0),
(4, 1, 7, 'moodle/site:sendmessage', 1, 1379403690, 0),
(5, 1, 1, 'moodle/site:approvecourse', 1, 1379403690, 0),
(6, 1, 3, 'moodle/backup:backupcourse', 1, 1379403690, 0),
(7, 1, 1, 'moodle/backup:backupcourse', 1, 1379403690, 0),
(8, 1, 3, 'moodle/backup:backupsection', 1, 1379403690, 0),
(9, 1, 1, 'moodle/backup:backupsection', 1, 1379403690, 0),
(10, 1, 3, 'moodle/backup:backupactivity', 1, 1379403690, 0),
(11, 1, 1, 'moodle/backup:backupactivity', 1, 1379403690, 0),
(12, 1, 3, 'moodle/backup:backuptargethub', 1, 1379403690, 0),
(13, 1, 1, 'moodle/backup:backuptargethub', 1, 1379403690, 0),
(14, 1, 3, 'moodle/backup:backuptargetimport', 1, 1379403690, 0),
(15, 1, 1, 'moodle/backup:backuptargetimport', 1, 1379403690, 0),
(16, 1, 3, 'moodle/backup:downloadfile', 1, 1379403690, 0),
(17, 1, 1, 'moodle/backup:downloadfile', 1, 1379403690, 0),
(18, 1, 3, 'moodle/backup:configure', 1, 1379403690, 0),
(19, 1, 1, 'moodle/backup:configure', 1, 1379403690, 0),
(20, 1, 1, 'moodle/backup:userinfo', 1, 1379403690, 0),
(21, 1, 1, 'moodle/backup:anonymise', 1, 1379403690, 0),
(22, 1, 3, 'moodle/restore:restorecourse', 1, 1379403690, 0),
(23, 1, 1, 'moodle/restore:restorecourse', 1, 1379403690, 0),
(24, 1, 3, 'moodle/restore:restoresection', 1, 1379403690, 0),
(25, 1, 1, 'moodle/restore:restoresection', 1, 1379403690, 0),
(26, 1, 3, 'moodle/restore:restoreactivity', 1, 1379403690, 0),
(27, 1, 1, 'moodle/restore:restoreactivity', 1, 1379403690, 0),
(28, 1, 3, 'moodle/restore:restoretargethub', 1, 1379403690, 0),
(29, 1, 1, 'moodle/restore:restoretargethub', 1, 1379403690, 0),
(30, 1, 3, 'moodle/restore:restoretargetimport', 1, 1379403690, 0),
(31, 1, 1, 'moodle/restore:restoretargetimport', 1, 1379403690, 0),
(32, 1, 3, 'moodle/restore:uploadfile', 1, 1379403690, 0),
(33, 1, 1, 'moodle/restore:uploadfile', 1, 1379403690, 0),
(34, 1, 3, 'moodle/restore:configure', 1, 1379403690, 0),
(35, 1, 1, 'moodle/restore:configure', 1, 1379403690, 0),
(36, 1, 2, 'moodle/restore:rolldates', 1, 1379403690, 0),
(37, 1, 1, 'moodle/restore:rolldates', 1, 1379403690, 0),
(38, 1, 1, 'moodle/restore:userinfo', 1, 1379403690, 0),
(39, 1, 1, 'moodle/restore:createuser', 1, 1379403690, 0),
(40, 1, 3, 'moodle/site:manageblocks', 1, 1379403690, 0),
(41, 1, 1, 'moodle/site:manageblocks', 1, 1379403690, 0),
(42, 1, 4, 'moodle/site:accessallgroups', 1, 1379403690, 0),
(43, 1, 3, 'moodle/site:accessallgroups', 1, 1379403690, 0),
(44, 1, 1, 'moodle/site:accessallgroups', 1, 1379403690, 0),
(45, 1, 4, 'moodle/site:viewfullnames', 1, 1379403690, 0),
(46, 1, 3, 'moodle/site:viewfullnames', 1, 1379403690, 0),
(47, 1, 1, 'moodle/site:viewfullnames', 1, 1379403690, 0),
(48, 1, 4, 'moodle/site:viewuseridentity', 1, 1379403690, 0),
(49, 1, 3, 'moodle/site:viewuseridentity', 1, 1379403690, 0),
(50, 1, 1, 'moodle/site:viewuseridentity', 1, 1379403690, 0),
(51, 1, 4, 'moodle/site:viewreports', 1, 1379403690, 0),
(52, 1, 3, 'moodle/site:viewreports', 1, 1379403690, 0),
(53, 1, 1, 'moodle/site:viewreports', 1, 1379403690, 0),
(54, 1, 3, 'moodle/site:trustcontent', 1, 1379403690, 0),
(55, 1, 1, 'moodle/site:trustcontent', 1, 1379403690, 0),
(56, 1, 1, 'moodle/site:uploadusers', 1, 1379403690, 0),
(57, 1, 3, 'moodle/filter:manage', 1, 1379403690, 0),
(58, 1, 1, 'moodle/filter:manage', 1, 1379403690, 0),
(59, 1, 1, 'moodle/user:create', 1, 1379403690, 0),
(60, 1, 1, 'moodle/user:delete', 1, 1379403690, 0),
(61, 1, 1, 'moodle/user:update', 1, 1379403690, 0),
(62, 1, 6, 'moodle/user:viewdetails', 1, 1379403690, 0),
(63, 1, 5, 'moodle/user:viewdetails', 1, 1379403690, 0),
(64, 1, 4, 'moodle/user:viewdetails', 1, 1379403690, 0),
(65, 1, 3, 'moodle/user:viewdetails', 1, 1379403690, 0),
(66, 1, 1, 'moodle/user:viewdetails', 1, 1379403691, 0),
(67, 1, 1, 'moodle/user:viewalldetails', 1, 1379403691, 0),
(68, 1, 4, 'moodle/user:viewhiddendetails', 1, 1379403691, 0),
(69, 1, 3, 'moodle/user:viewhiddendetails', 1, 1379403691, 0),
(70, 1, 1, 'moodle/user:viewhiddendetails', 1, 1379403691, 0),
(71, 1, 1, 'moodle/user:loginas', 1, 1379403691, 0),
(72, 1, 1, 'moodle/user:managesyspages', 1, 1379403691, 0),
(73, 1, 7, 'moodle/user:manageownblocks', 1, 1379403691, 0),
(74, 1, 7, 'moodle/user:manageownfiles', 1, 1379403691, 0),
(75, 1, 1, 'moodle/my:configsyspages', 1, 1379403691, 0),
(76, 1, 3, 'moodle/role:assign', 1, 1379403691, 0),
(77, 1, 1, 'moodle/role:assign', 1, 1379403691, 0),
(78, 1, 4, 'moodle/role:review', 1, 1379403691, 0),
(79, 1, 3, 'moodle/role:review', 1, 1379403691, 0),
(80, 1, 1, 'moodle/role:review', 1, 1379403691, 0),
(81, 1, 1, 'moodle/role:override', 1, 1379403691, 0),
(82, 1, 3, 'moodle/role:safeoverride', 1, 1379403691, 0),
(83, 1, 1, 'moodle/role:manage', 1, 1379403691, 0),
(84, 1, 3, 'moodle/role:switchroles', 1, 1379403691, 0),
(85, 1, 1, 'moodle/role:switchroles', 1, 1379403691, 0),
(86, 1, 1, 'moodle/category:manage', 1, 1379403691, 0),
(87, 1, 2, 'moodle/category:viewhiddencategories', 1, 1379403691, 0),
(88, 1, 1, 'moodle/category:viewhiddencategories', 1, 1379403691, 0),
(89, 1, 1, 'moodle/cohort:manage', 1, 1379403691, 0),
(90, 1, 1, 'moodle/cohort:assign', 1, 1379403691, 0),
(91, 1, 3, 'moodle/cohort:view', 1, 1379403691, 0),
(92, 1, 1, 'moodle/cohort:view', 1, 1379403691, 0),
(93, 1, 2, 'moodle/course:create', 1, 1379403691, 0),
(94, 1, 1, 'moodle/course:create', 1, 1379403691, 0),
(95, 1, 7, 'moodle/course:request', 1, 1379403691, 0),
(96, 1, 1, 'moodle/course:delete', 1, 1379403691, 0),
(97, 1, 3, 'moodle/course:update', 1, 1379403691, 0),
(98, 1, 1, 'moodle/course:update', 1, 1379403691, 0),
(99, 1, 1, 'moodle/course:view', 1, 1379403691, 0),
(100, 1, 3, 'moodle/course:enrolreview', 1, 1379403691, 0),
(101, 1, 1, 'moodle/course:enrolreview', 1, 1379403691, 0),
(102, 1, 3, 'moodle/course:enrolconfig', 1, 1379403691, 0),
(103, 1, 1, 'moodle/course:enrolconfig', 1, 1379403691, 0),
(104, 1, 4, 'moodle/course:bulkmessaging', 1, 1379403691, 0),
(105, 1, 3, 'moodle/course:bulkmessaging', 1, 1379403691, 0),
(106, 1, 1, 'moodle/course:bulkmessaging', 1, 1379403691, 0),
(107, 1, 4, 'moodle/course:viewhiddenuserfields', 1, 1379403691, 0),
(108, 1, 3, 'moodle/course:viewhiddenuserfields', 1, 1379403691, 0),
(109, 1, 1, 'moodle/course:viewhiddenuserfields', 1, 1379403691, 0),
(110, 1, 2, 'moodle/course:viewhiddencourses', 1, 1379403691, 0),
(111, 1, 4, 'moodle/course:viewhiddencourses', 1, 1379403691, 0),
(112, 1, 3, 'moodle/course:viewhiddencourses', 1, 1379403691, 0),
(113, 1, 1, 'moodle/course:viewhiddencourses', 1, 1379403691, 0),
(114, 1, 3, 'moodle/course:visibility', 1, 1379403691, 0),
(115, 1, 1, 'moodle/course:visibility', 1, 1379403691, 0),
(116, 1, 3, 'moodle/course:managefiles', 1, 1379403691, 0),
(117, 1, 1, 'moodle/course:managefiles', 1, 1379403691, 0),
(118, 1, 3, 'moodle/course:manageactivities', 1, 1379403691, 0),
(119, 1, 1, 'moodle/course:manageactivities', 1, 1379403691, 0),
(120, 1, 3, 'moodle/course:activityvisibility', 1, 1379403691, 0),
(121, 1, 1, 'moodle/course:activityvisibility', 1, 1379403691, 0),
(122, 1, 4, 'moodle/course:viewhiddenactivities', 1, 1379403691, 0),
(123, 1, 3, 'moodle/course:viewhiddenactivities', 1, 1379403691, 0),
(124, 1, 1, 'moodle/course:viewhiddenactivities', 1, 1379403691, 0),
(125, 1, 5, 'moodle/course:viewparticipants', 1, 1379403691, 0),
(126, 1, 4, 'moodle/course:viewparticipants', 1, 1379403691, 0),
(127, 1, 3, 'moodle/course:viewparticipants', 1, 1379403691, 0),
(128, 1, 1, 'moodle/course:viewparticipants', 1, 1379403691, 0),
(129, 1, 3, 'moodle/course:changefullname', 1, 1379403691, 0),
(130, 1, 1, 'moodle/course:changefullname', 1, 1379403691, 0),
(131, 1, 3, 'moodle/course:changeshortname', 1, 1379403691, 0),
(132, 1, 1, 'moodle/course:changeshortname', 1, 1379403692, 0),
(133, 1, 3, 'moodle/course:changeidnumber', 1, 1379403692, 0),
(134, 1, 1, 'moodle/course:changeidnumber', 1, 1379403692, 0),
(135, 1, 3, 'moodle/course:changecategory', 1, 1379403692, 0),
(136, 1, 1, 'moodle/course:changecategory', 1, 1379403692, 0),
(137, 1, 3, 'moodle/course:changesummary', 1, 1379403692, 0),
(138, 1, 1, 'moodle/course:changesummary', 1, 1379403692, 0),
(139, 1, 1, 'moodle/site:viewparticipants', 1, 1379403692, 0),
(140, 1, 5, 'moodle/course:viewscales', 1, 1379403692, 0),
(141, 1, 4, 'moodle/course:viewscales', 1, 1379403692, 0),
(142, 1, 3, 'moodle/course:viewscales', 1, 1379403692, 0),
(143, 1, 1, 'moodle/course:viewscales', 1, 1379403692, 0),
(144, 1, 3, 'moodle/course:managescales', 1, 1379403692, 0),
(145, 1, 1, 'moodle/course:managescales', 1, 1379403692, 0),
(146, 1, 3, 'moodle/course:managegroups', 1, 1379403692, 0),
(147, 1, 1, 'moodle/course:managegroups', 1, 1379403692, 0),
(148, 1, 3, 'moodle/course:reset', 1, 1379403692, 0),
(149, 1, 1, 'moodle/course:reset', 1, 1379403692, 0),
(150, 1, 6, 'moodle/blog:view', 1, 1379403692, 0),
(151, 1, 7, 'moodle/blog:view', 1, 1379403692, 0),
(152, 1, 5, 'moodle/blog:view', 1, 1379403692, 0),
(153, 1, 4, 'moodle/blog:view', 1, 1379403692, 0),
(154, 1, 3, 'moodle/blog:view', 1, 1379403692, 0),
(155, 1, 1, 'moodle/blog:view', 1, 1379403692, 0),
(156, 1, 6, 'moodle/blog:search', 1, 1379403692, 0),
(157, 1, 7, 'moodle/blog:search', 1, 1379403692, 0),
(158, 1, 5, 'moodle/blog:search', 1, 1379403692, 0),
(159, 1, 4, 'moodle/blog:search', 1, 1379403692, 0),
(160, 1, 3, 'moodle/blog:search', 1, 1379403692, 0),
(161, 1, 1, 'moodle/blog:search', 1, 1379403692, 0),
(162, 1, 1, 'moodle/blog:viewdrafts', 1, 1379403692, 0),
(163, 1, 7, 'moodle/blog:create', 1, 1379403692, 0),
(164, 1, 1, 'moodle/blog:create', 1, 1379403692, 0),
(165, 1, 4, 'moodle/blog:manageentries', 1, 1379403692, 0),
(166, 1, 3, 'moodle/blog:manageentries', 1, 1379403692, 0),
(167, 1, 1, 'moodle/blog:manageentries', 1, 1379403692, 0),
(168, 1, 5, 'moodle/blog:manageexternal', 1, 1379403692, 0),
(169, 1, 7, 'moodle/blog:manageexternal', 1, 1379403692, 0),
(170, 1, 4, 'moodle/blog:manageexternal', 1, 1379403692, 0),
(171, 1, 3, 'moodle/blog:manageexternal', 1, 1379403692, 0),
(172, 1, 1, 'moodle/blog:manageexternal', 1, 1379403692, 0),
(173, 1, 5, 'moodle/blog:associatecourse', 1, 1379403692, 0),
(174, 1, 7, 'moodle/blog:associatecourse', 1, 1379403692, 0),
(175, 1, 4, 'moodle/blog:associatecourse', 1, 1379403692, 0),
(176, 1, 3, 'moodle/blog:associatecourse', 1, 1379403692, 0),
(177, 1, 1, 'moodle/blog:associatecourse', 1, 1379403692, 0),
(178, 1, 5, 'moodle/blog:associatemodule', 1, 1379403692, 0),
(179, 1, 7, 'moodle/blog:associatemodule', 1, 1379403692, 0),
(180, 1, 4, 'moodle/blog:associatemodule', 1, 1379403692, 0),
(181, 1, 3, 'moodle/blog:associatemodule', 1, 1379403692, 0),
(182, 1, 1, 'moodle/blog:associatemodule', 1, 1379403692, 0),
(183, 1, 7, 'moodle/calendar:manageownentries', 1, 1379403692, 0),
(184, 1, 1, 'moodle/calendar:manageownentries', 1, 1379403692, 0),
(185, 1, 4, 'moodle/calendar:managegroupentries', 1, 1379403692, 0),
(186, 1, 3, 'moodle/calendar:managegroupentries', 1, 1379403692, 0),
(187, 1, 1, 'moodle/calendar:managegroupentries', 1, 1379403692, 0),
(188, 1, 4, 'moodle/calendar:manageentries', 1, 1379403692, 0),
(189, 1, 3, 'moodle/calendar:manageentries', 1, 1379403692, 0),
(190, 1, 1, 'moodle/calendar:manageentries', 1, 1379403692, 0),
(191, 1, 1, 'moodle/user:editprofile', 1, 1379403692, 0),
(192, 1, 6, 'moodle/user:editownprofile', -1000, 1379403692, 0),
(193, 1, 7, 'moodle/user:editownprofile', 1, 1379403692, 0),
(194, 1, 1, 'moodle/user:editownprofile', 1, 1379403692, 0),
(195, 1, 6, 'moodle/user:changeownpassword', -1000, 1379403692, 0),
(196, 1, 7, 'moodle/user:changeownpassword', 1, 1379403692, 0),
(197, 1, 1, 'moodle/user:changeownpassword', 1, 1379403692, 0),
(198, 1, 5, 'moodle/user:readuserposts', 1, 1379403692, 0),
(199, 1, 4, 'moodle/user:readuserposts', 1, 1379403692, 0),
(200, 1, 3, 'moodle/user:readuserposts', 1, 1379403692, 0),
(201, 1, 1, 'moodle/user:readuserposts', 1, 1379403692, 0),
(202, 1, 5, 'moodle/user:readuserblogs', 1, 1379403692, 0),
(203, 1, 4, 'moodle/user:readuserblogs', 1, 1379403692, 0),
(204, 1, 3, 'moodle/user:readuserblogs', 1, 1379403692, 0),
(205, 1, 1, 'moodle/user:readuserblogs', 1, 1379403692, 0),
(206, 1, 1, 'moodle/user:editmessageprofile', 1, 1379403692, 0),
(207, 1, 6, 'moodle/user:editownmessageprofile', -1000, 1379403692, 0),
(208, 1, 7, 'moodle/user:editownmessageprofile', 1, 1379403692, 0),
(209, 1, 1, 'moodle/user:editownmessageprofile', 1, 1379403692, 0),
(210, 1, 3, 'moodle/question:managecategory', 1, 1379403692, 0),
(211, 1, 1, 'moodle/question:managecategory', 1, 1379403692, 0),
(212, 1, 3, 'moodle/question:add', 1, 1379403692, 0),
(213, 1, 1, 'moodle/question:add', 1, 1379403692, 0),
(214, 1, 3, 'moodle/question:editmine', 1, 1379403692, 0),
(215, 1, 1, 'moodle/question:editmine', 1, 1379403692, 0),
(216, 1, 3, 'moodle/question:editall', 1, 1379403692, 0),
(217, 1, 1, 'moodle/question:editall', 1, 1379403692, 0),
(218, 1, 3, 'moodle/question:viewmine', 1, 1379403692, 0),
(219, 1, 1, 'moodle/question:viewmine', 1, 1379403692, 0),
(220, 1, 3, 'moodle/question:viewall', 1, 1379403692, 0),
(221, 1, 1, 'moodle/question:viewall', 1, 1379403692, 0),
(222, 1, 3, 'moodle/question:usemine', 1, 1379403692, 0),
(223, 1, 1, 'moodle/question:usemine', 1, 1379403692, 0),
(224, 1, 3, 'moodle/question:useall', 1, 1379403692, 0),
(225, 1, 1, 'moodle/question:useall', 1, 1379403692, 0),
(226, 1, 3, 'moodle/question:movemine', 1, 1379403693, 0),
(227, 1, 1, 'moodle/question:movemine', 1, 1379403693, 0),
(228, 1, 3, 'moodle/question:moveall', 1, 1379403693, 0),
(229, 1, 1, 'moodle/question:moveall', 1, 1379403693, 0),
(230, 1, 1, 'moodle/question:config', 1, 1379403693, 0),
(231, 1, 5, 'moodle/question:flag', 1, 1379403693, 0),
(232, 1, 4, 'moodle/question:flag', 1, 1379403693, 0),
(233, 1, 3, 'moodle/question:flag', 1, 1379403693, 0),
(234, 1, 1, 'moodle/question:flag', 1, 1379403693, 0),
(235, 1, 4, 'moodle/site:doclinks', 1, 1379403693, 0),
(236, 1, 3, 'moodle/site:doclinks', 1, 1379403693, 0),
(237, 1, 1, 'moodle/site:doclinks', 1, 1379403693, 0),
(238, 1, 3, 'moodle/course:sectionvisibility', 1, 1379403693, 0),
(239, 1, 1, 'moodle/course:sectionvisibility', 1, 1379403693, 0),
(240, 1, 3, 'moodle/course:useremail', 1, 1379403693, 0),
(241, 1, 1, 'moodle/course:useremail', 1, 1379403693, 0),
(242, 1, 3, 'moodle/course:viewhiddensections', 1, 1379403693, 0),
(243, 1, 1, 'moodle/course:viewhiddensections', 1, 1379403693, 0),
(244, 1, 3, 'moodle/course:setcurrentsection', 1, 1379403693, 0),
(245, 1, 1, 'moodle/course:setcurrentsection', 1, 1379403693, 0),
(246, 1, 4, 'moodle/grade:viewall', 1, 1379403693, 0),
(247, 1, 3, 'moodle/grade:viewall', 1, 1379403693, 0),
(248, 1, 1, 'moodle/grade:viewall', 1, 1379403693, 0),
(249, 1, 5, 'moodle/grade:view', 1, 1379403693, 0),
(250, 1, 4, 'moodle/grade:viewhidden', 1, 1379403693, 0),
(251, 1, 3, 'moodle/grade:viewhidden', 1, 1379403693, 0),
(252, 1, 1, 'moodle/grade:viewhidden', 1, 1379403693, 0),
(253, 1, 3, 'moodle/grade:import', 1, 1379403693, 0),
(254, 1, 1, 'moodle/grade:import', 1, 1379403693, 0),
(255, 1, 4, 'moodle/grade:export', 1, 1379403693, 0),
(256, 1, 3, 'moodle/grade:export', 1, 1379403693, 0),
(257, 1, 1, 'moodle/grade:export', 1, 1379403693, 0),
(258, 1, 3, 'moodle/grade:manage', 1, 1379403693, 0),
(259, 1, 1, 'moodle/grade:manage', 1, 1379403693, 0),
(260, 1, 3, 'moodle/grade:edit', 1, 1379403693, 0),
(261, 1, 1, 'moodle/grade:edit', 1, 1379403693, 0),
(262, 1, 3, 'moodle/grade:managegradingforms', 1, 1379403693, 0),
(263, 1, 1, 'moodle/grade:managegradingforms', 1, 1379403693, 0),
(264, 1, 1, 'moodle/grade:sharegradingforms', 1, 1379403693, 0),
(265, 1, 1, 'moodle/grade:managesharedforms', 1, 1379403693, 0),
(266, 1, 3, 'moodle/grade:manageoutcomes', 1, 1379403693, 0),
(267, 1, 1, 'moodle/grade:manageoutcomes', 1, 1379403693, 0),
(268, 1, 3, 'moodle/grade:manageletters', 1, 1379403693, 0),
(269, 1, 1, 'moodle/grade:manageletters', 1, 1379403693, 0),
(270, 1, 3, 'moodle/grade:hide', 1, 1379403693, 0),
(271, 1, 1, 'moodle/grade:hide', 1, 1379403693, 0),
(272, 1, 3, 'moodle/grade:lock', 1, 1379403693, 0),
(273, 1, 1, 'moodle/grade:lock', 1, 1379403693, 0),
(274, 1, 3, 'moodle/grade:unlock', 1, 1379403693, 0),
(275, 1, 1, 'moodle/grade:unlock', 1, 1379403693, 0),
(276, 1, 7, 'moodle/my:manageblocks', 1, 1379403693, 0),
(277, 1, 4, 'moodle/notes:view', 1, 1379403693, 0),
(278, 1, 3, 'moodle/notes:view', 1, 1379403693, 0),
(279, 1, 1, 'moodle/notes:view', 1, 1379403693, 0),
(280, 1, 4, 'moodle/notes:manage', 1, 1379403693, 0),
(281, 1, 3, 'moodle/notes:manage', 1, 1379403693, 0),
(282, 1, 1, 'moodle/notes:manage', 1, 1379403693, 0),
(283, 1, 4, 'moodle/tag:manage', 1, 1379403693, 0),
(284, 1, 3, 'moodle/tag:manage', 1, 1379403693, 0),
(285, 1, 1, 'moodle/tag:manage', 1, 1379403693, 0),
(286, 1, 1, 'moodle/tag:create', 1, 1379403693, 0),
(287, 1, 7, 'moodle/tag:create', 1, 1379403693, 0),
(288, 1, 1, 'moodle/tag:edit', 1, 1379403693, 0),
(289, 1, 7, 'moodle/tag:edit', 1, 1379403693, 0),
(290, 1, 4, 'moodle/tag:editblocks', 1, 1379403693, 0),
(291, 1, 3, 'moodle/tag:editblocks', 1, 1379403693, 0),
(292, 1, 1, 'moodle/tag:editblocks', 1, 1379403693, 0),
(293, 1, 6, 'moodle/block:view', 1, 1379403693, 0),
(294, 1, 7, 'moodle/block:view', 1, 1379403693, 0),
(295, 1, 5, 'moodle/block:view', 1, 1379403693, 0),
(296, 1, 4, 'moodle/block:view', 1, 1379403693, 0),
(297, 1, 3, 'moodle/block:view', 1, 1379403693, 0),
(298, 1, 3, 'moodle/block:edit', 1, 1379403693, 0),
(299, 1, 1, 'moodle/block:edit', 1, 1379403693, 0),
(300, 1, 7, 'moodle/portfolio:export', 1, 1379403693, 0),
(301, 1, 5, 'moodle/portfolio:export', 1, 1379403693, 0),
(302, 1, 4, 'moodle/portfolio:export', 1, 1379403693, 0),
(303, 1, 3, 'moodle/portfolio:export', 1, 1379403693, 0),
(304, 1, 8, 'moodle/comment:view', 1, 1379403693, 0),
(305, 1, 6, 'moodle/comment:view', 1, 1379403693, 0),
(306, 1, 7, 'moodle/comment:view', 1, 1379403693, 0),
(307, 1, 5, 'moodle/comment:view', 1, 1379403693, 0),
(308, 1, 4, 'moodle/comment:view', 1, 1379403693, 0),
(309, 1, 3, 'moodle/comment:view', 1, 1379403693, 0),
(310, 1, 1, 'moodle/comment:view', 1, 1379403693, 0),
(311, 1, 7, 'moodle/comment:post', 1, 1379403693, 0),
(312, 1, 5, 'moodle/comment:post', 1, 1379403693, 0),
(313, 1, 4, 'moodle/comment:post', 1, 1379403693, 0),
(314, 1, 3, 'moodle/comment:post', 1, 1379403693, 0),
(315, 1, 1, 'moodle/comment:post', 1, 1379403693, 0),
(316, 1, 3, 'moodle/comment:delete', 1, 1379403694, 0),
(317, 1, 1, 'moodle/comment:delete', 1, 1379403694, 0),
(318, 1, 1, 'moodle/webservice:createtoken', 1, 1379403694, 0),
(319, 1, 7, 'moodle/webservice:createmobiletoken', 1, 1379403694, 0),
(320, 1, 7, 'moodle/rating:view', 1, 1379403694, 0),
(321, 1, 5, 'moodle/rating:view', 1, 1379403694, 0),
(322, 1, 4, 'moodle/rating:view', 1, 1379403694, 0),
(323, 1, 3, 'moodle/rating:view', 1, 1379403694, 0),
(324, 1, 1, 'moodle/rating:view', 1, 1379403694, 0),
(325, 1, 7, 'moodle/rating:viewany', 1, 1379403694, 0),
(326, 1, 5, 'moodle/rating:viewany', 1, 1379403694, 0),
(327, 1, 4, 'moodle/rating:viewany', 1, 1379403694, 0),
(328, 1, 3, 'moodle/rating:viewany', 1, 1379403694, 0),
(329, 1, 1, 'moodle/rating:viewany', 1, 1379403694, 0),
(330, 1, 7, 'moodle/rating:viewall', 1, 1379403694, 0),
(331, 1, 5, 'moodle/rating:viewall', 1, 1379403694, 0),
(332, 1, 4, 'moodle/rating:viewall', 1, 1379403694, 0),
(333, 1, 3, 'moodle/rating:viewall', 1, 1379403694, 0),
(334, 1, 1, 'moodle/rating:viewall', 1, 1379403694, 0),
(335, 1, 7, 'moodle/rating:rate', 1, 1379403694, 0),
(336, 1, 5, 'moodle/rating:rate', 1, 1379403694, 0),
(337, 1, 4, 'moodle/rating:rate', 1, 1379403694, 0),
(338, 1, 3, 'moodle/rating:rate', 1, 1379403694, 0),
(339, 1, 1, 'moodle/rating:rate', 1, 1379403694, 0),
(340, 1, 1, 'moodle/course:publish', 1, 1379403694, 0),
(341, 1, 4, 'moodle/course:markcomplete', 1, 1379403694, 0),
(342, 1, 3, 'moodle/course:markcomplete', 1, 1379403694, 0),
(343, 1, 1, 'moodle/course:markcomplete', 1, 1379403694, 0),
(344, 1, 1, 'moodle/community:add', 1, 1379403694, 0),
(345, 1, 4, 'moodle/community:add', 1, 1379403694, 0),
(346, 1, 3, 'moodle/community:add', 1, 1379403694, 0),
(347, 1, 1, 'moodle/community:download', 1, 1379403694, 0),
(348, 1, 3, 'moodle/community:download', 1, 1379403694, 0),
(349, 1, 6, 'mod/assignment:view', 1, 1379403708, 0),
(350, 1, 5, 'mod/assignment:view', 1, 1379403708, 0),
(351, 1, 4, 'mod/assignment:view', 1, 1379403708, 0),
(352, 1, 3, 'mod/assignment:view', 1, 1379403708, 0),
(353, 1, 1, 'mod/assignment:view', 1, 1379403708, 0),
(354, 1, 5, 'mod/assignment:submit', 1, 1379403708, 0),
(355, 1, 4, 'mod/assignment:grade', 1, 1379403708, 0),
(356, 1, 3, 'mod/assignment:grade', 1, 1379403708, 0),
(357, 1, 1, 'mod/assignment:grade', 1, 1379403708, 0),
(358, 1, 4, 'mod/assignment:exportownsubmission', 1, 1379403708, 0),
(359, 1, 3, 'mod/assignment:exportownsubmission', 1, 1379403708, 0),
(360, 1, 1, 'mod/assignment:exportownsubmission', 1, 1379403708, 0),
(361, 1, 5, 'mod/assignment:exportownsubmission', 1, 1379403708, 0),
(362, 1, 5, 'mod/chat:chat', 1, 1379403710, 0),
(363, 1, 4, 'mod/chat:chat', 1, 1379403710, 0),
(364, 1, 3, 'mod/chat:chat', 1, 1379403710, 0),
(365, 1, 1, 'mod/chat:chat', 1, 1379403710, 0),
(366, 1, 5, 'mod/chat:readlog', 1, 1379403710, 0),
(367, 1, 4, 'mod/chat:readlog', 1, 1379403710, 0),
(368, 1, 3, 'mod/chat:readlog', 1, 1379403710, 0),
(369, 1, 1, 'mod/chat:readlog', 1, 1379403710, 0),
(370, 1, 4, 'mod/chat:deletelog', 1, 1379403710, 0),
(371, 1, 3, 'mod/chat:deletelog', 1, 1379403710, 0),
(372, 1, 1, 'mod/chat:deletelog', 1, 1379403710, 0),
(373, 1, 4, 'mod/chat:exportparticipatedsession', 1, 1379403710, 0),
(374, 1, 3, 'mod/chat:exportparticipatedsession', 1, 1379403710, 0),
(375, 1, 1, 'mod/chat:exportparticipatedsession', 1, 1379403710, 0),
(376, 1, 4, 'mod/chat:exportsession', 1, 1379403710, 0),
(377, 1, 3, 'mod/chat:exportsession', 1, 1379403710, 0),
(378, 1, 1, 'mod/chat:exportsession', 1, 1379403710, 0),
(379, 1, 5, 'mod/choice:choose', 1, 1379403710, 0),
(380, 1, 4, 'mod/choice:choose', 1, 1379403710, 0),
(381, 1, 3, 'mod/choice:choose', 1, 1379403710, 0),
(382, 1, 4, 'mod/choice:readresponses', 1, 1379403710, 0),
(383, 1, 3, 'mod/choice:readresponses', 1, 1379403710, 0),
(384, 1, 1, 'mod/choice:readresponses', 1, 1379403710, 0),
(385, 1, 4, 'mod/choice:deleteresponses', 1, 1379403710, 0),
(386, 1, 3, 'mod/choice:deleteresponses', 1, 1379403710, 0),
(387, 1, 1, 'mod/choice:deleteresponses', 1, 1379403710, 0),
(388, 1, 4, 'mod/choice:downloadresponses', 1, 1379403710, 0),
(389, 1, 3, 'mod/choice:downloadresponses', 1, 1379403710, 0),
(390, 1, 1, 'mod/choice:downloadresponses', 1, 1379403710, 0),
(391, 1, 8, 'mod/data:viewentry', 1, 1379403711, 0),
(392, 1, 6, 'mod/data:viewentry', 1, 1379403711, 0),
(393, 1, 5, 'mod/data:viewentry', 1, 1379403711, 0),
(394, 1, 4, 'mod/data:viewentry', 1, 1379403711, 0),
(395, 1, 3, 'mod/data:viewentry', 1, 1379403711, 0),
(396, 1, 1, 'mod/data:viewentry', 1, 1379403711, 0),
(397, 1, 5, 'mod/data:writeentry', 1, 1379403711, 0),
(398, 1, 4, 'mod/data:writeentry', 1, 1379403711, 0),
(399, 1, 3, 'mod/data:writeentry', 1, 1379403712, 0),
(400, 1, 1, 'mod/data:writeentry', 1, 1379403712, 0),
(401, 1, 5, 'mod/data:comment', 1, 1379403712, 0),
(402, 1, 4, 'mod/data:comment', 1, 1379403712, 0),
(403, 1, 3, 'mod/data:comment', 1, 1379403712, 0),
(404, 1, 1, 'mod/data:comment', 1, 1379403712, 0),
(405, 1, 4, 'mod/data:rate', 1, 1379403712, 0),
(406, 1, 3, 'mod/data:rate', 1, 1379403712, 0),
(407, 1, 1, 'mod/data:rate', 1, 1379403712, 0),
(408, 1, 4, 'mod/data:viewrating', 1, 1379403712, 0),
(409, 1, 3, 'mod/data:viewrating', 1, 1379403712, 0),
(410, 1, 1, 'mod/data:viewrating', 1, 1379403712, 0),
(411, 1, 4, 'mod/data:viewanyrating', 1, 1379403712, 0),
(412, 1, 3, 'mod/data:viewanyrating', 1, 1379403712, 0),
(413, 1, 1, 'mod/data:viewanyrating', 1, 1379403712, 0),
(414, 1, 4, 'mod/data:viewallratings', 1, 1379403712, 0),
(415, 1, 3, 'mod/data:viewallratings', 1, 1379403712, 0),
(416, 1, 1, 'mod/data:viewallratings', 1, 1379403712, 0),
(417, 1, 4, 'mod/data:approve', 1, 1379403712, 0),
(418, 1, 3, 'mod/data:approve', 1, 1379403712, 0),
(419, 1, 1, 'mod/data:approve', 1, 1379403712, 0),
(420, 1, 4, 'mod/data:manageentries', 1, 1379403712, 0),
(421, 1, 3, 'mod/data:manageentries', 1, 1379403712, 0),
(422, 1, 1, 'mod/data:manageentries', 1, 1379403712, 0),
(423, 1, 4, 'mod/data:managecomments', 1, 1379403712, 0),
(424, 1, 3, 'mod/data:managecomments', 1, 1379403712, 0),
(425, 1, 1, 'mod/data:managecomments', 1, 1379403712, 0),
(426, 1, 3, 'mod/data:managetemplates', 1, 1379403712, 0),
(427, 1, 1, 'mod/data:managetemplates', 1, 1379403712, 0),
(428, 1, 4, 'mod/data:viewalluserpresets', 1, 1379403712, 0),
(429, 1, 3, 'mod/data:viewalluserpresets', 1, 1379403712, 0),
(430, 1, 1, 'mod/data:viewalluserpresets', 1, 1379403712, 0),
(431, 1, 1, 'mod/data:manageuserpresets', 1, 1379403712, 0),
(432, 1, 1, 'mod/data:exportentry', 1, 1379403712, 0),
(433, 1, 4, 'mod/data:exportentry', 1, 1379403712, 0),
(434, 1, 3, 'mod/data:exportentry', 1, 1379403712, 0),
(435, 1, 1, 'mod/data:exportownentry', 1, 1379403712, 0),
(436, 1, 4, 'mod/data:exportownentry', 1, 1379403712, 0),
(437, 1, 3, 'mod/data:exportownentry', 1, 1379403712, 0),
(438, 1, 5, 'mod/data:exportownentry', 1, 1379403712, 0),
(439, 1, 1, 'mod/data:exportallentries', 1, 1379403712, 0),
(440, 1, 4, 'mod/data:exportallentries', 1, 1379403712, 0),
(441, 1, 3, 'mod/data:exportallentries', 1, 1379403712, 0),
(442, 1, 6, 'mod/feedback:view', 1, 1379403714, 0),
(443, 1, 5, 'mod/feedback:view', 1, 1379403714, 0),
(444, 1, 4, 'mod/feedback:view', 1, 1379403714, 0),
(445, 1, 3, 'mod/feedback:view', 1, 1379403714, 0),
(446, 1, 1, 'mod/feedback:view', 1, 1379403714, 0),
(447, 1, 5, 'mod/feedback:complete', 1, 1379403714, 0),
(448, 1, 5, 'mod/feedback:viewanalysepage', 1, 1379403714, 0),
(449, 1, 3, 'mod/feedback:viewanalysepage', 1, 1379403714, 0),
(450, 1, 1, 'mod/feedback:viewanalysepage', 1, 1379403714, 0),
(451, 1, 3, 'mod/feedback:deletesubmissions', 1, 1379403714, 0),
(452, 1, 1, 'mod/feedback:deletesubmissions', 1, 1379403714, 0),
(453, 1, 1, 'mod/feedback:mapcourse', 1, 1379403714, 0),
(454, 1, 3, 'mod/feedback:edititems', 1, 1379403714, 0),
(455, 1, 1, 'mod/feedback:edititems', 1, 1379403714, 0),
(456, 1, 3, 'mod/feedback:createprivatetemplate', 1, 1379403714, 0),
(457, 1, 1, 'mod/feedback:createprivatetemplate', 1, 1379403714, 0),
(458, 1, 3, 'mod/feedback:createpublictemplate', 1, 1379403714, 0),
(459, 1, 1, 'mod/feedback:createpublictemplate', 1, 1379403714, 0),
(460, 1, 3, 'mod/feedback:deletetemplate', 1, 1379403714, 0),
(461, 1, 1, 'mod/feedback:deletetemplate', 1, 1379403714, 0),
(462, 1, 4, 'mod/feedback:viewreports', 1, 1379403714, 0),
(463, 1, 3, 'mod/feedback:viewreports', 1, 1379403714, 0),
(464, 1, 1, 'mod/feedback:viewreports', 1, 1379403714, 0),
(465, 1, 4, 'mod/feedback:receivemail', 1, 1379403714, 0),
(466, 1, 3, 'mod/feedback:receivemail', 1, 1379403714, 0),
(467, 1, 6, 'mod/folder:view', 1, 1379403715, 0),
(468, 1, 7, 'mod/folder:view', 1, 1379403715, 0),
(469, 1, 3, 'mod/folder:managefiles', 1, 1379403715, 0),
(470, 1, 8, 'mod/forum:viewdiscussion', 1, 1379403716, 0),
(471, 1, 6, 'mod/forum:viewdiscussion', 1, 1379403716, 0),
(472, 1, 5, 'mod/forum:viewdiscussion', 1, 1379403716, 0),
(473, 1, 4, 'mod/forum:viewdiscussion', 1, 1379403716, 0),
(474, 1, 3, 'mod/forum:viewdiscussion', 1, 1379403716, 0),
(475, 1, 1, 'mod/forum:viewdiscussion', 1, 1379403716, 0),
(476, 1, 4, 'mod/forum:viewhiddentimedposts', 1, 1379403716, 0),
(477, 1, 3, 'mod/forum:viewhiddentimedposts', 1, 1379403716, 0),
(478, 1, 1, 'mod/forum:viewhiddentimedposts', 1, 1379403716, 0),
(479, 1, 5, 'mod/forum:startdiscussion', 1, 1379403716, 0),
(480, 1, 4, 'mod/forum:startdiscussion', 1, 1379403716, 0),
(481, 1, 3, 'mod/forum:startdiscussion', 1, 1379403716, 0),
(482, 1, 1, 'mod/forum:startdiscussion', 1, 1379403716, 0),
(483, 1, 5, 'mod/forum:replypost', 1, 1379403716, 0),
(484, 1, 4, 'mod/forum:replypost', 1, 1379403716, 0),
(485, 1, 3, 'mod/forum:replypost', 1, 1379403716, 0),
(486, 1, 1, 'mod/forum:replypost', 1, 1379403716, 0),
(487, 1, 4, 'mod/forum:addnews', 1, 1379403716, 0),
(488, 1, 3, 'mod/forum:addnews', 1, 1379403716, 0),
(489, 1, 1, 'mod/forum:addnews', 1, 1379403717, 0),
(490, 1, 4, 'mod/forum:replynews', 1, 1379403717, 0),
(491, 1, 3, 'mod/forum:replynews', 1, 1379403717, 0),
(492, 1, 1, 'mod/forum:replynews', 1, 1379403717, 0),
(493, 1, 5, 'mod/forum:viewrating', 1, 1379403717, 0),
(494, 1, 4, 'mod/forum:viewrating', 1, 1379403717, 0),
(495, 1, 3, 'mod/forum:viewrating', 1, 1379403717, 0),
(496, 1, 1, 'mod/forum:viewrating', 1, 1379403717, 0),
(497, 1, 4, 'mod/forum:viewanyrating', 1, 1379403717, 0),
(498, 1, 3, 'mod/forum:viewanyrating', 1, 1379403717, 0),
(499, 1, 1, 'mod/forum:viewanyrating', 1, 1379403717, 0),
(500, 1, 4, 'mod/forum:viewallratings', 1, 1379403717, 0),
(501, 1, 3, 'mod/forum:viewallratings', 1, 1379403717, 0),
(502, 1, 1, 'mod/forum:viewallratings', 1, 1379403717, 0),
(503, 1, 4, 'mod/forum:rate', 1, 1379403717, 0),
(504, 1, 3, 'mod/forum:rate', 1, 1379403717, 0),
(505, 1, 1, 'mod/forum:rate', 1, 1379403717, 0),
(506, 1, 5, 'mod/forum:createattachment', 1, 1379403717, 0),
(507, 1, 4, 'mod/forum:createattachment', 1, 1379403717, 0),
(508, 1, 3, 'mod/forum:createattachment', 1, 1379403717, 0),
(509, 1, 1, 'mod/forum:createattachment', 1, 1379403717, 0),
(510, 1, 5, 'mod/forum:deleteownpost', 1, 1379403717, 0),
(511, 1, 4, 'mod/forum:deleteownpost', 1, 1379403717, 0),
(512, 1, 3, 'mod/forum:deleteownpost', 1, 1379403717, 0),
(513, 1, 1, 'mod/forum:deleteownpost', 1, 1379403717, 0),
(514, 1, 4, 'mod/forum:deleteanypost', 1, 1379403717, 0),
(515, 1, 3, 'mod/forum:deleteanypost', 1, 1379403717, 0),
(516, 1, 1, 'mod/forum:deleteanypost', 1, 1379403717, 0),
(517, 1, 4, 'mod/forum:splitdiscussions', 1, 1379403717, 0),
(518, 1, 3, 'mod/forum:splitdiscussions', 1, 1379403717, 0),
(519, 1, 1, 'mod/forum:splitdiscussions', 1, 1379403717, 0),
(520, 1, 4, 'mod/forum:movediscussions', 1, 1379403717, 0),
(521, 1, 3, 'mod/forum:movediscussions', 1, 1379403717, 0),
(522, 1, 1, 'mod/forum:movediscussions', 1, 1379403717, 0),
(523, 1, 4, 'mod/forum:editanypost', 1, 1379403717, 0),
(524, 1, 3, 'mod/forum:editanypost', 1, 1379403717, 0),
(525, 1, 1, 'mod/forum:editanypost', 1, 1379403717, 0),
(526, 1, 4, 'mod/forum:viewqandawithoutposting', 1, 1379403717, 0),
(527, 1, 3, 'mod/forum:viewqandawithoutposting', 1, 1379403717, 0),
(528, 1, 1, 'mod/forum:viewqandawithoutposting', 1, 1379403717, 0),
(529, 1, 4, 'mod/forum:viewsubscribers', 1, 1379403717, 0),
(530, 1, 3, 'mod/forum:viewsubscribers', 1, 1379403717, 0),
(531, 1, 1, 'mod/forum:viewsubscribers', 1, 1379403717, 0),
(532, 1, 4, 'mod/forum:managesubscriptions', 1, 1379403717, 0),
(533, 1, 3, 'mod/forum:managesubscriptions', 1, 1379403717, 0),
(534, 1, 1, 'mod/forum:managesubscriptions', 1, 1379403717, 0),
(535, 1, 4, 'mod/forum:postwithoutthrottling', 1, 1379403717, 0),
(536, 1, 3, 'mod/forum:postwithoutthrottling', 1, 1379403717, 0),
(537, 1, 1, 'mod/forum:postwithoutthrottling', 1, 1379403717, 0),
(538, 1, 4, 'mod/forum:exportdiscussion', 1, 1379403717, 0),
(539, 1, 3, 'mod/forum:exportdiscussion', 1, 1379403717, 0),
(540, 1, 1, 'mod/forum:exportdiscussion', 1, 1379403717, 0),
(541, 1, 4, 'mod/forum:exportpost', 1, 1379403717, 0),
(542, 1, 3, 'mod/forum:exportpost', 1, 1379403717, 0),
(543, 1, 1, 'mod/forum:exportpost', 1, 1379403717, 0),
(544, 1, 4, 'mod/forum:exportownpost', 1, 1379403717, 0),
(545, 1, 3, 'mod/forum:exportownpost', 1, 1379403717, 0),
(546, 1, 1, 'mod/forum:exportownpost', 1, 1379403717, 0),
(547, 1, 5, 'mod/forum:exportownpost', 1, 1379403717, 0),
(548, 1, 4, 'mod/forum:addquestion', 1, 1379403717, 0),
(549, 1, 3, 'mod/forum:addquestion', 1, 1379403717, 0),
(550, 1, 1, 'mod/forum:addquestion', 1, 1379403717, 0),
(551, 1, 5, 'mod/forum:allowforcesubscribe', 1, 1379403717, 0),
(552, 1, 4, 'mod/forum:allowforcesubscribe', 1, 1379403717, 0),
(553, 1, 3, 'mod/forum:allowforcesubscribe', 1, 1379403717, 0),
(554, 1, 5, 'mod/glossary:write', 1, 1379403719, 0),
(555, 1, 4, 'mod/glossary:write', 1, 1379403719, 0),
(556, 1, 3, 'mod/glossary:write', 1, 1379403719, 0),
(557, 1, 1, 'mod/glossary:write', 1, 1379403719, 0),
(558, 1, 4, 'mod/glossary:manageentries', 1, 1379403719, 0),
(559, 1, 3, 'mod/glossary:manageentries', 1, 1379403719, 0),
(560, 1, 1, 'mod/glossary:manageentries', 1, 1379403719, 0),
(561, 1, 4, 'mod/glossary:managecategories', 1, 1379403719, 0),
(562, 1, 3, 'mod/glossary:managecategories', 1, 1379403719, 0),
(563, 1, 1, 'mod/glossary:managecategories', 1, 1379403719, 0),
(564, 1, 5, 'mod/glossary:comment', 1, 1379403719, 0),
(565, 1, 4, 'mod/glossary:comment', 1, 1379403719, 0),
(566, 1, 3, 'mod/glossary:comment', 1, 1379403719, 0),
(567, 1, 1, 'mod/glossary:comment', 1, 1379403719, 0),
(568, 1, 4, 'mod/glossary:managecomments', 1, 1379403719, 0),
(569, 1, 3, 'mod/glossary:managecomments', 1, 1379403719, 0),
(570, 1, 1, 'mod/glossary:managecomments', 1, 1379403719, 0),
(571, 1, 4, 'mod/glossary:import', 1, 1379403719, 0),
(572, 1, 3, 'mod/glossary:import', 1, 1379403719, 0),
(573, 1, 1, 'mod/glossary:import', 1, 1379403719, 0),
(574, 1, 4, 'mod/glossary:export', 1, 1379403719, 0),
(575, 1, 3, 'mod/glossary:export', 1, 1379403719, 0),
(576, 1, 1, 'mod/glossary:export', 1, 1379403719, 0),
(577, 1, 4, 'mod/glossary:approve', 1, 1379403719, 0),
(578, 1, 3, 'mod/glossary:approve', 1, 1379403719, 0),
(579, 1, 1, 'mod/glossary:approve', 1, 1379403719, 0),
(580, 1, 4, 'mod/glossary:rate', 1, 1379403719, 0),
(581, 1, 3, 'mod/glossary:rate', 1, 1379403719, 0),
(582, 1, 1, 'mod/glossary:rate', 1, 1379403719, 0),
(583, 1, 4, 'mod/glossary:viewrating', 1, 1379403719, 0),
(584, 1, 3, 'mod/glossary:viewrating', 1, 1379403719, 0),
(585, 1, 1, 'mod/glossary:viewrating', 1, 1379403719, 0),
(586, 1, 4, 'mod/glossary:viewanyrating', 1, 1379403719, 0),
(587, 1, 3, 'mod/glossary:viewanyrating', 1, 1379403719, 0),
(588, 1, 1, 'mod/glossary:viewanyrating', 1, 1379403719, 0),
(589, 1, 4, 'mod/glossary:viewallratings', 1, 1379403719, 0),
(590, 1, 3, 'mod/glossary:viewallratings', 1, 1379403719, 0),
(591, 1, 1, 'mod/glossary:viewallratings', 1, 1379403719, 0),
(592, 1, 4, 'mod/glossary:exportentry', 1, 1379403719, 0),
(593, 1, 3, 'mod/glossary:exportentry', 1, 1379403719, 0),
(594, 1, 1, 'mod/glossary:exportentry', 1, 1379403719, 0),
(595, 1, 4, 'mod/glossary:exportownentry', 1, 1379403719, 0),
(596, 1, 3, 'mod/glossary:exportownentry', 1, 1379403719, 0),
(597, 1, 1, 'mod/glossary:exportownentry', 1, 1379403719, 0),
(598, 1, 5, 'mod/glossary:exportownentry', 1, 1379403719, 0),
(599, 1, 6, 'mod/imscp:view', 1, 1379403720, 0),
(600, 1, 7, 'mod/imscp:view', 1, 1379403720, 0),
(601, 1, 3, 'mod/lesson:edit', 1, 1379403722, 0),
(602, 1, 1, 'mod/lesson:edit', 1, 1379403722, 0),
(603, 1, 4, 'mod/lesson:manage', 1, 1379403722, 0),
(604, 1, 3, 'mod/lesson:manage', 1, 1379403722, 0),
(605, 1, 1, 'mod/lesson:manage', 1, 1379403722, 0),
(606, 1, 6, 'mod/lti:view', 1, 1379403723, 0),
(607, 1, 5, 'mod/lti:view', 1, 1379403723, 0),
(608, 1, 4, 'mod/lti:view', 1, 1379403723, 0),
(609, 1, 3, 'mod/lti:view', 1, 1379403723, 0),
(610, 1, 1, 'mod/lti:view', 1, 1379403723, 0),
(611, 1, 4, 'mod/lti:grade', 1, 1379403723, 0),
(612, 1, 3, 'mod/lti:grade', 1, 1379403723, 0),
(613, 1, 1, 'mod/lti:grade', 1, 1379403723, 0),
(614, 1, 4, 'mod/lti:manage', 1, 1379403723, 0),
(615, 1, 3, 'mod/lti:manage', 1, 1379403723, 0),
(616, 1, 1, 'mod/lti:manage', 1, 1379403723, 0),
(617, 1, 4, 'mod/lti:addcoursetool', 1, 1379403723, 0),
(618, 1, 3, 'mod/lti:addcoursetool', 1, 1379403723, 0),
(619, 1, 1, 'mod/lti:addcoursetool', 1, 1379403723, 0),
(620, 1, 4, 'mod/lti:requesttooladd', 1, 1379403723, 0),
(621, 1, 3, 'mod/lti:requesttooladd', 1, 1379403723, 0),
(622, 1, 1, 'mod/lti:requesttooladd', 1, 1379403723, 0),
(623, 1, 6, 'mod/page:view', 1, 1379403723, 0),
(624, 1, 7, 'mod/page:view', 1, 1379403723, 0),
(625, 1, 6, 'mod/quiz:view', 1, 1379403725, 0),
(626, 1, 5, 'mod/quiz:view', 1, 1379403725, 0),
(627, 1, 4, 'mod/quiz:view', 1, 1379403725, 0),
(628, 1, 3, 'mod/quiz:view', 1, 1379403725, 0),
(629, 1, 1, 'mod/quiz:view', 1, 1379403725, 0),
(630, 1, 5, 'mod/quiz:attempt', 1, 1379403725, 0),
(631, 1, 5, 'mod/quiz:reviewmyattempts', 1, 1379403725, 0),
(632, 1, 3, 'mod/quiz:manage', 1, 1379403725, 0),
(633, 1, 1, 'mod/quiz:manage', 1, 1379403725, 0),
(634, 1, 3, 'mod/quiz:manageoverrides', 1, 1379403725, 0),
(635, 1, 1, 'mod/quiz:manageoverrides', 1, 1379403725, 0),
(636, 1, 4, 'mod/quiz:preview', 1, 1379403725, 0),
(637, 1, 3, 'mod/quiz:preview', 1, 1379403725, 0),
(638, 1, 1, 'mod/quiz:preview', 1, 1379403725, 0),
(639, 1, 4, 'mod/quiz:grade', 1, 1379403725, 0),
(640, 1, 3, 'mod/quiz:grade', 1, 1379403725, 0),
(641, 1, 1, 'mod/quiz:grade', 1, 1379403725, 0),
(642, 1, 4, 'mod/quiz:regrade', 1, 1379403725, 0),
(643, 1, 3, 'mod/quiz:regrade', 1, 1379403725, 0),
(644, 1, 1, 'mod/quiz:regrade', 1, 1379403725, 0),
(645, 1, 4, 'mod/quiz:viewreports', 1, 1379403725, 0),
(646, 1, 3, 'mod/quiz:viewreports', 1, 1379403725, 0),
(647, 1, 1, 'mod/quiz:viewreports', 1, 1379403725, 0),
(648, 1, 3, 'mod/quiz:deleteattempts', 1, 1379403725, 0),
(649, 1, 1, 'mod/quiz:deleteattempts', 1, 1379403725, 0),
(650, 1, 6, 'mod/resource:view', 1, 1379403726, 0),
(651, 1, 7, 'mod/resource:view', 1, 1379403726, 0),
(652, 1, 4, 'mod/scorm:viewreport', 1, 1379403729, 0),
(653, 1, 3, 'mod/scorm:viewreport', 1, 1379403729, 0),
(654, 1, 1, 'mod/scorm:viewreport', 1, 1379403729, 0),
(655, 1, 5, 'mod/scorm:skipview', 1, 1379403729, 0),
(656, 1, 5, 'mod/scorm:savetrack', 1, 1379403729, 0),
(657, 1, 4, 'mod/scorm:savetrack', 1, 1379403729, 0),
(658, 1, 3, 'mod/scorm:savetrack', 1, 1379403729, 0),
(659, 1, 1, 'mod/scorm:savetrack', 1, 1379403729, 0),
(660, 1, 5, 'mod/scorm:viewscores', 1, 1379403729, 0),
(661, 1, 4, 'mod/scorm:viewscores', 1, 1379403729, 0),
(662, 1, 3, 'mod/scorm:viewscores', 1, 1379403729, 0),
(663, 1, 1, 'mod/scorm:viewscores', 1, 1379403729, 0),
(664, 1, 4, 'mod/scorm:deleteresponses', 1, 1379403729, 0),
(665, 1, 3, 'mod/scorm:deleteresponses', 1, 1379403729, 0),
(666, 1, 1, 'mod/scorm:deleteresponses', 1, 1379403729, 0),
(667, 1, 5, 'mod/survey:participate', 1, 1379403731, 0),
(668, 1, 4, 'mod/survey:participate', 1, 1379403731, 0),
(669, 1, 3, 'mod/survey:participate', 1, 1379403731, 0),
(670, 1, 1, 'mod/survey:participate', 1, 1379403731, 0),
(671, 1, 4, 'mod/survey:readresponses', 1, 1379403731, 0),
(672, 1, 3, 'mod/survey:readresponses', 1, 1379403731, 0),
(673, 1, 1, 'mod/survey:readresponses', 1, 1379403731, 0),
(674, 1, 4, 'mod/survey:download', 1, 1379403731, 0),
(675, 1, 3, 'mod/survey:download', 1, 1379403731, 0),
(676, 1, 1, 'mod/survey:download', 1, 1379403731, 0),
(677, 1, 6, 'mod/url:view', 1, 1379403731, 0),
(678, 1, 7, 'mod/url:view', 1, 1379403731, 0),
(679, 1, 6, 'mod/wiki:viewpage', 1, 1379403733, 0),
(680, 1, 5, 'mod/wiki:viewpage', 1, 1379403733, 0),
(681, 1, 4, 'mod/wiki:viewpage', 1, 1379403733, 0),
(682, 1, 3, 'mod/wiki:viewpage', 1, 1379403733, 0),
(683, 1, 1, 'mod/wiki:viewpage', 1, 1379403733, 0),
(684, 1, 5, 'mod/wiki:editpage', 1, 1379403733, 0),
(685, 1, 4, 'mod/wiki:editpage', 1, 1379403733, 0),
(686, 1, 3, 'mod/wiki:editpage', 1, 1379403733, 0),
(687, 1, 1, 'mod/wiki:editpage', 1, 1379403733, 0),
(688, 1, 5, 'mod/wiki:createpage', 1, 1379403733, 0),
(689, 1, 4, 'mod/wiki:createpage', 1, 1379403733, 0),
(690, 1, 3, 'mod/wiki:createpage', 1, 1379403733, 0),
(691, 1, 1, 'mod/wiki:createpage', 1, 1379403733, 0),
(692, 1, 5, 'mod/wiki:viewcomment', 1, 1379403733, 0),
(693, 1, 4, 'mod/wiki:viewcomment', 1, 1379403733, 0),
(694, 1, 3, 'mod/wiki:viewcomment', 1, 1379403733, 0),
(695, 1, 1, 'mod/wiki:viewcomment', 1, 1379403733, 0),
(696, 1, 5, 'mod/wiki:editcomment', 1, 1379403733, 0),
(697, 1, 4, 'mod/wiki:editcomment', 1, 1379403733, 0),
(698, 1, 3, 'mod/wiki:editcomment', 1, 1379403733, 0),
(699, 1, 1, 'mod/wiki:editcomment', 1, 1379403733, 0),
(700, 1, 4, 'mod/wiki:managecomment', 1, 1379403733, 0),
(701, 1, 3, 'mod/wiki:managecomment', 1, 1379403733, 0),
(702, 1, 1, 'mod/wiki:managecomment', 1, 1379403733, 0),
(703, 1, 4, 'mod/wiki:managefiles', 1, 1379403733, 0),
(704, 1, 3, 'mod/wiki:managefiles', 1, 1379403733, 0),
(705, 1, 1, 'mod/wiki:managefiles', 1, 1379403733, 0),
(706, 1, 4, 'mod/wiki:overridelock', 1, 1379403733, 0),
(707, 1, 3, 'mod/wiki:overridelock', 1, 1379403733, 0),
(708, 1, 1, 'mod/wiki:overridelock', 1, 1379403733, 0),
(709, 1, 4, 'mod/wiki:managewiki', 1, 1379403733, 0),
(710, 1, 3, 'mod/wiki:managewiki', 1, 1379403733, 0),
(711, 1, 1, 'mod/wiki:managewiki', 1, 1379403733, 0),
(712, 1, 6, 'mod/workshop:view', 1, 1379403737, 0),
(713, 1, 5, 'mod/workshop:view', 1, 1379403737, 0),
(714, 1, 4, 'mod/workshop:view', 1, 1379403737, 0),
(715, 1, 3, 'mod/workshop:view', 1, 1379403737, 0),
(716, 1, 1, 'mod/workshop:view', 1, 1379403737, 0),
(717, 1, 4, 'mod/workshop:switchphase', 1, 1379403737, 0),
(718, 1, 3, 'mod/workshop:switchphase', 1, 1379403737, 0),
(719, 1, 1, 'mod/workshop:switchphase', 1, 1379403737, 0),
(720, 1, 3, 'mod/workshop:editdimensions', 1, 1379403737, 0),
(721, 1, 1, 'mod/workshop:editdimensions', 1, 1379403737, 0),
(722, 1, 5, 'mod/workshop:submit', 1, 1379403737, 0),
(723, 1, 5, 'mod/workshop:peerassess', 1, 1379403737, 0),
(724, 1, 4, 'mod/workshop:manageexamples', 1, 1379403737, 0),
(725, 1, 3, 'mod/workshop:manageexamples', 1, 1379403737, 0),
(726, 1, 1, 'mod/workshop:manageexamples', 1, 1379403737, 0),
(727, 1, 4, 'mod/workshop:allocate', 1, 1379403737, 0),
(728, 1, 3, 'mod/workshop:allocate', 1, 1379403737, 0),
(729, 1, 1, 'mod/workshop:allocate', 1, 1379403737, 0),
(730, 1, 4, 'mod/workshop:publishsubmissions', 1, 1379403737, 0),
(731, 1, 3, 'mod/workshop:publishsubmissions', 1, 1379403737, 0),
(732, 1, 1, 'mod/workshop:publishsubmissions', 1, 1379403737, 0),
(733, 1, 5, 'mod/workshop:viewauthornames', 1, 1379403737, 0),
(734, 1, 4, 'mod/workshop:viewauthornames', 1, 1379403737, 0),
(735, 1, 3, 'mod/workshop:viewauthornames', 1, 1379403737, 0),
(736, 1, 1, 'mod/workshop:viewauthornames', 1, 1379403737, 0),
(737, 1, 4, 'mod/workshop:viewreviewernames', 1, 1379403737, 0),
(738, 1, 3, 'mod/workshop:viewreviewernames', 1, 1379403737, 0),
(739, 1, 1, 'mod/workshop:viewreviewernames', 1, 1379403737, 0),
(740, 1, 4, 'mod/workshop:viewallsubmissions', 1, 1379403737, 0),
(741, 1, 3, 'mod/workshop:viewallsubmissions', 1, 1379403737, 0),
(742, 1, 1, 'mod/workshop:viewallsubmissions', 1, 1379403737, 0),
(743, 1, 5, 'mod/workshop:viewpublishedsubmissions', 1, 1379403737, 0),
(744, 1, 4, 'mod/workshop:viewpublishedsubmissions', 1, 1379403737, 0),
(745, 1, 3, 'mod/workshop:viewpublishedsubmissions', 1, 1379403737, 0),
(746, 1, 1, 'mod/workshop:viewpublishedsubmissions', 1, 1379403737, 0),
(747, 1, 5, 'mod/workshop:viewauthorpublished', 1, 1379403737, 0),
(748, 1, 4, 'mod/workshop:viewauthorpublished', 1, 1379403737, 0),
(749, 1, 3, 'mod/workshop:viewauthorpublished', 1, 1379403737, 0),
(750, 1, 1, 'mod/workshop:viewauthorpublished', 1, 1379403737, 0),
(751, 1, 4, 'mod/workshop:viewallassessments', 1, 1379403737, 0),
(752, 1, 3, 'mod/workshop:viewallassessments', 1, 1379403737, 0),
(753, 1, 1, 'mod/workshop:viewallassessments', 1, 1379403737, 0),
(754, 1, 4, 'mod/workshop:overridegrades', 1, 1379403737, 0),
(755, 1, 3, 'mod/workshop:overridegrades', 1, 1379403737, 0),
(756, 1, 1, 'mod/workshop:overridegrades', 1, 1379403737, 0),
(757, 1, 4, 'mod/workshop:ignoredeadlines', 1, 1379403737, 0),
(758, 1, 3, 'mod/workshop:ignoredeadlines', 1, 1379403737, 0),
(759, 1, 1, 'mod/workshop:ignoredeadlines', 1, 1379403737, 0),
(760, 1, 1, 'enrol/authorize:config', 1, 1379403740, 0),
(761, 1, 1, 'enrol/authorize:manage', 1, 1379403740, 0),
(762, 1, 3, 'enrol/authorize:manage', 1, 1379403740, 0),
(763, 1, 1, 'enrol/authorize:unenrol', 1, 1379403740, 0),
(764, 1, 1, 'enrol/authorize:managepayments', 1, 1379403740, 0),
(765, 1, 1, 'enrol/authorize:uploadcsv', 1, 1379403740, 0),
(766, 1, 3, 'enrol/cohort:config', 1, 1379403741, 0),
(767, 1, 1, 'enrol/cohort:config', 1, 1379403741, 0),
(768, 1, 1, 'enrol/guest:config', 1, 1379403742, 0),
(769, 1, 3, 'enrol/guest:config', 1, 1379403742, 0),
(770, 1, 1, 'enrol/ldap:manage', 1, 1379403742, 0),
(771, 1, 1, 'enrol/manual:config', 1, 1379403742, 0),
(772, 1, 1, 'enrol/manual:enrol', 1, 1379403742, 0),
(773, 1, 3, 'enrol/manual:enrol', 1, 1379403742, 0),
(774, 1, 1, 'enrol/manual:manage', 1, 1379403742, 0),
(775, 1, 3, 'enrol/manual:manage', 1, 1379403742, 0),
(776, 1, 1, 'enrol/manual:unenrol', 1, 1379403742, 0),
(777, 1, 3, 'enrol/manual:unenrol', 1, 1379403742, 0),
(778, 1, 1, 'enrol/meta:config', 1, 1379403742, 0),
(779, 1, 3, 'enrol/meta:config', 1, 1379403742, 0),
(780, 1, 1, 'enrol/meta:selectaslinked', 1, 1379403742, 0),
(781, 1, 1, 'enrol/meta:unenrol', 1, 1379403742, 0),
(782, 1, 1, 'enrol/paypal:config', 1, 1379403743, 0),
(783, 1, 1, 'enrol/paypal:manage', 1, 1379403743, 0),
(784, 1, 3, 'enrol/paypal:manage', 1, 1379403743, 0),
(785, 1, 1, 'enrol/paypal:unenrol', 1, 1379403743, 0),
(786, 1, 3, 'enrol/self:config', 1, 1379403743, 0),
(787, 1, 1, 'enrol/self:config', 1, 1379403743, 0),
(788, 1, 3, 'enrol/self:manage', 1, 1379403743, 0),
(789, 1, 1, 'enrol/self:manage', 1, 1379403743, 0),
(790, 1, 5, 'enrol/self:unenrolself', 1, 1379403743, 0),
(791, 1, 3, 'enrol/self:unenrol', 1, 1379403743, 0),
(792, 1, 1, 'enrol/self:unenrol', 1, 1379403743, 0),
(793, 1, 7, 'block/online_users:viewlist', 1, 1379403746, 0),
(794, 1, 6, 'block/online_users:viewlist', 1, 1379403746, 0),
(795, 1, 5, 'block/online_users:viewlist', 1, 1379403746, 0),
(796, 1, 4, 'block/online_users:viewlist', 1, 1379403746, 0),
(797, 1, 3, 'block/online_users:viewlist', 1, 1379403746, 0),
(798, 1, 1, 'block/online_users:viewlist', 1, 1379403746, 0),
(799, 1, 4, 'block/rss_client:manageownfeeds', 1, 1379403747, 0),
(800, 1, 3, 'block/rss_client:manageownfeeds', 1, 1379403747, 0),
(801, 1, 1, 'block/rss_client:manageownfeeds', 1, 1379403747, 0),
(802, 1, 1, 'block/rss_client:manageanyfeeds', 1, 1379403747, 0),
(803, 1, 4, 'report/completion:view', 1, 1379403751, 0),
(804, 1, 3, 'report/completion:view', 1, 1379403751, 0),
(805, 1, 1, 'report/completion:view', 1, 1379403751, 0),
(806, 1, 4, 'report/courseoverview:view', 1, 1379403751, 0),
(807, 1, 3, 'report/courseoverview:view', 1, 1379403751, 0),
(808, 1, 1, 'report/courseoverview:view', 1, 1379403751, 0),
(809, 1, 4, 'report/log:view', 1, 1379403751, 0),
(810, 1, 3, 'report/log:view', 1, 1379403751, 0),
(811, 1, 1, 'report/log:view', 1, 1379403751, 0),
(812, 1, 4, 'report/log:viewtoday', 1, 1379403751, 0),
(813, 1, 3, 'report/log:viewtoday', 1, 1379403751, 0),
(814, 1, 1, 'report/log:viewtoday', 1, 1379403751, 0),
(815, 1, 4, 'report/loglive:view', 1, 1379403752, 0),
(816, 1, 3, 'report/loglive:view', 1, 1379403752, 0),
(817, 1, 1, 'report/loglive:view', 1, 1379403752, 0),
(818, 1, 4, 'report/outline:view', 1, 1379403752, 0),
(819, 1, 3, 'report/outline:view', 1, 1379403752, 0),
(820, 1, 1, 'report/outline:view', 1, 1379403752, 0),
(821, 1, 4, 'report/participation:view', 1, 1379403752, 0),
(822, 1, 3, 'report/participation:view', 1, 1379403752, 0),
(823, 1, 1, 'report/participation:view', 1, 1379403752, 0),
(824, 1, 4, 'report/progress:view', 1, 1379403752, 0),
(825, 1, 3, 'report/progress:view', 1, 1379403752, 0),
(826, 1, 1, 'report/progress:view', 1, 1379403752, 0),
(827, 1, 1, 'report/security:view', 1, 1379403752, 0),
(828, 1, 4, 'report/stats:view', 1, 1379403753, 0),
(829, 1, 3, 'report/stats:view', 1, 1379403753, 0),
(830, 1, 1, 'report/stats:view', 1, 1379403753, 0),
(831, 1, 4, 'gradeexport/ods:view', 1, 1379403753, 0),
(832, 1, 3, 'gradeexport/ods:view', 1, 1379403753, 0),
(833, 1, 1, 'gradeexport/ods:view', 1, 1379403753, 0),
(834, 1, 1, 'gradeexport/ods:publish', 1, 1379403753, 0),
(835, 1, 4, 'gradeexport/txt:view', 1, 1379403753, 0),
(836, 1, 3, 'gradeexport/txt:view', 1, 1379403753, 0),
(837, 1, 1, 'gradeexport/txt:view', 1, 1379403753, 0),
(838, 1, 1, 'gradeexport/txt:publish', 1, 1379403753, 0),
(839, 1, 4, 'gradeexport/xls:view', 1, 1379403753, 0),
(840, 1, 3, 'gradeexport/xls:view', 1, 1379403753, 0),
(841, 1, 1, 'gradeexport/xls:view', 1, 1379403753, 0),
(842, 1, 1, 'gradeexport/xls:publish', 1, 1379403753, 0),
(843, 1, 4, 'gradeexport/xml:view', 1, 1379403753, 0),
(844, 1, 3, 'gradeexport/xml:view', 1, 1379403753, 0),
(845, 1, 1, 'gradeexport/xml:view', 1, 1379403753, 0),
(846, 1, 1, 'gradeexport/xml:publish', 1, 1379403753, 0),
(847, 1, 3, 'gradeimport/csv:view', 1, 1379403753, 0),
(848, 1, 1, 'gradeimport/csv:view', 1, 1379403753, 0),
(849, 1, 3, 'gradeimport/xml:view', 1, 1379403754, 0),
(850, 1, 1, 'gradeimport/xml:view', 1, 1379403754, 0),
(851, 1, 1, 'gradeimport/xml:publish', 1, 1379403754, 0),
(852, 1, 4, 'gradereport/grader:view', 1, 1379403754, 0),
(853, 1, 3, 'gradereport/grader:view', 1, 1379403754, 0),
(854, 1, 1, 'gradereport/grader:view', 1, 1379403754, 0),
(855, 1, 4, 'gradereport/outcomes:view', 1, 1379403754, 0),
(856, 1, 3, 'gradereport/outcomes:view', 1, 1379403754, 0),
(857, 1, 1, 'gradereport/outcomes:view', 1, 1379403754, 0),
(858, 1, 5, 'gradereport/overview:view', 1, 1379403754, 0),
(859, 1, 1, 'gradereport/overview:view', 1, 1379403754, 0),
(860, 1, 5, 'gradereport/user:view', 1, 1379403754, 0),
(861, 1, 4, 'gradereport/user:view', 1, 1379403754, 0),
(862, 1, 3, 'gradereport/user:view', 1, 1379403754, 0),
(863, 1, 1, 'gradereport/user:view', 1, 1379403754, 0),
(864, 1, 7, 'repository/alfresco:view', 1, 1379403756, 0),
(865, 1, 7, 'repository/boxnet:view', 1, 1379403756, 0),
(866, 1, 2, 'repository/coursefiles:view', 1, 1379403756, 0),
(867, 1, 4, 'repository/coursefiles:view', 1, 1379403756, 0),
(868, 1, 3, 'repository/coursefiles:view', 1, 1379403756, 0),
(869, 1, 1, 'repository/coursefiles:view', 1, 1379403756, 0),
(870, 1, 7, 'repository/dropbox:view', 1, 1379403757, 0),
(871, 1, 2, 'repository/filesystem:view', 1, 1379403757, 0),
(872, 1, 4, 'repository/filesystem:view', 1, 1379403757, 0),
(873, 1, 3, 'repository/filesystem:view', 1, 1379403757, 0),
(874, 1, 1, 'repository/filesystem:view', 1, 1379403757, 0),
(875, 1, 7, 'repository/flickr:view', 1, 1379403757, 0),
(876, 1, 7, 'repository/flickr_public:view', 1, 1379403757, 0),
(877, 1, 7, 'repository/googledocs:view', 1, 1379403757, 0),
(878, 1, 2, 'repository/local:view', 1, 1379403757, 0),
(879, 1, 4, 'repository/local:view', 1, 1379403757, 0),
(880, 1, 3, 'repository/local:view', 1, 1379403757, 0),
(881, 1, 1, 'repository/local:view', 1, 1379403757, 0),
(882, 1, 7, 'repository/merlot:view', 1, 1379403758, 0),
(883, 1, 7, 'repository/picasa:view', 1, 1379403758, 0),
(884, 1, 7, 'repository/recent:view', 1, 1379403758, 0),
(885, 1, 7, 'repository/s3:view', 1, 1379403758, 0),
(886, 1, 7, 'repository/upload:view', 1, 1379403758, 0),
(887, 1, 7, 'repository/url:view', 1, 1379403758, 0),
(888, 1, 7, 'repository/user:view', 1, 1379403759, 0),
(889, 1, 2, 'repository/webdav:view', 1, 1379403759, 0),
(890, 1, 4, 'repository/webdav:view', 1, 1379403759, 0),
(891, 1, 3, 'repository/webdav:view', 1, 1379403759, 0),
(892, 1, 1, 'repository/webdav:view', 1, 1379403759, 0),
(893, 1, 7, 'repository/wikimedia:view', 1, 1379403759, 0),
(894, 1, 7, 'repository/youtube:view', 1, 1379403759, 0),
(895, 1, 1, 'tool/customlang:view', 1, 1379403764, 0),
(896, 1, 1, 'tool/customlang:edit', 1, 1379403764, 0),
(897, 1, 4, 'quiz/grading:viewstudentnames', 1, 1379403770, 0);
INSERT INTO `mdl_role_capabilities` (`id`, `contextid`, `roleid`, `capability`, `permission`, `timemodified`, `modifierid`) VALUES
(898, 1, 3, 'quiz/grading:viewstudentnames', 1, 1379403770, 0),
(899, 1, 1, 'quiz/grading:viewstudentnames', 1, 1379403770, 0),
(900, 1, 4, 'quiz/grading:viewidnumber', 1, 1379403770, 0),
(901, 1, 3, 'quiz/grading:viewidnumber', 1, 1379403770, 0),
(902, 1, 1, 'quiz/grading:viewidnumber', 1, 1379403770, 0),
(903, 1, 4, 'quiz/statistics:view', 1, 1379403771, 0),
(904, 1, 3, 'quiz/statistics:view', 1, 1379403771, 0),
(905, 1, 1, 'quiz/statistics:view', 1, 1379403771, 0);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_role_context_levels`
--

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

--
-- Volcado de datos para la tabla `mdl_role_context_levels`
--

INSERT INTO `mdl_role_context_levels` (`id`, `roleid`, `contextlevel`) 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);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_role_names`
--

CREATE TABLE IF NOT EXISTS `mdl_role_names` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `roleid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `contextid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_role_sortorder`
--

CREATE TABLE IF NOT EXISTS `mdl_role_sortorder` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) unsigned NOT NULL,
  `roleid` bigint(10) unsigned NOT NULL,
  `contextid` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_scale`
--

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

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_scale_history`
--

CREATE TABLE IF NOT EXISTS `mdl_scale_history` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `action` bigint(10) unsigned NOT NULL DEFAULT '0',
  `oldid` bigint(10) unsigned NOT NULL,
  `source` varchar(255) DEFAULT NULL,
  `timemodified` bigint(10) unsigned DEFAULT NULL,
  `loggeduser` bigint(10) unsigned DEFAULT NULL,
  `courseid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `scale` text NOT NULL,
  `description` text NOT NULL,
  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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_scorm`
--

CREATE TABLE IF NOT EXISTS `mdl_scorm` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` bigint(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `scormtype` varchar(50) NOT NULL DEFAULT 'local',
  `reference` varchar(255) NOT NULL DEFAULT '',
  `intro` text NOT NULL,
  `introformat` smallint(4) unsigned 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) unsigned NOT NULL DEFAULT '0',
  `sha1hash` varchar(40) DEFAULT NULL,
  `md5hash` varchar(32) NOT NULL DEFAULT '',
  `revision` bigint(10) unsigned NOT NULL DEFAULT '0',
  `launch` bigint(10) unsigned NOT NULL DEFAULT '0',
  `skipview` tinyint(1) unsigned NOT NULL DEFAULT '1',
  `hidebrowse` tinyint(1) NOT NULL DEFAULT '0',
  `hidetoc` tinyint(1) NOT NULL DEFAULT '0',
  `hidenav` tinyint(1) NOT NULL DEFAULT '0',
  `auto` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `popup` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `options` varchar(255) NOT NULL DEFAULT '',
  `width` bigint(10) unsigned NOT NULL DEFAULT '100',
  `height` bigint(10) unsigned NOT NULL DEFAULT '600',
  `timeopen` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timeclose` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_scorm_aicc_session`
--

CREATE TABLE IF NOT EXISTS `mdl_scorm_aicc_session` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `scormid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `hacpsession` varchar(255) NOT NULL DEFAULT '',
  `scoid` bigint(10) unsigned DEFAULT '0',
  `scormmode` varchar(50) DEFAULT NULL,
  `scormstatus` varchar(255) DEFAULT NULL,
  `attempt` bigint(10) unsigned DEFAULT NULL,
  `lessonstatus` varchar(255) DEFAULT NULL,
  `sessiontime` varchar(255) DEFAULT NULL,
  `timecreated` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_scorm_scoes`
--

CREATE TABLE IF NOT EXISTS `mdl_scorm_scoes` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `scorm` bigint(10) unsigned NOT NULL DEFAULT '0',
  `manifest` varchar(255) NOT NULL DEFAULT '',
  `organization` varchar(255) NOT NULL DEFAULT '',
  `parent` varchar(255) NOT NULL DEFAULT '',
  `identifier` varchar(255) NOT NULL DEFAULT '',
  `launch` text NOT NULL,
  `scormtype` varchar(5) NOT NULL DEFAULT '',
  `title` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_scorscoe_sco_ix` (`scorm`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='each SCO part of the SCORM module' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_scorm_scoes_data`
--

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

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_scorm_scoes_track`
--

CREATE TABLE IF NOT EXISTS `mdl_scorm_scoes_track` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `scormid` bigint(10) NOT NULL DEFAULT '0',
  `scoid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `attempt` bigint(10) unsigned NOT NULL DEFAULT '1',
  `element` varchar(255) NOT NULL DEFAULT '',
  `value` longtext NOT NULL,
  `timemodified` bigint(10) unsigned NOT NULL DEFAULT '0',
  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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_scorm_seq_mapinfo`
--

CREATE TABLE IF NOT EXISTS `mdl_scorm_seq_mapinfo` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `scoid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `objectiveid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `targetobjectiveid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `readsatisfiedstatus` tinyint(1) NOT NULL DEFAULT '1',
  `readnormalizedmeasure` tinyint(1) NOT NULL DEFAULT '1',
  `writesatisfiedstatus` tinyint(1) NOT NULL DEFAULT '0',
  `writenormalizedmeasure` tinyint(1) NOT NULL DEFAULT '0',
  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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_scorm_seq_objective`
--

CREATE TABLE IF NOT EXISTS `mdl_scorm_seq_objective` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `scoid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `primaryobj` tinyint(1) NOT NULL DEFAULT '0',
  `objectiveid` varchar(255) NOT NULL DEFAULT '',
  `satisfiedbymeasure` tinyint(1) NOT NULL DEFAULT '1',
  `minnormalizedmeasure` float(11,4) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_scorm_seq_rolluprule`
--

CREATE TABLE IF NOT EXISTS `mdl_scorm_seq_rolluprule` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `scoid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `childactivityset` varchar(15) NOT NULL DEFAULT '',
  `minimumcount` bigint(10) unsigned NOT NULL DEFAULT '0',
  `minimumpercent` float(11,4) unsigned NOT NULL DEFAULT '0.0000',
  `conditioncombination` varchar(3) NOT NULL DEFAULT 'all',
  `action` varchar(15) NOT NULL DEFAULT '',
  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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_scorm_seq_rolluprulecond`
--

CREATE TABLE IF NOT EXISTS `mdl_scorm_seq_rolluprulecond` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `scoid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `rollupruleid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `operator` varchar(5) NOT NULL DEFAULT 'noOp',
  `cond` varchar(25) NOT NULL DEFAULT '',
  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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_scorm_seq_rulecond`
--

CREATE TABLE IF NOT EXISTS `mdl_scorm_seq_rulecond` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `scoid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `ruleconditionsid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `refrencedobjective` varchar(255) NOT NULL DEFAULT '',
  `measurethreshold` float(11,4) NOT NULL DEFAULT '0.0000',
  `operator` varchar(5) NOT NULL DEFAULT 'noOp',
  `cond` varchar(30) NOT NULL DEFAULT 'always',
  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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_scorm_seq_ruleconds`
--

CREATE TABLE IF NOT EXISTS `mdl_scorm_seq_ruleconds` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `scoid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `conditioncombination` varchar(3) NOT NULL DEFAULT 'all',
  `ruletype` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `action` varchar(25) NOT NULL DEFAULT '',
  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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_sessions`
--

CREATE TABLE IF NOT EXISTS `mdl_sessions` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `state` bigint(10) unsigned NOT NULL DEFAULT '0',
  `sid` varchar(128) NOT NULL DEFAULT '',
  `userid` bigint(10) unsigned NOT NULL,
  `sessdata` longtext,
  `timecreated` bigint(10) unsigned NOT NULL,
  `timemodified` bigint(10) unsigned 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  DEFAULT CHARSET=utf8 COMMENT='Database based session storage - now recommended' AUTO_INCREMENT=3 ;

--
-- Volcado de datos para la tabla `mdl_sessions`
--

INSERT INTO `mdl_sessions` (`id`, `state`, `sid`, `userid`, `sessdata`, `timecreated`, `timemodified`, `firstip`, `lastip`) VALUES
(2, 0, 'i8dr3k0h08o9mtjgqgpgqvffk6', 2, 'U0VTU0lPTnxPOjg6InN0ZENsYXNzIjoxOntzOjEzOiJoYXNfdGltZWRfb3V0IjtiOjE7fVVTRVJ8Tzo4OiJzdGRDbGFzcyI6NTg6e3M6MjoiaWQiO3M6MToiMiI7czo0OiJhdXRoIjtzOjY6Im1hbnVhbCI7czo5OiJjb25maXJtZWQiO3M6MToiMSI7czoxMjoicG9saWN5YWdyZWVkIjtzOjE6IjAiO3M6NzoiZGVsZXRlZCI7czoxOiIwIjtzOjk6InN1c3BlbmRlZCI7czoxOiIwIjtzOjEwOiJtbmV0aG9zdGlkIjtzOjE6IjEiO3M6ODoidXNlcm5hbWUiO3M6NToiYWRtaW4iO3M6ODoicGFzc3dvcmQiO3M6MTc6ImFkbWluc2V0dXBwZW5kaW5nIjtzOjg6ImlkbnVtYmVyIjtzOjA6IiI7czo5OiJmaXJzdG5hbWUiO3M6NToiQWRtaW4iO3M6ODoibGFzdG5hbWUiO3M6NDoiVXNlciI7czo1OiJlbWFpbCI7czowOiIiO3M6OToiZW1haWxzdG9wIjtzOjE6IjAiO3M6MzoiaWNxIjtzOjA6IiI7czo1OiJza3lwZSI7czowOiIiO3M6NToieWFob28iO3M6MDoiIjtzOjM6ImFpbSI7czowOiIiO3M6MzoibXNuIjtzOjA6IiI7czo2OiJwaG9uZTEiO3M6MDoiIjtzOjY6InBob25lMiI7czowOiIiO3M6MTE6Imluc3RpdHV0aW9uIjtzOjA6IiI7czoxMDoiZGVwYXJ0bWVudCI7czowOiIiO3M6NzoiYWRkcmVzcyI7czowOiIiO3M6NDoiY2l0eSI7czowOiIiO3M6NzoiY291bnRyeSI7czowOiIiO3M6NDoibGFuZyI7czoyOiJlbiI7czo1OiJ0aGVtZSI7czowOiIiO3M6ODoidGltZXpvbmUiO3M6MjoiOTkiO3M6MTE6ImZpcnN0YWNjZXNzIjtpOjEzNzk0MDM3ODY7czoxMDoibGFzdGFjY2VzcyI7aToxMzc5NDAzNzg2O3M6OToibGFzdGxvZ2luIjtzOjE6IjAiO3M6MTI6ImN1cnJlbnRsb2dpbiI7aToxMzc5NDAzNzg2O3M6NjoibGFzdGlwIjtzOjEwOiIxMC4yLjEuMjU0IjtzOjY6InNlY3JldCI7czowOiIiO3M6NzoicGljdHVyZSI7czoxOiIwIjtzOjM6InVybCI7czowOiIiO3M6MTc6ImRlc2NyaXB0aW9uZm9ybWF0IjtzOjE6IjAiO3M6MTA6Im1haWxmb3JtYXQiO3M6MToiMSI7czoxMDoibWFpbGRpZ2VzdCI7czoxOiIwIjtzOjExOiJtYWlsZGlzcGxheSI7czoxOiIxIjtzOjEwOiJodG1sZWRpdG9yIjtzOjE6IjEiO3M6NDoiYWpheCI7czoxOiIxIjtzOjEzOiJhdXRvc3Vic2NyaWJlIjtzOjE6IjEiO3M6MTE6InRyYWNrZm9ydW1zIjtzOjE6IjAiO3M6MTE6InRpbWVjcmVhdGVkIjtzOjE6IjAiO3M6MTI6InRpbWVtb2RpZmllZCI7czoxMDoiMTM3OTQwMzY5MCI7czoxMjoidHJ1c3RiaXRtYXNrIjtzOjE6IjAiO3M6ODoiaW1hZ2VhbHQiO047czoxMjoic2NyZWVucmVhZGVyIjtzOjE6IjAiO3M6MTY6Imxhc3Rjb3Vyc2VhY2Nlc3MiO2E6MDp7fXM6MTk6ImN1cnJlbnRjb3Vyc2VhY2Nlc3MiO2E6MDp7fXM6MTE6Imdyb3VwbWVtYmVyIjthOjA6e31zOjc6InByb2ZpbGUiO2E6MDp7fXM6MTI6Im5ld2FkbWludXNlciI7aToxO3M6Nzoic2Vzc2tleSI7czoxMDoiR0FNMktLRjBBSyI7czoxMDoicHJlZmVyZW5jZSI7YToxOntzOjExOiJfbGFzdGxvYWRlZCI7aToxMzc5NDAzNzg3O31zOjE3OiJtZXNzYWdlX2xhc3Rwb3B1cCI7aTowO30=', 1379403786, 1379403787, '10.2.1.254', '10.2.1.254');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_stats_daily`
--

CREATE TABLE IF NOT EXISTS `mdl_stats_daily` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timeend` bigint(10) unsigned NOT NULL DEFAULT '0',
  `roleid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `stattype` varchar(20) NOT NULL DEFAULT 'activity',
  `stat1` bigint(10) unsigned NOT NULL DEFAULT '0',
  `stat2` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_stats_monthly`
--

CREATE TABLE IF NOT EXISTS `mdl_stats_monthly` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timeend` bigint(10) unsigned NOT NULL DEFAULT '0',
  `roleid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `stattype` varchar(20) NOT NULL DEFAULT 'activity',
  `stat1` bigint(10) unsigned NOT NULL DEFAULT '0',
  `stat2` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_stats_user_daily`
--

CREATE TABLE IF NOT EXISTS `mdl_stats_user_daily` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `roleid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timeend` bigint(10) unsigned NOT NULL DEFAULT '0',
  `statsreads` bigint(10) unsigned NOT NULL DEFAULT '0',
  `statswrites` bigint(10) unsigned NOT NULL DEFAULT '0',
  `stattype` varchar(30) NOT NULL DEFAULT '',
  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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_stats_user_monthly`
--

CREATE TABLE IF NOT EXISTS `mdl_stats_user_monthly` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `roleid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timeend` bigint(10) unsigned NOT NULL DEFAULT '0',
  `statsreads` bigint(10) unsigned NOT NULL DEFAULT '0',
  `statswrites` bigint(10) unsigned NOT NULL DEFAULT '0',
  `stattype` varchar(30) NOT NULL DEFAULT '',
  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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_stats_user_weekly`
--

CREATE TABLE IF NOT EXISTS `mdl_stats_user_weekly` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `roleid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timeend` bigint(10) unsigned NOT NULL DEFAULT '0',
  `statsreads` bigint(10) unsigned NOT NULL DEFAULT '0',
  `statswrites` bigint(10) unsigned NOT NULL DEFAULT '0',
  `stattype` varchar(30) NOT NULL DEFAULT '',
  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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_stats_weekly`
--

CREATE TABLE IF NOT EXISTS `mdl_stats_weekly` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timeend` bigint(10) unsigned NOT NULL DEFAULT '0',
  `roleid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `stattype` varchar(20) NOT NULL DEFAULT 'activity',
  `stat1` bigint(10) unsigned NOT NULL DEFAULT '0',
  `stat2` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_survey`
--

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

--
-- Volcado de datos para la tabla `mdl_survey`
--

INSERT INTO `mdl_survey` (`id`, `course`, `template`, `days`, `timecreated`, `timemodified`, `name`, `intro`, `introformat`, `questions`) 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');

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_survey_analysis`
--

CREATE TABLE IF NOT EXISTS `mdl_survey_analysis` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `survey` bigint(10) unsigned NOT NULL DEFAULT '0',
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `notes` text NOT NULL,
  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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_survey_answers`
--

CREATE TABLE IF NOT EXISTS `mdl_survey_answers` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `survey` bigint(10) unsigned NOT NULL DEFAULT '0',
  `question` bigint(10) unsigned NOT NULL DEFAULT '0',
  `time` bigint(10) unsigned NOT NULL DEFAULT '0',
  `answer1` text NOT NULL,
  `answer2` text NOT NULL,
  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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_survey_questions`
--

CREATE TABLE IF NOT EXISTS `mdl_survey_questions` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `text` varchar(255) NOT NULL DEFAULT '',
  `shorttext` varchar(30) NOT NULL DEFAULT '',
  `multi` varchar(100) NOT NULL DEFAULT '',
  `intro` varchar(50) NOT NULL DEFAULT '',
  `type` smallint(3) NOT NULL DEFAULT '0',
  `options` text,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COMMENT='the questions conforming one survey' AUTO_INCREMENT=74 ;

--
-- Volcado de datos para la tabla `mdl_survey_questions`
--

INSERT INTO `mdl_survey_questions` (`id`, `text`, `shorttext`, `multi`, `intro`, `type`, `options`) 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);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_tag`
--

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

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_tag_correlation`
--

CREATE TABLE IF NOT EXISTS `mdl_tag_correlation` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `tagid` bigint(10) unsigned NOT NULL,
  `correlatedtags` text 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_tag_instance`
--

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

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_timezone`
--

CREATE TABLE IF NOT EXISTS `mdl_timezone` (
  `id` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_tool_customlang`
--

CREATE TABLE IF NOT EXISTS `mdl_tool_customlang` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `lang` varchar(20) NOT NULL DEFAULT '',
  `componentid` bigint(10) unsigned NOT NULL,
  `stringid` varchar(255) NOT NULL DEFAULT '',
  `original` longtext NOT NULL,
  `master` longtext,
  `local` longtext,
  `timemodified` bigint(10) unsigned NOT NULL,
  `timecustomized` bigint(10) unsigned DEFAULT NULL,
  `outdated` smallint(3) unsigned DEFAULT '0',
  `modified` smallint(3) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_tool_customlang_components`
--

CREATE TABLE IF NOT EXISTS `mdl_tool_customlang_components` (
  `id` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_upgrade_log`
--

CREATE TABLE IF NOT EXISTS `mdl_upgrade_log` (
  `id` bigint(10) unsigned 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` text,
  `backtrace` text,
  `userid` bigint(10) unsigned NOT NULL,
  `timemodified` bigint(10) unsigned 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  DEFAULT CHARSET=utf8 COMMENT='Upgrade logging' AUTO_INCREMENT=785 ;

--
-- Volcado de datos para la tabla `mdl_upgrade_log`
--

INSERT INTO `mdl_upgrade_log` (`id`, `type`, `plugin`, `version`, `targetversion`, `info`, `details`, `backtrace`, `userid`, `timemodified`) VALUES
(1, 0, 'core', '2011120506', '2011120506', 'Upgrade savepoint reached', NULL, '', 0, 1379403694),
(2, 0, 'core', '2011120506', '2011120506', 'Core installed', NULL, '', 0, 1379403703),
(3, 0, 'qtype_calculated', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403703),
(4, 0, 'qtype_calculated', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403704),
(5, 0, 'qtype_calculated', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403704),
(6, 0, 'qtype_calculatedmulti', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403704),
(7, 0, 'qtype_calculatedmulti', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403704),
(8, 0, 'qtype_calculatedmulti', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403704),
(9, 0, 'qtype_calculatedsimple', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403704),
(10, 0, 'qtype_calculatedsimple', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403704),
(11, 0, 'qtype_calculatedsimple', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403704),
(12, 0, 'qtype_description', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403705),
(13, 0, 'qtype_description', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403705),
(14, 0, 'qtype_description', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403705),
(15, 0, 'qtype_essay', NULL, '2011102702', 'Starting plugin installation', NULL, '', 0, 1379403705),
(16, 0, 'qtype_essay', '2011102702', '2011102702', 'Upgrade savepoint reached', NULL, '', 0, 1379403705),
(17, 0, 'qtype_essay', '2011102702', '2011102702', 'Plugin installed', NULL, '', 0, 1379403705),
(18, 0, 'qtype_match', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403705),
(19, 0, 'qtype_match', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403705),
(20, 0, 'qtype_match', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403705),
(21, 0, 'qtype_missingtype', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403705),
(22, 0, 'qtype_missingtype', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403705),
(23, 0, 'qtype_missingtype', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403705),
(24, 0, 'qtype_multianswer', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403705),
(25, 0, 'qtype_multianswer', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403706),
(26, 0, 'qtype_multianswer', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403706),
(27, 0, 'qtype_multichoice', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403706),
(28, 0, 'qtype_multichoice', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403706),
(29, 0, 'qtype_multichoice', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403706),
(30, 0, 'qtype_numerical', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403706),
(31, 0, 'qtype_numerical', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403706),
(32, 0, 'qtype_numerical', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403707),
(33, 0, 'qtype_random', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403707),
(34, 0, 'qtype_random', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403707),
(35, 0, 'qtype_random', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403707),
(36, 0, 'qtype_randomsamatch', NULL, '2010090501', 'Starting plugin installation', NULL, '', 0, 1379403707),
(37, 0, 'qtype_randomsamatch', '2010090501', '2010090501', 'Upgrade savepoint reached', NULL, '', 0, 1379403707),
(38, 0, 'qtype_randomsamatch', '2010090501', '2010090501', 'Plugin installed', NULL, '', 0, 1379403707),
(39, 0, 'qtype_shortanswer', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403707),
(40, 0, 'qtype_shortanswer', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403707),
(41, 0, 'qtype_shortanswer', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403707),
(42, 0, 'qtype_truefalse', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403707),
(43, 0, 'qtype_truefalse', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403707),
(44, 0, 'qtype_truefalse', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403707),
(45, 0, 'mod_assignment', NULL, '2011112901', 'Starting plugin installation', NULL, '', 0, 1379403707),
(46, 0, 'mod_assignment', '2011112901', '2011112901', 'Plugin installed', NULL, '', 0, 1379403708),
(47, 0, 'mod_chat', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403708),
(48, 0, 'mod_chat', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403710),
(49, 0, 'mod_choice', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403710),
(50, 0, 'mod_choice', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403711),
(51, 0, 'mod_data', NULL, '2011112901', 'Starting plugin installation', NULL, '', 0, 1379403711),
(52, 0, 'mod_data', '2011112901', '2011112901', 'Plugin installed', NULL, '', 0, 1379403712),
(53, 0, 'mod_feedback', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403712),
(54, 0, 'mod_feedback', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403714),
(55, 0, 'mod_folder', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403714),
(56, 0, 'mod_folder', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403715),
(57, 0, 'mod_forum', NULL, '2011112901', 'Starting plugin installation', NULL, '', 0, 1379403715),
(58, 0, 'mod_forum', '2011112901', '2011112901', 'Plugin installed', NULL, '', 0, 1379403717),
(59, 0, 'mod_glossary', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403717),
(60, 0, 'mod_glossary', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403719),
(61, 0, 'mod_imscp', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403719),
(62, 0, 'mod_imscp', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403720),
(63, 0, 'mod_label', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403720),
(64, 0, 'mod_label', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403720),
(65, 0, 'mod_lesson', NULL, '2011112901', 'Starting plugin installation', NULL, '', 0, 1379403720),
(66, 0, 'mod_lesson', '2011112901', '2011112901', 'Plugin installed', NULL, '', 0, 1379403722),
(67, 0, 'mod_lti', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403722),
(68, 0, 'mod_lti', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403723),
(69, 0, 'mod_page', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403723),
(70, 0, 'mod_page', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403723),
(71, 0, 'mod_quiz', NULL, '2011112904', 'Starting plugin installation', NULL, '', 0, 1379403723),
(72, 0, 'mod_quiz', '2011112904', '2011112904', 'Plugin installed', NULL, '', 0, 1379403725),
(73, 0, 'mod_resource', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403726),
(74, 0, 'mod_resource', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403726),
(75, 0, 'mod_scorm', NULL, '2011112901', 'Starting plugin installation', NULL, '', 0, 1379403726),
(76, 0, 'mod_scorm', '2011112901', '2011112901', 'Plugin installed', NULL, '', 0, 1379403729),
(77, 0, 'mod_survey', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403729),
(78, 0, 'mod_survey', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403731),
(79, 0, 'mod_url', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403731),
(80, 0, 'mod_url', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403731),
(81, 0, 'mod_wiki', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403731),
(82, 0, 'mod_wiki', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403733),
(83, 0, 'mod_workshop', NULL, '2011112902', 'Starting plugin installation', NULL, '', 0, 1379403733),
(84, 0, 'mod_workshop', '2011112902', '2011112902', 'Plugin installed', NULL, '', 0, 1379403737),
(85, 0, 'auth_cas', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403737),
(86, 0, 'auth_cas', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403737),
(87, 0, 'auth_cas', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403737),
(88, 0, 'auth_db', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403737),
(89, 0, 'auth_db', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403737),
(90, 0, 'auth_db', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403737),
(91, 0, 'auth_email', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403737),
(92, 0, 'auth_email', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403737),
(93, 0, 'auth_email', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403738),
(94, 0, 'auth_fc', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403738),
(95, 0, 'auth_fc', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403738),
(96, 0, 'auth_fc', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403738),
(97, 0, 'auth_imap', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403738),
(98, 0, 'auth_imap', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403738),
(99, 0, 'auth_imap', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403738),
(100, 0, 'auth_ldap', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403738),
(101, 0, 'auth_ldap', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403738),
(102, 0, 'auth_ldap', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403738),
(103, 0, 'auth_manual', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403738),
(104, 0, 'auth_manual', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403738),
(105, 0, 'auth_manual', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403738),
(106, 0, 'auth_mnet', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403738),
(107, 0, 'auth_mnet', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403738),
(108, 0, 'auth_mnet', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403738),
(109, 0, 'auth_nntp', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403738),
(110, 0, 'auth_nntp', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403738),
(111, 0, 'auth_nntp', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403738),
(112, 0, 'auth_nologin', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403739),
(113, 0, 'auth_nologin', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403739),
(114, 0, 'auth_nologin', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403739),
(115, 0, 'auth_none', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403739),
(116, 0, 'auth_none', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403739),
(117, 0, 'auth_none', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403739),
(118, 0, 'auth_pam', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403739),
(119, 0, 'auth_pam', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403739),
(120, 0, 'auth_pam', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403739),
(121, 0, 'auth_pop3', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403739),
(122, 0, 'auth_pop3', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403739),
(123, 0, 'auth_pop3', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403739),
(124, 0, 'auth_radius', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403739),
(125, 0, 'auth_radius', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403739),
(126, 0, 'auth_radius', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403739),
(127, 0, 'auth_shibboleth', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403739),
(128, 0, 'auth_shibboleth', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403739),
(129, 0, 'auth_shibboleth', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403739),
(130, 0, 'auth_webservice', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403739),
(131, 0, 'auth_webservice', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403739),
(132, 0, 'auth_webservice', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403739),
(133, 0, 'enrol_authorize', NULL, '2011112902', 'Starting plugin installation', NULL, '', 0, 1379403739),
(134, 0, 'enrol_authorize', '2011112902', '2011112902', 'Upgrade savepoint reached', NULL, '', 0, 1379403740),
(135, 0, 'enrol_authorize', '2011112902', '2011112902', 'Plugin installed', NULL, '', 0, 1379403740),
(136, 0, 'enrol_category', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403740),
(137, 0, 'enrol_category', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403740),
(138, 0, 'enrol_category', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403740),
(139, 0, 'enrol_cohort', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403741),
(140, 0, 'enrol_cohort', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403741),
(141, 0, 'enrol_cohort', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403741),
(142, 0, 'enrol_database', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403741),
(143, 0, 'enrol_database', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403741),
(144, 0, 'enrol_database', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403741),
(145, 0, 'enrol_flatfile', NULL, '2011112901', 'Starting plugin installation', NULL, '', 0, 1379403741),
(146, 0, 'enrol_flatfile', '2011112901', '2011112901', 'Upgrade savepoint reached', NULL, '', 0, 1379403741),
(147, 0, 'enrol_flatfile', '2011112901', '2011112901', 'Plugin installed', NULL, '', 0, 1379403741),
(148, 0, 'enrol_guest', NULL, '2011112901', 'Starting plugin installation', NULL, '', 0, 1379403741),
(149, 0, 'enrol_guest', '2011112901', '2011112901', 'Upgrade savepoint reached', NULL, '', 0, 1379403742),
(150, 0, 'enrol_guest', '2011112901', '2011112901', 'Plugin installed', NULL, '', 0, 1379403742),
(151, 0, 'enrol_imsenterprise', NULL, '2011112901', 'Starting plugin installation', NULL, '', 0, 1379403742),
(152, 0, 'enrol_imsenterprise', '2011112901', '2011112901', 'Upgrade savepoint reached', NULL, '', 0, 1379403742),
(153, 0, 'enrol_imsenterprise', '2011112901', '2011112901', 'Plugin installed', NULL, '', 0, 1379403742),
(154, 0, 'enrol_ldap', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403742),
(155, 0, 'enrol_ldap', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403742),
(156, 0, 'enrol_ldap', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403742),
(157, 0, 'enrol_manual', NULL, '2011112901', 'Starting plugin installation', NULL, '', 0, 1379403742),
(158, 0, 'enrol_manual', '2011112901', '2011112901', 'Upgrade savepoint reached', NULL, '', 0, 1379403742),
(159, 0, 'enrol_manual', '2011112901', '2011112901', 'Plugin installed', NULL, '', 0, 1379403742),
(160, 0, 'enrol_meta', NULL, '2011112901', 'Starting plugin installation', NULL, '', 0, 1379403742),
(161, 0, 'enrol_meta', '2011112901', '2011112901', 'Upgrade savepoint reached', NULL, '', 0, 1379403742),
(162, 0, 'enrol_meta', '2011112901', '2011112901', 'Plugin installed', NULL, '', 0, 1379403742),
(163, 0, 'enrol_mnet', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403742),
(164, 0, 'enrol_mnet', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403742),
(165, 0, 'enrol_mnet', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403743),
(166, 0, 'enrol_paypal', NULL, '2011112901', 'Starting plugin installation', NULL, '', 0, 1379403743),
(167, 0, 'enrol_paypal', '2011112901', '2011112901', 'Upgrade savepoint reached', NULL, '', 0, 1379403743),
(168, 0, 'enrol_paypal', '2011112901', '2011112901', 'Plugin installed', NULL, '', 0, 1379403743),
(169, 0, 'enrol_self', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403743),
(170, 0, 'enrol_self', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403743),
(171, 0, 'enrol_self', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403743),
(172, 0, 'message_email', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403743),
(173, 0, 'message_email', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403743),
(174, 0, 'message_email', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403743),
(175, 0, 'message_jabber', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403743),
(176, 0, 'message_jabber', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403743),
(177, 0, 'message_jabber', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403744),
(178, 0, 'message_popup', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403744),
(179, 0, 'message_popup', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403744),
(180, 0, 'message_popup', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403744),
(181, 0, 'block_activity_modules', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403744),
(182, 0, 'block_activity_modules', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403744),
(183, 0, 'block_admin_bookmarks', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403744),
(184, 0, 'block_admin_bookmarks', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403744),
(185, 0, 'block_blog_menu', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403744),
(186, 0, 'block_blog_menu', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403744),
(187, 0, 'block_blog_recent', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403744),
(188, 0, 'block_blog_recent', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403744),
(189, 0, 'block_blog_tags', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403744),
(190, 0, 'block_blog_tags', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403744),
(191, 0, 'block_calendar_month', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403744),
(192, 0, 'block_calendar_month', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403744),
(193, 0, 'block_calendar_upcoming', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403744),
(194, 0, 'block_calendar_upcoming', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403744),
(195, 0, 'block_comments', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403744),
(196, 0, 'block_comments', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403745),
(197, 0, 'block_community', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403745),
(198, 0, 'block_community', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403745),
(199, 0, 'block_completionstatus', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403745),
(200, 0, 'block_completionstatus', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403745),
(201, 0, 'block_course_list', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403745),
(202, 0, 'block_course_list', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403745),
(203, 0, 'block_course_overview', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403745),
(204, 0, 'block_course_overview', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403745),
(205, 0, 'block_course_summary', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403745),
(206, 0, 'block_course_summary', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403745),
(207, 0, 'block_feedback', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403745),
(208, 0, 'block_feedback', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403745),
(209, 0, 'block_glossary_random', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403745),
(210, 0, 'block_glossary_random', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403745),
(211, 0, 'block_html', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403745),
(212, 0, 'block_html', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403745),
(213, 0, 'block_login', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403745),
(214, 0, 'block_login', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403746),
(215, 0, 'block_mentees', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403746),
(216, 0, 'block_mentees', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403746),
(217, 0, 'block_messages', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403746),
(218, 0, 'block_messages', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403746),
(219, 0, 'block_mnet_hosts', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403746),
(220, 0, 'block_mnet_hosts', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403746),
(221, 0, 'block_myprofile', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403746),
(222, 0, 'block_myprofile', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403746),
(223, 0, 'block_navigation', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403746),
(224, 0, 'block_navigation', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403746),
(225, 0, 'block_news_items', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403746),
(226, 0, 'block_news_items', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403746),
(227, 0, 'block_online_users', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403746),
(228, 0, 'block_online_users', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403746),
(229, 0, 'block_participants', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403746),
(230, 0, 'block_participants', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403746),
(231, 0, 'block_private_files', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403746),
(232, 0, 'block_private_files', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403746),
(233, 0, 'block_quiz_results', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403746),
(234, 0, 'block_quiz_results', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403746),
(235, 0, 'block_recent_activity', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403746),
(236, 0, 'block_recent_activity', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403747),
(237, 0, 'block_rss_client', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403747),
(238, 0, 'block_rss_client', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403747),
(239, 0, 'block_search_forums', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403747),
(240, 0, 'block_search_forums', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403747),
(241, 0, 'block_section_links', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403747),
(242, 0, 'block_section_links', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403747),
(243, 0, 'block_selfcompletion', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403747),
(244, 0, 'block_selfcompletion', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403747),
(245, 0, 'block_settings', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403747),
(246, 0, 'block_settings', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403747),
(247, 0, 'block_site_main_menu', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403747),
(248, 0, 'block_site_main_menu', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403747),
(249, 0, 'block_social_activities', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403747),
(250, 0, 'block_social_activities', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403747),
(251, 0, 'block_tag_flickr', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403747),
(252, 0, 'block_tag_flickr', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403748),
(253, 0, 'block_tag_youtube', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403748),
(254, 0, 'block_tag_youtube', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403748),
(255, 0, 'block_tags', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403748),
(256, 0, 'block_tags', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403748),
(257, 0, 'filter_activitynames', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403748),
(258, 0, 'filter_activitynames', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403748),
(259, 0, 'filter_activitynames', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403748),
(260, 0, 'filter_algebra', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403748),
(261, 0, 'filter_algebra', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403748),
(262, 0, 'filter_algebra', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403748),
(263, 0, 'filter_censor', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403748),
(264, 0, 'filter_censor', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403748),
(265, 0, 'filter_censor', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403749),
(266, 0, 'filter_data', NULL, '2011102800', 'Starting plugin installation', NULL, '', 0, 1379403749),
(267, 0, 'filter_data', '2011102800', '2011102800', 'Upgrade savepoint reached', NULL, '', 0, 1379403749),
(268, 0, 'filter_data', '2011102800', '2011102800', 'Plugin installed', NULL, '', 0, 1379403749),
(269, 0, 'filter_emailprotect', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403749),
(270, 0, 'filter_emailprotect', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403749),
(271, 0, 'filter_emailprotect', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403749),
(272, 0, 'filter_emoticon', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403749),
(273, 0, 'filter_emoticon', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403749),
(274, 0, 'filter_emoticon', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403749),
(275, 0, 'filter_glossary', NULL, '2011102801', 'Starting plugin installation', NULL, '', 0, 1379403749),
(276, 0, 'filter_glossary', '2011102801', '2011102801', 'Upgrade savepoint reached', NULL, '', 0, 1379403749),
(277, 0, 'filter_glossary', '2011102801', '2011102801', 'Plugin installed', NULL, '', 0, 1379403749),
(278, 0, 'filter_mediaplugin', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403749),
(279, 0, 'filter_mediaplugin', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403749),
(280, 0, 'filter_mediaplugin', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403749),
(281, 0, 'filter_multilang', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403749),
(282, 0, 'filter_multilang', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403749),
(283, 0, 'filter_multilang', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403749),
(284, 0, 'filter_tex', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403749),
(285, 0, 'filter_tex', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403749),
(286, 0, 'filter_tex', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403749),
(287, 0, 'filter_tidy', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403749),
(288, 0, 'filter_tidy', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403749),
(289, 0, 'filter_tidy', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403749),
(290, 0, 'filter_urltolink', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403749),
(291, 0, 'filter_urltolink', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403750),
(292, 0, 'filter_urltolink', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403750),
(293, 0, 'editor_textarea', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403750),
(294, 0, 'editor_textarea', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403750),
(295, 0, 'editor_textarea', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403750),
(296, 0, 'editor_tinymce', NULL, '2012030300', 'Starting plugin installation', NULL, '', 0, 1379403750),
(297, 0, 'editor_tinymce', '2012030300', '2012030300', 'Upgrade savepoint reached', NULL, '', 0, 1379403750),
(298, 0, 'editor_tinymce', '2012030300', '2012030300', 'Plugin installed', NULL, '', 0, 1379403750),
(299, 0, 'format_scorm', NULL, '2011120100', 'Starting plugin installation', NULL, '', 0, 1379403750),
(300, 0, 'format_scorm', '2011120100', '2011120100', 'Upgrade savepoint reached', NULL, '', 0, 1379403750),
(301, 0, 'format_scorm', '2011120100', '2011120100', 'Plugin installed', NULL, '', 0, 1379403750),
(302, 0, 'format_social', NULL, '2011120100', 'Starting plugin installation', NULL, '', 0, 1379403750),
(303, 0, 'format_social', '2011120100', '2011120100', 'Upgrade savepoint reached', NULL, '', 0, 1379403750),
(304, 0, 'format_social', '2011120100', '2011120100', 'Plugin installed', NULL, '', 0, 1379403750),
(305, 0, 'format_topics', NULL, '2011120100', 'Starting plugin installation', NULL, '', 0, 1379403750),
(306, 0, 'format_topics', '2011120100', '2011120100', 'Upgrade savepoint reached', NULL, '', 0, 1379403750),
(307, 0, 'format_topics', '2011120100', '2011120100', 'Plugin installed', NULL, '', 0, 1379403750),
(308, 0, 'format_weeks', NULL, '2011120100', 'Starting plugin installation', NULL, '', 0, 1379403750),
(309, 0, 'format_weeks', '2011120100', '2011120100', 'Upgrade savepoint reached', NULL, '', 0, 1379403750),
(310, 0, 'format_weeks', '2011120100', '2011120100', 'Plugin installed', NULL, '', 0, 1379403750),
(311, 0, 'profilefield_checkbox', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403750),
(312, 0, 'profilefield_checkbox', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403750),
(313, 0, 'profilefield_checkbox', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403750),
(314, 0, 'profilefield_datetime', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403750),
(315, 0, 'profilefield_datetime', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403750),
(316, 0, 'profilefield_datetime', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403750),
(317, 0, 'profilefield_menu', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403751),
(318, 0, 'profilefield_menu', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403751),
(319, 0, 'profilefield_menu', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403751),
(320, 0, 'profilefield_text', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403751),
(321, 0, 'profilefield_text', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403751),
(322, 0, 'profilefield_text', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403751),
(323, 0, 'profilefield_textarea', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403751),
(324, 0, 'profilefield_textarea', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403751),
(325, 0, 'profilefield_textarea', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403751),
(326, 0, 'report_backups', NULL, '2011110300', 'Starting plugin installation', NULL, '', 0, 1379403751),
(327, 0, 'report_backups', '2011110300', '2011110300', 'Upgrade savepoint reached', NULL, '', 0, 1379403751),
(328, 0, 'report_backups', '2011110300', '2011110300', 'Plugin installed', NULL, '', 0, 1379403751),
(329, 0, 'report_completion', NULL, '2011110300', 'Starting plugin installation', NULL, '', 0, 1379403751),
(330, 0, 'report_completion', '2011110300', '2011110300', 'Upgrade savepoint reached', NULL, '', 0, 1379403751),
(331, 0, 'report_completion', '2011110300', '2011110300', 'Plugin installed', NULL, '', 0, 1379403751),
(332, 0, 'report_configlog', NULL, '2011110300', 'Starting plugin installation', NULL, '', 0, 1379403751),
(333, 0, 'report_configlog', '2011110300', '2011110300', 'Upgrade savepoint reached', NULL, '', 0, 1379403751),
(334, 0, 'report_configlog', '2011110300', '2011110300', 'Plugin installed', NULL, '', 0, 1379403751),
(335, 0, 'report_courseoverview', NULL, '2011110300', 'Starting plugin installation', NULL, '', 0, 1379403751),
(336, 0, 'report_courseoverview', '2011110300', '2011110300', 'Upgrade savepoint reached', NULL, '', 0, 1379403751),
(337, 0, 'report_courseoverview', '2011110300', '2011110300', 'Plugin installed', NULL, '', 0, 1379403751),
(338, 0, 'report_log', NULL, '2011110300', 'Starting plugin installation', NULL, '', 0, 1379403751),
(339, 0, 'report_log', '2011110300', '2011110300', 'Upgrade savepoint reached', NULL, '', 0, 1379403751),
(340, 0, 'report_log', '2011110300', '2011110300', 'Plugin installed', NULL, '', 0, 1379403751),
(341, 0, 'report_loglive', NULL, '2011110300', 'Starting plugin installation', NULL, '', 0, 1379403752),
(342, 0, 'report_loglive', '2011110300', '2011110300', 'Upgrade savepoint reached', NULL, '', 0, 1379403752),
(343, 0, 'report_loglive', '2011110300', '2011110300', 'Plugin installed', NULL, '', 0, 1379403752),
(344, 0, 'report_outline', NULL, '2011110300', 'Starting plugin installation', NULL, '', 0, 1379403752),
(345, 0, 'report_outline', '2011110300', '2011110300', 'Upgrade savepoint reached', NULL, '', 0, 1379403752),
(346, 0, 'report_outline', '2011110300', '2011110300', 'Plugin installed', NULL, '', 0, 1379403752),
(347, 0, 'report_participation', NULL, '2011110300', 'Starting plugin installation', NULL, '', 0, 1379403752),
(348, 0, 'report_participation', '2011110300', '2011110300', 'Upgrade savepoint reached', NULL, '', 0, 1379403752),
(349, 0, 'report_participation', '2011110300', '2011110300', 'Plugin installed', NULL, '', 0, 1379403752),
(350, 0, 'report_progress', NULL, '2011110300', 'Starting plugin installation', NULL, '', 0, 1379403752),
(351, 0, 'report_progress', '2011110300', '2011110300', 'Upgrade savepoint reached', NULL, '', 0, 1379403752),
(352, 0, 'report_progress', '2011110300', '2011110300', 'Plugin installed', NULL, '', 0, 1379403752),
(353, 0, 'report_questioninstances', NULL, '2011110300', 'Starting plugin installation', NULL, '', 0, 1379403752),
(354, 0, 'report_questioninstances', '2011110300', '2011110300', 'Upgrade savepoint reached', NULL, '', 0, 1379403752),
(355, 0, 'report_questioninstances', '2011110300', '2011110300', 'Plugin installed', NULL, '', 0, 1379403752),
(356, 0, 'report_security', NULL, '2011110300', 'Starting plugin installation', NULL, '', 0, 1379403752),
(357, 0, 'report_security', '2011110300', '2011110300', 'Upgrade savepoint reached', NULL, '', 0, 1379403752),
(358, 0, 'report_security', '2011110300', '2011110300', 'Plugin installed', NULL, '', 0, 1379403752),
(359, 0, 'report_stats', NULL, '2011110300', 'Starting plugin installation', NULL, '', 0, 1379403752),
(360, 0, 'report_stats', '2011110300', '2011110300', 'Upgrade savepoint reached', NULL, '', 0, 1379403752),
(361, 0, 'report_stats', '2011110300', '2011110300', 'Plugin installed', NULL, '', 0, 1379403753),
(362, 0, 'gradeexport_ods', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403753),
(363, 0, 'gradeexport_ods', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403753),
(364, 0, 'gradeexport_ods', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403753),
(365, 0, 'gradeexport_txt', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403753),
(366, 0, 'gradeexport_txt', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403753),
(367, 0, 'gradeexport_txt', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403753),
(368, 0, 'gradeexport_xls', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403753),
(369, 0, 'gradeexport_xls', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403753),
(370, 0, 'gradeexport_xls', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403753),
(371, 0, 'gradeexport_xml', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403753),
(372, 0, 'gradeexport_xml', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403753),
(373, 0, 'gradeexport_xml', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403753),
(374, 0, 'gradeimport_csv', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403753),
(375, 0, 'gradeimport_csv', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403753),
(376, 0, 'gradeimport_csv', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403753),
(377, 0, 'gradeimport_xml', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403753),
(378, 0, 'gradeimport_xml', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403754),
(379, 0, 'gradeimport_xml', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403754),
(380, 0, 'gradereport_grader', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403754),
(381, 0, 'gradereport_grader', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403754),
(382, 0, 'gradereport_grader', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403754),
(383, 0, 'gradereport_outcomes', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403754),
(384, 0, 'gradereport_outcomes', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403754),
(385, 0, 'gradereport_outcomes', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403754),
(386, 0, 'gradereport_overview', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403754),
(387, 0, 'gradereport_overview', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403754),
(388, 0, 'gradereport_overview', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403754),
(389, 0, 'gradereport_user', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403754),
(390, 0, 'gradereport_user', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403754),
(391, 0, 'gradereport_user', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403754),
(392, 0, 'gradingform_rubric', NULL, '2011110900', 'Starting plugin installation', NULL, '', 0, 1379403754),
(393, 0, 'gradingform_rubric', '2011110900', '2011110900', 'Upgrade savepoint reached', NULL, '', 0, 1379403755),
(394, 0, 'gradingform_rubric', '2011110900', '2011110900', 'Plugin installed', NULL, '', 0, 1379403755),
(395, 0, 'mnetservice_enrol', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403755),
(396, 0, 'mnetservice_enrol', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403756),
(397, 0, 'mnetservice_enrol', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403756),
(398, 0, 'webservice_amf', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403756),
(399, 0, 'webservice_amf', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403756),
(400, 0, 'webservice_amf', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403756),
(401, 0, 'webservice_rest', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403756),
(402, 0, 'webservice_rest', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403756),
(403, 0, 'webservice_rest', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403756),
(404, 0, 'webservice_soap', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403756),
(405, 0, 'webservice_soap', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403756),
(406, 0, 'webservice_soap', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403756),
(407, 0, 'webservice_xmlrpc', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403756),
(408, 0, 'webservice_xmlrpc', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403756),
(409, 0, 'webservice_xmlrpc', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403756),
(410, 0, 'repository_alfresco', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403756),
(411, 0, 'repository_alfresco', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403756),
(412, 0, 'repository_alfresco', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403756),
(413, 0, 'repository_boxnet', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403756),
(414, 0, 'repository_boxnet', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403756),
(415, 0, 'repository_boxnet', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403756),
(416, 0, 'repository_coursefiles', NULL, '2012010100', 'Starting plugin installation', NULL, '', 0, 1379403756),
(417, 0, 'repository_coursefiles', '2012010100', '2012010100', 'Upgrade savepoint reached', NULL, '', 0, 1379403756),
(418, 0, 'repository_coursefiles', '2012010100', '2012010100', 'Plugin installed', NULL, '', 0, 1379403756),
(419, 0, 'repository_dropbox', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403757),
(420, 0, 'repository_dropbox', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403757),
(421, 0, 'repository_dropbox', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403757),
(422, 0, 'repository_filesystem', NULL, '2012010100', 'Starting plugin installation', NULL, '', 0, 1379403757),
(423, 0, 'repository_filesystem', '2012010100', '2012010100', 'Upgrade savepoint reached', NULL, '', 0, 1379403757),
(424, 0, 'repository_filesystem', '2012010100', '2012010100', 'Plugin installed', NULL, '', 0, 1379403757),
(425, 0, 'repository_flickr', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403757),
(426, 0, 'repository_flickr', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403757),
(427, 0, 'repository_flickr', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403757),
(428, 0, 'repository_flickr_public', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403757),
(429, 0, 'repository_flickr_public', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403757),
(430, 0, 'repository_flickr_public', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403757),
(431, 0, 'repository_googledocs', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403757),
(432, 0, 'repository_googledocs', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403757),
(433, 0, 'repository_googledocs', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403757),
(434, 0, 'repository_local', NULL, '2012010100', 'Starting plugin installation', NULL, '', 0, 1379403757),
(435, 0, 'repository_local', '2012010100', '2012010100', 'Upgrade savepoint reached', NULL, '', 0, 1379403757),
(436, 0, 'repository_local', '2012010100', '2012010100', 'Plugin installed', NULL, '', 0, 1379403757),
(437, 0, 'repository_merlot', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403757),
(438, 0, 'repository_merlot', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403758),
(439, 0, 'repository_merlot', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403758),
(440, 0, 'repository_picasa', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403758),
(441, 0, 'repository_picasa', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403758),
(442, 0, 'repository_picasa', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403758),
(443, 0, 'repository_recent', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403758),
(444, 0, 'repository_recent', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403758),
(445, 0, 'repository_recent', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403758),
(446, 0, 'repository_s3', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403758),
(447, 0, 'repository_s3', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403758),
(448, 0, 'repository_s3', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403758),
(449, 0, 'repository_upload', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403758),
(450, 0, 'repository_upload', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403758),
(451, 0, 'repository_upload', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403758),
(452, 0, 'repository_url', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403758),
(453, 0, 'repository_url', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403758),
(454, 0, 'repository_url', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403758),
(455, 0, 'repository_user', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403758),
(456, 0, 'repository_user', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403758),
(457, 0, 'repository_user', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403759),
(458, 0, 'repository_webdav', NULL, '2012010100', 'Starting plugin installation', NULL, '', 0, 1379403759),
(459, 0, 'repository_webdav', '2012010100', '2012010100', 'Upgrade savepoint reached', NULL, '', 0, 1379403759),
(460, 0, 'repository_webdav', '2012010100', '2012010100', 'Plugin installed', NULL, '', 0, 1379403759),
(461, 0, 'repository_wikimedia', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403759),
(462, 0, 'repository_wikimedia', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403759),
(463, 0, 'repository_wikimedia', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403759),
(464, 0, 'repository_youtube', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403759),
(465, 0, 'repository_youtube', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403759),
(466, 0, 'repository_youtube', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403759),
(467, 0, 'portfolio_boxnet', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403759),
(468, 0, 'portfolio_boxnet', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403759),
(469, 0, 'portfolio_boxnet', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403759),
(470, 0, 'portfolio_download', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403759),
(471, 0, 'portfolio_download', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403759),
(472, 0, 'portfolio_download', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403759),
(473, 0, 'portfolio_flickr', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403759),
(474, 0, 'portfolio_flickr', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403759),
(475, 0, 'portfolio_flickr', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403759),
(476, 0, 'portfolio_googledocs', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403759),
(477, 0, 'portfolio_googledocs', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403759),
(478, 0, 'portfolio_googledocs', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403760),
(479, 0, 'portfolio_mahara', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403760),
(480, 0, 'portfolio_mahara', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403760),
(481, 0, 'portfolio_mahara', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403760);
INSERT INTO `mdl_upgrade_log` (`id`, `type`, `plugin`, `version`, `targetversion`, `info`, `details`, `backtrace`, `userid`, `timemodified`) VALUES
(482, 0, 'portfolio_picasa', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403760),
(483, 0, 'portfolio_picasa', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403760),
(484, 0, 'portfolio_picasa', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403760),
(485, 0, 'qbehaviour_adaptive', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403760),
(486, 0, 'qbehaviour_adaptive', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403760),
(487, 0, 'qbehaviour_adaptive', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403760),
(488, 0, 'qbehaviour_adaptivenopenalty', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403760),
(489, 0, 'qbehaviour_adaptivenopenalty', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403760),
(490, 0, 'qbehaviour_adaptivenopenalty', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403761),
(491, 0, 'qbehaviour_deferredcbm', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403761),
(492, 0, 'qbehaviour_deferredcbm', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403761),
(493, 0, 'qbehaviour_deferredcbm', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403761),
(494, 0, 'qbehaviour_deferredfeedback', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403761),
(495, 0, 'qbehaviour_deferredfeedback', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403761),
(496, 0, 'qbehaviour_deferredfeedback', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403761),
(497, 0, 'qbehaviour_immediatecbm', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403761),
(498, 0, 'qbehaviour_immediatecbm', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403761),
(499, 0, 'qbehaviour_immediatecbm', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403761),
(500, 0, 'qbehaviour_immediatefeedback', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403761),
(501, 0, 'qbehaviour_immediatefeedback', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403761),
(502, 0, 'qbehaviour_immediatefeedback', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403761),
(503, 0, 'qbehaviour_informationitem', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403761),
(504, 0, 'qbehaviour_informationitem', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403761),
(505, 0, 'qbehaviour_informationitem', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403761),
(506, 0, 'qbehaviour_interactive', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403761),
(507, 0, 'qbehaviour_interactive', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403761),
(508, 0, 'qbehaviour_interactive', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403761),
(509, 0, 'qbehaviour_interactivecountback', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403761),
(510, 0, 'qbehaviour_interactivecountback', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403761),
(511, 0, 'qbehaviour_interactivecountback', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403761),
(512, 0, 'qbehaviour_manualgraded', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403761),
(513, 0, 'qbehaviour_manualgraded', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403761),
(514, 0, 'qbehaviour_manualgraded', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403762),
(515, 0, 'qbehaviour_missing', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403762),
(516, 0, 'qbehaviour_missing', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403762),
(517, 0, 'qbehaviour_missing', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403762),
(518, 0, 'qformat_aiken', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403762),
(519, 0, 'qformat_aiken', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403762),
(520, 0, 'qformat_aiken', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403762),
(521, 0, 'qformat_blackboard', NULL, '2011102701', 'Starting plugin installation', NULL, '', 0, 1379403762),
(522, 0, 'qformat_blackboard', '2011102701', '2011102701', 'Upgrade savepoint reached', NULL, '', 0, 1379403762),
(523, 0, 'qformat_blackboard', '2011102701', '2011102701', 'Plugin installed', NULL, '', 0, 1379403762),
(524, 0, 'qformat_blackboard_six', NULL, '2011102701', 'Starting plugin installation', NULL, '', 0, 1379403762),
(525, 0, 'qformat_blackboard_six', '2011102701', '2011102701', 'Upgrade savepoint reached', NULL, '', 0, 1379403762),
(526, 0, 'qformat_blackboard_six', '2011102701', '2011102701', 'Plugin installed', NULL, '', 0, 1379403762),
(527, 0, 'qformat_examview', NULL, '2011102701', 'Starting plugin installation', NULL, '', 0, 1379403762),
(528, 0, 'qformat_examview', '2011102701', '2011102701', 'Upgrade savepoint reached', NULL, '', 0, 1379403762),
(529, 0, 'qformat_examview', '2011102701', '2011102701', 'Plugin installed', NULL, '', 0, 1379403762),
(530, 0, 'qformat_gift', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403762),
(531, 0, 'qformat_gift', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403762),
(532, 0, 'qformat_gift', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403762),
(533, 0, 'qformat_learnwise', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403762),
(534, 0, 'qformat_learnwise', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403762),
(535, 0, 'qformat_learnwise', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403762),
(536, 0, 'qformat_missingword', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403762),
(537, 0, 'qformat_missingword', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403762),
(538, 0, 'qformat_missingword', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403763),
(539, 0, 'qformat_multianswer', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403763),
(540, 0, 'qformat_multianswer', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403763),
(541, 0, 'qformat_multianswer', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403763),
(542, 0, 'qformat_webct', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403763),
(543, 0, 'qformat_webct', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403763),
(544, 0, 'qformat_webct', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403763),
(545, 0, 'qformat_xhtml', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403763),
(546, 0, 'qformat_xhtml', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403763),
(547, 0, 'qformat_xhtml', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403763),
(548, 0, 'qformat_xml', NULL, '2011102700', 'Starting plugin installation', NULL, '', 0, 1379403763),
(549, 0, 'qformat_xml', '2011102700', '2011102700', 'Upgrade savepoint reached', NULL, '', 0, 1379403763),
(550, 0, 'qformat_xml', '2011102700', '2011102700', 'Plugin installed', NULL, '', 0, 1379403763),
(551, 0, 'tool_bloglevelupgrade', NULL, '2011092500', 'Starting plugin installation', NULL, '', 0, 1379403763),
(552, 0, 'tool_bloglevelupgrade', '2011092500', '2011092500', 'Upgrade savepoint reached', NULL, '', 0, 1379403763),
(553, 0, 'tool_bloglevelupgrade', '2011092500', '2011092500', 'Plugin installed', NULL, '', 0, 1379403763),
(554, 0, 'tool_capability', NULL, '2011092500', 'Starting plugin installation', NULL, '', 0, 1379403763),
(555, 0, 'tool_capability', '2011092500', '2011092500', 'Upgrade savepoint reached', NULL, '', 0, 1379403763),
(556, 0, 'tool_capability', '2011092500', '2011092500', 'Plugin installed', NULL, '', 0, 1379403763),
(557, 0, 'tool_customlang', NULL, '2011092500', 'Starting plugin installation', NULL, '', 0, 1379403763),
(558, 0, 'tool_customlang', '2011092500', '2011092500', 'Upgrade savepoint reached', NULL, '', 0, 1379403764),
(559, 0, 'tool_customlang', '2011092500', '2011092500', 'Plugin installed', NULL, '', 0, 1379403764),
(560, 0, 'tool_dbtransfer', NULL, '2011092500', 'Starting plugin installation', NULL, '', 0, 1379403764),
(561, 0, 'tool_dbtransfer', '2011092500', '2011092500', 'Upgrade savepoint reached', NULL, '', 0, 1379403764),
(562, 0, 'tool_dbtransfer', '2011092500', '2011092500', 'Plugin installed', NULL, '', 0, 1379403764),
(563, 0, 'tool_generator', NULL, '2011092500', 'Starting plugin installation', NULL, '', 0, 1379403764),
(564, 0, 'tool_generator', '2011092500', '2011092500', 'Upgrade savepoint reached', NULL, '', 0, 1379403764),
(565, 0, 'tool_generator', '2011092500', '2011092500', 'Plugin installed', NULL, '', 0, 1379403764),
(566, 0, 'tool_health', NULL, '2011092500', 'Starting plugin installation', NULL, '', 0, 1379403764),
(567, 0, 'tool_health', '2011092500', '2011092500', 'Upgrade savepoint reached', NULL, '', 0, 1379403764),
(568, 0, 'tool_health', '2011092500', '2011092500', 'Plugin installed', NULL, '', 0, 1379403764),
(569, 0, 'tool_innodb', NULL, '2011092500', 'Starting plugin installation', NULL, '', 0, 1379403764),
(570, 0, 'tool_innodb', '2011092500', '2011092500', 'Upgrade savepoint reached', NULL, '', 0, 1379403764),
(571, 0, 'tool_innodb', '2011092500', '2011092500', 'Plugin installed', NULL, '', 0, 1379403764),
(572, 0, 'tool_langimport', NULL, '2011092500', 'Starting plugin installation', NULL, '', 0, 1379403764),
(573, 0, 'tool_langimport', '2011092500', '2011092500', 'Upgrade savepoint reached', NULL, '', 0, 1379403764),
(574, 0, 'tool_langimport', '2011092500', '2011092500', 'Plugin installed', NULL, '', 0, 1379403764),
(575, 0, 'tool_multilangupgrade', NULL, '2011092500', 'Starting plugin installation', NULL, '', 0, 1379403764),
(576, 0, 'tool_multilangupgrade', '2011092500', '2011092500', 'Upgrade savepoint reached', NULL, '', 0, 1379403764),
(577, 0, 'tool_multilangupgrade', '2011092500', '2011092500', 'Plugin installed', NULL, '', 0, 1379403764),
(578, 0, 'tool_profiling', NULL, '2011092500', 'Starting plugin installation', NULL, '', 0, 1379403764),
(579, 0, 'tool_profiling', '2011092500', '2011092500', 'Upgrade savepoint reached', NULL, '', 0, 1379403764),
(580, 0, 'tool_profiling', '2011092500', '2011092500', 'Plugin installed', NULL, '', 0, 1379403765),
(581, 0, 'tool_qeupgradehelper', NULL, '2011092500', 'Starting plugin installation', NULL, '', 0, 1379403765),
(582, 0, 'tool_qeupgradehelper', '2011092500', '2011092500', 'Upgrade savepoint reached', NULL, '', 0, 1379403765),
(583, 0, 'tool_qeupgradehelper', '2011092500', '2011092500', 'Plugin installed', NULL, '', 0, 1379403765),
(584, 0, 'tool_replace', NULL, '2011092500', 'Starting plugin installation', NULL, '', 0, 1379403765),
(585, 0, 'tool_replace', '2011092500', '2011092500', 'Upgrade savepoint reached', NULL, '', 0, 1379403765),
(586, 0, 'tool_replace', '2011092500', '2011092500', 'Plugin installed', NULL, '', 0, 1379403765),
(587, 0, 'tool_spamcleaner', NULL, '2011092500', 'Starting plugin installation', NULL, '', 0, 1379403765),
(588, 0, 'tool_spamcleaner', '2011092500', '2011092500', 'Upgrade savepoint reached', NULL, '', 0, 1379403765),
(589, 0, 'tool_spamcleaner', '2011092500', '2011092500', 'Plugin installed', NULL, '', 0, 1379403765),
(590, 0, 'tool_timezoneimport', NULL, '2011092500', 'Starting plugin installation', NULL, '', 0, 1379403765),
(591, 0, 'tool_timezoneimport', '2011092500', '2011092500', 'Upgrade savepoint reached', NULL, '', 0, 1379403765),
(592, 0, 'tool_timezoneimport', '2011092500', '2011092500', 'Plugin installed', NULL, '', 0, 1379403765),
(593, 0, 'tool_unittest', NULL, '2011092500', 'Starting plugin installation', NULL, '', 0, 1379403765),
(594, 0, 'tool_unittest', '2011092500', '2011092500', 'Upgrade savepoint reached', NULL, '', 0, 1379403765),
(595, 0, 'tool_unittest', '2011092500', '2011092500', 'Plugin installed', NULL, '', 0, 1379403765),
(596, 0, 'tool_unsuproles', NULL, '2011092500', 'Starting plugin installation', NULL, '', 0, 1379403765),
(597, 0, 'tool_unsuproles', '2011092500', '2011092500', 'Upgrade savepoint reached', NULL, '', 0, 1379403765),
(598, 0, 'tool_unsuproles', '2011092500', '2011092500', 'Plugin installed', NULL, '', 0, 1379403765),
(599, 0, 'tool_uploaduser', NULL, '2011092500', 'Starting plugin installation', NULL, '', 0, 1379403765),
(600, 0, 'tool_uploaduser', '2011092500', '2011092500', 'Upgrade savepoint reached', NULL, '', 0, 1379403765),
(601, 0, 'tool_uploaduser', '2011092500', '2011092500', 'Plugin installed', NULL, '', 0, 1379403765),
(602, 0, 'tool_xmldb', NULL, '2011092500', 'Starting plugin installation', NULL, '', 0, 1379403765),
(603, 0, 'tool_xmldb', '2011092500', '2011092500', 'Upgrade savepoint reached', NULL, '', 0, 1379403765),
(604, 0, 'tool_xmldb', '2011092500', '2011092500', 'Plugin installed', NULL, '', 0, 1379403766),
(605, 0, 'theme_afterburner', NULL, '2011082400', 'Starting plugin installation', NULL, '', 0, 1379403766),
(606, 0, 'theme_afterburner', '2011082400', '2011082400', 'Upgrade savepoint reached', NULL, '', 0, 1379403766),
(607, 0, 'theme_afterburner', '2011082400', '2011082400', 'Plugin installed', NULL, '', 0, 1379403766),
(608, 0, 'theme_anomaly', NULL, '2011082400', 'Starting plugin installation', NULL, '', 0, 1379403766),
(609, 0, 'theme_anomaly', '2011082400', '2011082400', 'Upgrade savepoint reached', NULL, '', 0, 1379403766),
(610, 0, 'theme_anomaly', '2011082400', '2011082400', 'Plugin installed', NULL, '', 0, 1379403766),
(611, 0, 'theme_arialist', NULL, '2011082400', 'Starting plugin installation', NULL, '', 0, 1379403766),
(612, 0, 'theme_arialist', '2011082400', '2011082400', 'Upgrade savepoint reached', NULL, '', 0, 1379403766),
(613, 0, 'theme_arialist', '2011082400', '2011082400', 'Plugin installed', NULL, '', 0, 1379403766),
(614, 0, 'theme_base', NULL, '2011082400', 'Starting plugin installation', NULL, '', 0, 1379403766),
(615, 0, 'theme_base', '2011082400', '2011082400', 'Upgrade savepoint reached', NULL, '', 0, 1379403766),
(616, 0, 'theme_base', '2011082400', '2011082400', 'Plugin installed', NULL, '', 0, 1379403766),
(617, 0, 'theme_binarius', NULL, '2011082400', 'Starting plugin installation', NULL, '', 0, 1379403766),
(618, 0, 'theme_binarius', '2011082400', '2011082400', 'Upgrade savepoint reached', NULL, '', 0, 1379403766),
(619, 0, 'theme_binarius', '2011082400', '2011082400', 'Plugin installed', NULL, '', 0, 1379403766),
(620, 0, 'theme_boxxie', NULL, '2011082400', 'Starting plugin installation', NULL, '', 0, 1379403766),
(621, 0, 'theme_boxxie', '2011082400', '2011082400', 'Upgrade savepoint reached', NULL, '', 0, 1379403766),
(622, 0, 'theme_boxxie', '2011082400', '2011082400', 'Plugin installed', NULL, '', 0, 1379403766),
(623, 0, 'theme_brick', NULL, '2011082400', 'Starting plugin installation', NULL, '', 0, 1379403766),
(624, 0, 'theme_brick', '2011082400', '2011082400', 'Upgrade savepoint reached', NULL, '', 0, 1379403766),
(625, 0, 'theme_brick', '2011082400', '2011082400', 'Plugin installed', NULL, '', 0, 1379403766),
(626, 0, 'theme_canvas', NULL, '2011082400', 'Starting plugin installation', NULL, '', 0, 1379403766),
(627, 0, 'theme_canvas', '2011082400', '2011082400', 'Upgrade savepoint reached', NULL, '', 0, 1379403766),
(628, 0, 'theme_canvas', '2011082400', '2011082400', 'Plugin installed', NULL, '', 0, 1379403766),
(629, 0, 'theme_formal_white', NULL, '2011082400', 'Starting plugin installation', NULL, '', 0, 1379403766),
(630, 0, 'theme_formal_white', '2011082400', '2011082400', 'Upgrade savepoint reached', NULL, '', 0, 1379403766),
(631, 0, 'theme_formal_white', '2011082400', '2011082400', 'Plugin installed', NULL, '', 0, 1379403767),
(632, 0, 'theme_formfactor', NULL, '2011082400', 'Starting plugin installation', NULL, '', 0, 1379403767),
(633, 0, 'theme_formfactor', '2011082400', '2011082400', 'Upgrade savepoint reached', NULL, '', 0, 1379403767),
(634, 0, 'theme_formfactor', '2011082400', '2011082400', 'Plugin installed', NULL, '', 0, 1379403767),
(635, 0, 'theme_fusion', NULL, '2011082400', 'Starting plugin installation', NULL, '', 0, 1379403767),
(636, 0, 'theme_fusion', '2011082400', '2011082400', 'Upgrade savepoint reached', NULL, '', 0, 1379403767),
(637, 0, 'theme_fusion', '2011082400', '2011082400', 'Plugin installed', NULL, '', 0, 1379403767),
(638, 0, 'theme_leatherbound', NULL, '2011082400', 'Starting plugin installation', NULL, '', 0, 1379403767),
(639, 0, 'theme_leatherbound', '2011082400', '2011082400', 'Upgrade savepoint reached', NULL, '', 0, 1379403767),
(640, 0, 'theme_leatherbound', '2011082400', '2011082400', 'Plugin installed', NULL, '', 0, 1379403767),
(641, 0, 'theme_magazine', NULL, '2011082400', 'Starting plugin installation', NULL, '', 0, 1379403767),
(642, 0, 'theme_magazine', '2011082400', '2011082400', 'Upgrade savepoint reached', NULL, '', 0, 1379403767),
(643, 0, 'theme_magazine', '2011082400', '2011082400', 'Plugin installed', NULL, '', 0, 1379403767),
(644, 0, 'theme_mymobile', NULL, '2011101801', 'Starting plugin installation', NULL, '', 0, 1379403767),
(645, 0, 'theme_mymobile', '2011101801', '2011101801', 'Upgrade savepoint reached', NULL, '', 0, 1379403767),
(646, 0, 'theme_mymobile', '2011101801', '2011101801', 'Plugin installed', NULL, '', 0, 1379403767),
(647, 0, 'theme_nimble', NULL, '2011082400', 'Starting plugin installation', NULL, '', 0, 1379403767),
(648, 0, 'theme_nimble', '2011082400', '2011082400', 'Upgrade savepoint reached', NULL, '', 0, 1379403767),
(649, 0, 'theme_nimble', '2011082400', '2011082400', 'Plugin installed', NULL, '', 0, 1379403767),
(650, 0, 'theme_nonzero', NULL, '2011082400', 'Starting plugin installation', NULL, '', 0, 1379403767),
(651, 0, 'theme_nonzero', '2011082400', '2011082400', 'Upgrade savepoint reached', NULL, '', 0, 1379403767),
(652, 0, 'theme_nonzero', '2011082400', '2011082400', 'Plugin installed', NULL, '', 0, 1379403767),
(653, 0, 'theme_overlay', NULL, '2011082400', 'Starting plugin installation', NULL, '', 0, 1379403767),
(654, 0, 'theme_overlay', '2011082400', '2011082400', 'Upgrade savepoint reached', NULL, '', 0, 1379403767),
(655, 0, 'theme_overlay', '2011082400', '2011082400', 'Plugin installed', NULL, '', 0, 1379403767),
(656, 0, 'theme_serenity', NULL, '2011082400', 'Starting plugin installation', NULL, '', 0, 1379403767),
(657, 0, 'theme_serenity', '2011082400', '2011082400', 'Upgrade savepoint reached', NULL, '', 0, 1379403768),
(658, 0, 'theme_serenity', '2011082400', '2011082400', 'Plugin installed', NULL, '', 0, 1379403768),
(659, 0, 'theme_sky_high', NULL, '2011082400', 'Starting plugin installation', NULL, '', 0, 1379403768),
(660, 0, 'theme_sky_high', '2011082400', '2011082400', 'Upgrade savepoint reached', NULL, '', 0, 1379403768),
(661, 0, 'theme_sky_high', '2011082400', '2011082400', 'Plugin installed', NULL, '', 0, 1379403768),
(662, 0, 'theme_splash', NULL, '2011082400', 'Starting plugin installation', NULL, '', 0, 1379403768),
(663, 0, 'theme_splash', '2011082400', '2011082400', 'Upgrade savepoint reached', NULL, '', 0, 1379403768),
(664, 0, 'theme_splash', '2011082400', '2011082400', 'Plugin installed', NULL, '', 0, 1379403768),
(665, 0, 'theme_standard', NULL, '2011082400', 'Starting plugin installation', NULL, '', 0, 1379403768),
(666, 0, 'theme_standard', '2011082400', '2011082400', 'Upgrade savepoint reached', NULL, '', 0, 1379403768),
(667, 0, 'theme_standard', '2011082400', '2011082400', 'Plugin installed', NULL, '', 0, 1379403768),
(668, 0, 'theme_standardold', NULL, '2011082400', 'Starting plugin installation', NULL, '', 0, 1379403768),
(669, 0, 'theme_standardold', '2011082400', '2011082400', 'Upgrade savepoint reached', NULL, '', 0, 1379403768),
(670, 0, 'theme_standardold', '2011082400', '2011082400', 'Plugin installed', NULL, '', 0, 1379403768),
(671, 0, 'assignment_offline', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403768),
(672, 0, 'assignment_offline', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403768),
(673, 0, 'assignment_offline', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403768),
(674, 0, 'assignment_online', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403768),
(675, 0, 'assignment_online', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403768),
(676, 0, 'assignment_online', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403768),
(677, 0, 'assignment_upload', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403768),
(678, 0, 'assignment_upload', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403768),
(679, 0, 'assignment_upload', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403768),
(680, 0, 'assignment_uploadsingle', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403768),
(681, 0, 'assignment_uploadsingle', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403768),
(682, 0, 'assignment_uploadsingle', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403769),
(683, 0, 'datafield_checkbox', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403769),
(684, 0, 'datafield_checkbox', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403769),
(685, 0, 'datafield_checkbox', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403769),
(686, 0, 'datafield_date', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403769),
(687, 0, 'datafield_date', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403769),
(688, 0, 'datafield_date', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403769),
(689, 0, 'datafield_file', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403769),
(690, 0, 'datafield_file', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403769),
(691, 0, 'datafield_file', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403769),
(692, 0, 'datafield_latlong', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403769),
(693, 0, 'datafield_latlong', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403769),
(694, 0, 'datafield_latlong', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403769),
(695, 0, 'datafield_menu', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403769),
(696, 0, 'datafield_menu', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403769),
(697, 0, 'datafield_menu', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403769),
(698, 0, 'datafield_multimenu', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403769),
(699, 0, 'datafield_multimenu', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403769),
(700, 0, 'datafield_multimenu', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403769),
(701, 0, 'datafield_number', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403769),
(702, 0, 'datafield_number', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403769),
(703, 0, 'datafield_number', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403769),
(704, 0, 'datafield_picture', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403769),
(705, 0, 'datafield_picture', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403769),
(706, 0, 'datafield_picture', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403770),
(707, 0, 'datafield_radiobutton', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403770),
(708, 0, 'datafield_radiobutton', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403770),
(709, 0, 'datafield_radiobutton', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403770),
(710, 0, 'datafield_text', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403770),
(711, 0, 'datafield_text', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403770),
(712, 0, 'datafield_text', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403770),
(713, 0, 'datafield_textarea', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403770),
(714, 0, 'datafield_textarea', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403770),
(715, 0, 'datafield_textarea', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403770),
(716, 0, 'datafield_url', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403770),
(717, 0, 'datafield_url', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403770),
(718, 0, 'datafield_url', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403770),
(719, 0, 'datapreset_imagegallery', NULL, '2011112900', 'Starting plugin installation', NULL, '', 0, 1379403770),
(720, 0, 'datapreset_imagegallery', '2011112900', '2011112900', 'Upgrade savepoint reached', NULL, '', 0, 1379403770),
(721, 0, 'datapreset_imagegallery', '2011112900', '2011112900', 'Plugin installed', NULL, '', 0, 1379403770),
(722, 0, 'quiz_grading', NULL, '2011051200', 'Starting plugin installation', NULL, '', 0, 1379403770),
(723, 0, 'quiz_grading', '2011051200', '2011051200', 'Upgrade savepoint reached', NULL, '', 0, 1379403770),
(724, 0, 'quiz_grading', '2011051200', '2011051200', 'Plugin installed', NULL, '', 0, 1379403770),
(725, 0, 'quiz_overview', NULL, '2011051200', 'Starting plugin installation', NULL, '', 0, 1379403770),
(726, 0, 'quiz_overview', '2011051200', '2011051200', 'Upgrade savepoint reached', NULL, '', 0, 1379403771),
(727, 0, 'quiz_overview', '2011051200', '2011051200', 'Plugin installed', NULL, '', 0, 1379403771),
(728, 0, 'quiz_responses', NULL, '2011051200', 'Starting plugin installation', NULL, '', 0, 1379403771),
(729, 0, 'quiz_responses', '2011051200', '2011051200', 'Upgrade savepoint reached', NULL, '', 0, 1379403771),
(730, 0, 'quiz_responses', '2011051200', '2011051200', 'Plugin installed', NULL, '', 0, 1379403771),
(731, 0, 'quiz_statistics', NULL, '2011122300', 'Starting plugin installation', NULL, '', 0, 1379403771),
(732, 0, 'quiz_statistics', '2011122300', '2011122300', 'Upgrade savepoint reached', NULL, '', 0, 1379403771),
(733, 0, 'quiz_statistics', '2011122300', '2011122300', 'Plugin installed', NULL, '', 0, 1379403771),
(734, 0, 'quizaccess_delaybetweenattempts', NULL, '2011092300', 'Starting plugin installation', NULL, '', 0, 1379403771),
(735, 0, 'quizaccess_delaybetweenattempts', '2011092300', '2011092300', 'Upgrade savepoint reached', NULL, '', 0, 1379403771),
(736, 0, 'quizaccess_delaybetweenattempts', '2011092300', '2011092300', 'Plugin installed', NULL, '', 0, 1379403771),
(737, 0, 'quizaccess_ipaddress', NULL, '2011092300', 'Starting plugin installation', NULL, '', 0, 1379403771),
(738, 0, 'quizaccess_ipaddress', '2011092300', '2011092300', 'Upgrade savepoint reached', NULL, '', 0, 1379403771),
(739, 0, 'quizaccess_ipaddress', '2011092300', '2011092300', 'Plugin installed', NULL, '', 0, 1379403771),
(740, 0, 'quizaccess_numattempts', NULL, '2011092300', 'Starting plugin installation', NULL, '', 0, 1379403771),
(741, 0, 'quizaccess_numattempts', '2011092300', '2011092300', 'Upgrade savepoint reached', NULL, '', 0, 1379403771),
(742, 0, 'quizaccess_numattempts', '2011092300', '2011092300', 'Plugin installed', NULL, '', 0, 1379403771),
(743, 0, 'quizaccess_openclosedate', NULL, '2011092300', 'Starting plugin installation', NULL, '', 0, 1379403772),
(744, 0, 'quizaccess_openclosedate', '2011092300', '2011092300', 'Upgrade savepoint reached', NULL, '', 0, 1379403772),
(745, 0, 'quizaccess_openclosedate', '2011092300', '2011092300', 'Plugin installed', NULL, '', 0, 1379403772),
(746, 0, 'quizaccess_password', NULL, '2011092300', 'Starting plugin installation', NULL, '', 0, 1379403772),
(747, 0, 'quizaccess_password', '2011092300', '2011092300', 'Upgrade savepoint reached', NULL, '', 0, 1379403772),
(748, 0, 'quizaccess_password', '2011092300', '2011092300', 'Plugin installed', NULL, '', 0, 1379403772),
(749, 0, 'quizaccess_safebrowser', NULL, '2011092300', 'Starting plugin installation', NULL, '', 0, 1379403772),
(750, 0, 'quizaccess_safebrowser', '2011092300', '2011092300', 'Upgrade savepoint reached', NULL, '', 0, 1379403772),
(751, 0, 'quizaccess_safebrowser', '2011092300', '2011092300', 'Plugin installed', NULL, '', 0, 1379403772),
(752, 0, 'quizaccess_securewindow', NULL, '2011092300', 'Starting plugin installation', NULL, '', 0, 1379403772),
(753, 0, 'quizaccess_securewindow', '2011092300', '2011092300', 'Upgrade savepoint reached', NULL, '', 0, 1379403772),
(754, 0, 'quizaccess_securewindow', '2011092300', '2011092300', 'Plugin installed', NULL, '', 0, 1379403772),
(755, 0, 'quizaccess_timelimit', NULL, '2011092300', 'Starting plugin installation', NULL, '', 0, 1379403772),
(756, 0, 'quizaccess_timelimit', '2011092300', '2011092300', 'Upgrade savepoint reached', NULL, '', 0, 1379403772),
(757, 0, 'quizaccess_timelimit', '2011092300', '2011092300', 'Plugin installed', NULL, '', 0, 1379403772),
(758, 0, 'scormreport_basic', NULL, '2011071100', 'Starting plugin installation', NULL, '', 0, 1379403772),
(759, 0, 'scormreport_basic', '2011071100', '2011071100', 'Upgrade savepoint reached', NULL, '', 0, 1379403772),
(760, 0, 'scormreport_basic', '2011071100', '2011071100', 'Plugin installed', NULL, '', 0, 1379403772),
(761, 0, 'scormreport_interactions', NULL, '2011110100', 'Starting plugin installation', NULL, '', 0, 1379403772),
(762, 0, 'scormreport_interactions', '2011110100', '2011110100', 'Upgrade savepoint reached', NULL, '', 0, 1379403772),
(763, 0, 'scormreport_interactions', '2011110100', '2011110100', 'Plugin installed', NULL, '', 0, 1379403772),
(764, 0, 'workshopform_accumulative', NULL, '2010091700', 'Starting plugin installation', NULL, '', 0, 1379403772),
(765, 0, 'workshopform_accumulative', '2010091700', '2010091700', 'Upgrade savepoint reached', NULL, '', 0, 1379403773),
(766, 0, 'workshopform_accumulative', '2010091700', '2010091700', 'Plugin installed', NULL, '', 0, 1379403773),
(767, 0, 'workshopform_comments', NULL, '2010091700', 'Starting plugin installation', NULL, '', 0, 1379403773),
(768, 0, 'workshopform_comments', '2010091700', '2010091700', 'Upgrade savepoint reached', NULL, '', 0, 1379403773),
(769, 0, 'workshopform_comments', '2010091700', '2010091700', 'Plugin installed', NULL, '', 0, 1379403773),
(770, 0, 'workshopform_numerrors', NULL, '2010091700', 'Starting plugin installation', NULL, '', 0, 1379403773),
(771, 0, 'workshopform_numerrors', '2010091700', '2010091700', 'Upgrade savepoint reached', NULL, '', 0, 1379403773),
(772, 0, 'workshopform_numerrors', '2010091700', '2010091700', 'Plugin installed', NULL, '', 0, 1379403774),
(773, 0, 'workshopform_rubric', NULL, '2010091700', 'Starting plugin installation', NULL, '', 0, 1379403774),
(774, 0, 'workshopform_rubric', '2010091700', '2010091700', 'Upgrade savepoint reached', NULL, '', 0, 1379403774),
(775, 0, 'workshopform_rubric', '2010091700', '2010091700', 'Plugin installed', NULL, '', 0, 1379403774),
(776, 0, 'workshopallocation_manual', NULL, '2010090501', 'Starting plugin installation', NULL, '', 0, 1379403774),
(777, 0, 'workshopallocation_manual', '2010090501', '2010090501', 'Upgrade savepoint reached', NULL, '', 0, 1379403774),
(778, 0, 'workshopallocation_manual', '2010090501', '2010090501', 'Plugin installed', NULL, '', 0, 1379403774),
(779, 0, 'workshopallocation_random', NULL, '2010090501', 'Starting plugin installation', NULL, '', 0, 1379403774),
(780, 0, 'workshopallocation_random', '2010090501', '2010090501', 'Upgrade savepoint reached', NULL, '', 0, 1379403774),
(781, 0, 'workshopallocation_random', '2010090501', '2010090501', 'Plugin installed', NULL, '', 0, 1379403774),
(782, 0, 'workshopeval_best', NULL, '2010090501', 'Starting plugin installation', NULL, '', 0, 1379403774),
(783, 0, 'workshopeval_best', '2010090501', '2010090501', 'Upgrade savepoint reached', NULL, '', 0, 1379403774),
(784, 0, 'workshopeval_best', '2010090501', '2010090501', 'Plugin installed', NULL, '', 0, 1379403775);

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_url`
--

CREATE TABLE IF NOT EXISTS `mdl_url` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` bigint(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `intro` text,
  `introformat` smallint(4) unsigned NOT NULL DEFAULT '0',
  `externalurl` text NOT NULL,
  `display` smallint(4) unsigned NOT NULL DEFAULT '0',
  `displayoptions` text,
  `parameters` text,
  `timemodified` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_user_enrolments`
--

CREATE TABLE IF NOT EXISTS `mdl_user_enrolments` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `status` bigint(10) unsigned NOT NULL DEFAULT '0',
  `enrolid` bigint(10) unsigned NOT NULL,
  `userid` bigint(10) unsigned NOT NULL,
  `timestart` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timeend` bigint(10) unsigned NOT NULL DEFAULT '2147483647',
  `modifierid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timecreated` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_user_info_category`
--

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

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_user_info_data`
--

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

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_user_info_field`
--

CREATE TABLE IF NOT EXISTS `mdl_user_info_field` (
  `id` bigint(10) unsigned 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) unsigned NOT NULL DEFAULT '0',
  `categoryid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `sortorder` bigint(10) unsigned NOT NULL DEFAULT '0',
  `required` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `locked` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `visible` smallint(4) unsigned NOT NULL DEFAULT '0',
  `forceunique` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `signup` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `defaultdata` longtext,
  `defaultdataformat` tinyint(2) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_user_lastaccess`
--

CREATE TABLE IF NOT EXISTS `mdl_user_lastaccess` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `courseid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timeaccess` bigint(10) unsigned NOT NULL DEFAULT '0',
  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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_user_preferences`
--

CREATE TABLE IF NOT EXISTS `mdl_user_preferences` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) unsigned 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 DEFAULT CHARSET=utf8 COMMENT='Allows modules to store arbitrary user preferences' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_user_private_key`
--

CREATE TABLE IF NOT EXISTS `mdl_user_private_key` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `script` varchar(128) NOT NULL DEFAULT '',
  `value` varchar(128) NOT NULL DEFAULT '',
  `userid` bigint(10) unsigned NOT NULL,
  `instance` bigint(10) unsigned DEFAULT NULL,
  `iprestriction` varchar(255) DEFAULT NULL,
  `validuntil` bigint(10) unsigned DEFAULT NULL,
  `timecreated` bigint(10) unsigned 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.' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_wiki`
--

CREATE TABLE IF NOT EXISTS `mdl_wiki` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` bigint(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT 'Wiki',
  `intro` mediumtext,
  `introformat` smallint(4) unsigned NOT NULL DEFAULT '0',
  `timecreated` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` bigint(10) unsigned 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) unsigned NOT NULL DEFAULT '1',
  `editbegin` bigint(10) unsigned NOT NULL DEFAULT '0',
  `editend` bigint(10) unsigned DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_wiki_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores Wiki activity configuration' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_wiki_links`
--

CREATE TABLE IF NOT EXISTS `mdl_wiki_links` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `subwikiid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `frompageid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `topageid` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_wiki_locks`
--

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

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_wiki_pages`
--

CREATE TABLE IF NOT EXISTS `mdl_wiki_pages` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `subwikiid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `title` varchar(255) NOT NULL DEFAULT 'title',
  `cachedcontent` mediumtext NOT NULL,
  `timecreated` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timerendered` bigint(10) unsigned NOT NULL DEFAULT '0',
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `pageviews` bigint(10) unsigned NOT NULL DEFAULT '0',
  `readonly` tinyint(1) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_wiki_subwikis`
--

CREATE TABLE IF NOT EXISTS `mdl_wiki_subwikis` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `wikiid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `groupid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `userid` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_wiki_synonyms`
--

CREATE TABLE IF NOT EXISTS `mdl_wiki_synonyms` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `subwikiid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `pageid` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_wiki_versions`
--

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

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_workshop`
--

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

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_workshopeval_best_settings`
--

CREATE TABLE IF NOT EXISTS `mdl_workshopeval_best_settings` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) unsigned NOT NULL,
  `comparison` smallint(3) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_workshopform_accumulative`
--

CREATE TABLE IF NOT EXISTS `mdl_workshopform_accumulative` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) unsigned NOT NULL,
  `sort` bigint(10) unsigned DEFAULT '0',
  `description` longtext,
  `descriptionformat` smallint(3) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_workshopform_comments`
--

CREATE TABLE IF NOT EXISTS `mdl_workshopform_comments` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) unsigned NOT NULL,
  `sort` bigint(10) unsigned DEFAULT '0',
  `description` longtext,
  `descriptionformat` smallint(3) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_workshopform_numerrors`
--

CREATE TABLE IF NOT EXISTS `mdl_workshopform_numerrors` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) unsigned NOT NULL,
  `sort` bigint(10) unsigned DEFAULT '0',
  `description` longtext,
  `descriptionformat` smallint(3) unsigned DEFAULT '0',
  `descriptiontrust` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_workshopform_numerrors_map`
--

CREATE TABLE IF NOT EXISTS `mdl_workshopform_numerrors_map` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) unsigned NOT NULL,
  `nonegative` bigint(10) unsigned NOT NULL,
  `grade` decimal(10,5) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_workshopform_rubric`
--

CREATE TABLE IF NOT EXISTS `mdl_workshopform_rubric` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) unsigned NOT NULL,
  `sort` bigint(10) unsigned DEFAULT '0',
  `description` longtext,
  `descriptionformat` smallint(3) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_workshopform_rubric_config`
--

CREATE TABLE IF NOT EXISTS `mdl_workshopform_rubric_config` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_workshopform_rubric_levels`
--

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

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_workshop_aggregations`
--

CREATE TABLE IF NOT EXISTS `mdl_workshop_aggregations` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) unsigned NOT NULL,
  `userid` bigint(10) unsigned NOT NULL,
  `gradinggrade` decimal(10,5) unsigned DEFAULT NULL,
  `timegraded` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_workshop_assessments`
--

CREATE TABLE IF NOT EXISTS `mdl_workshop_assessments` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `submissionid` bigint(10) unsigned NOT NULL,
  `reviewerid` bigint(10) unsigned NOT NULL,
  `weight` bigint(10) unsigned NOT NULL DEFAULT '1',
  `timecreated` bigint(10) unsigned DEFAULT '0',
  `timemodified` bigint(10) unsigned DEFAULT '0',
  `grade` decimal(10,5) unsigned DEFAULT NULL,
  `gradinggrade` decimal(10,5) unsigned DEFAULT NULL,
  `gradinggradeover` decimal(10,5) unsigned DEFAULT NULL,
  `gradinggradeoverby` bigint(10) unsigned DEFAULT NULL,
  `feedbackauthor` longtext,
  `feedbackauthorformat` smallint(3) unsigned DEFAULT '0',
  `feedbackreviewer` longtext,
  `feedbackreviewerformat` smallint(3) unsigned 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 ' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_workshop_assessments_old`
--

CREATE TABLE IF NOT EXISTS `mdl_workshop_assessments_old` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `submissionid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timecreated` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timegraded` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timeagreed` bigint(10) unsigned NOT NULL DEFAULT '0',
  `grade` double NOT NULL DEFAULT '0',
  `gradinggrade` smallint(3) NOT NULL DEFAULT '0',
  `teachergraded` smallint(3) unsigned NOT NULL DEFAULT '0',
  `mailed` smallint(3) unsigned NOT NULL DEFAULT '0',
  `resubmission` smallint(3) unsigned NOT NULL DEFAULT '0',
  `donotuse` smallint(3) unsigned NOT NULL DEFAULT '0',
  `generalcomment` text,
  `teachercomment` text,
  `newplugin` varchar(28) DEFAULT NULL,
  `newid` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_workshop_comments_old`
--

CREATE TABLE IF NOT EXISTS `mdl_workshop_comments_old` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `assessmentid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timecreated` bigint(10) unsigned NOT NULL DEFAULT '0',
  `mailed` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `comments` text NOT NULL,
  `newplugin` varchar(28) DEFAULT NULL,
  `newid` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_workshop_elements_old`
--

CREATE TABLE IF NOT EXISTS `mdl_workshop_elements_old` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `elementno` smallint(3) unsigned NOT NULL DEFAULT '0',
  `description` text NOT NULL,
  `scale` smallint(3) unsigned NOT NULL DEFAULT '0',
  `maxscore` smallint(3) unsigned NOT NULL DEFAULT '1',
  `weight` smallint(3) unsigned NOT NULL DEFAULT '11',
  `stddev` double NOT NULL DEFAULT '0',
  `totalassessments` bigint(10) NOT NULL DEFAULT '0',
  `newplugin` varchar(28) DEFAULT NULL,
  `newid` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_workshop_grades`
--

CREATE TABLE IF NOT EXISTS `mdl_workshop_grades` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `assessmentid` bigint(10) unsigned NOT NULL,
  `strategy` varchar(30) NOT NULL DEFAULT '',
  `dimensionid` bigint(10) unsigned NOT NULL,
  `grade` decimal(10,5) unsigned 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 ' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_workshop_grades_old`
--

CREATE TABLE IF NOT EXISTS `mdl_workshop_grades_old` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `assessmentid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `elementno` bigint(10) unsigned NOT NULL DEFAULT '0',
  `feedback` text NOT NULL,
  `grade` smallint(3) NOT NULL DEFAULT '0',
  `newplugin` varchar(28) DEFAULT NULL,
  `newid` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_workshop_rubrics_old`
--

CREATE TABLE IF NOT EXISTS `mdl_workshop_rubrics_old` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `elementno` bigint(10) unsigned NOT NULL DEFAULT '0',
  `rubricno` smallint(3) unsigned NOT NULL DEFAULT '0',
  `description` text NOT NULL,
  `newplugin` varchar(28) DEFAULT NULL,
  `newid` bigint(10) unsigned 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 ' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_workshop_stockcomments_old`
--

CREATE TABLE IF NOT EXISTS `mdl_workshop_stockcomments_old` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `elementno` bigint(10) unsigned NOT NULL DEFAULT '0',
  `comments` text NOT NULL,
  `newplugin` varchar(28) DEFAULT NULL,
  `newid` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_workshop_submissions`
--

CREATE TABLE IF NOT EXISTS `mdl_workshop_submissions` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) unsigned NOT NULL,
  `example` tinyint(2) unsigned DEFAULT '0',
  `authorid` bigint(10) unsigned NOT NULL,
  `timecreated` bigint(10) unsigned NOT NULL,
  `timemodified` bigint(10) unsigned NOT NULL,
  `title` varchar(255) NOT NULL DEFAULT '',
  `content` longtext,
  `contentformat` smallint(3) unsigned NOT NULL DEFAULT '0',
  `contenttrust` smallint(3) unsigned NOT NULL DEFAULT '0',
  `attachment` tinyint(2) unsigned DEFAULT '0',
  `grade` decimal(10,5) unsigned DEFAULT NULL,
  `gradeover` decimal(10,5) unsigned DEFAULT NULL,
  `gradeoverby` bigint(10) unsigned DEFAULT NULL,
  `feedbackauthor` longtext,
  `feedbackauthorformat` smallint(3) unsigned DEFAULT '0',
  `timegraded` bigint(10) unsigned DEFAULT NULL,
  `published` tinyint(2) unsigned DEFAULT '0',
  `late` tinyint(2) unsigned 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' AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `mdl_workshop_submissions_old`
--

CREATE TABLE IF NOT EXISTS `mdl_workshop_submissions_old` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `workshopid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `title` varchar(100) NOT NULL DEFAULT '',
  `timecreated` bigint(10) unsigned NOT NULL DEFAULT '0',
  `mailed` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `description` text NOT NULL,
  `gradinggrade` smallint(3) unsigned NOT NULL DEFAULT '0',
  `finalgrade` smallint(3) unsigned NOT NULL DEFAULT '0',
  `late` smallint(3) unsigned NOT NULL DEFAULT '0',
  `nassessments` bigint(10) unsigned NOT NULL DEFAULT '0',
  `newplugin` varchar(28) DEFAULT NULL,
  `newid` bigint(10) unsigned 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' AUTO_INCREMENT=1 ;

