-- http://www.phpmyadmin.net
--
-- Servidor: localhost
-- Tiempo de generación: 17-09-2013 a las 09:44:41
-- Versión del servidor: 5.5.32
-- Versión de PHP: 5.3.10-1ubuntu3.8




--
-- Base de datos: `moodle`
--

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

--
-- Estructura de tabla para la tabla `mdl_assignment`
--

CREATE TABLE IF NOT EXISTS `mdl_assignment` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` bigint(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `intro` text NOT NULL,
  `introformat` smallint(4) unsigned NOT NULL DEFAULT '0',
  `assignmenttype` varchar(50) NOT NULL DEFAULT '',
  `resubmit` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `preventlate` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `emailteachers` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `var1` bigint(10) DEFAULT '0',
  `var2` bigint(10) DEFAULT '0',
  `var3` bigint(10) DEFAULT '0',
  `var4` bigint(10) DEFAULT '0',
  `var5` bigint(10) DEFAULT '0',
  `maxbytes` bigint(10) unsigned NOT NULL DEFAULT '100000',
  `timedue` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timeavailable` bigint(10) unsigned NOT NULL DEFAULT '0',
  `grade` bigint(10) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_assi_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Defines assignments' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_assignment_submissions`
--

CREATE TABLE IF NOT EXISTS `mdl_assignment_submissions` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `assignment` bigint(10) unsigned NOT NULL DEFAULT '0',
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timecreated` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` bigint(10) unsigned NOT NULL DEFAULT '0',
  `numfiles` bigint(10) unsigned NOT NULL DEFAULT '0',
  `data1` text,
  `data2` text,
  `grade` bigint(11) NOT NULL DEFAULT '0',
  `submissioncomment` text NOT NULL,
  `format` smallint(4) unsigned NOT NULL DEFAULT '0',
  `teacher` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timemarked` bigint(10) unsigned NOT NULL DEFAULT '0',
  `mailed` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_assisubm_use_ix` (`userid`),
  KEY `mdl_assisubm_mai_ix` (`mailed`),
  KEY `mdl_assisubm_tim_ix` (`timemarked`),
  KEY `mdl_assisubm_ass_ix` (`assignment`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Info about submitted assignments' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_backup_controllers`
--

CREATE TABLE IF NOT EXISTS `mdl_backup_controllers` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `backupid` varchar(32) NOT NULL DEFAULT '',
  `operation` varchar(20) NOT NULL DEFAULT 'backup',
  `type` varchar(10) NOT NULL DEFAULT '',
  `itemid` bigint(10) unsigned NOT NULL,
  `format` varchar(20) NOT NULL DEFAULT '',
  `interactive` smallint(4) unsigned NOT NULL,
  `purpose` smallint(4) unsigned NOT NULL,
  `userid` bigint(10) unsigned NOT NULL,
  `status` smallint(4) unsigned NOT NULL,
  `execution` smallint(4) unsigned NOT NULL,
  `executiontime` bigint(10) unsigned NOT NULL,
  `checksum` varchar(32) NOT NULL DEFAULT '',
  `timecreated` bigint(10) unsigned NOT NULL,
  `timemodified` bigint(10) unsigned NOT NULL,
  `controller` longtext NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_backcont_bac_uix` (`backupid`),
  KEY `mdl_backcont_typite_ix` (`type`,`itemid`),
  KEY `mdl_backcont_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='To store the backup_controllers as they are used' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_backup_courses`
--

CREATE TABLE IF NOT EXISTS `mdl_backup_courses` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `courseid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `laststarttime` bigint(10) unsigned NOT NULL DEFAULT '0',
  `lastendtime` bigint(10) unsigned NOT NULL DEFAULT '0',
  `laststatus` varchar(1) NOT NULL DEFAULT '0',
  `nextstarttime` bigint(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_backcour_cou_uix` (`courseid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='To store every course backup status' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_backup_files_template`
--

CREATE TABLE IF NOT EXISTS `mdl_backup_files_template` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `backupid` varchar(32) NOT NULL DEFAULT '',
  `contextid` bigint(10) unsigned NOT NULL,
  `component` varchar(100) NOT NULL DEFAULT '',
  `filearea` varchar(50) NOT NULL DEFAULT '',
  `itemid` bigint(10) unsigned NOT NULL,
  `info` mediumtext,
  PRIMARY KEY (`id`),
  KEY `mdl_backfiletemp_bacconcomf_ix` (`backupid`,`contextid`,`component`,`filearea`,`itemid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='To store files along the backup process. Note this table isn' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_backup_ids_template`
--

CREATE TABLE IF NOT EXISTS `mdl_backup_ids_template` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `backupid` varchar(32) NOT NULL DEFAULT '',
  `itemname` varchar(160) NOT NULL DEFAULT '',
  `itemid` bigint(10) unsigned NOT NULL,
  `newitemid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `parentitemid` bigint(10) unsigned DEFAULT NULL,
  `info` mediumtext,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_backidstemp_baciteite_uix` (`backupid`,`itemname`,`itemid`),
  KEY `mdl_backidstemp_bacitepar_ix` (`backupid`,`itemname`,`parentitemid`),
  KEY `mdl_backidstemp_bacitenew_ix` (`backupid`,`itemname`,`newitemid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='To store all sort of ids along the backup process. Note this' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_backup_logs`
--

CREATE TABLE IF NOT EXISTS `mdl_backup_logs` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `backupid` varchar(32) NOT NULL DEFAULT '',
  `loglevel` smallint(4) unsigned NOT NULL,
  `message` varchar(255) NOT NULL DEFAULT '',
  `timecreated` bigint(10) unsigned NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_backlogs_bacid_uix` (`backupid`,`id`),
  KEY `mdl_backlogs_bac_ix` (`backupid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='To store all the logs from backup and restore operations (by' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_block`
--

CREATE TABLE IF NOT EXISTS `mdl_block` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(40) NOT NULL DEFAULT '',
  `version` bigint(10) unsigned NOT NULL DEFAULT '0',
  `cron` bigint(10) unsigned NOT NULL DEFAULT '0',
  `lastcron` bigint(10) unsigned NOT NULL DEFAULT '0',
  `visible` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_bloc_nam_uix` (`name`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COMMENT='contains all installed blocks' AUTO_INCREMENT=39 ;

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

INSERT INTO `mdl_block` (`id`, `name`, `version`, `cron`, `lastcron`, `visible`) VALUES
(1, 'activity_modules', 2011112900, 0, 0, 1),
(2, 'admin_bookmarks', 2011112900, 0, 0, 1),
(3, 'blog_menu', 2011112900, 0, 0, 1),
(4, 'blog_recent', 2011112900, 0, 0, 1),
(5, 'blog_tags', 2011112900, 0, 0, 1),
(6, 'calendar_month', 2011112900, 0, 0, 1),
(7, 'calendar_upcoming', 2011112900, 0, 0, 1),
(8, 'comments', 2011112900, 0, 0, 1),
(9, 'community', 2011112900, 0, 0, 1),
(10, 'completionstatus', 2011112900, 0, 0, 1),
(11, 'course_list', 2011112900, 0, 0, 1),
(12, 'course_overview', 2011112900, 0, 0, 1),
(13, 'course_summary', 2011112900, 0, 0, 1),
(14, 'feedback', 2011112900, 0, 0, 0),
(15, 'glossary_random', 2011112900, 0, 0, 1),
(16, 'html', 2011112900, 0, 0, 1),
(17, 'login', 2011112900, 0, 0, 1),
(18, 'mentees', 2011112900, 0, 0, 1),
(19, 'messages', 2011112900, 0, 0, 1),
(20, 'mnet_hosts', 2011112900, 0, 0, 1),
(21, 'myprofile', 2011112900, 0, 0, 1),
(22, 'navigation', 2011112900, 0, 0, 1),
(23, 'news_items', 2011112900, 0, 0, 1),
(24, 'online_users', 2011112900, 0, 0, 1),
(25, 'participants', 2011112900, 0, 0, 1),
(26, 'private_files', 2011112900, 0, 0, 1),
(27, 'quiz_results', 2011112900, 0, 0, 1),
(28, 'recent_activity', 2011112900, 0, 0, 1),
(29, 'rss_client', 2011112900, 300, 0, 1),
(30, 'search_forums', 2011112900, 0, 0, 1),
(31, 'section_links', 2011112900, 0, 0, 1),
(32, 'selfcompletion', 2011112900, 0, 0, 1),
(33, 'settings', 2011112900, 0, 0, 1),
(34, 'site_main_menu', 2011112900, 0, 0, 1),
(35, 'social_activities', 2011112900, 0, 0, 1),
(36, 'tag_flickr', 2011112900, 0, 0, 1),
(37, 'tag_youtube', 2011112900, 0, 0, 1),
(38, 'tags', 2011112900, 0, 0, 1);

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

--
-- Estructura de tabla para la tabla `mdl_block_community`
--

CREATE TABLE IF NOT EXISTS `mdl_block_community` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) unsigned NOT NULL,
  `coursename` varchar(255) NOT NULL DEFAULT '',
  `coursedescription` longtext,
  `courseurl` varchar(255) NOT NULL DEFAULT '',
  `imageurl` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Community block' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_block_instances`
--

CREATE TABLE IF NOT EXISTS `mdl_block_instances` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `blockname` varchar(40) NOT NULL DEFAULT '',
  `parentcontextid` bigint(10) unsigned NOT NULL,
  `showinsubcontexts` smallint(4) NOT NULL,
  `pagetypepattern` varchar(64) NOT NULL DEFAULT '',
  `subpagepattern` varchar(16) DEFAULT NULL,
  `defaultregion` varchar(16) NOT NULL DEFAULT '',
  `defaultweight` bigint(10) NOT NULL,
  `configdata` text,
  PRIMARY KEY (`id`),
  KEY `mdl_blocinst_parshopagsub_ix` (`parentcontextid`,`showinsubcontexts`,`pagetypepattern`,`subpagepattern`),
  KEY `mdl_blocinst_par_ix` (`parentcontextid`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COMMENT='This table stores block instances. The type of block this is' AUTO_INCREMENT=10 ;

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

INSERT INTO `mdl_block_instances` (`id`, `blockname`, `parentcontextid`, `showinsubcontexts`, `pagetypepattern`, `subpagepattern`, `defaultregion`, `defaultweight`, `configdata`) VALUES
(1, 'site_main_menu', 2, 0, 'site-index', NULL, 'side-pre', 0, ''),
(2, 'course_summary', 2, 0, 'site-index', NULL, 'side-post', 0, ''),
(3, 'calendar_month', 2, 0, 'site-index', NULL, 'side-post', 1, ''),
(4, 'navigation', 1, 1, '*', NULL, 'side-pre', 0, ''),
(5, 'settings', 1, 1, '*', NULL, 'side-pre', 1, ''),
(6, 'admin_bookmarks', 1, 0, 'admin-*', NULL, 'side-pre', 0, ''),
(7, 'private_files', 1, 0, 'my-index', '2', 'side-post', 0, ''),
(8, 'online_users', 1, 0, 'my-index', '2', 'side-post', 1, ''),
(9, 'course_overview', 1, 0, 'my-index', '2', 'content', 0, '');

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

--
-- Estructura de tabla para la tabla `mdl_block_positions`
--

CREATE TABLE IF NOT EXISTS `mdl_block_positions` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `blockinstanceid` bigint(10) unsigned NOT NULL,
  `contextid` bigint(10) unsigned NOT NULL,
  `pagetype` varchar(64) NOT NULL DEFAULT '',
  `subpage` varchar(16) NOT NULL DEFAULT '',
  `visible` smallint(4) NOT NULL,
  `region` varchar(16) NOT NULL DEFAULT '',
  `weight` bigint(10) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_blocposi_bloconpagsub_uix` (`blockinstanceid`,`contextid`,`pagetype`,`subpage`),
  KEY `mdl_blocposi_blo_ix` (`blockinstanceid`),
  KEY `mdl_blocposi_con_ix` (`contextid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores the position of a sticky block_instance on a another ' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_block_rss_client`
--

CREATE TABLE IF NOT EXISTS `mdl_block_rss_client` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `title` text NOT NULL,
  `preferredtitle` varchar(64) NOT NULL DEFAULT '',
  `description` text NOT NULL,
  `shared` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `url` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Remote news feed information. Contains the news feed id, the' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_blog_association`
--

CREATE TABLE IF NOT EXISTS `mdl_blog_association` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `contextid` bigint(10) unsigned NOT NULL,
  `blogid` bigint(10) unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_blogasso_con_ix` (`contextid`),
  KEY `mdl_blogasso_blo_ix` (`blogid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Associations of blog entries with courses and module instanc' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_blog_external`
--

CREATE TABLE IF NOT EXISTS `mdl_blog_external` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) unsigned NOT NULL,
  `name` varchar(255) NOT NULL DEFAULT '',
  `description` text,
  `url` text NOT NULL,
  `filtertags` varchar(255) DEFAULT NULL,
  `failedlastsync` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `timemodified` bigint(10) unsigned DEFAULT NULL,
  `timefetched` bigint(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_blogexte_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='External blog links used for RSS copying of blog entries to ' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_cache_filters`
--

CREATE TABLE IF NOT EXISTS `mdl_cache_filters` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `filter` varchar(32) NOT NULL DEFAULT '',
  `version` bigint(10) unsigned NOT NULL DEFAULT '0',
  `md5key` varchar(32) NOT NULL DEFAULT '',
  `rawtext` text NOT NULL,
  `timemodified` bigint(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_cachfilt_filmd5_ix` (`filter`,`md5key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='For keeping information about cached data' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_cache_flags`
--

CREATE TABLE IF NOT EXISTS `mdl_cache_flags` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `flagtype` varchar(255) NOT NULL DEFAULT '',
  `name` varchar(255) NOT NULL DEFAULT '',
  `timemodified` bigint(10) unsigned NOT NULL DEFAULT '0',
  `value` mediumtext NOT NULL,
  `expiry` bigint(10) unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_cachflag_fla_ix` (`flagtype`),
  KEY `mdl_cachflag_nam_ix` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Cache of time-sensitive flags' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_cache_text`
--

CREATE TABLE IF NOT EXISTS `mdl_cache_text` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `md5key` varchar(32) NOT NULL DEFAULT '',
  `formattedtext` longtext NOT NULL,
  `timemodified` bigint(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_cachtext_md5_ix` (`md5key`),
  KEY `mdl_cachtext_tim_ix` (`timemodified`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='For storing temporary copies of processed texts' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_capabilities`
--

CREATE TABLE IF NOT EXISTS `mdl_capabilities` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL DEFAULT '',
  `captype` varchar(50) NOT NULL DEFAULT '',
  `contextlevel` bigint(10) unsigned NOT NULL DEFAULT '0',
  `component` varchar(100) NOT NULL DEFAULT '',
  `riskbitmask` bigint(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_capa_nam_uix` (`name`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COMMENT='this defines all capabilities' AUTO_INCREMENT=380 ;

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

INSERT INTO `mdl_capabilities` (`id`, `name`, `captype`, `contextlevel`, `component`, `riskbitmask`) VALUES
(1, 'moodle/site:config', 'write', 10, 'moodle', 62),
(2, 'moodle/site:readallmessages', 'read', 10, 'moodle', 8),
(3, 'moodle/site:sendmessage', 'write', 10, 'moodle', 16),
(4, 'moodle/site:approvecourse', 'write', 10, 'moodle', 4),
(5, 'moodle/backup:backupcourse', 'write', 50, 'moodle', 28),
(6, 'moodle/backup:backupsection', 'write', 50, 'moodle', 28),
(7, 'moodle/backup:backupactivity', 'write', 70, 'moodle', 28),
(8, 'moodle/backup:backuptargethub', 'write', 50, 'moodle', 28),
(9, 'moodle/backup:backuptargetimport', 'write', 50, 'moodle', 28),
(10, 'moodle/backup:downloadfile', 'write', 50, 'moodle', 28),
(11, 'moodle/backup:configure', 'write', 50, 'moodle', 28),
(12, 'moodle/backup:userinfo', 'read', 50, 'moodle', 8),
(13, 'moodle/backup:anonymise', 'read', 50, 'moodle', 8),
(14, 'moodle/restore:restorecourse', 'write', 50, 'moodle', 28),
(15, 'moodle/restore:restoresection', 'write', 50, 'moodle', 28),
(16, 'moodle/restore:restoreactivity', 'write', 50, 'moodle', 28),
(17, 'moodle/restore:viewautomatedfilearea', 'write', 50, 'moodle', 28),
(18, 'moodle/restore:restoretargethub', 'write', 50, 'moodle', 28),
(19, 'moodle/restore:restoretargetimport', 'write', 50, 'moodle', 28),
(20, 'moodle/restore:uploadfile', 'write', 50, 'moodle', 28),
(21, 'moodle/restore:configure', 'write', 50, 'moodle', 28),
(22, 'moodle/restore:rolldates', 'write', 50, 'moodle', 0),
(23, 'moodle/restore:userinfo', 'write', 50, 'moodle', 30),
(24, 'moodle/restore:createuser', 'write', 10, 'moodle', 24),
(25, 'moodle/site:manageblocks', 'write', 80, 'moodle', 20),
(26, 'moodle/site:accessallgroups', 'read', 50, 'moodle', 0),
(27, 'moodle/site:viewfullnames', 'read', 50, 'moodle', 0),
(28, 'moodle/site:viewuseridentity', 'read', 50, 'moodle', 0),
(29, 'moodle/site:viewreports', 'read', 50, 'moodle', 8),
(30, 'moodle/site:trustcontent', 'write', 50, 'moodle', 4),
(31, 'moodle/site:uploadusers', 'write', 10, 'moodle', 24),
(32, 'moodle/filter:manage', 'write', 50, 'moodle', 0),
(33, 'moodle/user:create', 'write', 10, 'moodle', 24),
(34, 'moodle/user:delete', 'write', 10, 'moodle', 8),
(35, 'moodle/user:update', 'write', 10, 'moodle', 24),
(36, 'moodle/user:viewdetails', 'read', 50, 'moodle', 0),
(37, 'moodle/user:viewalldetails', 'read', 30, 'moodle', 8),
(38, 'moodle/user:viewhiddendetails', 'read', 50, 'moodle', 8),
(39, 'moodle/user:loginas', 'write', 50, 'moodle', 30),
(40, 'moodle/user:managesyspages', 'write', 10, 'moodle', 0),
(41, 'moodle/user:manageblocks', 'write', 30, 'moodle', 0),
(42, 'moodle/user:manageownblocks', 'write', 10, 'moodle', 0),
(43, 'moodle/user:manageownfiles', 'write', 10, 'moodle', 0),
(44, 'moodle/my:configsyspages', 'write', 10, 'moodle', 0),
(45, 'moodle/role:assign', 'write', 50, 'moodle', 28),
(46, 'moodle/role:review', 'read', 50, 'moodle', 8),
(47, 'moodle/role:override', 'write', 50, 'moodle', 28),
(48, 'moodle/role:safeoverride', 'write', 50, 'moodle', 16),
(49, 'moodle/role:manage', 'write', 10, 'moodle', 28),
(50, 'moodle/role:switchroles', 'read', 50, 'moodle', 12),
(51, 'moodle/category:manage', 'write', 40, 'moodle', 4),
(52, 'moodle/category:viewhiddencategories', 'read', 40, 'moodle', 0),
(53, 'moodle/cohort:manage', 'write', 40, 'moodle', 0),
(54, 'moodle/cohort:assign', 'write', 40, 'moodle', 0),
(55, 'moodle/cohort:view', 'read', 50, 'moodle', 0),
(56, 'moodle/course:create', 'write', 40, 'moodle', 4),
(57, 'moodle/course:request', 'write', 10, 'moodle', 0),
(58, 'moodle/course:delete', 'write', 50, 'moodle', 32),
(59, 'moodle/course:update', 'write', 50, 'moodle', 4),
(60, 'moodle/course:view', 'read', 50, 'moodle', 0),
(61, 'moodle/course:enrolreview', 'read', 50, 'moodle', 8),
(62, 'moodle/course:enrolconfig', 'write', 50, 'moodle', 8),
(63, 'moodle/course:bulkmessaging', 'write', 50, 'moodle', 16),
(64, 'moodle/course:viewhiddenuserfields', 'read', 50, 'moodle', 8),
(65, 'moodle/course:viewhiddencourses', 'read', 50, 'moodle', 0),
(66, 'moodle/course:visibility', 'write', 50, 'moodle', 0),
(67, 'moodle/course:managefiles', 'write', 50, 'moodle', 4),
(68, 'moodle/course:manageactivities', 'write', 70, 'moodle', 4),
(69, 'moodle/course:activityvisibility', 'write', 70, 'moodle', 0),
(70, 'moodle/course:viewhiddenactivities', 'write', 70, 'moodle', 0),
(71, 'moodle/course:viewparticipants', 'read', 50, 'moodle', 0),
(72, 'moodle/course:changefullname', 'write', 50, 'moodle', 4),
(73, 'moodle/course:changeshortname', 'write', 50, 'moodle', 4),
(74, 'moodle/course:changeidnumber', 'write', 50, 'moodle', 4),
(75, 'moodle/course:changecategory', 'write', 50, 'moodle', 4),
(76, 'moodle/course:changesummary', 'write', 50, 'moodle', 4),
(77, 'moodle/site:viewparticipants', 'read', 10, 'moodle', 0),
(78, 'moodle/course:viewscales', 'read', 50, 'moodle', 0),
(79, 'moodle/course:managescales', 'write', 50, 'moodle', 0),
(80, 'moodle/course:managegroups', 'write', 50, 'moodle', 0),
(81, 'moodle/course:reset', 'write', 50, 'moodle', 32),
(82, 'moodle/blog:view', 'read', 10, 'moodle', 0),
(83, 'moodle/blog:search', 'read', 10, 'moodle', 0),
(84, 'moodle/blog:viewdrafts', 'read', 10, 'moodle', 8),
(85, 'moodle/blog:create', 'write', 10, 'moodle', 16),
(86, 'moodle/blog:manageentries', 'write', 10, 'moodle', 16),
(87, 'moodle/blog:manageexternal', 'write', 10, 'moodle', 16),
(88, 'moodle/blog:associatecourse', 'write', 50, 'moodle', 0),
(89, 'moodle/blog:associatemodule', 'write', 70, 'moodle', 0),
(90, 'moodle/calendar:manageownentries', 'write', 50, 'moodle', 16),
(91, 'moodle/calendar:managegroupentries', 'write', 50, 'moodle', 16),
(92, 'moodle/calendar:manageentries', 'write', 50, 'moodle', 16),
(93, 'moodle/user:editprofile', 'write', 30, 'moodle', 24),
(94, 'moodle/user:editownprofile', 'write', 10, 'moodle', 16),
(95, 'moodle/user:changeownpassword', 'write', 10, 'moodle', 0),
(96, 'moodle/user:readuserposts', 'read', 30, 'moodle', 0),
(97, 'moodle/user:readuserblogs', 'read', 30, 'moodle', 0),
(98, 'moodle/user:viewuseractivitiesreport', 'read', 30, 'moodle', 8),
(99, 'moodle/user:editmessageprofile', 'write', 30, 'moodle', 16),
(100, 'moodle/user:editownmessageprofile', 'write', 10, 'moodle', 0),
(101, 'moodle/question:managecategory', 'write', 50, 'moodle', 20),
(102, 'moodle/question:add', 'write', 50, 'moodle', 20),
(103, 'moodle/question:editmine', 'write', 50, 'moodle', 20),
(104, 'moodle/question:editall', 'write', 50, 'moodle', 20),
(105, 'moodle/question:viewmine', 'read', 50, 'moodle', 0),
(106, 'moodle/question:viewall', 'read', 50, 'moodle', 0),
(107, 'moodle/question:usemine', 'read', 50, 'moodle', 0),
(108, 'moodle/question:useall', 'read', 50, 'moodle', 0),
(109, 'moodle/question:movemine', 'write', 50, 'moodle', 0),
(110, 'moodle/question:moveall', 'write', 50, 'moodle', 0),
(111, 'moodle/question:config', 'write', 10, 'moodle', 2),
(112, 'moodle/question:flag', 'write', 50, 'moodle', 0),
(113, 'moodle/site:doclinks', 'read', 10, 'moodle', 0),
(114, 'moodle/course:sectionvisibility', 'write', 50, 'moodle', 0),
(115, 'moodle/course:useremail', 'write', 50, 'moodle', 0),
(116, 'moodle/course:viewhiddensections', 'write', 50, 'moodle', 0),
(117, 'moodle/course:setcurrentsection', 'write', 50, 'moodle', 0),
(118, 'moodle/site:mnetlogintoremote', 'read', 10, 'moodle', 0),
(119, 'moodle/grade:viewall', 'read', 50, 'moodle', 8),
(120, 'moodle/grade:view', 'read', 50, 'moodle', 0),
(121, 'moodle/grade:viewhidden', 'read', 50, 'moodle', 8),
(122, 'moodle/grade:import', 'write', 50, 'moodle', 12),
(123, 'moodle/grade:export', 'read', 50, 'moodle', 8),
(124, 'moodle/grade:manage', 'write', 50, 'moodle', 12),
(125, 'moodle/grade:edit', 'write', 50, 'moodle', 12),
(126, 'moodle/grade:managegradingforms', 'write', 50, 'moodle', 12),
(127, 'moodle/grade:sharegradingforms', 'write', 10, 'moodle', 4),
(128, 'moodle/grade:managesharedforms', 'write', 10, 'moodle', 4),
(129, 'moodle/grade:manageoutcomes', 'write', 50, 'moodle', 0),
(130, 'moodle/grade:manageletters', 'write', 50, 'moodle', 0),
(131, 'moodle/grade:hide', 'write', 50, 'moodle', 0),
(132, 'moodle/grade:lock', 'write', 50, 'moodle', 0),
(133, 'moodle/grade:unlock', 'write', 50, 'moodle', 0),
(134, 'moodle/my:manageblocks', 'write', 10, 'moodle', 0),
(135, 'moodle/notes:view', 'read', 50, 'moodle', 0),
(136, 'moodle/notes:manage', 'write', 50, 'moodle', 16),
(137, 'moodle/tag:manage', 'write', 10, 'moodle', 16),
(138, 'moodle/tag:create', 'write', 10, 'moodle', 16),
(139, 'moodle/tag:edit', 'write', 10, 'moodle', 16),
(140, 'moodle/tag:editblocks', 'write', 10, 'moodle', 0),
(141, 'moodle/block:view', 'read', 80, 'moodle', 0),
(142, 'moodle/block:edit', 'write', 80, 'moodle', 20),
(143, 'moodle/portfolio:export', 'read', 10, 'moodle', 0),
(144, 'moodle/comment:view', 'read', 50, 'moodle', 0),
(145, 'moodle/comment:post', 'write', 50, 'moodle', 24),
(146, 'moodle/comment:delete', 'write', 50, 'moodle', 32),
(147, 'moodle/webservice:createtoken', 'write', 10, 'moodle', 62),
(148, 'moodle/webservice:createmobiletoken', 'write', 10, 'moodle', 24),
(149, 'moodle/rating:view', 'read', 50, 'moodle', 0),
(150, 'moodle/rating:viewany', 'read', 50, 'moodle', 8),
(151, 'moodle/rating:viewall', 'read', 50, 'moodle', 8),
(152, 'moodle/rating:rate', 'write', 50, 'moodle', 0),
(153, 'moodle/course:publish', 'write', 10, 'moodle', 24),
(154, 'moodle/course:markcomplete', 'write', 50, 'moodle', 0),
(155, 'moodle/community:add', 'write', 10, 'moodle', 0),
(156, 'moodle/community:download', 'write', 10, 'moodle', 0),
(157, 'mod/assignment:view', 'read', 70, 'mod_assignment', 0),
(158, 'mod/assignment:submit', 'write', 70, 'mod_assignment', 0),
(159, 'mod/assignment:grade', 'write', 70, 'mod_assignment', 4),
(160, 'mod/assignment:exportownsubmission', 'read', 70, 'mod_assignment', 0),
(161, 'mod/chat:chat', 'write', 70, 'mod_chat', 16),
(162, 'mod/chat:readlog', 'read', 70, 'mod_chat', 0),
(163, 'mod/chat:deletelog', 'write', 70, 'mod_chat', 0),
(164, 'mod/chat:exportparticipatedsession', 'read', 70, 'mod_chat', 8),
(165, 'mod/chat:exportsession', 'read', 70, 'mod_chat', 8),
(166, 'mod/choice:choose', 'write', 70, 'mod_choice', 0),
(167, 'mod/choice:readresponses', 'read', 70, 'mod_choice', 0),
(168, 'mod/choice:deleteresponses', 'write', 70, 'mod_choice', 0),
(169, 'mod/choice:downloadresponses', 'read', 70, 'mod_choice', 0),
(170, 'mod/data:viewentry', 'read', 70, 'mod_data', 0),
(171, 'mod/data:writeentry', 'write', 70, 'mod_data', 16),
(172, 'mod/data:comment', 'write', 70, 'mod_data', 16),
(173, 'mod/data:rate', 'write', 70, 'mod_data', 0),
(174, 'mod/data:viewrating', 'read', 70, 'mod_data', 0),
(175, 'mod/data:viewanyrating', 'read', 70, 'mod_data', 8),
(176, 'mod/data:viewallratings', 'read', 70, 'mod_data', 8),
(177, 'mod/data:approve', 'write', 70, 'mod_data', 16),
(178, 'mod/data:manageentries', 'write', 70, 'mod_data', 16),
(179, 'mod/data:managecomments', 'write', 70, 'mod_data', 16),
(180, 'mod/data:managetemplates', 'write', 70, 'mod_data', 20),
(181, 'mod/data:viewalluserpresets', 'read', 70, 'mod_data', 0),
(182, 'mod/data:manageuserpresets', 'write', 70, 'mod_data', 20),
(183, 'mod/data:exportentry', 'read', 70, 'mod_data', 8),
(184, 'mod/data:exportownentry', 'read', 70, 'mod_data', 0),
(185, 'mod/data:exportallentries', 'read', 70, 'mod_data', 8),
(186, 'mod/feedback:view', 'read', 70, 'mod_feedback', 0),
(187, 'mod/feedback:complete', 'write', 70, 'mod_feedback', 16),
(188, 'mod/feedback:viewanalysepage', 'read', 70, 'mod_feedback', 8),
(189, 'mod/feedback:deletesubmissions', 'write', 70, 'mod_feedback', 0),
(190, 'mod/feedback:mapcourse', 'write', 70, 'mod_feedback', 0),
(191, 'mod/feedback:edititems', 'write', 70, 'mod_feedback', 20),
(192, 'mod/feedback:createprivatetemplate', 'write', 70, 'mod_feedback', 16),
(193, 'mod/feedback:createpublictemplate', 'write', 70, 'mod_feedback', 16),
(194, 'mod/feedback:deletetemplate', 'write', 70, 'mod_feedback', 0),
(195, 'mod/feedback:viewreports', 'read', 70, 'mod_feedback', 8),
(196, 'mod/feedback:receivemail', 'read', 70, 'mod_feedback', 8),
(197, 'mod/folder:view', 'read', 70, 'mod_folder', 0),
(198, 'mod/folder:managefiles', 'write', 70, 'mod_folder', 16),
(199, 'mod/forum:viewdiscussion', 'read', 70, 'mod_forum', 0),
(200, 'mod/forum:viewhiddentimedposts', 'read', 70, 'mod_forum', 0),
(201, 'mod/forum:startdiscussion', 'write', 70, 'mod_forum', 16),
(202, 'mod/forum:replypost', 'write', 70, 'mod_forum', 16),
(203, 'mod/forum:addnews', 'write', 70, 'mod_forum', 16),
(204, 'mod/forum:replynews', 'write', 70, 'mod_forum', 16),
(205, 'mod/forum:viewrating', 'read', 70, 'mod_forum', 0),
(206, 'mod/forum:viewanyrating', 'read', 70, 'mod_forum', 8),
(207, 'mod/forum:viewallratings', 'read', 70, 'mod_forum', 8),
(208, 'mod/forum:rate', 'write', 70, 'mod_forum', 0),
(209, 'mod/forum:createattachment', 'write', 70, 'mod_forum', 16),
(210, 'mod/forum:deleteownpost', 'read', 70, 'mod_forum', 0),
(211, 'mod/forum:deleteanypost', 'read', 70, 'mod_forum', 0),
(212, 'mod/forum:splitdiscussions', 'read', 70, 'mod_forum', 0),
(213, 'mod/forum:movediscussions', 'read', 70, 'mod_forum', 0),
(214, 'mod/forum:editanypost', 'write', 70, 'mod_forum', 16),
(215, 'mod/forum:viewqandawithoutposting', 'read', 70, 'mod_forum', 0),
(216, 'mod/forum:viewsubscribers', 'read', 70, 'mod_forum', 0),
(217, 'mod/forum:managesubscriptions', 'read', 70, 'mod_forum', 16),
(218, 'mod/forum:postwithoutthrottling', 'write', 70, 'mod_forum', 16),
(219, 'mod/forum:exportdiscussion', 'read', 70, 'mod_forum', 8),
(220, 'mod/forum:exportpost', 'read', 70, 'mod_forum', 8),
(221, 'mod/forum:exportownpost', 'read', 70, 'mod_forum', 8),
(222, 'mod/forum:addquestion', 'write', 70, 'mod_forum', 16),
(223, 'mod/forum:allowforcesubscribe', 'read', 70, 'mod_forum', 0),
(224, 'mod/glossary:write', 'write', 70, 'mod_glossary', 16),
(225, 'mod/glossary:manageentries', 'write', 70, 'mod_glossary', 16),
(226, 'mod/glossary:managecategories', 'write', 70, 'mod_glossary', 16),
(227, 'mod/glossary:comment', 'write', 70, 'mod_glossary', 16),
(228, 'mod/glossary:managecomments', 'write', 70, 'mod_glossary', 16),
(229, 'mod/glossary:import', 'write', 70, 'mod_glossary', 16),
(230, 'mod/glossary:export', 'read', 70, 'mod_glossary', 0),
(231, 'mod/glossary:approve', 'write', 70, 'mod_glossary', 16),
(232, 'mod/glossary:rate', 'write', 70, 'mod_glossary', 0),
(233, 'mod/glossary:viewrating', 'read', 70, 'mod_glossary', 0),
(234, 'mod/glossary:viewanyrating', 'read', 70, 'mod_glossary', 8),
(235, 'mod/glossary:viewallratings', 'read', 70, 'mod_glossary', 8),
(236, 'mod/glossary:exportentry', 'read', 70, 'mod_glossary', 8),
(237, 'mod/glossary:exportownentry', 'read', 70, 'mod_glossary', 0),
(238, 'mod/imscp:view', 'read', 70, 'mod_imscp', 0),
(239, 'mod/lesson:edit', 'write', 70, 'mod_lesson', 4),
(240, 'mod/lesson:manage', 'write', 70, 'mod_lesson', 0),
(241, 'mod/lti:view', 'read', 70, 'mod_lti', 0),
(242, 'mod/lti:grade', 'write', 70, 'mod_lti', 4),
(243, 'mod/lti:manage', 'write', 70, 'mod_lti', 4),
(244, 'mod/lti:addcoursetool', 'write', 50, 'mod_lti', 0),
(245, 'mod/lti:requesttooladd', 'write', 50, 'mod_lti', 0),
(246, 'mod/page:view', 'read', 70, 'mod_page', 0),
(247, 'mod/quiz:view', 'read', 70, 'mod_quiz', 0),
(248, 'mod/quiz:attempt', 'write', 70, 'mod_quiz', 16),
(249, 'mod/quiz:reviewmyattempts', 'read', 70, 'mod_quiz', 0),
(250, 'mod/quiz:manage', 'write', 70, 'mod_quiz', 16),
(251, 'mod/quiz:manageoverrides', 'write', 70, 'mod_quiz', 0),
(252, 'mod/quiz:preview', 'write', 70, 'mod_quiz', 0),
(253, 'mod/quiz:grade', 'write', 70, 'mod_quiz', 16),
(254, 'mod/quiz:regrade', 'write', 70, 'mod_quiz', 16),
(255, 'mod/quiz:viewreports', 'read', 70, 'mod_quiz', 8),
(256, 'mod/quiz:deleteattempts', 'write', 70, 'mod_quiz', 32),
(257, 'mod/quiz:ignoretimelimits', 'read', 70, 'mod_quiz', 0),
(258, 'mod/quiz:emailconfirmsubmission', 'read', 70, 'mod_quiz', 0),
(259, 'mod/quiz:emailnotifysubmission', 'read', 70, 'mod_quiz', 0),
(260, 'mod/resource:view', 'read', 70, 'mod_resource', 0),
(261, 'mod/scorm:viewreport', 'read', 70, 'mod_scorm', 0),
(262, 'mod/scorm:skipview', 'write', 70, 'mod_scorm', 0),
(263, 'mod/scorm:savetrack', 'write', 70, 'mod_scorm', 0),
(264, 'mod/scorm:viewscores', 'read', 70, 'mod_scorm', 0),
(265, 'mod/scorm:deleteresponses', 'read', 70, 'mod_scorm', 0),
(266, 'mod/scorm:deleteownresponses', 'write', 70, 'mod_scorm', 0),
(267, 'mod/survey:participate', 'read', 70, 'mod_survey', 0),
(268, 'mod/survey:readresponses', 'read', 70, 'mod_survey', 0),
(269, 'mod/survey:download', 'read', 70, 'mod_survey', 0),
(270, 'mod/url:view', 'read', 70, 'mod_url', 0),
(271, 'mod/wiki:viewpage', 'read', 70, 'mod_wiki', 0),
(272, 'mod/wiki:editpage', 'write', 70, 'mod_wiki', 16),
(273, 'mod/wiki:createpage', 'write', 70, 'mod_wiki', 16),
(274, 'mod/wiki:viewcomment', 'read', 70, 'mod_wiki', 0),
(275, 'mod/wiki:editcomment', 'write', 70, 'mod_wiki', 16),
(276, 'mod/wiki:managecomment', 'write', 70, 'mod_wiki', 0),
(277, 'mod/wiki:managefiles', 'write', 70, 'mod_wiki', 0),
(278, 'mod/wiki:overridelock', 'write', 70, 'mod_wiki', 0),
(279, 'mod/wiki:managewiki', 'write', 70, 'mod_wiki', 0),
(280, 'mod/workshop:view', 'read', 70, 'mod_workshop', 0),
(281, 'mod/workshop:switchphase', 'write', 70, 'mod_workshop', 0),
(282, 'mod/workshop:editdimensions', 'write', 70, 'mod_workshop', 4),
(283, 'mod/workshop:submit', 'write', 70, 'mod_workshop', 0),
(284, 'mod/workshop:peerassess', 'write', 70, 'mod_workshop', 0),
(285, 'mod/workshop:manageexamples', 'write', 70, 'mod_workshop', 0),
(286, 'mod/workshop:allocate', 'write', 70, 'mod_workshop', 0),
(287, 'mod/workshop:publishsubmissions', 'write', 70, 'mod_workshop', 0),
(288, 'mod/workshop:viewauthornames', 'read', 70, 'mod_workshop', 0),
(289, 'mod/workshop:viewreviewernames', 'read', 70, 'mod_workshop', 0),
(290, 'mod/workshop:viewallsubmissions', 'read', 70, 'mod_workshop', 0),
(291, 'mod/workshop:viewpublishedsubmissions', 'read', 70, 'mod_workshop', 0),
(292, 'mod/workshop:viewauthorpublished', 'read', 70, 'mod_workshop', 0),
(293, 'mod/workshop:viewallassessments', 'read', 70, 'mod_workshop', 0),
(294, 'mod/workshop:overridegrades', 'write', 70, 'mod_workshop', 0),
(295, 'mod/workshop:ignoredeadlines', 'write', 70, 'mod_workshop', 0),
(296, 'enrol/authorize:config', 'write', 50, 'enrol_authorize', 0),
(297, 'enrol/authorize:manage', 'write', 50, 'enrol_authorize', 0),
(298, 'enrol/authorize:unenrol', 'write', 50, 'enrol_authorize', 0),
(299, 'enrol/authorize:unenrolself', 'write', 50, 'enrol_authorize', 0),
(300, 'enrol/authorize:managepayments', 'write', 10, 'enrol_authorize', 8),
(301, 'enrol/authorize:uploadcsv', 'write', 10, 'enrol_authorize', 4),
(302, 'enrol/category:synchronised', 'write', 10, 'enrol_category', 0),
(303, 'enrol/cohort:config', 'write', 50, 'enrol_cohort', 0),
(304, 'enrol/guest:config', 'write', 50, 'enrol_guest', 0),
(305, 'enrol/ldap:manage', 'write', 50, 'enrol_ldap', 0),
(306, 'enrol/manual:config', 'write', 50, 'enrol_manual', 0),
(307, 'enrol/manual:enrol', 'write', 50, 'enrol_manual', 0),
(308, 'enrol/manual:manage', 'write', 50, 'enrol_manual', 0),
(309, 'enrol/manual:unenrol', 'write', 50, 'enrol_manual', 0),
(310, 'enrol/manual:unenrolself', 'write', 50, 'enrol_manual', 0),
(311, 'enrol/meta:config', 'write', 50, 'enrol_meta', 0),
(312, 'enrol/meta:selectaslinked', 'read', 50, 'enrol_meta', 0),
(313, 'enrol/meta:unenrol', 'write', 50, 'enrol_meta', 0),
(314, 'enrol/paypal:config', 'write', 50, 'enrol_paypal', 0),
(315, 'enrol/paypal:manage', 'write', 50, 'enrol_paypal', 0),
(316, 'enrol/paypal:unenrol', 'write', 50, 'enrol_paypal', 0),
(317, 'enrol/paypal:unenrolself', 'write', 50, 'enrol_paypal', 0),
(318, 'enrol/self:config', 'write', 50, 'enrol_self', 0),
(319, 'enrol/self:manage', 'write', 50, 'enrol_self', 0),
(320, 'enrol/self:unenrolself', 'write', 50, 'enrol_self', 0),
(321, 'enrol/self:unenrol', 'write', 50, 'enrol_self', 0),
(322, 'block/online_users:viewlist', 'read', 80, 'block_online_users', 0),
(323, 'block/rss_client:manageownfeeds', 'write', 80, 'block_rss_client', 0),
(324, 'block/rss_client:manageanyfeeds', 'write', 80, 'block_rss_client', 16),
(325, 'report/completion:view', 'read', 50, 'report_completion', 8),
(326, 'report/courseoverview:view', 'read', 10, 'report_courseoverview', 8),
(327, 'report/log:view', 'read', 50, 'report_log', 8),
(328, 'report/log:viewtoday', 'read', 50, 'report_log', 8),
(329, 'report/loglive:view', 'read', 50, 'report_loglive', 8),
(330, 'report/outline:view', 'read', 50, 'report_outline', 8),
(331, 'report/participation:view', 'read', 50, 'report_participation', 8),
(332, 'report/progress:view', 'read', 50, 'report_progress', 8),
(333, 'report/questioninstances:view', 'read', 10, 'report_questioninstances', 0),
(334, 'report/security:view', 'read', 10, 'report_security', 2),
(335, 'report/stats:view', 'read', 50, 'report_stats', 8),
(336, 'gradeexport/ods:view', 'read', 50, 'gradeexport_ods', 8),
(337, 'gradeexport/ods:publish', 'read', 50, 'gradeexport_ods', 8),
(338, 'gradeexport/txt:view', 'read', 50, 'gradeexport_txt', 8),
(339, 'gradeexport/txt:publish', 'read', 50, 'gradeexport_txt', 8),
(340, 'gradeexport/xls:view', 'read', 50, 'gradeexport_xls', 8),
(341, 'gradeexport/xls:publish', 'read', 50, 'gradeexport_xls', 8),
(342, 'gradeexport/xml:view', 'read', 50, 'gradeexport_xml', 8),
(343, 'gradeexport/xml:publish', 'read', 50, 'gradeexport_xml', 8),
(344, 'gradeimport/csv:view', 'write', 50, 'gradeimport_csv', 0),
(345, 'gradeimport/xml:view', 'write', 50, 'gradeimport_xml', 0),
(346, 'gradeimport/xml:publish', 'write', 50, 'gradeimport_xml', 0),
(347, 'gradereport/grader:view', 'read', 50, 'gradereport_grader', 8),
(348, 'gradereport/outcomes:view', 'read', 50, 'gradereport_outcomes', 8),
(349, 'gradereport/overview:view', 'read', 50, 'gradereport_overview', 8),
(350, 'gradereport/user:view', 'read', 50, 'gradereport_user', 8),
(351, 'webservice/amf:use', 'read', 50, 'webservice_amf', 62),
(352, 'webservice/rest:use', 'read', 50, 'webservice_rest', 62),
(353, 'webservice/soap:use', 'read', 50, 'webservice_soap', 62),
(354, 'webservice/xmlrpc:use', 'read', 50, 'webservice_xmlrpc', 62),
(355, 'repository/alfresco:view', 'read', 70, 'repository_alfresco', 0),
(356, 'repository/boxnet:view', 'read', 70, 'repository_boxnet', 0),
(357, 'repository/coursefiles:view', 'read', 70, 'repository_coursefiles', 0),
(358, 'repository/dropbox:view', 'read', 70, 'repository_dropbox', 0),
(359, 'repository/filesystem:view', 'read', 70, 'repository_filesystem', 0),
(360, 'repository/flickr:view', 'read', 70, 'repository_flickr', 0),
(361, 'repository/flickr_public:view', 'read', 70, 'repository_flickr_public', 0),
(362, 'repository/googledocs:view', 'read', 70, 'repository_googledocs', 0),
(363, 'repository/local:view', 'read', 70, 'repository_local', 0),
(364, 'repository/merlot:view', 'read', 70, 'repository_merlot', 0),
(365, 'repository/picasa:view', 'read', 70, 'repository_picasa', 0),
(366, 'repository/recent:view', 'read', 70, 'repository_recent', 0),
(367, 'repository/s3:view', 'read', 70, 'repository_s3', 0),
(368, 'repository/upload:view', 'read', 70, 'repository_upload', 0),
(369, 'repository/url:view', 'read', 70, 'repository_url', 0),
(370, 'repository/user:view', 'read', 70, 'repository_user', 0),
(371, 'repository/webdav:view', 'read', 70, 'repository_webdav', 0),
(372, 'repository/wikimedia:view', 'read', 70, 'repository_wikimedia', 0),
(373, 'repository/youtube:view', 'read', 70, 'repository_youtube', 0),
(374, 'tool/customlang:view', 'read', 10, 'tool_customlang', 2),
(375, 'tool/customlang:edit', 'write', 10, 'tool_customlang', 6),
(376, 'tool/unittest:execute', 'write', 10, 'tool_unittest', 32),
(377, 'quiz/grading:viewstudentnames', 'read', 70, 'quiz_grading', 0),
(378, 'quiz/grading:viewidnumber', 'read', 70, 'quiz_grading', 0),
(379, 'quiz/statistics:view', 'read', 70, 'quiz_statistics', 0);

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

--
-- Estructura de tabla para la tabla `mdl_chat`
--

CREATE TABLE IF NOT EXISTS `mdl_chat` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` bigint(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `intro` text NOT NULL,
  `introformat` smallint(4) unsigned NOT NULL DEFAULT '0',
  `keepdays` bigint(11) NOT NULL DEFAULT '0',
  `studentlogs` smallint(4) NOT NULL DEFAULT '0',
  `chattime` bigint(10) unsigned NOT NULL DEFAULT '0',
  `schedule` smallint(4) NOT NULL DEFAULT '0',
  `timemodified` bigint(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_chat_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Each of these is a chat room' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_chat_messages`
--

CREATE TABLE IF NOT EXISTS `mdl_chat_messages` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `chatid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `groupid` bigint(10) NOT NULL DEFAULT '0',
  `system` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `message` text NOT NULL,
  `timestamp` bigint(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_chatmess_use_ix` (`userid`),
  KEY `mdl_chatmess_gro_ix` (`groupid`),
  KEY `mdl_chatmess_timcha_ix` (`timestamp`,`chatid`),
  KEY `mdl_chatmess_cha_ix` (`chatid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores all the actual chat messages' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_chat_messages_current`
--

CREATE TABLE IF NOT EXISTS `mdl_chat_messages_current` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `chatid` bigint(10) NOT NULL DEFAULT '0',
  `userid` bigint(10) NOT NULL DEFAULT '0',
  `groupid` bigint(10) NOT NULL DEFAULT '0',
  `system` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `message` text NOT NULL,
  `timestamp` bigint(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_chatmesscurr_use_ix` (`userid`),
  KEY `mdl_chatmesscurr_gro_ix` (`groupid`),
  KEY `mdl_chatmesscurr_timcha_ix` (`timestamp`,`chatid`),
  KEY `mdl_chatmesscurr_cha_ix` (`chatid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores current session' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_chat_users`
--

CREATE TABLE IF NOT EXISTS `mdl_chat_users` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `chatid` bigint(11) NOT NULL DEFAULT '0',
  `userid` bigint(11) NOT NULL DEFAULT '0',
  `groupid` bigint(11) NOT NULL DEFAULT '0',
  `version` varchar(16) NOT NULL DEFAULT '',
  `ip` varchar(45) NOT NULL DEFAULT '',
  `firstping` bigint(10) unsigned NOT NULL DEFAULT '0',
  `lastping` bigint(10) unsigned NOT NULL DEFAULT '0',
  `lastmessageping` bigint(10) unsigned NOT NULL DEFAULT '0',
  `sid` varchar(32) NOT NULL DEFAULT '',
  `course` bigint(10) unsigned NOT NULL DEFAULT '0',
  `lang` varchar(30) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `mdl_chatuser_use_ix` (`userid`),
  KEY `mdl_chatuser_las_ix` (`lastping`),
  KEY `mdl_chatuser_gro_ix` (`groupid`),
  KEY `mdl_chatuser_cha_ix` (`chatid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Keeps track of which users are in which chat rooms' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_choice`
--

CREATE TABLE IF NOT EXISTS `mdl_choice` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` bigint(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `intro` text NOT NULL,
  `introformat` smallint(4) unsigned NOT NULL DEFAULT '0',
  `publish` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `showresults` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `display` smallint(4) unsigned NOT NULL DEFAULT '0',
  `allowupdate` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `showunanswered` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `limitanswers` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `timeopen` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timeclose` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` bigint(10) unsigned NOT NULL DEFAULT '0',
  `completionsubmit` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_choi_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Available choices are stored here' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_choice_answers`
--

CREATE TABLE IF NOT EXISTS `mdl_choice_answers` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `choiceid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `optionid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` bigint(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_choiansw_use_ix` (`userid`),
  KEY `mdl_choiansw_cho_ix` (`choiceid`),
  KEY `mdl_choiansw_opt_ix` (`optionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='choices performed by users' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_choice_options`
--

CREATE TABLE IF NOT EXISTS `mdl_choice_options` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `choiceid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `text` text,
  `maxanswers` bigint(10) unsigned DEFAULT '0',
  `timemodified` bigint(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_choiopti_cho_ix` (`choiceid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='available options to choice' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_cohort`
--

CREATE TABLE IF NOT EXISTS `mdl_cohort` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `contextid` bigint(10) unsigned NOT NULL,
  `name` varchar(254) NOT NULL DEFAULT '',
  `idnumber` varchar(100) DEFAULT NULL,
  `description` text,
  `descriptionformat` tinyint(2) unsigned NOT NULL,
  `component` varchar(100) NOT NULL DEFAULT '',
  `timecreated` bigint(10) unsigned NOT NULL,
  `timemodified` bigint(10) unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_coho_con_ix` (`contextid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Each record represents one cohort (aka site-wide group).' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_cohort_members`
--

CREATE TABLE IF NOT EXISTS `mdl_cohort_members` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `cohortid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timeadded` bigint(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_cohomemb_cohuse_uix` (`cohortid`,`userid`),
  KEY `mdl_cohomemb_coh_ix` (`cohortid`),
  KEY `mdl_cohomemb_use_ix` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Link a user to a cohort.' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_comments`
--

CREATE TABLE IF NOT EXISTS `mdl_comments` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `contextid` bigint(10) unsigned NOT NULL,
  `commentarea` varchar(255) NOT NULL DEFAULT '',
  `itemid` bigint(10) unsigned NOT NULL,
  `content` text NOT NULL,
  `format` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `userid` bigint(10) unsigned NOT NULL,
  `timecreated` bigint(10) unsigned NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='moodle comments module' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_config`
--

CREATE TABLE IF NOT EXISTS `mdl_config` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL DEFAULT '',
  `value` text NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_conf_nam_uix` (`name`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COMMENT='Moodle configuration variables' AUTO_INCREMENT=304 ;

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

INSERT INTO `mdl_config` (`id`, `name`, `value`) VALUES
(2, 'rolesactive', '1'),
(3, 'auth', 'ldap,email'),
(4, 'auth_pop3mailbox', 'INBOX'),
(5, 'enrol_plugins_enabled', 'manual,guest,self,cohort'),
(6, 'theme', 'standard'),
(7, 'filter_multilang_converted', '1'),
(8, 'siteidentifier', 'BbQXSgzn2zEcKE41WJNtiZEclqlk30Vgmoodle'),
(9, 'backup_version', '2008111700'),
(10, 'backup_release', '2.0 dev'),
(11, 'mnet_dispatcher_mode', 'off'),
(12, 'sessiontimeout', '7200'),
(13, 'stringfilters', ''),
(14, 'filterall', '0'),
(15, 'texteditors', 'tinymce,textarea'),
(16, 'mnet_localhost_id', '1'),
(17, 'mnet_all_hosts_id', '2'),
(18, 'siteguest', '1'),
(19, 'siteadmins', '2'),
(20, 'themerev', '281'),
(21, 'licenses', 'unknown,allrightsreserved,public,cc,cc-nd,cc-nc-nd,cc-nc,cc-nc-sa,cc-sa'),
(22, 'version', '2011120506'),
(23, 'enableoutcomes', '0'),
(24, 'usecomments', '1'),
(25, 'usetags', '1'),
(26, 'enablenotes', '1'),
(27, 'enableportfolios', '0'),
(28, 'enablewebservices', '0'),
(29, 'messaging', '1'),
(30, 'messaginghidereadnotifications', '0'),
(31, 'messagingdeletereadnotificationsdelay', '604800'),
(32, 'enablestats', '0'),
(33, 'enablerssfeeds', '0'),
(34, 'bloglevel', '4'),
(35, 'enablecompletion', '0'),
(36, 'enableavailability', '0'),
(37, 'enableplagiarism', '0'),
(38, 'autologinguests', '0'),
(39, 'hiddenuserfields', ''),
(40, 'showuseridentity', 'email'),
(41, 'enablegravatar', '0'),
(42, 'gravatardefaulturl', 'mm'),
(43, 'enablecourserequests', '0'),
(44, 'defaultrequestcategory', '1'),
(45, 'courserequestnotify', ''),
(46, 'grade_profilereport', 'user'),
(47, 'grade_aggregationposition', '1'),
(48, 'grade_includescalesinaggregation', '1'),
(49, 'grade_hiddenasdate', '0'),
(50, 'gradepublishing', '0'),
(51, 'grade_export_displaytype', '1'),
(52, 'grade_export_decimalpoints', '2'),
(53, 'grade_navmethod', '0'),
(54, 'gradeexport', ''),
(55, 'unlimitedgrades', '0'),
(56, 'grade_hideforcedsettings', '1'),
(57, 'grade_aggregation', '11'),
(58, 'grade_aggregation_flag', '0'),
(59, 'grade_aggregations_visible', '0,10,11,12,2,4,6,8,13'),
(60, 'grade_aggregateonlygraded', '1'),
(61, 'grade_aggregateonlygraded_flag', '2'),
(62, 'grade_aggregateoutcomes', '0'),
(63, 'grade_aggregateoutcomes_flag', '2'),
(64, 'grade_aggregatesubcats', '0'),
(65, 'grade_aggregatesubcats_flag', '2'),
(66, 'grade_keephigh', '0'),
(67, 'grade_keephigh_flag', '3'),
(68, 'grade_droplow', '0'),
(69, 'grade_droplow_flag', '2'),
(70, 'grade_displaytype', '1'),
(71, 'grade_decimalpoints', '2'),
(72, 'grade_item_advanced', 'iteminfo,idnumber,gradepass,plusfactor,multfactor,display,decimals,hiddenuntil,locktime'),
(73, 'grade_report_studentsperpage', '100'),
(74, 'grade_report_quickgrading', '1'),
(75, 'grade_report_showquickfeedback', '0'),
(76, 'grade_report_fixedstudents', '0'),
(77, 'grade_report_meanselection', '1'),
(78, 'grade_report_enableajax', '0'),
(79, 'grade_report_showcalculations', '0'),
(80, 'grade_report_showeyecons', '0'),
(81, 'grade_report_showaverages', '1'),
(82, 'grade_report_showlocks', '0'),
(83, 'grade_report_showranges', '0'),
(84, 'grade_report_showanalysisicon', '1'),
(85, 'grade_report_showuserimage', '1'),
(86, 'grade_report_showactivityicons', '1'),
(87, 'grade_report_shownumberofgrades', '0'),
(88, 'grade_report_averagesdisplaytype', 'inherit'),
(89, 'grade_report_rangesdisplaytype', 'inherit'),
(90, 'grade_report_averagesdecimalpoints', 'inherit'),
(91, 'grade_report_rangesdecimalpoints', 'inherit'),
(92, 'grade_report_overview_showrank', '0'),
(93, 'grade_report_overview_showtotalsifcontainhidden', '0'),
(94, 'grade_report_user_showrank', '0'),
(95, 'grade_report_user_showpercentage', '1'),
(96, 'grade_report_user_showgrade', '1'),
(97, 'grade_report_user_showfeedback', '1'),
(98, 'grade_report_user_showrange', '1'),
(99, 'grade_report_user_showweight', '0'),
(100, 'grade_report_user_showaverage', '0'),
(101, 'grade_report_user_showlettergrade', '0'),
(102, 'grade_report_user_rangedecimals', '0'),
(103, 'grade_report_user_showhiddenitems', '1'),
(104, 'grade_report_user_showtotalsifcontainhidden', '0'),
(105, 'timezone', '99'),
(106, 'forcetimezone', '99'),
(107, 'country', '0'),
(108, 'defaultcity', ''),
(109, 'geoipfile', '/var/lib/moodle/geoip/GeoLiteCity.dat'),
(110, 'googlemapkey', ''),
(111, 'allcountrycodes', ''),
(112, 'autolang', '1'),
(113, 'lang', 'es'),
(114, 'langmenu', '1'),
(115, 'langlist', ''),
(116, 'langcache', '1'),
(117, 'langstringcache', '1'),
(118, 'locale', ''),
(119, 'latinexcelexport', '0'),
(120, 'registerauth', ''),
(121, 'authpreventaccountcreation', '0'),
(122, 'loginpageautofocus', '0'),
(123, 'guestloginbutton', '1'),
(124, 'alternateloginurl', ''),
(125, 'forgottenpasswordurl', ''),
(126, 'auth_instructions', ''),
(127, 'allowemailaddresses', ''),
(128, 'denyemailaddresses', ''),
(129, 'verifychangedemail', '1'),
(130, 'recaptchapublickey', ''),
(131, 'recaptchaprivatekey', ''),
(132, 'sitedefaultlicense', 'allrightsreserved'),
(133, 'cachetext', '60'),
(134, 'filteruploadedfiles', '0'),
(135, 'filtermatchoneperpage', '0'),
(136, 'filtermatchonepertext', '0'),
(137, 'filter_multilang_force_old', '0'),
(138, 'filter_mediaplugin_enable_youtube', '1'),
(139, 'filter_mediaplugin_enable_vimeo', '0'),
(140, 'filter_mediaplugin_enable_mp3', '1'),
(141, 'filter_mediaplugin_enable_flv', '1'),
(142, 'filter_mediaplugin_enable_swf', '1'),
(143, 'filter_mediaplugin_enable_html5audio', '0'),
(144, 'filter_mediaplugin_enable_html5video', '0'),
(145, 'filter_mediaplugin_enable_qt', '1'),
(146, 'filter_mediaplugin_enable_wmp', '1'),
(147, 'filter_mediaplugin_enable_rm', '1'),
(148, 'filter_tex_latexpreamble', '\\usepackage[latin1]{inputenc}\n\\usepackage{amsmath}\n\\usepackage{amsfonts}\n\\RequirePackage{amsmath,amssymb,latexsym}\n'),
(149, 'filter_tex_latexbackground', '#FFFFFF'),
(150, 'filter_tex_density', '120'),
(151, 'filter_tex_pathlatex', '/usr/bin/latex'),
(152, 'filter_tex_pathdvips', '/usr/bin/dvips'),
(153, 'filter_tex_pathconvert', '/usr/bin/convert'),
(154, 'filter_tex_convertformat', 'gif'),
(155, 'filter_censor_badwords', ''),
(156, 'portfolio_moderate_filesize_threshold', '1048576'),
(157, 'portfolio_high_filesize_threshold', '5242880'),
(158, 'portfolio_moderate_db_threshold', '20'),
(159, 'portfolio_high_db_threshold', '50'),
(160, 'repositorycacheexpire', '120'),
(161, 'repositoryallowexternallinks', '1'),
(162, 'legacyfilesinnewcourses', '0'),
(163, 'enablewsdocumentation', '0'),
(164, 'allowbeforeblock', '0'),
(165, 'allowedip', ''),
(166, 'blockedip', ''),
(167, 'protectusernames', '1'),
(168, 'forcelogin', '0'),
(169, 'forceloginforprofiles', '1'),
(170, 'forceloginforprofileimage', '0'),
(171, 'opentogoogle', '0'),
(172, 'maxbytes', '0'),
(173, 'userquota', '104857600'),
(174, 'allowobjectembed', '0'),
(175, 'enabletrusttext', '0'),
(176, 'maxeditingtime', '1800'),
(177, 'fullnamedisplay', 'language'),
(178, 'extendedusernamechars', '0'),
(179, 'sitepolicy', ''),
(180, 'sitepolicyguest', ''),
(181, 'keeptagnamecase', '1'),
(182, 'profilesforenrolledusersonly', '1'),
(183, 'cronclionly', '0'),
(184, 'cronremotepassword', ''),
(185, 'passwordpolicy', '1'),
(186, 'minpasswordlength', '8'),
(187, 'minpassworddigits', '1'),
(188, 'minpasswordlower', '1'),
(189, 'minpasswordupper', '1'),
(190, 'minpasswordnonalphanum', '1'),
(191, 'maxconsecutiveidentchars', '0'),
(192, 'groupenrolmentkeypolicy', '1'),
(193, 'disableuserimages', '0'),
(194, 'emailchangeconfirmation', '1'),
(195, 'rememberusername', '2'),
(196, 'strictformsrequired', '0'),
(197, 'loginhttps', '0'),
(198, 'cookiesecure', '0'),
(199, 'cookiehttponly', '0'),
(200, 'allowframembedding', '0'),
(201, 'loginpasswordautocomplete', '0'),
(202, 'restrictmodulesfor', 'none'),
(203, 'restrictbydefault', '0'),
(204, 'displayloginfailures', ''),
(205, 'notifyloginfailures', ''),
(206, 'notifyloginthreshold', '10'),
(207, 'runclamonupload', '0'),
(208, 'pathtoclam', ''),
(209, 'quarantinedir', ''),
(210, 'clamfailureonupload', 'donothing'),
(211, 'themelist', ''),
(212, 'themedesignermode', '0'),
(213, 'allowuserthemes', '0'),
(214, 'allowcoursethemes', '0'),
(215, 'allowcategorythemes', '0'),
(216, 'allowthemechangeonurl', '0'),
(217, 'allowuserblockhiding', '1'),
(218, 'allowblockstodock', '1'),
(219, 'custommenuitems', ''),
(220, 'enabledevicedetection', '1'),
(221, 'devicedetectregex', '[]'),
(222, 'calendar_adminseesall', '0'),
(223, 'calendar_site_timeformat', '0'),
(224, 'calendar_startwday', '0'),
(225, 'calendar_weekend', '65'),
(226, 'calendar_lookahead', '21'),
(227, 'calendar_maxevents', '10'),
(228, 'enablecalendarexport', '1'),
(229, 'calendar_exportsalt', 'HAlClVM6ZEVg5taD61iOSWz96YELiu57G7jGL7voS35FABDySusrhiSZ2IbF'),
(230, 'useblogassociations', '1'),
(231, 'useexternalblogs', '1'),
(232, 'externalblogcrontime', '86400'),
(233, 'maxexternalblogsperuser', '1'),
(234, 'blogusecomments', '1'),
(235, 'blogshowcommentscount', '1'),
(236, 'defaulthomepage', '0'),
(237, 'navshowcategories', '1'),
(238, 'navshowallcourses', '0'),
(239, 'navcourselimit', '20'),
(240, 'navlinkcoursesections', '0'),
(241, 'usesitenameforsitepages', '0'),
(242, 'navadduserpostslinks', '1'),
(243, 'formatstringstriptags', '1'),
(244, 'emoticons', '[{"text":":-)","imagename":"s\\/smiley","imagecomponent":"core","altidentifier":"smiley","altcomponent":"core_pix"},{"text":":)","imagename":"s\\/smiley","imagecomponent":"core","altidentifier":"smiley","altcomponent":"core_pix"},{"text":":-D","imagename":"s\\/biggrin","imagecomponent":"core","altidentifier":"biggrin","altcomponent":"core_pix"},{"text":";-)","imagename":"s\\/wink","imagecomponent":"core","altidentifier":"wink","altcomponent":"core_pix"},{"text":":-\\/","imagename":"s\\/mixed","imagecomponent":"core","altidentifier":"mixed","altcomponent":"core_pix"},{"text":"V-.","imagename":"s\\/thoughtful","imagecomponent":"core","altidentifier":"thoughtful","altcomponent":"core_pix"},{"text":":-P","imagename":"s\\/tongueout","imagecomponent":"core","altidentifier":"tongueout","altcomponent":"core_pix"},{"text":":-p","imagename":"s\\/tongueout","imagecomponent":"core","altidentifier":"tongueout","altcomponent":"core_pix"},{"text":"B-)","imagename":"s\\/cool","imagecomponent":"core","altidentifier":"cool","altcomponent":"core_pix"},{"text":"^-)","imagename":"s\\/approve","imagecomponent":"core","altidentifier":"approve","altcomponent":"core_pix"},{"text":"8-)","imagename":"s\\/wideeyes","imagecomponent":"core","altidentifier":"wideeyes","altcomponent":"core_pix"},{"text":":o)","imagename":"s\\/clown","imagecomponent":"core","altidentifier":"clown","altcomponent":"core_pix"},{"text":":-(","imagename":"s\\/sad","imagecomponent":"core","altidentifier":"sad","altcomponent":"core_pix"},{"text":":(","imagename":"s\\/sad","imagecomponent":"core","altidentifier":"sad","altcomponent":"core_pix"},{"text":"8-.","imagename":"s\\/shy","imagecomponent":"core","altidentifier":"shy","altcomponent":"core_pix"},{"text":":-I","imagename":"s\\/blush","imagecomponent":"core","altidentifier":"blush","altcomponent":"core_pix"},{"text":":-X","imagename":"s\\/kiss","imagecomponent":"core","altidentifier":"kiss","altcomponent":"core_pix"},{"text":"8-o","imagename":"s\\/surprise","imagecomponent":"core","altidentifier":"surprise","altcomponent":"core_pix"},{"text":"P-|","imagename":"s\\/blackeye","imagecomponent":"core","altidentifier":"blackeye","altcomponent":"core_pix"},{"text":"8-[","imagename":"s\\/angry","imagecomponent":"core","altidentifier":"angry","altcomponent":"core_pix"},{"text":"(grr)","imagename":"s\\/angry","imagecomponent":"core","altidentifier":"angry","altcomponent":"core_pix"},{"text":"xx-P","imagename":"s\\/dead","imagecomponent":"core","altidentifier":"dead","altcomponent":"core_pix"},{"text":"|-.","imagename":"s\\/sleepy","imagecomponent":"core","altidentifier":"sleepy","altcomponent":"core_pix"},{"text":"}-]","imagename":"s\\/evil","imagecomponent":"core","altidentifier":"evil","altcomponent":"core_pix"},{"text":"(h)","imagename":"s\\/heart","imagecomponent":"core","altidentifier":"heart","altcomponent":"core_pix"},{"text":"(heart)","imagename":"s\\/heart","imagecomponent":"core","altidentifier":"heart","altcomponent":"core_pix"},{"text":"(y)","imagename":"s\\/yes","imagecomponent":"core","altidentifier":"yes","altcomponent":"core"},{"text":"(n)","imagename":"s\\/no","imagecomponent":"core","altidentifier":"no","altcomponent":"core"},{"text":"(martin)","imagename":"s\\/martin","imagecomponent":"core","altidentifier":"martin","altcomponent":"core_pix"},{"text":"( )","imagename":"s\\/egg","imagecomponent":"core","altidentifier":"egg","altcomponent":"core_pix"}]'),
(245, 'docroot', 'http://docs.moodle.org'),
(246, 'doctonewwindow', '0'),
(247, 'courselistshortnames', '0'),
(248, 'enableajax', '1'),
(249, 'useexternalyui', '0'),
(250, 'yuicomboloading', '1'),
(251, 'cachejs', '1'),
(252, 'enablecourseajax', '1'),
(253, 'additionalhtmlhead', ''),
(254, 'additionalhtmltopofbody', ''),
(255, 'additionalhtmlfooter', ''),
(256, 'gdversion', '2'),
(257, 'pathtodu', ''),
(258, 'aspellpath', ''),
(259, 'pathtodot', ''),
(260, 'supportpage', ''),
(261, 'dbsessions', '1'),
(262, 'sessioncookie', ''),
(263, 'sessioncookiepath', ''),
(264, 'sessioncookiedomain', ''),
(265, 'statsfirstrun', 'none'),
(266, 'statsmaxruntime', '0'),
(267, 'statsruntimedays', '31'),
(268, 'statsruntimestarthour', '0'),
(269, 'statsruntimestartminute', '0'),
(270, 'statsuserthreshold', '0'),
(271, 'slasharguments', '1'),
(272, 'getremoteaddrconf', '0'),
(273, 'proxyhost', ''),
(274, 'proxyport', '0'),
(275, 'proxytype', 'HTTP'),
(276, 'proxyuser', ''),
(277, 'proxypassword', ''),
(278, 'proxybypass', 'localhost, 127.0.0.1'),
(279, 'maintenance_enabled', '0'),
(280, 'maintenance_message', ''),
(281, 'deleteunconfirmed', '168'),
(282, 'deleteincompleteusers', '0'),
(283, 'logguests', '1'),
(284, 'loglifetime', '0'),
(285, 'disablegradehistory', '0'),
(286, 'gradehistorylifetime', '0'),
(287, 'numcoursesincombo', '500'),
(288, 'extramemorylimit', '512M'),
(289, 'curlcache', '120'),
(290, 'curltimeoutkbitrate', '56'),
(291, 'enablesafebrowserintegration', '0'),
(292, 'enablegroupmembersonly', '0'),
(293, 'debug', '0'),
(294, 'debugdisplay', '0'),
(295, 'xmlstrictheaders', '0'),
(296, 'debugsmtp', '0'),
(297, 'perfdebug', '7'),
(298, 'debugstringids', '0'),
(299, 'debugvalidators', '0'),
(300, 'debugpageinfo', '0'),
(301, 'release', '2.2.6 (Build: 20121112)'),
(302, 'jsrev', '280'),
(303, 'adminsetuppending', '1');

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

--
-- Estructura de tabla para la tabla `mdl_config_log`
--

CREATE TABLE IF NOT EXISTS `mdl_config_log` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) unsigned NOT NULL,
  `timemodified` bigint(10) unsigned NOT NULL,
  `plugin` varchar(100) DEFAULT NULL,
  `name` varchar(100) NOT NULL DEFAULT '',
  `value` text,
  `oldvalue` text,
  PRIMARY KEY (`id`),
  KEY `mdl_conflog_tim_ix` (`timemodified`),
  KEY `mdl_conflog_use_ix` (`userid`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COMMENT='Changes done in server configuration through admin UI' AUTO_INCREMENT=494 ;

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

INSERT INTO `mdl_config_log` (`id`, `userid`, `timemodified`, `plugin`, `name`, `value`, `oldvalue`) VALUES
(1, 0, 1379403695, NULL, 'enableoutcomes', '0', NULL),
(2, 0, 1379403695, NULL, 'usecomments', '1', NULL),
(3, 0, 1379403695, NULL, 'usetags', '1', NULL),
(4, 0, 1379403695, NULL, 'enablenotes', '1', NULL),
(5, 0, 1379403695, NULL, 'enableportfolios', '0', NULL),
(6, 0, 1379403695, NULL, 'enablewebservices', '0', NULL),
(7, 0, 1379403695, NULL, 'messaging', '1', NULL),
(8, 0, 1379403695, NULL, 'messaginghidereadnotifications', '0', NULL),
(9, 0, 1379403695, NULL, 'messagingdeletereadnotificationsdelay', '604800', NULL),
(10, 0, 1379403695, NULL, 'enablestats', '0', NULL),
(11, 0, 1379403695, NULL, 'enablerssfeeds', '0', NULL),
(12, 0, 1379403695, NULL, 'bloglevel', '4', NULL),
(13, 0, 1379403695, NULL, 'enablecompletion', '0', NULL),
(14, 0, 1379403696, NULL, 'enableavailability', '0', NULL),
(15, 0, 1379403696, NULL, 'enableplagiarism', '0', NULL),
(16, 0, 1379403696, NULL, 'autologinguests', '0', NULL),
(17, 0, 1379403696, NULL, 'hiddenuserfields', '', NULL),
(18, 0, 1379403696, NULL, 'showuseridentity', 'email', NULL),
(19, 0, 1379403696, NULL, 'enablegravatar', '0', NULL),
(20, 0, 1379403696, NULL, 'gravatardefaulturl', 'mm', NULL),
(21, 0, 1379403696, 'moodlecourse', 'format', 'weeks', NULL),
(22, 0, 1379403696, 'moodlecourse', 'maxsections', '52', NULL),
(23, 0, 1379403696, 'moodlecourse', 'numsections', '10', NULL),
(24, 0, 1379403696, 'moodlecourse', 'hiddensections', '0', NULL),
(25, 0, 1379403696, 'moodlecourse', 'newsitems', '5', NULL),
(26, 0, 1379403696, 'moodlecourse', 'showgrades', '1', NULL),
(27, 0, 1379403696, 'moodlecourse', 'showreports', '0', NULL),
(28, 0, 1379403696, 'moodlecourse', 'maxbytes', '2097152', NULL),
(29, 0, 1379403696, 'moodlecourse', 'groupmode', '0', NULL),
(30, 0, 1379403696, 'moodlecourse', 'groupmodeforce', '0', NULL),
(31, 0, 1379403696, 'moodlecourse', 'visible', '1', NULL),
(32, 0, 1379403696, 'moodlecourse', 'lang', '', NULL),
(33, 0, 1379403696, 'moodlecourse', 'enablecompletion', '0', NULL),
(34, 0, 1379403696, 'moodlecourse', 'completionstartonenrol', '0', NULL),
(35, 0, 1379403696, NULL, 'enablecourserequests', '0', NULL),
(36, 0, 1379403696, NULL, 'defaultrequestcategory', '1', NULL),
(37, 0, 1379403696, NULL, 'courserequestnotify', '', NULL),
(38, 0, 1379403696, 'backup', 'loglifetime', '30', NULL),
(39, 0, 1379403696, 'backup', 'backup_general_users', '1', NULL),
(40, 0, 1379403696, 'backup', 'backup_general_users_locked', '0', NULL),
(41, 0, 1379403696, 'backup', 'backup_general_anonymize', '0', NULL),
(42, 0, 1379403696, 'backup', 'backup_general_anonymize_locked', '0', NULL),
(43, 0, 1379403696, 'backup', 'backup_general_role_assignments', '1', NULL),
(44, 0, 1379403696, 'backup', 'backup_general_role_assignments_locked', '0', NULL),
(45, 0, 1379403696, 'backup', 'backup_general_activities', '1', NULL),
(46, 0, 1379403696, 'backup', 'backup_general_activities_locked', '0', NULL),
(47, 0, 1379403696, 'backup', 'backup_general_blocks', '1', NULL),
(48, 0, 1379403696, 'backup', 'backup_general_blocks_locked', '0', NULL),
(49, 0, 1379403696, 'backup', 'backup_general_filters', '1', NULL),
(50, 0, 1379403696, 'backup', 'backup_general_filters_locked', '0', NULL),
(51, 0, 1379403696, 'backup', 'backup_general_comments', '1', NULL),
(52, 0, 1379403696, 'backup', 'backup_general_comments_locked', '0', NULL),
(53, 0, 1379403696, 'backup', 'backup_general_userscompletion', '1', NULL),
(54, 0, 1379403696, 'backup', 'backup_general_userscompletion_locked', '0', NULL),
(55, 0, 1379403696, 'backup', 'backup_general_logs', '0', NULL),
(56, 0, 1379403696, 'backup', 'backup_general_logs_locked', '0', NULL),
(57, 0, 1379403696, 'backup', 'backup_general_histories', '0', NULL),
(58, 0, 1379403696, 'backup', 'backup_general_histories_locked', '0', NULL),
(59, 0, 1379403696, 'backup', 'backup_auto_active', '0', NULL),
(60, 0, 1379403696, 'backup', 'backup_auto_weekdays', '0000000', NULL),
(61, 0, 1379403696, 'backup', 'backup_auto_hour', '0', NULL),
(62, 0, 1379403696, 'backup', 'backup_auto_minute', '0', NULL),
(63, 0, 1379403696, 'backup', 'backup_auto_storage', '0', NULL),
(64, 0, 1379403696, 'backup', 'backup_auto_destination', '', NULL),
(65, 0, 1379403696, 'backup', 'backup_auto_keep', '1', NULL),
(66, 0, 1379403696, 'backup', 'backup_shortname', '0', NULL),
(67, 0, 1379403696, 'backup', 'backup_auto_users', '1', NULL),
(68, 0, 1379403696, 'backup', 'backup_auto_role_assignments', '1', NULL),
(69, 0, 1379403696, 'backup', 'backup_auto_activities', '1', NULL),
(70, 0, 1379403696, 'backup', 'backup_auto_blocks', '1', NULL),
(71, 0, 1379403696, 'backup', 'backup_auto_filters', '1', NULL),
(72, 0, 1379403696, 'backup', 'backup_auto_comments', '1', NULL),
(73, 0, 1379403696, 'backup', 'backup_auto_userscompletion', '1', NULL),
(74, 0, 1379403696, 'backup', 'backup_auto_logs', '0', NULL),
(75, 0, 1379403696, 'backup', 'backup_auto_histories', '0', NULL),
(76, 0, 1379403696, NULL, 'grade_profilereport', 'user', NULL),
(77, 0, 1379403696, NULL, 'grade_aggregationposition', '1', NULL),
(78, 0, 1379403697, NULL, 'grade_includescalesinaggregation', '1', NULL),
(79, 0, 1379403697, NULL, 'grade_hiddenasdate', '0', NULL),
(80, 0, 1379403697, NULL, 'gradepublishing', '0', NULL),
(81, 0, 1379403697, NULL, 'grade_export_displaytype', '1', NULL),
(82, 0, 1379403697, NULL, 'grade_export_decimalpoints', '2', NULL),
(83, 0, 1379403697, NULL, 'grade_navmethod', '0', NULL),
(84, 0, 1379403697, NULL, 'gradeexport', '', NULL),
(85, 0, 1379403697, NULL, 'unlimitedgrades', '0', NULL),
(86, 0, 1379403697, NULL, 'grade_hideforcedsettings', '1', NULL),
(87, 0, 1379403697, NULL, 'grade_aggregation', '11', NULL),
(88, 0, 1379403697, NULL, 'grade_aggregation_flag', '0', NULL),
(89, 0, 1379403697, NULL, 'grade_aggregations_visible', '0,10,11,12,2,4,6,8,13', NULL),
(90, 0, 1379403697, NULL, 'grade_aggregateonlygraded', '1', NULL),
(91, 0, 1379403697, NULL, 'grade_aggregateonlygraded_flag', '2', NULL),
(92, 0, 1379403697, NULL, 'grade_aggregateoutcomes', '0', NULL),
(93, 0, 1379403697, NULL, 'grade_aggregateoutcomes_flag', '2', NULL),
(94, 0, 1379403697, NULL, 'grade_aggregatesubcats', '0', NULL),
(95, 0, 1379403697, NULL, 'grade_aggregatesubcats_flag', '2', NULL),
(96, 0, 1379403697, NULL, 'grade_keephigh', '0', NULL),
(97, 0, 1379403697, NULL, 'grade_keephigh_flag', '3', NULL),
(98, 0, 1379403697, NULL, 'grade_droplow', '0', NULL),
(99, 0, 1379403697, NULL, 'grade_droplow_flag', '2', NULL),
(100, 0, 1379403697, NULL, 'grade_displaytype', '1', NULL),
(101, 0, 1379403697, NULL, 'grade_decimalpoints', '2', NULL),
(102, 0, 1379403697, NULL, 'grade_item_advanced', 'iteminfo,idnumber,gradepass,plusfactor,multfactor,display,decimals,hiddenuntil,locktime', NULL),
(103, 0, 1379403697, NULL, 'grade_report_studentsperpage', '100', NULL),
(104, 0, 1379403697, NULL, 'grade_report_quickgrading', '1', NULL),
(105, 0, 1379403697, NULL, 'grade_report_showquickfeedback', '0', NULL),
(106, 0, 1379403697, NULL, 'grade_report_fixedstudents', '0', NULL),
(107, 0, 1379403697, NULL, 'grade_report_meanselection', '1', NULL),
(108, 0, 1379403697, NULL, 'grade_report_enableajax', '0', NULL),
(109, 0, 1379403697, NULL, 'grade_report_showcalculations', '0', NULL),
(110, 0, 1379403697, NULL, 'grade_report_showeyecons', '0', NULL),
(111, 0, 1379403697, NULL, 'grade_report_showaverages', '1', NULL),
(112, 0, 1379403697, NULL, 'grade_report_showlocks', '0', NULL),
(113, 0, 1379403697, NULL, 'grade_report_showranges', '0', NULL),
(114, 0, 1379403697, NULL, 'grade_report_showanalysisicon', '1', NULL),
(115, 0, 1379403697, NULL, 'grade_report_showuserimage', '1', NULL),
(116, 0, 1379403697, NULL, 'grade_report_showactivityicons', '1', NULL),
(117, 0, 1379403697, NULL, 'grade_report_shownumberofgrades', '0', NULL),
(118, 0, 1379403697, NULL, 'grade_report_averagesdisplaytype', 'inherit', NULL),
(119, 0, 1379403697, NULL, 'grade_report_rangesdisplaytype', 'inherit', NULL),
(120, 0, 1379403697, NULL, 'grade_report_averagesdecimalpoints', 'inherit', NULL),
(121, 0, 1379403697, NULL, 'grade_report_rangesdecimalpoints', 'inherit', NULL),
(122, 0, 1379403697, NULL, 'grade_report_overview_showrank', '0', NULL),
(123, 0, 1379403697, NULL, 'grade_report_overview_showtotalsifcontainhidden', '0', NULL),
(124, 0, 1379403697, NULL, 'grade_report_user_showrank', '0', NULL),
(125, 0, 1379403697, NULL, 'grade_report_user_showpercentage', '1', NULL),
(126, 0, 1379403697, NULL, 'grade_report_user_showgrade', '1', NULL),
(127, 0, 1379403697, NULL, 'grade_report_user_showfeedback', '1', NULL),
(128, 0, 1379403697, NULL, 'grade_report_user_showrange', '1', NULL),
(129, 0, 1379403697, NULL, 'grade_report_user_showweight', '0', NULL),
(130, 0, 1379403697, NULL, 'grade_report_user_showaverage', '0', NULL),
(131, 0, 1379403697, NULL, 'grade_report_user_showlettergrade', '0', NULL),
(132, 0, 1379403697, NULL, 'grade_report_user_rangedecimals', '0', NULL),
(133, 0, 1379403697, NULL, 'grade_report_user_showhiddenitems', '1', NULL),
(134, 0, 1379403697, NULL, 'grade_report_user_showtotalsifcontainhidden', '0', NULL),
(135, 0, 1379403697, NULL, 'timezone', '99', NULL),
(136, 0, 1379403697, NULL, 'forcetimezone', '99', NULL),
(137, 0, 1379403698, NULL, 'country', '0', NULL),
(138, 0, 1379403698, NULL, 'defaultcity', '', NULL),
(139, 0, 1379403698, NULL, 'geoipfile', '/var/lib/moodle/geoip/GeoLiteCity.dat', NULL),
(140, 0, 1379403698, NULL, 'googlemapkey', '', NULL),
(141, 0, 1379403698, NULL, 'allcountrycodes', '', NULL),
(142, 0, 1379403698, NULL, 'autolang', '1', NULL),
(143, 0, 1379403698, NULL, 'lang', 'es', NULL),
(144, 0, 1379403698, NULL, 'langmenu', '1', NULL),
(145, 0, 1379403698, NULL, 'langlist', '', NULL),
(146, 0, 1379403698, NULL, 'langcache', '1', NULL),
(147, 0, 1379403698, NULL, 'langstringcache', '1', NULL),
(148, 0, 1379403698, NULL, 'locale', '', NULL),
(149, 0, 1379403698, NULL, 'latinexcelexport', '0', NULL),
(150, 0, 1379403698, NULL, 'registerauth', '', NULL),
(151, 0, 1379403698, NULL, 'authpreventaccountcreation', '0', NULL),
(152, 0, 1379403698, NULL, 'loginpageautofocus', '0', NULL),
(153, 0, 1379403698, NULL, 'guestloginbutton', '1', NULL),
(154, 0, 1379403698, NULL, 'alternateloginurl', '', NULL),
(155, 0, 1379403698, NULL, 'forgottenpasswordurl', '', NULL),
(156, 0, 1379403698, NULL, 'auth_instructions', '', NULL),
(157, 0, 1379403698, NULL, 'allowemailaddresses', '', NULL),
(158, 0, 1379403698, NULL, 'denyemailaddresses', '', NULL),
(159, 0, 1379403698, NULL, 'verifychangedemail', '1', NULL),
(160, 0, 1379403698, NULL, 'recaptchapublickey', '', NULL),
(161, 0, 1379403698, NULL, 'recaptchaprivatekey', '', NULL),
(162, 0, 1379403698, 'enrol_database', 'dbtype', '', NULL),
(163, 0, 1379403698, 'enrol_database', 'dbhost', 'localhost', NULL),
(164, 0, 1379403698, 'enrol_database', 'dbuser', '', NULL),
(165, 0, 1379403698, 'enrol_database', 'dbpass', '', NULL),
(166, 0, 1379403698, 'enrol_database', 'dbname', '', NULL),
(167, 0, 1379403698, 'enrol_database', 'dbencoding', 'utf-8', NULL),
(168, 0, 1379403698, 'enrol_database', 'dbsetupsql', '', NULL),
(169, 0, 1379403698, 'enrol_database', 'dbsybasequoting', '0', NULL),
(170, 0, 1379403698, 'enrol_database', 'debugdb', '0', NULL),
(171, 0, 1379403698, 'enrol_database', 'localcoursefield', 'idnumber', NULL),
(172, 0, 1379403698, 'enrol_database', 'localuserfield', 'idnumber', NULL),
(173, 0, 1379403698, 'enrol_database', 'localrolefield', 'shortname', NULL),
(174, 0, 1379403698, 'enrol_database', 'remoteenroltable', '', NULL),
(175, 0, 1379403698, 'enrol_database', 'remotecoursefield', '', NULL),
(176, 0, 1379403698, 'enrol_database', 'remoteuserfield', '', NULL),
(177, 0, 1379403698, 'enrol_database', 'remoterolefield', '', NULL),
(178, 0, 1379403698, 'enrol_database', 'ignorehiddencourses', '0', NULL),
(179, 0, 1379403698, 'enrol_database', 'unenrolaction', '0', NULL),
(180, 0, 1379403698, 'enrol_database', 'newcoursetable', '', NULL),
(181, 0, 1379403698, 'enrol_database', 'newcoursefullname', 'fullname', NULL),
(182, 0, 1379403698, 'enrol_database', 'newcourseshortname', 'shortname', NULL),
(183, 0, 1379403698, 'enrol_database', 'newcourseidnumber', 'idnumber', NULL),
(184, 0, 1379403698, 'enrol_database', 'newcoursecategory', '', NULL),
(185, 0, 1379403698, 'enrol_database', 'templatecourse', '', NULL),
(186, 0, 1379403698, 'enrol_flatfile', 'location', '', NULL),
(187, 0, 1379403698, 'enrol_flatfile', 'mailstudents', '0', NULL),
(188, 0, 1379403698, 'enrol_flatfile', 'mailteachers', '0', NULL),
(189, 0, 1379403698, 'enrol_flatfile', 'mailadmins', '0', NULL),
(190, 0, 1379403698, 'enrol_guest', 'requirepassword', '0', NULL),
(191, 0, 1379403698, 'enrol_guest', 'usepasswordpolicy', '0', NULL),
(192, 0, 1379403698, 'enrol_guest', 'showhint', '0', NULL),
(193, 0, 1379403698, 'enrol_guest', 'defaultenrol', '1', NULL),
(194, 0, 1379403698, 'enrol_guest', 'status', '1', NULL),
(195, 0, 1379403698, 'enrol_guest', 'status_adv', '0', NULL),
(196, 0, 1379403699, 'enrol_imsenterprise', 'imsfilelocation', '', NULL),
(197, 0, 1379403699, 'enrol_imsenterprise', 'logtolocation', '', NULL),
(198, 0, 1379403699, 'enrol_imsenterprise', 'mailadmins', '0', NULL),
(199, 0, 1379403699, 'enrol_imsenterprise', 'createnewusers', '0', NULL),
(200, 0, 1379403699, 'enrol_imsenterprise', 'imsdeleteusers', '0', NULL),
(201, 0, 1379403699, 'enrol_imsenterprise', 'fixcaseusernames', '0', NULL),
(202, 0, 1379403699, 'enrol_imsenterprise', 'fixcasepersonalnames', '0', NULL),
(203, 0, 1379403699, 'enrol_imsenterprise', 'imssourcedidfallback', '0', NULL),
(204, 0, 1379403699, 'enrol_imsenterprise', 'truncatecoursecodes', '0', NULL),
(205, 0, 1379403699, 'enrol_imsenterprise', 'createnewcourses', '0', NULL),
(206, 0, 1379403699, 'enrol_imsenterprise', 'createnewcategories', '0', NULL),
(207, 0, 1379403699, 'enrol_imsenterprise', 'imsunenrol', '0', NULL),
(208, 0, 1379403699, 'enrol_imsenterprise', 'imsrestricttarget', '', NULL),
(209, 0, 1379403699, 'enrol_imsenterprise', 'imscapitafix', '0', NULL),
(210, 0, 1379403699, 'enrol_ldap', 'host_url', '', NULL),
(211, 0, 1379403699, 'enrol_ldap', 'ldap_version', '3', NULL),
(212, 0, 1379403699, 'enrol_ldap', 'ldapencoding', 'utf-8', NULL),
(213, 0, 1379403699, 'enrol_ldap', 'bind_dn', '', NULL),
(214, 0, 1379403699, 'enrol_ldap', 'bind_pw', '', NULL),
(215, 0, 1379403699, 'enrol_ldap', 'course_search_sub', '0', NULL),
(216, 0, 1379403699, 'enrol_ldap', 'memberattribute_isdn', '0', NULL),
(217, 0, 1379403699, 'enrol_ldap', 'user_contexts', '', NULL),
(218, 0, 1379403699, 'enrol_ldap', 'user_search_sub', '0', NULL),
(219, 0, 1379403699, 'enrol_ldap', 'user_type', 'default', NULL),
(220, 0, 1379403699, 'enrol_ldap', 'opt_deref', '0', NULL),
(221, 0, 1379403699, 'enrol_ldap', 'idnumber_attribute', '', NULL),
(222, 0, 1379403699, 'enrol_ldap', 'objectclass', '', NULL),
(223, 0, 1379403699, 'enrol_ldap', 'course_idnumber', '', NULL),
(224, 0, 1379403699, 'enrol_ldap', 'course_shortname', '', NULL),
(225, 0, 1379403699, 'enrol_ldap', 'course_fullname', '', NULL),
(226, 0, 1379403699, 'enrol_ldap', 'course_summary', '', NULL),
(227, 0, 1379403699, 'enrol_ldap', 'ignorehiddencourses', '0', NULL),
(228, 0, 1379403699, 'enrol_ldap', 'unenrolaction', '0', NULL),
(229, 0, 1379403699, 'enrol_ldap', 'autocreate', '0', NULL),
(230, 0, 1379403699, 'enrol_ldap', 'template', '', NULL),
(231, 0, 1379403699, 'enrol_ldap', 'nested_groups', '0', NULL),
(232, 0, 1379403699, 'enrol_ldap', 'group_memberofattribute', '', NULL),
(233, 0, 1379403699, 'enrol_manual', 'defaultenrol', '1', NULL),
(234, 0, 1379403699, 'enrol_manual', 'status', '0', NULL),
(235, 0, 1379403699, 'enrol_manual', 'enrolperiod', '0', NULL),
(236, 0, 1379403699, 'enrol_paypal', 'paypalbusiness', '', NULL),
(237, 0, 1379403699, 'enrol_paypal', 'mailstudents', '0', NULL),
(238, 0, 1379403699, 'enrol_paypal', 'mailteachers', '0', NULL),
(239, 0, 1379403699, 'enrol_paypal', 'mailadmins', '0', NULL),
(240, 0, 1379403699, 'enrol_paypal', 'status', '1', NULL),
(241, 0, 1379403699, 'enrol_paypal', 'cost', '0', NULL),
(242, 0, 1379403699, 'enrol_paypal', 'currency', 'USD', NULL),
(243, 0, 1379403699, 'enrol_paypal', 'enrolperiod', '0', NULL),
(244, 0, 1379403699, 'enrol_self', 'requirepassword', '0', NULL),
(245, 0, 1379403699, 'enrol_self', 'usepasswordpolicy', '0', NULL),
(246, 0, 1379403699, 'enrol_self', 'showhint', '0', NULL),
(247, 0, 1379403699, 'enrol_self', 'defaultenrol', '1', NULL),
(248, 0, 1379403699, 'enrol_self', 'status', '1', NULL),
(249, 0, 1379403699, 'enrol_self', 'groupkey', '0', NULL),
(250, 0, 1379403699, 'enrol_self', 'enrolperiod', '0', NULL),
(251, 0, 1379403699, 'enrol_self', 'longtimenosee', '0', NULL),
(252, 0, 1379403699, 'enrol_self', 'maxenrolled', '0', NULL),
(253, 0, 1379403699, 'enrol_self', 'sendcoursewelcomemessage', '1', NULL),
(254, 0, 1379403699, 'editor_tinymce', 'spellengine', 'GoogleSpell', NULL),
(255, 0, 1379403699, 'editor_tinymce', 'spelllanguagelist', '+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv', NULL),
(256, 0, 1379403699, NULL, 'sitedefaultlicense', 'allrightsreserved', NULL),
(257, 0, 1379403700, NULL, 'cachetext', '60', NULL),
(258, 0, 1379403700, NULL, 'filteruploadedfiles', '0', NULL),
(259, 0, 1379403700, NULL, 'filtermatchoneperpage', '0', NULL),
(260, 0, 1379403700, NULL, 'filtermatchonepertext', '0', NULL),
(261, 0, 1379403700, 'filter_urltolink', 'formats', '0', NULL),
(262, 0, 1379403700, 'filter_urltolink', 'embedimages', '1', NULL),
(263, 0, 1379403700, 'filter_emoticon', 'formats', '1,4,0', NULL),
(264, 0, 1379403700, NULL, 'filter_multilang_force_old', '0', NULL),
(265, 0, 1379403700, NULL, 'filter_mediaplugin_enable_youtube', '1', NULL),
(266, 0, 1379403700, NULL, 'filter_mediaplugin_enable_vimeo', '0', NULL),
(267, 0, 1379403700, NULL, 'filter_mediaplugin_enable_mp3', '1', NULL),
(268, 0, 1379403700, NULL, 'filter_mediaplugin_enable_flv', '1', NULL),
(269, 0, 1379403700, NULL, 'filter_mediaplugin_enable_swf', '1', NULL),
(270, 0, 1379403700, NULL, 'filter_mediaplugin_enable_html5audio', '0', NULL),
(271, 0, 1379403700, NULL, 'filter_mediaplugin_enable_html5video', '0', NULL),
(272, 0, 1379403700, NULL, 'filter_mediaplugin_enable_qt', '1', NULL),
(273, 0, 1379403700, NULL, 'filter_mediaplugin_enable_wmp', '1', NULL),
(274, 0, 1379403700, NULL, 'filter_mediaplugin_enable_rm', '1', NULL),
(275, 0, 1379403700, NULL, 'filter_tex_latexpreamble', '\\usepackage[latin1]{inputenc}\n\\usepackage{amsmath}\n\\usepackage{amsfonts}\n\\RequirePackage{amsmath,amssymb,latexsym}\n', NULL),
(276, 0, 1379403700, NULL, 'filter_tex_latexbackground', '#FFFFFF', NULL),
(277, 0, 1379403700, NULL, 'filter_tex_density', '120', NULL),
(278, 0, 1379403700, NULL, 'filter_tex_pathlatex', '/usr/bin/latex', NULL),
(279, 0, 1379403700, NULL, 'filter_tex_pathdvips', '/usr/bin/dvips', NULL),
(280, 0, 1379403700, NULL, 'filter_tex_pathconvert', '/usr/bin/convert', NULL),
(281, 0, 1379403700, NULL, 'filter_tex_convertformat', 'gif', NULL),
(282, 0, 1379403700, NULL, 'filter_censor_badwords', '', NULL),
(283, 0, 1379403700, NULL, 'portfolio_moderate_filesize_threshold', '1048576', NULL),
(284, 0, 1379403700, NULL, 'portfolio_high_filesize_threshold', '5242880', NULL),
(285, 0, 1379403700, NULL, 'portfolio_moderate_db_threshold', '20', NULL),
(286, 0, 1379403700, NULL, 'portfolio_high_db_threshold', '50', NULL),
(287, 0, 1379403700, NULL, 'repositorycacheexpire', '120', NULL),
(288, 0, 1379403700, NULL, 'repositoryallowexternallinks', '1', NULL),
(289, 0, 1379403700, NULL, 'legacyfilesinnewcourses', '0', NULL),
(290, 0, 1379403700, NULL, 'enablewsdocumentation', '0', NULL),
(291, 0, 1379403700, NULL, 'allowbeforeblock', '0', NULL),
(292, 0, 1379403700, NULL, 'allowedip', '', NULL),
(293, 0, 1379403700, NULL, 'blockedip', '', NULL),
(294, 0, 1379403700, NULL, 'protectusernames', '1', NULL),
(295, 0, 1379403700, NULL, 'forcelogin', '0', NULL),
(296, 0, 1379403700, NULL, 'forceloginforprofiles', '1', NULL),
(297, 0, 1379403700, NULL, 'forceloginforprofileimage', '0', NULL),
(298, 0, 1379403700, NULL, 'opentogoogle', '0', NULL),
(299, 0, 1379403700, NULL, 'maxbytes', '0', NULL),
(300, 0, 1379403700, NULL, 'userquota', '104857600', NULL),
(301, 0, 1379403700, NULL, 'allowobjectembed', '0', NULL),
(302, 0, 1379403700, NULL, 'enabletrusttext', '0', NULL),
(303, 0, 1379403700, NULL, 'maxeditingtime', '1800', NULL),
(304, 0, 1379403700, NULL, 'fullnamedisplay', 'language', NULL),
(305, 0, 1379403700, NULL, 'extendedusernamechars', '0', NULL),
(306, 0, 1379403700, NULL, 'sitepolicy', '', NULL),
(307, 0, 1379403700, NULL, 'sitepolicyguest', '', NULL),
(308, 0, 1379403700, NULL, 'keeptagnamecase', '1', NULL),
(309, 0, 1379403700, NULL, 'profilesforenrolledusersonly', '1', NULL),
(310, 0, 1379403700, NULL, 'cronclionly', '0', NULL),
(311, 0, 1379403700, NULL, 'cronremotepassword', '', NULL),
(312, 0, 1379403700, NULL, 'passwordpolicy', '1', NULL),
(313, 0, 1379403700, NULL, 'minpasswordlength', '8', NULL),
(314, 0, 1379403700, NULL, 'minpassworddigits', '1', NULL),
(315, 0, 1379403700, NULL, 'minpasswordlower', '1', NULL),
(316, 0, 1379403700, NULL, 'minpasswordupper', '1', NULL),
(317, 0, 1379403700, NULL, 'minpasswordnonalphanum', '1', NULL),
(318, 0, 1379403700, NULL, 'maxconsecutiveidentchars', '0', NULL),
(319, 0, 1379403700, NULL, 'groupenrolmentkeypolicy', '1', NULL),
(320, 0, 1379403700, NULL, 'disableuserimages', '0', NULL),
(321, 0, 1379403700, NULL, 'emailchangeconfirmation', '1', NULL),
(322, 0, 1379403700, NULL, 'rememberusername', '2', NULL),
(323, 0, 1379403700, NULL, 'strictformsrequired', '0', NULL),
(324, 0, 1379403700, NULL, 'loginhttps', '0', NULL),
(325, 0, 1379403700, NULL, 'cookiesecure', '0', NULL),
(326, 0, 1379403700, NULL, 'cookiehttponly', '0', NULL),
(327, 0, 1379403700, NULL, 'allowframembedding', '0', NULL),
(328, 0, 1379403701, NULL, 'loginpasswordautocomplete', '0', NULL),
(329, 0, 1379403701, NULL, 'restrictmodulesfor', 'none', NULL),
(330, 0, 1379403701, NULL, 'restrictbydefault', '0', NULL),
(331, 0, 1379403701, NULL, 'displayloginfailures', '', NULL),
(332, 0, 1379403701, NULL, 'notifyloginfailures', '', NULL),
(333, 0, 1379403701, NULL, 'notifyloginthreshold', '10', NULL),
(334, 0, 1379403701, NULL, 'runclamonupload', '0', NULL),
(335, 0, 1379403701, NULL, 'pathtoclam', '', NULL),
(336, 0, 1379403701, NULL, 'quarantinedir', '', NULL),
(337, 0, 1379403701, NULL, 'clamfailureonupload', 'donothing', NULL),
(338, 0, 1379403701, NULL, 'themelist', '', NULL),
(339, 0, 1379403701, NULL, 'themedesignermode', '0', NULL),
(340, 0, 1379403701, NULL, 'allowuserthemes', '0', NULL),
(341, 0, 1379403701, NULL, 'allowcoursethemes', '0', NULL),
(342, 0, 1379403701, NULL, 'allowcategorythemes', '0', NULL),
(343, 0, 1379403701, NULL, 'allowthemechangeonurl', '0', NULL),
(344, 0, 1379403701, NULL, 'allowuserblockhiding', '1', NULL),
(345, 0, 1379403701, NULL, 'allowblockstodock', '1', NULL),
(346, 0, 1379403701, NULL, 'custommenuitems', '', NULL),
(347, 0, 1379403701, NULL, 'enabledevicedetection', '1', NULL),
(348, 0, 1379403701, NULL, 'devicedetectregex', '[]', NULL),
(349, 0, 1379403701, 'theme_afterburner', 'logo', '', NULL),
(350, 0, 1379403701, 'theme_afterburner', 'footnote', '', NULL),
(351, 0, 1379403701, 'theme_afterburner', 'customcss', '', NULL),
(352, 0, 1379403701, 'theme_arialist', 'logo', '', NULL),
(353, 0, 1379403701, 'theme_arialist', 'tagline', '', NULL),
(354, 0, 1379403701, 'theme_arialist', 'linkcolor', '#f25f0f', NULL),
(355, 0, 1379403701, 'theme_arialist', 'regionwidth', '250', NULL),
(356, 0, 1379403701, 'theme_arialist', 'customcss', '', NULL),
(357, 0, 1379403701, 'theme_brick', 'logo', '', NULL),
(358, 0, 1379403701, 'theme_brick', 'linkcolor', '#06365b', NULL),
(359, 0, 1379403701, 'theme_brick', 'linkhover', '#5487ad', NULL),
(360, 0, 1379403701, 'theme_brick', 'maincolor', '#8e2800', NULL),
(361, 0, 1379403701, 'theme_brick', 'maincolorlink', '#fff0a5', NULL),
(362, 0, 1379403701, 'theme_brick', 'headingcolor', '#5c3500', NULL),
(363, 0, 1379403701, 'theme_formal_white', 'fontsizereference', '13', NULL),
(364, 0, 1379403701, 'theme_formal_white', 'noframe', '0', NULL),
(365, 0, 1379403701, 'theme_formal_white', 'displaylogo', '1', NULL),
(366, 0, 1379403701, 'theme_formal_white', 'logo', '', NULL),
(367, 0, 1379403701, 'theme_formal_white', 'frontpagelogo', '', NULL),
(368, 0, 1379403701, 'theme_formal_white', 'headerbgc', '#E3DFD4', NULL),
(369, 0, 1379403701, 'theme_formal_white', 'creditstomoodleorg', '2', NULL),
(370, 0, 1379403701, 'theme_formal_white', 'blockcolumnwidth', '200', NULL),
(371, 0, 1379403701, 'theme_formal_white', 'blockcontentbgc', '#F6F6F6', NULL),
(372, 0, 1379403701, 'theme_formal_white', 'lblockcolumnbgc', '#E3DFD4', NULL),
(373, 0, 1379403701, 'theme_formal_white', 'rblockcolumnbgc', '', NULL),
(374, 0, 1379403701, 'theme_formal_white', 'footnote', '', NULL),
(375, 0, 1379403701, 'theme_formal_white', 'customcss', '', NULL),
(376, 0, 1379403701, 'theme_fusion', 'linkcolor', '#2d83d5', NULL),
(377, 0, 1379403701, 'theme_fusion', 'tagline', '', NULL),
(378, 0, 1379403701, 'theme_fusion', 'footertext', '', NULL),
(379, 0, 1379403701, 'theme_fusion', 'customcss', '', NULL),
(380, 0, 1379403701, 'theme_magazine', 'background', '', NULL),
(381, 0, 1379403701, 'theme_magazine', 'logo', '', NULL),
(382, 0, 1379403701, 'theme_magazine', 'linkcolor', '#32529a', NULL),
(383, 0, 1379403701, 'theme_magazine', 'linkhover', '#4e2300', NULL),
(384, 0, 1379403701, 'theme_magazine', 'maincolor', '#002f2f', NULL),
(385, 0, 1379403701, 'theme_magazine', 'maincoloraccent', '#092323', NULL),
(386, 0, 1379403701, 'theme_magazine', 'headingcolor', '#4e0000', NULL),
(387, 0, 1379403701, 'theme_magazine', 'blockcolor', '#002f2f', NULL),
(388, 0, 1379403701, 'theme_magazine', 'forumback', '#e6e2af', NULL),
(389, 0, 1379403701, 'theme_mymobile', 'colourswatch', 'light', NULL),
(390, 0, 1379403702, 'theme_mymobile', 'showmobileintro', '', NULL),
(391, 0, 1379403702, 'theme_mymobile', 'showsitetopic', 'topicshow', NULL),
(392, 0, 1379403702, 'theme_mymobile', 'showfullsizeimages', 'ithumb', NULL),
(393, 0, 1379403702, 'theme_mymobile', 'usetableview', 'tabshow', NULL),
(394, 0, 1379403702, 'theme_nimble', 'tagline', '', NULL),
(395, 0, 1379403702, 'theme_nimble', 'footerline', '', NULL),
(396, 0, 1379403702, 'theme_nimble', 'backgroundcolor', '#454545', NULL),
(397, 0, 1379403702, 'theme_nimble', 'linkcolor', '#2a65b1', NULL),
(398, 0, 1379403702, 'theme_nimble', 'linkhover', '#222222', NULL),
(399, 0, 1379403702, 'theme_nonzero', 'regionprewidth', '200', NULL),
(400, 0, 1379403702, 'theme_nonzero', 'regionpostwidth', '200', NULL),
(401, 0, 1379403702, 'theme_nonzero', 'customcss', '', NULL),
(402, 0, 1379403702, 'theme_overlay', 'linkcolor', '#428ab5', NULL),
(403, 0, 1379403702, 'theme_overlay', 'headercolor', '#2a4c7b', NULL),
(404, 0, 1379403702, 'theme_overlay', 'footertext', '', NULL),
(405, 0, 1379403702, 'theme_overlay', 'customcss', '', NULL),
(406, 0, 1379403702, 'theme_sky_high', 'logo', '', NULL),
(407, 0, 1379403702, 'theme_sky_high', 'regionwidth', '240', NULL),
(408, 0, 1379403702, 'theme_sky_high', 'footnote', '', NULL),
(409, 0, 1379403702, 'theme_sky_high', 'customcss', '', NULL),
(410, 0, 1379403702, 'theme_splash', 'logo', '', NULL),
(411, 0, 1379403702, 'theme_splash', 'tagline', 'Virtual learning center', NULL),
(412, 0, 1379403702, 'theme_splash', 'hide_tagline', '0', NULL),
(413, 0, 1379403702, 'theme_splash', 'footnote', '', NULL),
(414, 0, 1379403702, 'theme_splash', 'customcss', '', NULL),
(415, 0, 1379403702, NULL, 'calendar_adminseesall', '0', NULL),
(416, 0, 1379403702, NULL, 'calendar_site_timeformat', '0', NULL),
(417, 0, 1379403702, NULL, 'calendar_startwday', '0', NULL),
(418, 0, 1379403702, NULL, 'calendar_weekend', '65', NULL),
(419, 0, 1379403702, NULL, 'calendar_lookahead', '21', NULL),
(420, 0, 1379403702, NULL, 'calendar_maxevents', '10', NULL),
(421, 0, 1379403702, NULL, 'enablecalendarexport', '1', NULL),
(422, 0, 1379403702, NULL, 'calendar_exportsalt', 'HAlClVM6ZEVg5taD61iOSWz96YELiu57G7jGL7voS35FABDySusrhiSZ2IbF', NULL),
(423, 0, 1379403702, NULL, 'useblogassociations', '1', NULL),
(424, 0, 1379403702, NULL, 'useexternalblogs', '1', NULL),
(425, 0, 1379403702, NULL, 'externalblogcrontime', '86400', NULL),
(426, 0, 1379403702, NULL, 'maxexternalblogsperuser', '1', NULL),
(427, 0, 1379403702, NULL, 'blogusecomments', '1', NULL),
(428, 0, 1379403702, NULL, 'blogshowcommentscount', '1', NULL),
(429, 0, 1379403702, NULL, 'defaulthomepage', '0', NULL),
(430, 0, 1379403702, NULL, 'navshowcategories', '1', NULL),
(431, 0, 1379403702, NULL, 'navshowallcourses', '0', NULL),
(432, 0, 1379403702, NULL, 'navcourselimit', '20', NULL),
(433, 0, 1379403702, NULL, 'navlinkcoursesections', '0', NULL),
(434, 0, 1379403702, NULL, 'usesitenameforsitepages', '0', NULL),
(435, 0, 1379403702, NULL, 'navadduserpostslinks', '1', NULL),
(436, 0, 1379403702, NULL, 'formatstringstriptags', '1', NULL),
(437, 0, 1379403702, NULL, 'emoticons', '[{"text":":-)","imagename":"s\\/smiley","imagecomponent":"core","altidentifier":"smiley","altcomponent":"core_pix"},{"text":":)","imagename":"s\\/smiley","imagecomponent":"core","altidentifier":"smiley","altcomponent":"core_pix"},{"text":":-D","imagename":"s\\/biggrin","imagecomponent":"core","altidentifier":"biggrin","altcomponent":"core_pix"},{"text":";-)","imagename":"s\\/wink","imagecomponent":"core","altidentifier":"wink","altcomponent":"core_pix"},{"text":":-\\/","imagename":"s\\/mixed","imagecomponent":"core","altidentifier":"mixed","altcomponent":"core_pix"},{"text":"V-.","imagename":"s\\/thoughtful","imagecomponent":"core","altidentifier":"thoughtful","altcomponent":"core_pix"},{"text":":-P","imagename":"s\\/tongueout","imagecomponent":"core","altidentifier":"tongueout","altcomponent":"core_pix"},{"text":":-p","imagename":"s\\/tongueout","imagecomponent":"core","altidentifier":"tongueout","altcomponent":"core_pix"},{"text":"B-)","imagename":"s\\/cool","imagecomponent":"core","altidentifier":"cool","altcomponent":"core_pix"},{"text":"^-)","imagename":"s\\/approve","imagecomponent":"core","altidentifier":"approve","altcomponent":"core_pix"},{"text":"8-)","imagename":"s\\/wideeyes","imagecomponent":"core","altidentifier":"wideeyes","altcomponent":"core_pix"},{"text":":o)","imagename":"s\\/clown","imagecomponent":"core","altidentifier":"clown","altcomponent":"core_pix"},{"text":":-(","imagename":"s\\/sad","imagecomponent":"core","altidentifier":"sad","altcomponent":"core_pix"},{"text":":(","imagename":"s\\/sad","imagecomponent":"core","altidentifier":"sad","altcomponent":"core_pix"},{"text":"8-.","imagename":"s\\/shy","imagecomponent":"core","altidentifier":"shy","altcomponent":"core_pix"},{"text":":-I","imagename":"s\\/blush","imagecomponent":"core","altidentifier":"blush","altcomponent":"core_pix"},{"text":":-X","imagename":"s\\/kiss","imagecomponent":"core","altidentifier":"kiss","altcomponent":"core_pix"},{"text":"8-o","imagename":"s\\/surprise","imagecomponent":"core","altidentifier":"surprise","altcomponent":"core_pix"},{"text":"P-|","imagename":"s\\/blackeye","imagecomponent":"core","altidentifier":"blackeye","altcomponent":"core_pix"},{"text":"8-[","imagename":"s\\/angry","imagecomponent":"core","altidentifier":"angry","altcomponent":"core_pix"},{"text":"(grr)","imagename":"s\\/angry","imagecomponent":"core","altidentifier":"angry","altcomponent":"core_pix"},{"text":"xx-P","imagename":"s\\/dead","imagecomponent":"core","altidentifier":"dead","altcomponent":"core_pix"},{"text":"|-.","imagename":"s\\/sleepy","imagecomponent":"core","altidentifier":"sleepy","altcomponent":"core_pix"},{"text":"}-]","imagename":"s\\/evil","imagecomponent":"core","altidentifier":"evil","altcomponent":"core_pix"},{"text":"(h)","imagename":"s\\/heart","imagecomponent":"core","altidentifier":"heart","altcomponent":"core_pix"},{"text":"(heart)","imagename":"s\\/heart","imagecomponent":"core","altidentifier":"heart","altcomponent":"core_pix"},{"text":"(y)","imagename":"s\\/yes","imagecomponent":"core","altidentifier":"yes","altcomponent":"core"},{"text":"(n)","imagename":"s\\/no","imagecomponent":"core","altidentifier":"no","altcomponent":"core"},{"text":"(martin)","imagename":"s\\/martin","imagecomponent":"core","altidentifier":"martin","altcomponent":"core_pix"},{"text":"( )","imagename":"s\\/egg","imagecomponent":"core","altidentifier":"egg","altcomponent":"core_pix"}]', NULL),
(438, 0, 1379403702, NULL, 'docroot', 'http://docs.moodle.org', NULL),
(439, 0, 1379403702, NULL, 'doctonewwindow', '0', NULL),
(440, 0, 1379403702, NULL, 'courselistshortnames', '0', NULL),
(441, 0, 1379403702, NULL, 'enableajax', '1', NULL),
(442, 0, 1379403702, NULL, 'useexternalyui', '0', NULL),
(443, 0, 1379403702, NULL, 'yuicomboloading', '1', NULL),
(444, 0, 1379403702, NULL, 'cachejs', '1', NULL),
(445, 0, 1379403702, NULL, 'enablecourseajax', '1', NULL),
(446, 0, 1379403702, NULL, 'additionalhtmlhead', '', NULL),
(447, 0, 1379403702, NULL, 'additionalhtmltopofbody', '', NULL),
(448, 0, 1379403702, NULL, 'additionalhtmlfooter', '', NULL),
(449, 0, 1379403702, NULL, 'gdversion', '2', NULL),
(450, 0, 1379403702, NULL, 'pathtodu', '', '/usr/bin/du'),
(451, 0, 1379403702, NULL, 'aspellpath', '', NULL),
(452, 0, 1379403702, NULL, 'pathtodot', '', NULL),
(453, 0, 1379403702, NULL, 'supportpage', '', NULL),
(454, 0, 1379403702, NULL, 'dbsessions', '1', NULL),
(455, 0, 1379403702, NULL, 'sessioncookie', '', NULL),
(456, 0, 1379403702, NULL, 'sessioncookiepath', '', NULL),
(457, 0, 1379403702, NULL, 'sessioncookiedomain', '', NULL),
(458, 0, 1379403702, NULL, 'statsfirstrun', 'none', NULL),
(459, 0, 1379403702, NULL, 'statsmaxruntime', '0', NULL),
(460, 0, 1379403702, NULL, 'statsruntimedays', '31', NULL),
(461, 0, 1379403702, NULL, 'statsruntimestarthour', '0', NULL),
(462, 0, 1379403702, NULL, 'statsruntimestartminute', '0', NULL),
(463, 0, 1379403703, NULL, 'statsuserthreshold', '0', NULL),
(464, 0, 1379403703, NULL, 'slasharguments', '1', NULL),
(465, 0, 1379403703, NULL, 'getremoteaddrconf', '0', NULL),
(466, 0, 1379403703, NULL, 'proxyhost', '', NULL),
(467, 0, 1379403703, NULL, 'proxyport', '0', NULL),
(468, 0, 1379403703, NULL, 'proxytype', 'HTTP', NULL),
(469, 0, 1379403703, NULL, 'proxyuser', '', NULL),
(470, 0, 1379403703, NULL, 'proxypassword', '', NULL),
(471, 0, 1379403703, NULL, 'proxybypass', 'localhost, 127.0.0.1', NULL),
(472, 0, 1379403703, NULL, 'maintenance_enabled', '0', NULL),
(473, 0, 1379403703, NULL, 'maintenance_message', '', NULL),
(474, 0, 1379403703, NULL, 'deleteunconfirmed', '168', NULL),
(475, 0, 1379403703, NULL, 'deleteincompleteusers', '0', NULL),
(476, 0, 1379403703, NULL, 'logguests', '1', NULL),
(477, 0, 1379403703, NULL, 'loglifetime', '0', NULL),
(478, 0, 1379403703, NULL, 'disablegradehistory', '0', NULL),
(479, 0, 1379403703, NULL, 'gradehistorylifetime', '0', NULL),
(480, 0, 1379403703, NULL, 'numcoursesincombo', '500', NULL),
(481, 0, 1379403703, NULL, 'extramemorylimit', '512M', NULL),
(482, 0, 1379403703, NULL, 'curlcache', '120', NULL),
(483, 0, 1379403703, NULL, 'curltimeoutkbitrate', '56', NULL),
(484, 0, 1379403703, NULL, 'enablesafebrowserintegration', '0', NULL),
(485, 0, 1379403703, NULL, 'enablegroupmembersonly', '0', NULL),
(486, 0, 1379403703, NULL, 'debug', '0', NULL),
(487, 0, 1379403703, NULL, 'debugdisplay', '0', NULL),
(488, 0, 1379403703, NULL, 'xmlstrictheaders', '0', NULL),
(489, 0, 1379403703, NULL, 'debugsmtp', '0', NULL),
(490, 0, 1379403703, NULL, 'perfdebug', '7', NULL),
(491, 0, 1379403703, NULL, 'debugstringids', '0', NULL),
(492, 0, 1379403703, NULL, 'debugvalidators', '0', NULL),
(493, 0, 1379403703, NULL, 'debugpageinfo', '0', NULL);

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

--
-- Estructura de tabla para la tabla `mdl_config_plugins`
--

CREATE TABLE IF NOT EXISTS `mdl_config_plugins` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `plugin` varchar(100) NOT NULL DEFAULT 'core',
  `name` varchar(100) NOT NULL DEFAULT '',
  `value` text NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_confplug_plunam_uix` (`plugin`,`name`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COMMENT='Moodle modules and plugins configuration variables' AUTO_INCREMENT=592 ;

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

INSERT INTO `mdl_config_plugins` (`id`, `plugin`, `name`, `value`) VALUES
(1, 'moodlecourse', 'format', 'weeks'),
(2, 'moodlecourse', 'maxsections', '52'),
(3, 'moodlecourse', 'numsections', '10'),
(4, 'moodlecourse', 'hiddensections', '0'),
(5, 'moodlecourse', 'newsitems', '5'),
(6, 'moodlecourse', 'showgrades', '1'),
(7, 'moodlecourse', 'showreports', '0'),
(8, 'moodlecourse', 'maxbytes', '2097152'),
(9, 'moodlecourse', 'groupmode', '0'),
(10, 'moodlecourse', 'groupmodeforce', '0'),
(11, 'moodlecourse', 'visible', '1'),
(12, 'moodlecourse', 'lang', ''),
(13, 'moodlecourse', 'enablecompletion', '0'),
(14, 'moodlecourse', 'completionstartonenrol', '0'),
(15, 'backup', 'loglifetime', '30'),
(16, 'backup', 'backup_general_users', '1'),
(17, 'backup', 'backup_general_users_locked', '0'),
(18, 'backup', 'backup_general_anonymize', '0'),
(19, 'backup', 'backup_general_anonymize_locked', '0'),
(20, 'backup', 'backup_general_role_assignments', '1'),
(21, 'backup', 'backup_general_role_assignments_locked', '0'),
(22, 'backup', 'backup_general_activities', '1'),
(23, 'backup', 'backup_general_activities_locked', '0'),
(24, 'backup', 'backup_general_blocks', '1'),
(25, 'backup', 'backup_general_blocks_locked', '0'),
(26, 'backup', 'backup_general_filters', '1'),
(27, 'backup', 'backup_general_filters_locked', '0'),
(28, 'backup', 'backup_general_comments', '1'),
(29, 'backup', 'backup_general_comments_locked', '0'),
(30, 'backup', 'backup_general_userscompletion', '1'),
(31, 'backup', 'backup_general_userscompletion_locked', '0'),
(32, 'backup', 'backup_general_logs', '0'),
(33, 'backup', 'backup_general_logs_locked', '0'),
(34, 'backup', 'backup_general_histories', '0'),
(35, 'backup', 'backup_general_histories_locked', '0'),
(36, 'backup', 'backup_auto_active', '0'),
(37, 'backup', 'backup_auto_weekdays', '0000000'),
(38, 'backup', 'backup_auto_hour', '0'),
(39, 'backup', 'backup_auto_minute', '0'),
(40, 'backup', 'backup_auto_storage', '0'),
(41, 'backup', 'backup_auto_destination', ''),
(42, 'backup', 'backup_auto_keep', '1'),
(43, 'backup', 'backup_shortname', '0'),
(44, 'backup', 'backup_auto_users', '1'),
(45, 'backup', 'backup_auto_role_assignments', '1'),
(46, 'backup', 'backup_auto_activities', '1'),
(47, 'backup', 'backup_auto_blocks', '1'),
(48, 'backup', 'backup_auto_filters', '1'),
(49, 'backup', 'backup_auto_comments', '1'),
(50, 'backup', 'backup_auto_userscompletion', '1'),
(51, 'backup', 'backup_auto_logs', '0'),
(52, 'backup', 'backup_auto_histories', '0'),
(53, 'enrol_database', 'dbtype', ''),
(54, 'enrol_database', 'dbhost', 'localhost'),
(55, 'enrol_database', 'dbuser', ''),
(56, 'enrol_database', 'dbpass', ''),
(57, 'enrol_database', 'dbname', ''),
(58, 'enrol_database', 'dbencoding', 'utf-8'),
(59, 'enrol_database', 'dbsetupsql', ''),
(60, 'enrol_database', 'dbsybasequoting', '0'),
(61, 'enrol_database', 'debugdb', '0'),
(62, 'enrol_database', 'localcoursefield', 'idnumber'),
(63, 'enrol_database', 'localuserfield', 'idnumber'),
(64, 'enrol_database', 'localrolefield', 'shortname'),
(65, 'enrol_database', 'remoteenroltable', ''),
(66, 'enrol_database', 'remotecoursefield', ''),
(67, 'enrol_database', 'remoteuserfield', ''),
(68, 'enrol_database', 'remoterolefield', ''),
(69, 'enrol_database', 'ignorehiddencourses', '0'),
(70, 'enrol_database', 'unenrolaction', '0'),
(71, 'enrol_database', 'newcoursetable', ''),
(72, 'enrol_database', 'newcoursefullname', 'fullname'),
(73, 'enrol_database', 'newcourseshortname', 'shortname'),
(74, 'enrol_database', 'newcourseidnumber', 'idnumber'),
(75, 'enrol_database', 'newcoursecategory', ''),
(76, 'enrol_database', 'templatecourse', ''),
(77, 'enrol_flatfile', 'location', ''),
(78, 'enrol_flatfile', 'mailstudents', '0'),
(79, 'enrol_flatfile', 'mailteachers', '0'),
(80, 'enrol_flatfile', 'mailadmins', '0'),
(81, 'enrol_guest', 'requirepassword', '0'),
(82, 'enrol_guest', 'usepasswordpolicy', '0'),
(83, 'enrol_guest', 'showhint', '0'),
(84, 'enrol_guest', 'defaultenrol', '1'),
(85, 'enrol_guest', 'status', '1'),
(86, 'enrol_guest', 'status_adv', '0'),
(87, 'enrol_imsenterprise', 'imsfilelocation', ''),
(88, 'enrol_imsenterprise', 'logtolocation', ''),
(89, 'enrol_imsenterprise', 'mailadmins', '0'),
(90, 'enrol_imsenterprise', 'createnewusers', '0'),
(91, 'enrol_imsenterprise', 'imsdeleteusers', '0'),
(92, 'enrol_imsenterprise', 'fixcaseusernames', '0'),
(93, 'enrol_imsenterprise', 'fixcasepersonalnames', '0'),
(94, 'enrol_imsenterprise', 'imssourcedidfallback', '0'),
(95, 'enrol_imsenterprise', 'truncatecoursecodes', '0'),
(96, 'enrol_imsenterprise', 'createnewcourses', '0'),
(97, 'enrol_imsenterprise', 'createnewcategories', '0'),
(98, 'enrol_imsenterprise', 'imsunenrol', '0'),
(99, 'enrol_imsenterprise', 'imsrestricttarget', ''),
(100, 'enrol_imsenterprise', 'imscapitafix', '0'),
(101, 'enrol_ldap', 'host_url', ''),
(102, 'enrol_ldap', 'ldap_version', '3'),
(103, 'enrol_ldap', 'ldapencoding', 'utf-8'),
(104, 'enrol_ldap', 'bind_dn', ''),
(105, 'enrol_ldap', 'bind_pw', ''),
(106, 'enrol_ldap', 'course_search_sub', '0'),
(107, 'enrol_ldap', 'memberattribute_isdn', '0'),
(108, 'enrol_ldap', 'user_contexts', ''),
(109, 'enrol_ldap', 'user_search_sub', '0'),
(110, 'enrol_ldap', 'user_type', 'default'),
(111, 'enrol_ldap', 'opt_deref', '0'),
(112, 'enrol_ldap', 'idnumber_attribute', ''),
(113, 'enrol_ldap', 'objectclass', ''),
(114, 'enrol_ldap', 'course_idnumber', ''),
(115, 'enrol_ldap', 'course_shortname', ''),
(116, 'enrol_ldap', 'course_fullname', ''),
(117, 'enrol_ldap', 'course_summary', ''),
(118, 'enrol_ldap', 'ignorehiddencourses', '0'),
(119, 'enrol_ldap', 'unenrolaction', '0'),
(120, 'enrol_ldap', 'autocreate', '0'),
(121, 'enrol_ldap', 'template', ''),
(122, 'enrol_ldap', 'nested_groups', '0'),
(123, 'enrol_ldap', 'group_memberofattribute', ''),
(124, 'enrol_manual', 'defaultenrol', '1'),
(125, 'enrol_manual', 'status', '0'),
(126, 'enrol_manual', 'enrolperiod', '0'),
(127, 'enrol_paypal', 'paypalbusiness', ''),
(128, 'enrol_paypal', 'mailstudents', '0'),
(129, 'enrol_paypal', 'mailteachers', '0'),
(130, 'enrol_paypal', 'mailadmins', '0'),
(131, 'enrol_paypal', 'status', '1'),
(132, 'enrol_paypal', 'cost', '0'),
(133, 'enrol_paypal', 'currency', 'USD'),
(134, 'enrol_paypal', 'enrolperiod', '0'),
(135, 'enrol_self', 'requirepassword', '0'),
(136, 'enrol_self', 'usepasswordpolicy', '0'),
(137, 'enrol_self', 'showhint', '0'),
(138, 'enrol_self', 'defaultenrol', '1'),
(139, 'enrol_self', 'status', '1'),
(140, 'enrol_self', 'groupkey', '0'),
(141, 'enrol_self', 'enrolperiod', '0'),
(142, 'enrol_self', 'longtimenosee', '0'),
(143, 'enrol_self', 'maxenrolled', '0'),
(144, 'enrol_self', 'sendcoursewelcomemessage', '1'),
(145, 'editor_tinymce', 'spellengine', 'GoogleSpell'),
(146, 'editor_tinymce', 'spelllanguagelist', '+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv'),
(147, 'filter_urltolink', 'formats', '0'),
(148, 'filter_urltolink', 'embedimages', '1'),
(149, 'filter_emoticon', 'formats', '1,4,0'),
(150, 'theme_afterburner', 'logo', ''),
(151, 'theme_afterburner', 'footnote', ''),
(152, 'theme_afterburner', 'customcss', ''),
(153, 'theme_arialist', 'logo', ''),
(154, 'theme_arialist', 'tagline', ''),
(155, 'theme_arialist', 'linkcolor', '#f25f0f'),
(156, 'theme_arialist', 'regionwidth', '250'),
(157, 'theme_arialist', 'customcss', ''),
(158, 'theme_brick', 'logo', ''),
(159, 'theme_brick', 'linkcolor', '#06365b'),
(160, 'theme_brick', 'linkhover', '#5487ad'),
(161, 'theme_brick', 'maincolor', '#8e2800'),
(162, 'theme_brick', 'maincolorlink', '#fff0a5'),
(163, 'theme_brick', 'headingcolor', '#5c3500'),
(164, 'theme_formal_white', 'fontsizereference', '13'),
(165, 'theme_formal_white', 'noframe', '0'),
(166, 'theme_formal_white', 'displaylogo', '1'),
(167, 'theme_formal_white', 'logo', ''),
(168, 'theme_formal_white', 'frontpagelogo', ''),
(169, 'theme_formal_white', 'headerbgc', '#E3DFD4'),
(170, 'theme_formal_white', 'creditstomoodleorg', '2'),
(171, 'theme_formal_white', 'blockcolumnwidth', '200'),
(172, 'theme_formal_white', 'blockcontentbgc', '#F6F6F6'),
(173, 'theme_formal_white', 'lblockcolumnbgc', '#E3DFD4'),
(174, 'theme_formal_white', 'rblockcolumnbgc', ''),
(175, 'theme_formal_white', 'footnote', ''),
(176, 'theme_formal_white', 'customcss', ''),
(177, 'theme_fusion', 'linkcolor', '#2d83d5'),
(178, 'theme_fusion', 'tagline', ''),
(179, 'theme_fusion', 'footertext', ''),
(180, 'theme_fusion', 'customcss', ''),
(181, 'theme_magazine', 'background', ''),
(182, 'theme_magazine', 'logo', ''),
(183, 'theme_magazine', 'linkcolor', '#32529a'),
(184, 'theme_magazine', 'linkhover', '#4e2300'),
(185, 'theme_magazine', 'maincolor', '#002f2f'),
(186, 'theme_magazine', 'maincoloraccent', '#092323'),
(187, 'theme_magazine', 'headingcolor', '#4e0000'),
(188, 'theme_magazine', 'blockcolor', '#002f2f'),
(189, 'theme_magazine', 'forumback', '#e6e2af'),
(190, 'theme_mymobile', 'colourswatch', 'light'),
(191, 'theme_mymobile', 'showmobileintro', ''),
(192, 'theme_mymobile', 'showsitetopic', 'topicshow'),
(193, 'theme_mymobile', 'showfullsizeimages', 'ithumb'),
(194, 'theme_mymobile', 'usetableview', 'tabshow'),
(195, 'theme_nimble', 'tagline', ''),
(196, 'theme_nimble', 'footerline', ''),
(197, 'theme_nimble', 'backgroundcolor', '#454545'),
(198, 'theme_nimble', 'linkcolor', '#2a65b1'),
(199, 'theme_nimble', 'linkhover', '#222222'),
(200, 'theme_nonzero', 'regionprewidth', '200'),
(201, 'theme_nonzero', 'regionpostwidth', '200'),
(202, 'theme_nonzero', 'customcss', ''),
(203, 'theme_overlay', 'linkcolor', '#428ab5'),
(204, 'theme_overlay', 'headercolor', '#2a4c7b'),
(205, 'theme_overlay', 'footertext', ''),
(206, 'theme_overlay', 'customcss', ''),
(207, 'theme_sky_high', 'logo', ''),
(208, 'theme_sky_high', 'regionwidth', '240'),
(209, 'theme_sky_high', 'footnote', ''),
(210, 'theme_sky_high', 'customcss', ''),
(211, 'theme_splash', 'logo', ''),
(212, 'theme_splash', 'tagline', 'Virtual learning center'),
(213, 'theme_splash', 'hide_tagline', '0'),
(214, 'theme_splash', 'footnote', ''),
(215, 'theme_splash', 'customcss', ''),
(216, 'qtype_calculated', 'version', '2011102700'),
(217, 'qtype_calculatedmulti', 'version', '2011102700'),
(218, 'qtype_calculatedsimple', 'version', '2011102700'),
(219, 'qtype_description', 'version', '2011102700'),
(220, 'qtype_essay', 'version', '2011102702'),
(221, 'qtype_match', 'version', '2011102700'),
(222, 'qtype_missingtype', 'version', '2011102700'),
(223, 'qtype_multianswer', 'version', '2011102700'),
(224, 'qtype_multichoice', 'version', '2011102700'),
(225, 'qtype_numerical', 'version', '2011102700'),
(226, 'qtype_random', 'version', '2011102700'),
(227, 'qtype_randomsamatch', 'version', '2010090501'),
(228, 'qtype_shortanswer', 'version', '2011102700'),
(229, 'qtype_truefalse', 'version', '2011102700'),
(238, 'auth_cas', 'version', '2011112900'),
(240, 'auth_db', 'version', '2011112900'),
(242, 'auth_email', 'version', '2011112900'),
(243, 'auth_fc', 'version', '2011112900'),
(245, 'auth_imap', 'version', '2011112900'),
(247, 'auth_ldap', 'version', '2011112900'),
(249, 'auth_manual', 'version', '2011112900'),
(250, 'auth_mnet', 'version', '2011112900'),
(252, 'auth_nntp', 'version', '2011112900'),
(254, 'auth_nologin', 'version', '2011112900'),
(255, 'auth_none', 'version', '2011112900'),
(256, 'auth_pam', 'version', '2011112900'),
(258, 'auth_pop3', 'version', '2011112900'),
(260, 'auth_radius', 'version', '2011112900'),
(262, 'auth_shibboleth', 'version', '2011112900'),
(264, 'auth_webservice', 'version', '2011112900'),
(265, 'enrol_authorize', 'version', '2011112902'),
(266, 'enrol_category', 'version', '2011112900'),
(268, 'enrol_cohort', 'version', '2011112900'),
(269, 'enrol_database', 'version', '2011112900'),
(271, 'enrol_flatfile', 'version', '2011112901'),
(272, 'enrol_guest', 'version', '2011112901'),
(274, 'enrol_imsenterprise', 'version', '2011112901'),
(276, 'enrol_ldap', 'version', '2011112900'),
(278, 'enrol_manual', 'version', '2011112901'),
(280, 'enrol_meta', 'version', '2011112901'),
(282, 'enrol_mnet', 'version', '2011112900'),
(283, 'enrol_paypal', 'version', '2011112901'),
(284, 'enrol_self', 'version', '2011112900'),
(286, 'message_email', 'version', '2011112900'),
(288, 'message', 'email_provider_enrol_authorize_authorize_enrolment_permitted', 'permitted'),
(289, 'message', 'message_provider_enrol_authorize_authorize_enrolment_loggedin', 'email'),
(290, 'message', 'message_provider_enrol_authorize_authorize_enrolment_loggedoff', 'email'),
(291, 'message', 'email_provider_enrol_flatfile_flatfile_enrolment_permitted', 'permitted'),
(292, 'message', 'message_provider_enrol_flatfile_flatfile_enrolment_loggedin', 'email'),
(293, 'message', 'message_provider_enrol_flatfile_flatfile_enrolment_loggedoff', 'email'),
(294, 'message', 'email_provider_enrol_imsenterprise_imsenterprise_enrolment_permitted', 'permitted'),
(295, 'message', 'message_provider_enrol_imsenterprise_imsenterprise_enrolment_loggedin', 'email'),
(296, 'message', 'message_provider_enrol_imsenterprise_imsenterprise_enrolment_loggedoff', 'email'),
(297, 'message', 'email_provider_enrol_paypal_paypal_enrolment_permitted', 'permitted'),
(298, 'message', 'message_provider_enrol_paypal_paypal_enrolment_loggedin', 'email'),
(299, 'message', 'message_provider_enrol_paypal_paypal_enrolment_loggedoff', 'email'),
(300, 'message', 'email_provider_mod_assignment_assignment_updates_permitted', 'permitted'),
(301, 'message', 'message_provider_mod_assignment_assignment_updates_loggedin', 'email'),
(302, 'message', 'message_provider_mod_assignment_assignment_updates_loggedoff', 'email'),
(303, 'message', 'email_provider_mod_feedback_submission_permitted', 'permitted'),
(304, 'message', 'message_provider_mod_feedback_submission_loggedin', 'email'),
(305, 'message', 'message_provider_mod_feedback_submission_loggedoff', 'email'),
(306, 'message', 'email_provider_mod_feedback_message_permitted', 'permitted'),
(307, 'message', 'message_provider_mod_feedback_message_loggedin', 'email'),
(308, 'message', 'message_provider_mod_feedback_message_loggedoff', 'email'),
(309, 'message', 'email_provider_mod_forum_posts_permitted', 'permitted'),
(310, 'message', 'message_provider_mod_forum_posts_loggedin', 'email'),
(311, 'message', 'message_provider_mod_forum_posts_loggedoff', 'email'),
(312, 'message', 'email_provider_mod_lesson_graded_essay_permitted', 'permitted'),
(313, 'message', 'message_provider_mod_lesson_graded_essay_loggedin', 'email'),
(314, 'message', 'message_provider_mod_lesson_graded_essay_loggedoff', 'email'),
(315, 'message', 'email_provider_mod_quiz_submission_permitted', 'permitted'),
(316, 'message', 'message_provider_mod_quiz_submission_loggedin', 'email'),
(317, 'message', 'message_provider_mod_quiz_submission_loggedoff', 'email'),
(318, 'message', 'email_provider_mod_quiz_confirmation_permitted', 'permitted'),
(319, 'message', 'message_provider_mod_quiz_confirmation_loggedin', 'email'),
(320, 'message', 'message_provider_mod_quiz_confirmation_loggedoff', 'email'),
(321, 'message', 'email_provider_moodle_notices_permitted', 'permitted'),
(322, 'message', 'message_provider_moodle_notices_loggedin', 'email'),
(323, 'message', 'message_provider_moodle_notices_loggedoff', 'email'),
(324, 'message', 'email_provider_moodle_errors_permitted', 'permitted'),
(325, 'message', 'message_provider_moodle_errors_loggedin', 'email'),
(326, 'message', 'message_provider_moodle_errors_loggedoff', 'email'),
(327, 'message', 'email_provider_moodle_instantmessage_permitted', 'permitted'),
(328, 'message', 'message_provider_moodle_instantmessage_loggedoff', 'popup,email'),
(329, 'message', 'email_provider_moodle_backup_permitted', 'permitted'),
(330, 'message', 'message_provider_moodle_backup_loggedin', 'email'),
(331, 'message', 'message_provider_moodle_backup_loggedoff', 'email'),
(332, 'message', 'email_provider_moodle_courserequested_permitted', 'permitted'),
(333, 'message', 'message_provider_moodle_courserequested_loggedin', 'email'),
(334, 'message', 'message_provider_moodle_courserequested_loggedoff', 'email'),
(335, 'message', 'email_provider_moodle_courserequestapproved_permitted', 'permitted'),
(336, 'message', 'message_provider_moodle_courserequestapproved_loggedin', 'email'),
(337, 'message', 'message_provider_moodle_courserequestapproved_loggedoff', 'email'),
(338, 'message', 'email_provider_moodle_courserequestrejected_permitted', 'permitted'),
(339, 'message', 'message_provider_moodle_courserequestrejected_loggedin', 'email'),
(340, 'message', 'message_provider_moodle_courserequestrejected_loggedoff', 'email'),
(341, 'message_jabber', 'version', '2011112900'),
(343, 'message', 'jabber_provider_enrol_authorize_authorize_enrolment_permitted', 'permitted'),
(344, 'message', 'jabber_provider_enrol_flatfile_flatfile_enrolment_permitted', 'permitted'),
(345, 'message', 'jabber_provider_enrol_imsenterprise_imsenterprise_enrolment_permitted', 'permitted'),
(346, 'message', 'jabber_provider_enrol_paypal_paypal_enrolment_permitted', 'permitted'),
(347, 'message', 'jabber_provider_mod_assignment_assignment_updates_permitted', 'permitted'),
(348, 'message', 'jabber_provider_mod_feedback_submission_permitted', 'permitted'),
(349, 'message', 'jabber_provider_mod_feedback_message_permitted', 'permitted'),
(350, 'message', 'jabber_provider_mod_forum_posts_permitted', 'permitted'),
(351, 'message', 'jabber_provider_mod_lesson_graded_essay_permitted', 'permitted'),
(352, 'message', 'jabber_provider_mod_quiz_submission_permitted', 'permitted'),
(353, 'message', 'jabber_provider_mod_quiz_confirmation_permitted', 'permitted'),
(354, 'message', 'jabber_provider_moodle_notices_permitted', 'permitted'),
(355, 'message', 'jabber_provider_moodle_errors_permitted', 'permitted'),
(356, 'message', 'jabber_provider_moodle_instantmessage_permitted', 'permitted'),
(357, 'message', 'jabber_provider_moodle_backup_permitted', 'permitted'),
(358, 'message', 'jabber_provider_moodle_courserequested_permitted', 'permitted'),
(359, 'message', 'jabber_provider_moodle_courserequestapproved_permitted', 'permitted'),
(360, 'message', 'jabber_provider_moodle_courserequestrejected_permitted', 'permitted'),
(361, 'message_popup', 'version', '2011112900'),
(363, 'message', 'popup_provider_enrol_authorize_authorize_enrolment_permitted', 'permitted'),
(364, 'message', 'popup_provider_enrol_flatfile_flatfile_enrolment_permitted', 'permitted'),
(365, 'message', 'popup_provider_enrol_imsenterprise_imsenterprise_enrolment_permitted', 'permitted'),
(366, 'message', 'popup_provider_enrol_paypal_paypal_enrolment_permitted', 'permitted'),
(367, 'message', 'popup_provider_mod_assignment_assignment_updates_permitted', 'permitted'),
(368, 'message', 'popup_provider_mod_feedback_submission_permitted', 'permitted'),
(369, 'message', 'popup_provider_mod_feedback_message_permitted', 'permitted'),
(370, 'message', 'popup_provider_mod_forum_posts_permitted', 'permitted'),
(371, 'message', 'popup_provider_mod_lesson_graded_essay_permitted', 'permitted'),
(372, 'message', 'popup_provider_mod_quiz_submission_permitted', 'permitted'),
(373, 'message', 'popup_provider_mod_quiz_confirmation_permitted', 'permitted'),
(374, 'message', 'popup_provider_moodle_notices_permitted', 'permitted'),
(375, 'message', 'popup_provider_moodle_errors_permitted', 'permitted'),
(376, 'message', 'popup_provider_moodle_instantmessage_permitted', 'permitted'),
(377, 'message', 'message_provider_moodle_instantmessage_loggedin', 'popup'),
(378, 'message', 'popup_provider_moodle_backup_permitted', 'permitted'),
(379, 'message', 'popup_provider_moodle_courserequested_permitted', 'permitted'),
(380, 'message', 'popup_provider_moodle_courserequestapproved_permitted', 'permitted'),
(381, 'message', 'popup_provider_moodle_courserequestrejected_permitted', 'permitted'),
(383, 'filter_activitynames', 'version', '2011112900'),
(384, 'filter_algebra', 'version', '2011112900'),
(385, 'filter_censor', 'version', '2011112900'),
(386, 'filter_data', 'version', '2011102800'),
(388, 'filter_emailprotect', 'version', '2011112900'),
(389, 'filter_emoticon', 'version', '2011112900'),
(390, 'filter_glossary', 'version', '2011102801'),
(392, 'filter_mediaplugin', 'version', '2011112900'),
(394, 'filter_multilang', 'version', '2011112900'),
(395, 'filter_tex', 'version', '2011112900'),
(397, 'filter_tidy', 'version', '2011112900'),
(398, 'filter_urltolink', 'version', '2011112900'),
(399, 'editor_textarea', 'version', '2011112900'),
(400, 'editor_tinymce', 'version', '2012030300'),
(401, 'format_scorm', 'version', '2011120100'),
(402, 'format_social', 'version', '2011120100'),
(403, 'format_topics', 'version', '2011120100'),
(404, 'format_weeks', 'version', '2011120100'),
(405, 'profilefield_checkbox', 'version', '2011112900'),
(406, 'profilefield_datetime', 'version', '2011112900'),
(407, 'profilefield_menu', 'version', '2011112900'),
(408, 'profilefield_text', 'version', '2011112900'),
(409, 'profilefield_textarea', 'version', '2011112900'),
(410, 'report_backups', 'version', '2011110300'),
(411, 'report_completion', 'version', '2011110300'),
(413, 'report_configlog', 'version', '2011110300'),
(414, 'report_courseoverview', 'version', '2011110300'),
(415, 'report_log', 'version', '2011110300'),
(417, 'report_loglive', 'version', '2011110300'),
(418, 'report_outline', 'version', '2011110300'),
(420, 'report_participation', 'version', '2011110300'),
(422, 'report_progress', 'version', '2011110300'),
(424, 'report_questioninstances', 'version', '2011110300'),
(425, 'report_security', 'version', '2011110300'),
(426, 'report_stats', 'version', '2011110300'),
(428, 'gradeexport_ods', 'version', '2011112900'),
(429, 'gradeexport_txt', 'version', '2011112900'),
(430, 'gradeexport_xls', 'version', '2011112900'),
(431, 'gradeexport_xml', 'version', '2011112900'),
(432, 'gradeimport_csv', 'version', '2011112900'),
(433, 'gradeimport_xml', 'version', '2011112900'),
(434, 'gradereport_grader', 'version', '2011112900'),
(435, 'gradereport_outcomes', 'version', '2011112900'),
(436, 'gradereport_overview', 'version', '2011112900'),
(437, 'gradereport_user', 'version', '2011112900'),
(438, 'gradingform_rubric', 'version', '2011110900'),
(439, 'mnetservice_enrol', 'version', '2011112900'),
(440, 'webservice_amf', 'version', '2011112900'),
(441, 'webservice_rest', 'version', '2011112900'),
(442, 'webservice_soap', 'version', '2011112900'),
(443, 'webservice_xmlrpc', 'version', '2011112900'),
(444, 'repository_alfresco', 'version', '2011112900'),
(445, 'repository_boxnet', 'version', '2011112900'),
(446, 'repository_coursefiles', 'version', '2012010100'),
(447, 'repository_dropbox', 'version', '2011112900'),
(448, 'repository_filesystem', 'version', '2012010100'),
(449, 'repository_flickr', 'version', '2011112900'),
(450, 'repository_flickr_public', 'version', '2011112900'),
(451, 'repository_googledocs', 'version', '2011112900'),
(452, 'repository_local', 'version', '2012010100'),
(454, 'local', 'enablecourseinstances', '0'),
(455, 'local', 'enableuserinstances', '0'),
(456, 'repository_merlot', 'version', '2011112900'),
(457, 'repository_picasa', 'version', '2011112900'),
(458, 'repository_recent', 'version', '2011112900'),
(460, 'recent', 'enablecourseinstances', '0'),
(461, 'recent', 'enableuserinstances', '0'),
(462, 'repository_s3', 'version', '2011112900'),
(463, 'repository_upload', 'version', '2011112900'),
(465, 'upload', 'enablecourseinstances', '0'),
(466, 'upload', 'enableuserinstances', '0'),
(467, 'repository_url', 'version', '2011112900'),
(468, 'repository_user', 'version', '2011112900'),
(470, 'user', 'enablecourseinstances', '0'),
(471, 'user', 'enableuserinstances', '0'),
(472, 'repository_webdav', 'version', '2012010100'),
(473, 'repository_wikimedia', 'version', '2011112900'),
(474, 'repository_youtube', 'version', '2011112900'),
(475, 'portfolio_boxnet', 'version', '2011112900'),
(476, 'portfolio_download', 'version', '2011112900'),
(477, 'portfolio_flickr', 'version', '2011112900'),
(478, 'portfolio_googledocs', 'version', '2011112900'),
(479, 'portfolio_mahara', 'version', '2011112900'),
(480, 'portfolio_picasa', 'version', '2011112900'),
(481, 'qbehaviour_adaptive', 'version', '2011102700'),
(482, 'qbehaviour_adaptivenopenalty', 'version', '2011102700'),
(483, 'qbehaviour_deferredcbm', 'version', '2011102700'),
(484, 'qbehaviour_deferredfeedback', 'version', '2011102700'),
(485, 'qbehaviour_immediatecbm', 'version', '2011102700'),
(486, 'qbehaviour_immediatefeedback', 'version', '2011102700'),
(487, 'qbehaviour_informationitem', 'version', '2011102700'),
(488, 'qbehaviour_interactive', 'version', '2011102700'),
(489, 'qbehaviour_interactivecountback', 'version', '2011102700'),
(490, 'qbehaviour_manualgraded', 'version', '2011102700'),
(491, 'qbehaviour_missing', 'version', '2011102700'),
(492, 'qformat_aiken', 'version', '2011102700'),
(493, 'qformat_blackboard', 'version', '2011102701'),
(494, 'qformat_blackboard_six', 'version', '2011102701'),
(495, 'qformat_examview', 'version', '2011102701'),
(496, 'qformat_gift', 'version', '2011102700'),
(497, 'qformat_learnwise', 'version', '2011102700'),
(498, 'qformat_missingword', 'version', '2011102700'),
(499, 'qformat_multianswer', 'version', '2011102700'),
(500, 'qformat_webct', 'version', '2011102700'),
(501, 'qformat_xhtml', 'version', '2011102700'),
(502, 'qformat_xml', 'version', '2011102700'),
(503, 'tool_bloglevelupgrade', 'version', '2011092500'),
(505, 'tool_capability', 'version', '2011092500'),
(506, 'tool_customlang', 'version', '2011092500'),
(508, 'tool_dbtransfer', 'version', '2011092500'),
(509, 'tool_generator', 'version', '2011092500'),
(510, 'tool_health', 'version', '2011092500'),
(511, 'tool_innodb', 'version', '2011092500'),
(512, 'tool_langimport', 'version', '2011092500'),
(513, 'tool_multilangupgrade', 'version', '2011092500'),
(514, 'tool_profiling', 'version', '2011092500'),
(515, 'tool_qeupgradehelper', 'version', '2011092500'),
(517, 'tool_replace', 'version', '2011092500'),
(518, 'tool_spamcleaner', 'version', '2011092500'),
(519, 'tool_timezoneimport', 'version', '2011092500'),
(520, 'tool_unittest', 'version', '2011092500'),
(522, 'tool_unsuproles', 'version', '2011092500'),
(524, 'tool_uploaduser', 'version', '2011092500'),
(525, 'tool_xmldb', 'version', '2011092500'),
(526, 'theme_afterburner', 'version', '2011082400'),
(527, 'theme_anomaly', 'version', '2011082400'),
(528, 'theme_arialist', 'version', '2011082400'),
(529, 'theme_base', 'version', '2011082400'),
(530, 'theme_binarius', 'version', '2011082400'),
(531, 'theme_boxxie', 'version', '2011082400'),
(532, 'theme_brick', 'version', '2011082400'),
(533, 'theme_canvas', 'version', '2011082400'),
(534, 'theme_formal_white', 'version', '2011082400'),
(536, 'theme_formfactor', 'version', '2011082400'),
(537, 'theme_fusion', 'version', '2011082400'),
(538, 'theme_leatherbound', 'version', '2011082400'),
(539, 'theme_magazine', 'version', '2011082400'),
(540, 'theme_mymobile', 'version', '2011101801'),
(541, 'theme_nimble', 'version', '2011082400'),
(542, 'theme_nonzero', 'version', '2011082400'),
(543, 'theme_overlay', 'version', '2011082400'),
(544, 'theme_serenity', 'version', '2011082400'),
(545, 'theme_sky_high', 'version', '2011082400'),
(546, 'theme_splash', 'version', '2011082400'),
(547, 'theme_standard', 'version', '2011082400'),
(548, 'theme_standardold', 'version', '2011082400'),
(549, 'assignment_offline', 'version', '2011112900'),
(550, 'assignment_online', 'version', '2011112900'),
(551, 'assignment_upload', 'version', '2011112900'),
(552, 'assignment_uploadsingle', 'version', '2011112900'),
(553, 'datafield_checkbox', 'version', '2011112900'),
(554, 'datafield_date', 'version', '2011112900'),
(555, 'datafield_file', 'version', '2011112900'),
(556, 'datafield_latlong', 'version', '2011112900'),
(557, 'datafield_menu', 'version', '2011112900'),
(558, 'datafield_multimenu', 'version', '2011112900'),
(559, 'datafield_number', 'version', '2011112900'),
(560, 'datafield_picture', 'version', '2011112900'),
(561, 'datafield_radiobutton', 'version', '2011112900'),
(562, 'datafield_text', 'version', '2011112900'),
(563, 'datafield_textarea', 'version', '2011112900'),
(564, 'datafield_url', 'version', '2011112900'),
(565, 'datapreset_imagegallery', 'version', '2011112900'),
(566, 'quiz_grading', 'version', '2011051200'),
(567, 'quiz_overview', 'version', '2011051200'),
(568, 'quiz_responses', 'version', '2011051200'),
(569, 'quiz_statistics', 'version', '2011122300'),
(571, 'quizaccess_delaybetweenattempts', 'version', '2011092300'),
(572, 'quizaccess_ipaddress', 'version', '2011092300'),
(573, 'quizaccess_numattempts', 'version', '2011092300'),
(574, 'quizaccess_openclosedate', 'version', '2011092300'),
(575, 'quizaccess_password', 'version', '2011092300'),
(576, 'quizaccess_safebrowser', 'version', '2011092300'),
(577, 'quizaccess_securewindow', 'version', '2011092300'),
(578, 'quizaccess_timelimit', 'version', '2011092300'),
(579, 'scormreport_basic', 'version', '2011071100'),
(580, 'scormreport_interactions', 'version', '2011110100'),
(581, 'workshopform_accumulative', 'version', '2010091700'),
(583, 'workshopform_comments', 'version', '2010091700'),
(585, 'workshopform_numerrors', 'version', '2010091700'),
(587, 'workshopform_rubric', 'version', '2010091700'),
(589, 'workshopallocation_manual', 'version', '2010090501'),
(590, 'workshopallocation_random', 'version', '2010090501'),
(591, 'workshopeval_best', 'version', '2010090501'),
(592, 'auth/ldap', 'auth_user_create', '0'),
(593, 'auth/ldap', 'bind_dn', 'cn=admin,dc=ma5,dc=lliurex,dc=net'),
(594, 'auth/ldap', 'bind_pw', 'lliurex'),
(595, 'auth/ldap', 'changepasswordurl', ''),
(596, 'auth/ldap', 'contexts', 'ou=Students,ou=People,dc=ma5,dc=lliurex,dc=net;ou=Teachers,ou=People,dc=ma5,dc=lliurex,dc=net'),
(597, 'auth/ldap', 'create_context', ''),
(598, 'auth/ldap', 'creators', 'ou=Teachers,ou=People,dc=ma5,dc=lliurex,dc=net'),
(599, 'auth/ldap', 'expiration', '0'),
(600, 'auth/ldap', 'expiration_warning', '10'),
(601, 'auth/ldap', 'expireattr', ''),
(602, 'auth/ldap', 'field_lock_address', 'unlocked'),
(603, 'auth/ldap', 'field_lock_city', 'unlocked'),
(604, 'auth/ldap', 'field_lock_country', 'unlocked'),
(605, 'auth/ldap', 'field_lock_department', 'unlocked'),
(606, 'auth/ldap', 'field_lock_description', 'unlocked'),
(607, 'auth/ldap', 'field_lock_email', 'unlocked'),
(608, 'auth/ldap', 'field_lock_firstname', 'unlocked'),
(609, 'auth/ldap', 'field_lock_idnumber', 'unlocked'),
(610, 'auth/ldap', 'field_lock_institution', 'unlocked'),
(611, 'auth/ldap', 'field_lock_lang', 'unlocked'),
(612, 'auth/ldap', 'field_lock_lastname', 'unlocked'),
(613, 'auth/ldap', 'field_lock_phone1', 'unlocked'),
(614, 'auth/ldap', 'field_lock_phone2', 'unlocked'),
(615, 'auth/ldap', 'field_lock_url', 'unlocked'),
(616, 'auth/ldap', 'field_map_address', ''),
(617, 'auth/ldap', 'field_map_city', ''),
(618, 'auth/ldap', 'field_map_country', ''),
(619, 'auth/ldap', 'field_map_department', ''),
(620, 'auth/ldap', 'field_map_description', ''),
(621, 'auth/ldap', 'field_map_email', 'uid'),
(622, 'auth/ldap', 'field_map_firstname', 'cn'),
(623, 'auth/ldap', 'field_map_idnumber', 'uidNumber'),
(624, 'auth/ldap', 'field_map_institution', ''),
(625, 'auth/ldap', 'field_map_lang', ''),
(626, 'auth/ldap', 'field_map_lastname', 'sn'),
(627, 'auth/ldap', 'field_map_phone1', ''),
(628, 'auth/ldap', 'field_map_phone2', ''),
(629, 'auth/ldap', 'field_map_url', ''),
(630, 'auth/ldap', 'field_updatelocal_address', 'oncreate'),
(631, 'auth/ldap', 'field_updatelocal_city', 'oncreate'),
(632, 'auth/ldap', 'field_updatelocal_country', 'oncreate'),
(633, 'auth/ldap', 'field_updatelocal_department', 'oncreate'),
(634, 'auth/ldap', 'field_updatelocal_description', 'oncreate'),
(635, 'auth/ldap', 'field_updatelocal_email', 'oncreate'),
(636, 'auth/ldap', 'field_updatelocal_firstname', 'oncreate'),
(637, 'auth/ldap', 'field_updatelocal_idnumber', 'oncreate'),
(638, 'auth/ldap', 'field_updatelocal_institution', 'oncreate'),
(639, 'auth/ldap', 'field_updatelocal_lang', 'oncreate'),
(640, 'auth/ldap', 'field_updatelocal_lastname', 'oncreate'),
(641, 'auth/ldap', 'field_updatelocal_phone1', 'oncreate'),
(642, 'auth/ldap', 'field_updatelocal_phone2', 'oncreate'),
(643, 'auth/ldap', 'field_updatelocal_url', 'oncreate'),
(644, 'auth/ldap', 'field_updateremote_address', '0'),
(645, 'auth/ldap', 'field_updateremote_city', '0'),
(646, 'auth/ldap', 'field_updateremote_country', '0'),
(647, 'auth/ldap', 'field_updateremote_department', '0'),
(648, 'auth/ldap', 'field_updateremote_description', '0'),
(649, 'auth/ldap', 'field_updateremote_email', '0'),
(650, 'auth/ldap', 'field_updateremote_firstname', '0'),
(651, 'auth/ldap', 'field_updateremote_idnumber', '0'),
(652, 'auth/ldap', 'field_updateremote_institution', '0'),
(653, 'auth/ldap', 'field_updateremote_lang', '0'),
(654, 'auth/ldap', 'field_updateremote_lastname', '0'),
(655, 'auth/ldap', 'field_updateremote_phone1', '0'),
(656, 'auth/ldap', 'field_updateremote_phone2', '0'),
(657, 'auth/ldap', 'field_updateremote_url', '0'),
(658, 'auth/ldap', 'forcechangepassword', '0'),
(659, 'auth/ldap', 'graceattr', ''),
(660, 'auth/ldap', 'gracelogins', '0'),
(661, 'auth/ldap', 'host_url', 'ldap://localhost'),
(662, 'auth/ldap', 'ldapencoding', 'utf-8'),
(663, 'auth/ldap', 'ldap_version', '3'),
(664, 'auth/ldap', 'memberattribute', 'uidmember'),
(665, 'auth/ldap', 'memberattribute_isdn', ''),
(666, 'auth/ldap', 'ntlmsso_enabled', '0'),
(667, 'auth/ldap', 'ntlmsso_ie_fastpath', '0'),
(668, 'auth/ldap', 'ntlmsso_subnet', ''),
(669, 'auth/ldap', 'ntlmsso_type', 'ntlm'),
(670, 'auth/ldap', 'objectclass', ''),
(671, 'auth/ldap', 'opt_deref', '0'),
(672, 'auth/ldap', 'passtype', 'plaintext'),
(673, 'auth/ldap', 'preventpassindb', '1'),
(674, 'auth/ldap', 'removeuser', '0'),
(675, 'auth/ldap', 'search_sub', '1'),
(676, 'auth/ldap', 'stdchangepassword', '0'),
(677, 'auth/ldap', 'user_attribute', 'uid'),
(678, 'auth/ldap', 'user_type', 'default');

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

--
-- Estructura de tabla para la tabla `mdl_context`
--

CREATE TABLE IF NOT EXISTS `mdl_context` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `contextlevel` bigint(10) unsigned NOT NULL DEFAULT '0',
  `instanceid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `path` varchar(255) DEFAULT NULL,
  `depth` tinyint(2) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_cont_conins_uix` (`contextlevel`,`instanceid`),
  KEY `mdl_cont_ins_ix` (`instanceid`),
  KEY `mdl_cont_pat_ix` (`path`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COMMENT='one of these must be set' AUTO_INCREMENT=15 ;

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

INSERT INTO `mdl_context` (`id`, `contextlevel`, `instanceid`, `path`, `depth`) VALUES
(1, 10, 0, '/1', 1),
(2, 50, 1, '/1/2', 2),
(3, 40, 1, '/1/3', 2),
(4, 30, 1, '/1/4', 2),
(5, 30, 2, '/1/5', 2),
(6, 80, 1, '/1/2/6', 3),
(7, 80, 2, '/1/2/7', 3),
(8, 80, 3, '/1/2/8', 3),
(9, 80, 4, '/1/9', 2),
(10, 80, 5, '/1/10', 2),
(11, 80, 6, '/1/11', 2),
(12, 80, 7, '/1/12', 2),
(13, 80, 8, '/1/13', 2),
(14, 80, 9, '/1/14', 2);

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

--
-- Estructura de tabla para la tabla `mdl_context_temp`
--

CREATE TABLE IF NOT EXISTS `mdl_context_temp` (
  `id` bigint(10) unsigned NOT NULL,
  `path` varchar(255) NOT NULL DEFAULT '',
  `depth` tinyint(2) unsigned NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Used by build_context_path() in upgrade and cron to keep con';

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

--
-- Estructura de tabla para la tabla `mdl_course`
--

CREATE TABLE IF NOT EXISTS `mdl_course` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `category` bigint(10) unsigned NOT NULL DEFAULT '0',
  `sortorder` bigint(10) unsigned NOT NULL DEFAULT '0',
  `fullname` varchar(254) NOT NULL DEFAULT '',
  `shortname` varchar(255) NOT NULL DEFAULT '',
  `idnumber` varchar(100) NOT NULL DEFAULT '',
  `summary` text,
  `summaryformat` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `format` varchar(10) NOT NULL DEFAULT 'topics',
  `showgrades` tinyint(2) unsigned NOT NULL DEFAULT '1',
  `modinfo` longtext,
  `newsitems` mediumint(5) unsigned NOT NULL DEFAULT '1',
  `startdate` bigint(10) unsigned NOT NULL DEFAULT '0',
  `numsections` mediumint(5) unsigned NOT NULL DEFAULT '1',
  `marker` bigint(10) unsigned NOT NULL DEFAULT '0',
  `maxbytes` bigint(10) unsigned NOT NULL DEFAULT '0',
  `legacyfiles` smallint(4) unsigned NOT NULL DEFAULT '0',
  `showreports` smallint(4) unsigned NOT NULL DEFAULT '0',
  `visible` tinyint(1) unsigned NOT NULL DEFAULT '1',
  `visibleold` tinyint(1) unsigned NOT NULL DEFAULT '1',
  `hiddensections` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `groupmode` smallint(4) unsigned NOT NULL DEFAULT '0',
  `groupmodeforce` smallint(4) unsigned NOT NULL DEFAULT '0',
  `defaultgroupingid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `lang` varchar(30) NOT NULL DEFAULT '',
  `theme` varchar(50) NOT NULL DEFAULT '',
  `timecreated` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` bigint(10) unsigned NOT NULL DEFAULT '0',
  `requested` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `restrictmodules` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `enablecompletion` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `completionstartonenrol` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `completionnotify` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_cour_cat_ix` (`category`),
  KEY `mdl_cour_idn_ix` (`idnumber`),
  KEY `mdl_cour_sho_ix` (`shortname`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COMMENT='Central course table' AUTO_INCREMENT=2 ;

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

INSERT INTO `mdl_course` (`id`, `category`, `sortorder`, `fullname`, `shortname`, `idnumber`, `summary`, `summaryformat`, `format`, `showgrades`, `modinfo`, `newsitems`, `startdate`, `numsections`, `marker`, `maxbytes`, `legacyfiles`, `showreports`, `visible`, `visibleold`, `hiddensections`, `groupmode`, `groupmodeforce`, `defaultgroupingid`, `lang`, `theme`, `timecreated`, `timemodified`, `requested`, `restrictmodules`, `enablecompletion`, `completionstartonenrol`, `completionnotify`) VALUES
(1, 0, 0, '', '', '', NULL, 0, 'site', 1, NULL, 3, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, '', '', 1379403689, 1379403689, 0, 0, 0, 0, 0);

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

--
-- Estructura de tabla para la tabla `mdl_course_allowed_modules`
--

CREATE TABLE IF NOT EXISTS `mdl_course_allowed_modules` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` bigint(10) unsigned NOT NULL DEFAULT '0',
  `module` bigint(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_courallomodu_cou_ix` (`course`),
  KEY `mdl_courallomodu_mod_ix` (`module`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='allowed modules foreach course' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_course_categories`
--

CREATE TABLE IF NOT EXISTS `mdl_course_categories` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL DEFAULT '',
  `idnumber` varchar(100) DEFAULT NULL,
  `description` text,
  `descriptionformat` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `parent` bigint(10) unsigned NOT NULL DEFAULT '0',
  `sortorder` bigint(10) unsigned NOT NULL DEFAULT '0',
  `coursecount` bigint(10) unsigned NOT NULL DEFAULT '0',
  `visible` tinyint(1) NOT NULL DEFAULT '1',
  `visibleold` tinyint(1) NOT NULL DEFAULT '1',
  `timemodified` bigint(10) unsigned NOT NULL DEFAULT '0',
  `depth` bigint(10) unsigned NOT NULL DEFAULT '0',
  `path` varchar(255) NOT NULL DEFAULT '',
  `theme` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_courcate_par_ix` (`parent`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COMMENT='Course categories' AUTO_INCREMENT=2 ;

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

INSERT INTO `mdl_course_categories` (`id`, `name`, `idnumber`, `description`, `descriptionformat`, `parent`, `sortorder`, `coursecount`, `visible`, `visibleold`, `timemodified`, `depth`, `path`, `theme`) VALUES
(1, 'Miscellaneous', NULL, NULL, 0, 0, 10000, 0, 1, 1, 1379403689, 1, '/1', NULL);

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

--
-- Estructura de tabla para la tabla `mdl_course_completions`
--

CREATE TABLE IF NOT EXISTS `mdl_course_completions` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `course` bigint(10) unsigned NOT NULL DEFAULT '0',
  `deleted` tinyint(1) unsigned DEFAULT NULL,
  `timenotified` bigint(10) unsigned DEFAULT NULL,
  `timeenrolled` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timestarted` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timecompleted` bigint(10) unsigned DEFAULT NULL,
  `reaggregate` bigint(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_courcomp_use_ix` (`userid`),
  KEY `mdl_courcomp_cou_ix` (`course`),
  KEY `mdl_courcomp_tim_ix` (`timecompleted`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Course completion records' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_course_completion_aggr_methd`
--

CREATE TABLE IF NOT EXISTS `mdl_course_completion_aggr_methd` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` bigint(10) unsigned NOT NULL DEFAULT '0',
  `criteriatype` bigint(20) unsigned DEFAULT NULL,
  `method` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `value` decimal(10,5) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_courcompaggrmeth_cou_ix` (`course`),
  KEY `mdl_courcompaggrmeth_cri_ix` (`criteriatype`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Course completion aggregation methods for criteria' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_course_completion_criteria`
--

CREATE TABLE IF NOT EXISTS `mdl_course_completion_criteria` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` bigint(10) unsigned NOT NULL DEFAULT '0',
  `criteriatype` bigint(20) unsigned NOT NULL DEFAULT '0',
  `module` varchar(100) DEFAULT NULL,
  `moduleinstance` bigint(10) unsigned DEFAULT NULL,
  `courseinstance` bigint(10) unsigned DEFAULT NULL,
  `enrolperiod` bigint(10) unsigned DEFAULT NULL,
  `timeend` bigint(10) unsigned DEFAULT NULL,
  `gradepass` decimal(10,5) DEFAULT NULL,
  `role` bigint(10) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_courcompcrit_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Course completion criteria' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_course_completion_crit_compl`
--

CREATE TABLE IF NOT EXISTS `mdl_course_completion_crit_compl` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `course` bigint(10) unsigned NOT NULL DEFAULT '0',
  `criteriaid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `gradefinal` decimal(10,5) DEFAULT NULL,
  `unenroled` bigint(10) unsigned DEFAULT NULL,
  `deleted` tinyint(1) unsigned DEFAULT NULL,
  `timecompleted` bigint(10) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_courcompcritcomp_use_ix` (`userid`),
  KEY `mdl_courcompcritcomp_cou_ix` (`course`),
  KEY `mdl_courcompcritcomp_cri_ix` (`criteriaid`),
  KEY `mdl_courcompcritcomp_tim_ix` (`timecompleted`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Course completion user records' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_course_completion_notify`
--

CREATE TABLE IF NOT EXISTS `mdl_course_completion_notify` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` bigint(10) unsigned NOT NULL DEFAULT '0',
  `role` bigint(10) unsigned NOT NULL DEFAULT '0',
  `message` text NOT NULL,
  `timesent` bigint(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_courcompnoti_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Course completion notification emails' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_course_display`
--

CREATE TABLE IF NOT EXISTS `mdl_course_display` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` bigint(10) unsigned NOT NULL DEFAULT '0',
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `display` bigint(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_courdisp_couuse_ix` (`course`,`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores info about how to display the course' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_course_modules`
--

CREATE TABLE IF NOT EXISTS `mdl_course_modules` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` bigint(10) unsigned NOT NULL DEFAULT '0',
  `module` bigint(10) unsigned NOT NULL DEFAULT '0',
  `instance` bigint(10) unsigned NOT NULL DEFAULT '0',
  `section` bigint(10) unsigned NOT NULL DEFAULT '0',
  `idnumber` varchar(100) DEFAULT NULL,
  `added` bigint(10) unsigned NOT NULL DEFAULT '0',
  `score` smallint(4) NOT NULL DEFAULT '0',
  `indent` mediumint(5) unsigned NOT NULL DEFAULT '0',
  `visible` tinyint(1) NOT NULL DEFAULT '1',
  `visibleold` tinyint(1) NOT NULL DEFAULT '1',
  `groupmode` smallint(4) NOT NULL DEFAULT '0',
  `groupingid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `groupmembersonly` smallint(4) unsigned NOT NULL DEFAULT '0',
  `completion` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `completiongradeitemnumber` bigint(10) unsigned DEFAULT NULL,
  `completionview` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `completionexpected` bigint(10) unsigned NOT NULL DEFAULT '0',
  `availablefrom` bigint(10) unsigned NOT NULL DEFAULT '0',
  `availableuntil` bigint(10) unsigned NOT NULL DEFAULT '0',
  `showavailability` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `showdescription` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_courmodu_vis_ix` (`visible`),
  KEY `mdl_courmodu_cou_ix` (`course`),
  KEY `mdl_courmodu_mod_ix` (`module`),
  KEY `mdl_courmodu_ins_ix` (`instance`),
  KEY `mdl_courmodu_idncou_ix` (`idnumber`,`course`),
  KEY `mdl_courmodu_gro_ix` (`groupingid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='course_modules table retrofitted from MySQL' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_course_modules_availability`
--

CREATE TABLE IF NOT EXISTS `mdl_course_modules_availability` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `coursemoduleid` bigint(10) unsigned NOT NULL,
  `sourcecmid` bigint(10) unsigned DEFAULT NULL,
  `requiredcompletion` tinyint(1) unsigned DEFAULT NULL,
  `gradeitemid` bigint(10) unsigned DEFAULT NULL,
  `grademin` decimal(10,5) DEFAULT NULL,
  `grademax` decimal(10,5) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_courmoduavai_cou_ix` (`coursemoduleid`),
  KEY `mdl_courmoduavai_sou_ix` (`sourcecmid`),
  KEY `mdl_courmoduavai_gra_ix` (`gradeitemid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table stores conditions that affect whether a module/activit' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_course_modules_completion`
--

CREATE TABLE IF NOT EXISTS `mdl_course_modules_completion` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `coursemoduleid` bigint(10) unsigned NOT NULL,
  `userid` bigint(10) unsigned NOT NULL,
  `completionstate` tinyint(1) unsigned NOT NULL,
  `viewed` tinyint(1) unsigned DEFAULT NULL,
  `timemodified` bigint(10) unsigned NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_courmoducomp_usecou_uix` (`userid`,`coursemoduleid`),
  KEY `mdl_courmoducomp_cou_ix` (`coursemoduleid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Stores the completion state (completed or not completed, etc' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_course_published`
--

CREATE TABLE IF NOT EXISTS `mdl_course_published` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `huburl` varchar(255) DEFAULT NULL,
  `courseid` bigint(10) unsigned NOT NULL,
  `timepublished` bigint(10) unsigned NOT NULL,
  `enrollable` tinyint(1) unsigned NOT NULL DEFAULT '1',
  `hubcourseid` bigint(10) unsigned NOT NULL,
  `status` tinyint(1) unsigned DEFAULT '0',
  `timechecked` bigint(10) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Information about how and when an local courses were publish' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_course_sections`
--

CREATE TABLE IF NOT EXISTS `mdl_course_sections` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` bigint(10) unsigned NOT NULL DEFAULT '0',
  `section` bigint(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) DEFAULT NULL,
  `summary` text,
  `summaryformat` tinyint(2) unsigned NOT NULL DEFAULT '0',
  `sequence` text,
  `visible` tinyint(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`id`),
  KEY `mdl_coursect_cousec_ix` (`course`,`section`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='to define the sections for each course' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_data`
--

CREATE TABLE IF NOT EXISTS `mdl_data` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `course` bigint(10) unsigned NOT NULL DEFAULT '0',
  `name` varchar(255) NOT NULL DEFAULT '',
  `intro` text NOT NULL,
  `introformat` smallint(4) unsigned NOT NULL DEFAULT '0',
  `comments` smallint(4) unsigned NOT NULL DEFAULT '0',
  `timeavailablefrom` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timeavailableto` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timeviewfrom` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timeviewto` bigint(10) unsigned NOT NULL DEFAULT '0',
  `requiredentries` int(8) unsigned NOT NULL DEFAULT '0',
  `requiredentriestoview` int(8) unsigned NOT NULL DEFAULT '0',
  `maxentries` int(8) unsigned NOT NULL DEFAULT '0',
  `rssarticles` smallint(4) unsigned NOT NULL DEFAULT '0',
  `singletemplate` text,
  `listtemplate` text,
  `listtemplateheader` text,
  `listtemplatefooter` text,
  `addtemplate` text,
  `rsstemplate` text,
  `rsstitletemplate` text,
  `csstemplate` text,
  `jstemplate` text,
  `asearchtemplate` text,
  `approval` smallint(4) unsigned NOT NULL DEFAULT '0',
  `scale` bigint(10) NOT NULL DEFAULT '0',
  `assessed` bigint(10) unsigned NOT NULL DEFAULT '0',
  `assesstimestart` bigint(10) unsigned NOT NULL DEFAULT '0',
  `assesstimefinish` bigint(10) unsigned NOT NULL DEFAULT '0',
  `defaultsort` bigint(10) unsigned NOT NULL DEFAULT '0',
  `defaultsortdir` smallint(4) unsigned NOT NULL DEFAULT '0',
  `editany` smallint(4) unsigned NOT NULL DEFAULT '0',
  `notification` bigint(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_data_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='all database activities' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_data_content`
--

CREATE TABLE IF NOT EXISTS `mdl_data_content` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `fieldid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `recordid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `content` longtext,
  `content1` longtext,
  `content2` longtext,
  `content3` longtext,
  `content4` longtext,
  PRIMARY KEY (`id`),
  KEY `mdl_datacont_rec_ix` (`recordid`),
  KEY `mdl_datacont_fie_ix` (`fieldid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='the content introduced in each record/fields' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_data_fields`
--

CREATE TABLE IF NOT EXISTS `mdl_data_fields` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `dataid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `type` varchar(255) NOT NULL DEFAULT '',
  `name` varchar(255) NOT NULL DEFAULT '',
  `description` text NOT NULL,
  `param1` text,
  `param2` text,
  `param3` text,
  `param4` text,
  `param5` text,
  `param6` text,
  `param7` text,
  `param8` text,
  `param9` text,
  `param10` text,
  PRIMARY KEY (`id`),
  KEY `mdl_datafiel_typdat_ix` (`type`,`dataid`),
  KEY `mdl_datafiel_dat_ix` (`dataid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='every field available' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_data_records`
--

CREATE TABLE IF NOT EXISTS `mdl_data_records` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `groupid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `dataid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timecreated` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` bigint(10) unsigned NOT NULL DEFAULT '0',
  `approved` smallint(4) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_datareco_dat_ix` (`dataid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='every record introduced' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_enrol_authorize`
--

CREATE TABLE IF NOT EXISTS `mdl_enrol_authorize` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `paymentmethod` varchar(6) NOT NULL DEFAULT 'cc',
  `refundinfo` smallint(4) unsigned NOT NULL DEFAULT '0',
  `ccname` varchar(255) NOT NULL DEFAULT '',
  `courseid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `instanceid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `transid` bigint(20) unsigned NOT NULL DEFAULT '0',
  `status` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timecreated` bigint(10) unsigned NOT NULL DEFAULT '0',
  `settletime` bigint(10) unsigned NOT NULL DEFAULT '0',
  `amount` varchar(10) NOT NULL DEFAULT '',
  `currency` varchar(3) NOT NULL DEFAULT 'USD',
  PRIMARY KEY (`id`),
  KEY `mdl_enroauth_cou_ix` (`courseid`),
  KEY `mdl_enroauth_use_ix` (`userid`),
  KEY `mdl_enroauth_sta_ix` (`status`),
  KEY `mdl_enroauth_tra_ix` (`transid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Holds all known information about authorize.net transactions' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_enrol_authorize_refunds`
--

CREATE TABLE IF NOT EXISTS `mdl_enrol_authorize_refunds` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `orderid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `status` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `amount` varchar(10) NOT NULL DEFAULT '',
  `transid` bigint(20) unsigned DEFAULT '0',
  `settletime` bigint(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_enroauthrefu_tra_ix` (`transid`),
  KEY `mdl_enroauthrefu_ord_ix` (`orderid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Authorize.net refunds' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_enrol_flatfile`
--

CREATE TABLE IF NOT EXISTS `mdl_enrol_flatfile` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `action` varchar(30) NOT NULL DEFAULT '',
  `roleid` bigint(10) unsigned NOT NULL,
  `userid` bigint(10) unsigned NOT NULL,
  `courseid` bigint(10) unsigned NOT NULL,
  `timestart` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timeend` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` bigint(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_enroflat_cou_ix` (`courseid`),
  KEY `mdl_enroflat_use_ix` (`userid`),
  KEY `mdl_enroflat_rol_ix` (`roleid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='enrol_flatfile table retrofitted from MySQL' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_enrol_paypal`
--

CREATE TABLE IF NOT EXISTS `mdl_enrol_paypal` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `business` varchar(255) NOT NULL DEFAULT '',
  `receiver_email` varchar(255) NOT NULL DEFAULT '',
  `receiver_id` varchar(255) NOT NULL DEFAULT '',
  `item_name` varchar(255) NOT NULL DEFAULT '',
  `courseid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `instanceid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `memo` varchar(255) NOT NULL DEFAULT '',
  `tax` varchar(255) NOT NULL DEFAULT '',
  `option_name1` varchar(255) NOT NULL DEFAULT '',
  `option_selection1_x` varchar(255) NOT NULL DEFAULT '',
  `option_name2` varchar(255) NOT NULL DEFAULT '',
  `option_selection2_x` varchar(255) NOT NULL DEFAULT '',
  `payment_status` varchar(255) NOT NULL DEFAULT '',
  `pending_reason` varchar(255) NOT NULL DEFAULT '',
  `reason_code` varchar(30) NOT NULL DEFAULT '',
  `txn_id` varchar(255) NOT NULL DEFAULT '',
  `parent_txn_id` varchar(255) NOT NULL DEFAULT '',
  `payment_type` varchar(30) NOT NULL DEFAULT '',
  `timeupdated` bigint(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Holds all known information about PayPal transactions' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_event`
--

CREATE TABLE IF NOT EXISTS `mdl_event` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL DEFAULT '',
  `description` text NOT NULL,
  `format` smallint(4) unsigned NOT NULL DEFAULT '0',
  `courseid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `groupid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `userid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `repeatid` bigint(10) unsigned NOT NULL DEFAULT '0',
  `modulename` varchar(20) NOT NULL DEFAULT '',
  `instance` bigint(10) unsigned NOT NULL DEFAULT '0',
  `eventtype` varchar(20) NOT NULL DEFAULT '',
  `timestart` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timeduration` bigint(10) unsigned NOT NULL DEFAULT '0',
  `visible` smallint(4) NOT NULL DEFAULT '1',
  `uuid` varchar(36) NOT NULL DEFAULT '',
  `sequence` bigint(10) unsigned NOT NULL DEFAULT '1',
  `timemodified` bigint(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_even_cou_ix` (`courseid`),
  KEY `mdl_even_use_ix` (`userid`),
  KEY `mdl_even_tim_ix` (`timestart`),
  KEY `mdl_even_tim2_ix` (`timeduration`),
  KEY `mdl_even_grocouvisuse_ix` (`groupid`,`courseid`,`visible`,`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='For everything with a time associated to it' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_events_handlers`
--

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

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

INSERT INTO `mdl_events_handlers` (`id`, `eventname`, `component`, `handlerfile`, `handlerfunction`, `schedule`, `status`, `internal`) VALUES
(1, 'portfolio_send', 'moodle', '/lib/portfolio.php', 's:22:"portfolio_handle_event";', 'cron', 0, 0),
(2, 'user_logout', 'mod_chat', '/mod/chat/lib.php', 's:16:"chat_user_logout";', 'instant', 0, 1),
(3, 'role_assigned', 'mod_forum', '/mod/forum/lib.php', 's:24:"forum_user_role_assigned";', 'instant', 0, 1),
(4, 'user_unenrolled', 'mod_forum', '/mod/forum/lib.php', 's:21:"forum_user_unenrolled";', 'instant', 0, 1),
(5, 'quiz_attempt_submitted', 'mod_quiz', '/mod/quiz/locallib.php', 's:30:"quiz_attempt_submitted_handler";', 'cron', 0, 1),
(6, 'role_assigned', 'enrol_category', '/enrol/category/locallib.php', 'a:2:{i:0;s:22:"enrol_category_handler";i:1;s:13:"role_assigned";}', 'instant', 0, 1),
(7, 'role_unassigned', 'enrol_category', '/enrol/category/locallib.php', 'a:2:{i:0;s:22:"enrol_category_handler";i:1;s:15:"role_unassigned";}', 'instant', 0, 1),
(8, 'cohort_member_added', 'enrol_cohort', '/enrol/cohort/locallib.php', 'a:2:{i:0;s:20:"enrol_cohort_handler";i:1;s:12:"member_added";}', 'instant', 0, 1),
(9, 'cohort_member_removed', 'enrol_cohort', '/enrol/cohort/locallib.php', 'a:2:{i:0;s:20:"enrol_cohort_handler";i:1;s:14:"member_removed";}', 'instant', 0, 1),
(10, 'cohort_deleted', 'enrol_cohort', '/enrol/cohort/locallib.php', 'a:2:{i:0;s:20:"enrol_cohort_handler";i:1;s:7:"deleted";}', 'instant', 0, 1),
(11, 'role_assigned', 'enrol_meta', '/enrol/meta/locallib.php', 'a:2:{i:0;s:18:"enrol_meta_handler";i:1;s:13:"role_assigned";}', 'instant', 0, 1),
(12, 'role_unassigned', 'enrol_meta', '/enrol/meta/locallib.php', 'a:2:{i:0;s:18:"enrol_meta_handler";i:1;s:15:"role_unassigned";}', 'instant', 0, 1),
(13, 'user_enrolled', 'enrol_meta', '/enrol/meta/locallib.php', 'a:2:{i:0;s:18:"enrol_meta_handler";i:1;s:13:"user_enrolled";}', 'instant', 0, 1),
(14, 'user_unenrolled', 'enrol_meta', '/enrol/meta/locallib.php', 'a:2:{i:0;s:18:"enrol_meta_handler";i:1;s:15:"user_unenrolled";}', 'instant', 0, 1),
(15, 'user_enrol_modified', 'enrol_meta', '/enrol/meta/locallib.php', 'a:2:{i:0;s:18:"enrol_meta_handler";i:1;s:19:"user_enrol_modified";}', 'instant', 0, 1),
(16, 'course_deleted', 'enrol_meta', '/enrol/meta/locallib.php', 'a:2:{i:0;s:18:"enrol_meta_handler";i:1;s:14:"course_deleted";}', 'instant', 0, 1),
(17, 'user_deleted', 'portfolio_googledocs', '/portfolio/googledocs/lib.php', 's:33:"portfolio_googledocs_user_deleted";', 'cron', 0, 0),
(18, 'user_deleted', 'portfolio_picasa', '/portfolio/picasa/lib.php', 's:29:"portfolio_picasa_user_deleted";', 'cron', 0, 0);

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

--
-- Estructura de tabla para la tabla `mdl_events_queue`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_events_queue_handlers`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_external_functions`
--

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

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

INSERT INTO `mdl_external_functions` (`id`, `name`, `classname`, `methodname`, `classpath`, `component`, `capabilities`) VALUES
(1, 'moodle_group_create_groups', 'core_group_external', 'create_groups', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(2, 'core_group_create_groups', 'core_group_external', 'create_groups', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(3, 'moodle_group_get_groups', 'core_group_external', 'get_groups', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(4, 'core_group_get_groups', 'core_group_external', 'get_groups', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(5, 'moodle_group_get_course_groups', 'core_group_external', 'get_course_groups', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(6, 'core_group_get_course_groups', 'core_group_external', 'get_course_groups', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(7, 'moodle_group_delete_groups', 'core_group_external', 'delete_groups', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(8, 'core_group_delete_groups', 'core_group_external', 'delete_groups', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(9, 'moodle_group_get_groupmembers', 'core_group_external', 'get_group_members', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(10, 'core_group_get_group_members', 'core_group_external', 'get_group_members', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(11, 'moodle_group_add_groupmembers', 'core_group_external', 'add_group_members', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(12, 'core_group_add_group_members', 'core_group_external', 'add_group_members', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(13, 'moodle_group_delete_groupmembers', 'core_group_external', 'delete_group_members', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(14, 'core_group_delete_group_members', 'core_group_external', 'delete_group_members', 'group/externallib.php', 'moodle', 'moodle/course:managegroups'),
(15, 'moodle_file_get_files', 'core_files_external', 'get_files', 'files/externallib.php', 'moodle', ''),
(16, 'core_files_get_files', 'core_files_external', 'get_files', 'files/externallib.php', 'moodle', ''),
(17, 'moodle_file_upload', 'core_files_external', 'upload', 'files/externallib.php', 'moodle', ''),
(18, 'core_files_upload', 'core_files_external', 'upload', 'files/externallib.php', 'moodle', ''),
(19, 'moodle_user_create_users', 'core_user_external', 'create_users', 'user/externallib.php', 'moodle', 'moodle/user:create'),
(20, 'core_user_create_users', 'core_user_external', 'create_users', 'user/externallib.php', 'moodle', 'moodle/user:create'),
(21, 'moodle_user_get_users_by_id', 'core_user_external', 'get_users_by_id', 'user/externallib.php', 'moodle', 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update'),
(22, 'core_user_get_users_by_id', 'core_user_external', 'get_users_by_id', 'user/externallib.php', 'moodle', 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update'),
(23, 'moodle_user_get_users_by_courseid', 'core_enrol_external', 'get_enrolled_users', 'enrol/externallib.php', 'moodle', 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update, moodle/site:accessallgroups'),
(24, 'moodle_user_get_course_participants_by_id', 'core_user_external', 'get_course_user_profiles', 'user/externallib.php', 'moodle', 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update, moodle/site:accessallgroups'),
(25, 'core_user_get_course_user_profiles', 'core_user_external', 'get_course_user_profiles', 'user/externallib.php', 'moodle', 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update, moodle/site:accessallgroups'),
(26, 'moodle_user_delete_users', 'core_user_external', 'delete_users', 'user/externallib.php', 'moodle', 'moodle/user:delete'),
(27, 'core_user_delete_users', 'core_user_external', 'delete_users', 'user/externallib.php', 'moodle', 'moodle/user:delete'),
(28, 'moodle_user_update_users', 'core_user_external', 'update_users', 'user/externallib.php', 'moodle', 'moodle/user:update'),
(29, 'core_user_update_users', 'core_user_external', 'update_users', 'user/externallib.php', 'moodle', 'moodle/user:update'),
(30, 'moodle_enrol_get_enrolled_users', 'moodle_enrol_external', 'get_enrolled_users', 'enrol/externallib.php', 'moodle', 'moodle/site:viewparticipants, moodle/course:viewparticipants,\n            moodle/role:review, moodle/site:accessallgroups, moodle/course:enrolreview'),
(31, 'core_enrol_get_enrolled_users', 'core_enrol_external', 'get_enrolled_users', 'enrol/externallib.php', 'moodle', 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update, moodle/site:accessallgroups'),
(32, 'moodle_enrol_get_users_courses', 'core_enrol_external', 'get_users_courses', 'enrol/externallib.php', 'moodle', 'moodle/course:viewparticipants'),
(33, 'core_enrol_get_users_courses', 'core_enrol_external', 'get_users_courses', 'enrol/externallib.php', 'moodle', 'moodle/course:viewparticipants'),
(34, 'moodle_role_assign', 'core_role_external', 'assign_roles', 'enrol/externallib.php', 'moodle', 'moodle/role:assign'),
(35, 'core_role_assign_roles', 'core_role_external', 'assign_roles', 'enrol/externallib.php', 'moodle', 'moodle/role:assign'),
(36, 'moodle_role_unassign', 'core_role_external', 'unassign_roles', 'enrol/externallib.php', 'moodle', 'moodle/role:assign'),
(37, 'core_role_unassign_roles', 'core_role_external', 'unassign_roles', 'enrol/externallib.php', 'moodle', 'moodle/role:assign'),
(38, 'moodle_course_get_courses', 'core_course_external', 'get_courses', 'course/externallib.php', 'moodle', 'moodle/course:view,moodle/course:update,moodle/course:viewhiddencourses'),
(39, 'core_course_get_courses', 'core_course_external', 'get_courses', 'course/externallib.php', 'moodle', 'moodle/course:view,moodle/course:update,moodle/course:viewhiddencourses'),
(40, 'moodle_course_create_courses', 'core_course_external', 'create_courses', 'course/externallib.php', 'moodle', 'moodle/course:create,moodle/course:visibility'),
(41, 'core_course_create_courses', 'core_course_external', 'create_courses', 'course/externallib.php', 'moodle', 'moodle/course:create,moodle/course:visibility'),
(42, 'core_course_get_contents', 'core_course_external', 'get_course_contents', 'course/externallib.php', 'moodle', 'moodle/course:update,moodle/course:viewhiddencourses'),
(43, 'moodle_message_send_instantmessages', 'core_message_external', 'send_instant_messages', 'message/externallib.php', 'moodle', 'moodle/site:sendmessage'),
(44, 'core_message_send_instant_messages', 'core_message_external', 'send_instant_messages', 'message/externallib.php', 'moodle', 'moodle/site:sendmessage'),
(45, 'moodle_notes_create_notes', 'core_notes_external', 'create_notes', 'notes/externallib.php', 'moodle', 'moodle/notes:manage'),
(46, 'core_notes_create_notes', 'core_notes_external', 'create_notes', 'notes/externallib.php', 'moodle', 'moodle/notes:manage'),
(47, 'moodle_webservice_get_siteinfo', 'core_webservice_external', 'get_site_info', 'webservice/externallib.php', 'moodle', ''),
(48, 'core_webservice_get_site_info', 'core_webservice_external', 'get_site_info', 'webservice/externallib.php', 'moodle', ''),
(49, 'moodle_enrol_manual_enrol_users', 'enrol_manual_external', 'enrol_users', 'enrol/manual/externallib.php', 'enrol_manual', 'enrol/manual:enrol'),
(50, 'enrol_manual_enrol_users', 'enrol_manual_external', 'enrol_users', 'enrol/manual/externallib.php', 'enrol_manual', 'enrol/manual:enrol');

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

--
-- Estructura de tabla para la tabla `mdl_external_services`
--

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

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

INSERT INTO `mdl_external_services` (`id`, `name`, `enabled`, `requiredcapability`, `restrictedusers`, `component`, `timecreated`, `timemodified`, `shortname`, `downloadfiles`) VALUES
(1, 'Moodle mobile web service', 0, NULL, 0, 'moodle', 1379403695, NULL, 'moodle_mobile_app', 1);

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

--
-- Estructura de tabla para la tabla `mdl_external_services_functions`
--

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

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

INSERT INTO `mdl_external_services_functions` (`id`, `externalserviceid`, `functionname`) VALUES
(1, 1, 'moodle_enrol_get_users_courses'),
(2, 1, 'moodle_enrol_get_enrolled_users'),
(3, 1, 'moodle_user_get_users_by_id'),
(4, 1, 'moodle_webservice_get_siteinfo'),
(5, 1, 'moodle_notes_create_notes'),
(6, 1, 'moodle_user_get_course_participants_by_id'),
(7, 1, 'moodle_user_get_users_by_courseid'),
(8, 1, 'moodle_message_send_instantmessages'),
(9, 1, 'core_course_get_contents');

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

--
-- Estructura de tabla para la tabla `mdl_external_services_users`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_feedback`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_feedback_completed`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_feedback_completedtmp`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_feedback_item`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_feedback_sitecourse_map`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_feedback_template`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_feedback_tracking`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_feedback_value`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_feedback_valuetmp`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_files`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_filter_active`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_filter_config`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_folder`
--

CREATE TABLE IF NOT EXISTS `mdl_folder` (
  `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',
  `revision` bigint(10) unsigned NOT NULL DEFAULT '0',
  `timemodified` bigint(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_fold_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='each record is one folder resource' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_forum`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_forum_discussions`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_forum_posts`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_forum_queue`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_forum_read`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_forum_subscriptions`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_forum_track_prefs`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_glossary`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_glossary_alias`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_glossary_categories`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_glossary_entries`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_glossary_entries_categories`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_glossary_formats`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_grade_categories`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_grade_categories_history`
--

CREATE TABLE IF NOT EXISTS `mdl_grade_categories_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,
  `parent` bigint(10) unsigned DEFAULT NULL,
  `depth` bigint(10) unsigned NOT NULL DEFAULT '0',
  `path` varchar(255) DEFAULT NULL,
  `fullname` varchar(255) NOT NULL DEFAULT '',
  `aggregation` bigint(10) NOT NULL DEFAULT '0',
  `keephigh` bigint(10) NOT NULL DEFAULT '0',
  `droplow` bigint(10) NOT NULL DEFAULT '0',
  `aggregateonlygraded` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `aggregateoutcomes` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `aggregatesubcats` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `hidden` tinyint(1) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_gradcatehist_act_ix` (`action`),
  KEY `mdl_gradcatehist_old_ix` (`oldid`),
  KEY `mdl_gradcatehist_cou_ix` (`courseid`),
  KEY `mdl_gradcatehist_par_ix` (`parent`),
  KEY `mdl_gradcatehist_log_ix` (`loggeduser`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='History of grade_categories' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_grade_grades`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_grade_grades_history`
--

CREATE TABLE IF NOT EXISTS `mdl_grade_grades_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,
  `itemid` bigint(10) unsigned NOT NULL,
  `userid` bigint(10) unsigned NOT NULL,
  `rawgrade` decimal(10,5) DEFAULT NULL,
  `rawgrademax` decimal(10,5) NOT NULL DEFAULT '100.00000',
  `rawgrademin` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `rawscaleid` bigint(10) unsigned DEFAULT NULL,
  `usermodified` bigint(10) unsigned DEFAULT NULL,
  `finalgrade` decimal(10,5) DEFAULT NULL,
  `hidden` bigint(10) unsigned NOT NULL DEFAULT '0',
  `locked` bigint(10) unsigned NOT NULL DEFAULT '0',
  `locktime` bigint(10) unsigned NOT NULL DEFAULT '0',
  `exported` bigint(10) unsigned NOT NULL DEFAULT '0',
  `overridden` bigint(10) unsigned NOT NULL DEFAULT '0',
  `excluded` bigint(10) unsigned NOT NULL DEFAULT '0',
  `feedback` mediumtext,
  `feedbackformat` bigint(10) unsigned NOT NULL DEFAULT '0',
  `information` mediumtext,
  `informationformat` bigint(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_gradgradhist_act_ix` (`action`),
  KEY `mdl_gradgradhist_old_ix` (`oldid`),
  KEY `mdl_gradgradhist_ite_ix` (`itemid`),
  KEY `mdl_gradgradhist_use_ix` (`userid`),
  KEY `mdl_gradgradhist_raw_ix` (`rawscaleid`),
  KEY `mdl_gradgradhist_use2_ix` (`usermodified`),
  KEY `mdl_gradgradhist_log_ix` (`loggeduser`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='History table' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_grade_import_newitem`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_grade_import_values`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_grade_items`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_grade_items_history`
--

CREATE TABLE IF NOT EXISTS `mdl_grade_items_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 DEFAULT NULL,
  `categoryid` bigint(10) unsigned DEFAULT NULL,
  `itemname` varchar(255) DEFAULT NULL,
  `itemtype` varchar(30) NOT NULL DEFAULT '',
  `itemmodule` varchar(30) DEFAULT NULL,
  `iteminstance` bigint(10) unsigned DEFAULT NULL,
  `itemnumber` bigint(10) unsigned DEFAULT NULL,
  `iteminfo` mediumtext,
  `idnumber` varchar(255) DEFAULT NULL,
  `calculation` mediumtext,
  `gradetype` smallint(4) NOT NULL DEFAULT '1',
  `grademax` decimal(10,5) NOT NULL DEFAULT '100.00000',
  `grademin` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `scaleid` bigint(10) unsigned DEFAULT NULL,
  `outcomeid` bigint(10) unsigned DEFAULT NULL,
  `gradepass` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `multfactor` decimal(10,5) NOT NULL DEFAULT '1.00000',
  `plusfactor` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `aggregationcoef` decimal(10,5) NOT NULL DEFAULT '0.00000',
  `sortorder` bigint(10) NOT NULL DEFAULT '0',
  `hidden` bigint(10) NOT NULL DEFAULT '0',
  `locked` bigint(10) NOT NULL DEFAULT '0',
  `locktime` bigint(10) unsigned NOT NULL DEFAULT '0',
  `needsupdate` bigint(10) NOT NULL DEFAULT '0',
  `display` bigint(10) NOT NULL DEFAULT '0',
  `decimals` tinyint(1) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `mdl_graditemhist_act_ix` (`action`),
  KEY `mdl_graditemhist_old_ix` (`oldid`),
  KEY `mdl_graditemhist_cou_ix` (`courseid`),
  KEY `mdl_graditemhist_cat_ix` (`categoryid`),
  KEY `mdl_graditemhist_sca_ix` (`scaleid`),
  KEY `mdl_graditemhist_out_ix` (`outcomeid`),
  KEY `mdl_graditemhist_log_ix` (`loggeduser`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='History of grade_items' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_grade_letters`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_grade_outcomes`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_grade_outcomes_courses`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_grade_outcomes_history`
--

CREATE TABLE IF NOT EXISTS `mdl_grade_outcomes_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 DEFAULT NULL,
  `shortname` varchar(255) NOT NULL DEFAULT '',
  `fullname` text NOT NULL,
  `scaleid` bigint(10) unsigned DEFAULT NULL,
  `description` text,
  `descriptionformat` tinyint(2) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_gradoutchist_act_ix` (`action`),
  KEY `mdl_gradoutchist_old_ix` (`oldid`),
  KEY `mdl_gradoutchist_cou_ix` (`courseid`),
  KEY `mdl_gradoutchist_sca_ix` (`scaleid`),
  KEY `mdl_gradoutchist_log_ix` (`loggeduser`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='History table' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_grade_settings`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_gradingform_rubric_criteria`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_gradingform_rubric_fillings`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_gradingform_rubric_levels`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_grading_areas`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_grading_definitions`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_grading_instances`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_groupings`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_groupings_groups`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_groups`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_groups_members`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_imscp`
--

CREATE TABLE IF NOT EXISTS `mdl_imscp` (
  `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',
  `revision` bigint(10) unsigned NOT NULL DEFAULT '0',
  `keepold` bigint(10) NOT NULL DEFAULT '-1',
  `structure` mediumtext,
  `timemodified` bigint(10) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `mdl_imsc_cou_ix` (`course`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='each record is one imscp resource' AUTO_INCREMENT=1 ;

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

--
-- Estructura de tabla para la tabla `mdl_label`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_lesson_answers`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_lesson_attempts`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_lesson_branch`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_lesson_grades`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_lesson_high_scores`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_lesson_pages`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_lesson_timer`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_license`
--

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

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

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

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

--
-- Estructura de tabla para la tabla `mdl_log`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_log_display`
--

CREATE TABLE IF NOT EXISTS `mdl_log_display` (
  `id` bigint(10) unsigned NOT NULL AUTO_INCREMENT,
  `module` varchar(20) NOT NULL DEFAULT '',
  `action` varchar(40) NOT NULL DEFAULT '',
  `mtable` varchar(30) NOT NULL DEFAULT '',
  `field` varchar(200) NOT NULL DEFAULT '',
  `component` varchar(100) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `mdl_logdisp_modact_uix` (`module`,`action`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COMMENT='For a particular module/action, specifies a moodle table/fie' AUTO_INCREMENT=145 ;

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

INSERT INTO `mdl_log_display` (`id`, `module`, `action`, `mtable`, `field`, `component`) VALUES
(1, 'user', 'view', 'user', 'CONCAT(firstname, '' '', lastname)', 'moodle'),
(2, 'course', 'user report', 'user', 'CONCAT(firstname, '' '', lastname)', 'moodle'),
(3, 'course', 'view', 'course', 'fullname', 'moodle'),
(4, 'course', 'update', 'course', 'fullname', 'moodle'),
(5, 'course', 'enrol', 'course', 'fullname', 'moodle'),
(6, 'course', 'unenrol', 'course', 'fullname', 'moodle'),
(7, 'course', 'report log', 'course', 'fullname', 'moodle'),
(8, 'course', 'report live', 'course', 'fullname', 'moodle'),
(9, 'course', 'report outline', 'course', 'fullname', 'moodle'),
(10, 'course', 'report participation', 'course', 'fullname', 'moodle'),
(11, 'course', 'report stats', 'course', 'fullname', 'moodle'),
(12, 'message', 'write', 'user', 'CONCAT(firstname, '' '', lastname)', 'moodle'),
(13, 'message', 'read', 'user', 'CONCAT(firstname, '' '', lastname)', 'moodle'),
(14, 'message', 'add contact', 'user', 'CONCAT(firstname, '' '', lastname)', 'moodle'),
(15, 'message', 'remove contact', 'user', 'CONCAT(firstname, '' '', lastname)', 'moodle'),
(16, 'message', 'block contact', 'user', 'CONCAT(firstname, '' '', lastname)', 'moodle'),
(17, 'message', 'unblock contact', 'user', 'CONCAT(firstname, '' '', lastname)', 'moodle'),
(18, 'group', 'view', 'groups', 'name', 'moodle'),
(19, 'tag', 'update', 'tag', 'name', 'moodle'),
(20, 'tag', 'flag', 'tag', 'name', 'moodle'),
(21, 'assignment', 'view', 'assignment', 'name', 'mod_assignment'),
(22, 'assignment', 'add', 'assignment', 'name', 'mod_assignment'),
(23, 'assignment', 'update', 'assignment', 'name', 'mod_assignment'),
(24, 'assignment', 'view submission', 'assignment', 'name', 'mod_assignment'),
(25, 'assignment', 'upload', 'assignment', 'name', 'mod_assignment'),
(26, 'chat', 'view', 'chat', 'name', 'mod_chat'),
(27, 'chat', 'add', 'chat', 'name', 'mod_chat'),
(28, 'chat', 'update', 'chat', 'name', 'mod_chat'),
(29, 'chat', 'report', 'chat', 'name', 'mod_chat'),
(30, 'chat', 'talk', 'chat', 'name', 'mod_chat'),
(31, 'choice', 'view', 'choice', 'name', 'mod_choice'),
(32, 'choice', 'update', 'choice', 'name', 'mod_choice'),
(33, 'choice', 'add', 'choice', 'name', 'mod_choice'),
(34, 'choice', 'report', 'choice', 'name', 'mod_choice'),
(35, 'choice', 'choose', 'choice', 'name', 'mod_choice'),
(36, 'choice', 'choose again', 'choice', 'name', 'mod_choice'),
(37, 'data', 'view', 'data', 'name', 'mod_data'),
(38, 'data', 'add', 'data', 'name', 'mod_data'),
(39, 'data', 'update', 'data', 'name', 'mod_data'),
(40, 'data', 'record delete', 'data', 'name', 'mod_data'),
(41, 'data', 'fields add', 'data_fields', 'name', 'mod_data'),
(42, 'data', 'fields update', 'data_fields', 'name', 'mod_data'),
(43, 'data', 'templates saved', 'data', 'name', 'mod_data'),
(44, 'data', 'templates def', 'data', 'name', 'mod_data'),
(45, 'feedback', 'startcomplete', 'feedback', 'name', 'mod_feedback'),
(46, 'feedback', 'submit', 'feedback', 'name', 'mod_feedback'),
(47, 'feedback', 'delete', 'feedback', 'name', 'mod_feedback'),
(48, 'feedback', 'view', 'feedback', 'name', 'mod_feedback'),
(49, 'feedback', 'view all', 'course', 'shortname', 'mod_feedback'),
(50, 'folder', 'view', 'folder', 'name', 'mod_folder'),
(51, 'folder', 'view all', 'folder', 'name', 'mod_folder'),
(52, 'folder', 'update', 'folder', 'name', 'mod_folder'),
(53, 'folder', 'add', 'folder', 'name', 'mod_folder'),
(54, 'forum', 'add', 'forum', 'name', 'mod_forum'),
(55, 'forum', 'update', 'forum', 'name', 'mod_forum'),
(56, 'forum', 'add discussion', 'forum_discussions', 'name', 'mod_forum'),
(57, 'forum', 'add post', 'forum_posts', 'subject', 'mod_forum'),
(58, 'forum', 'update post', 'forum_posts', 'subject', 'mod_forum'),
(59, 'forum', 'user report', 'user', 'CONCAT(firstname, '' '', lastname)', 'mod_forum'),
(60, 'forum', 'move discussion', 'forum_discussions', 'name', 'mod_forum'),
(61, 'forum', 'view subscribers', 'forum', 'name', 'mod_forum'),
(62, 'forum', 'view discussion', 'forum_discussions', 'name', 'mod_forum'),
(63, 'forum', 'view forum', 'forum', 'name', 'mod_forum'),
(64, 'forum', 'subscribe', 'forum', 'name', 'mod_forum'),
(65, 'forum', 'unsubscribe', 'forum', 'name', 'mod_forum'),
(66, 'glossary', 'add', 'glossary', 'name', 'mod_glossary'),
(67, 'glossary', 'update', 'glossary', 'name', 'mod_glossary'),
(68, 'glossary', 'view', 'glossary', 'name', 'mod_glossary'),
(69, 'glossary', 'view all', 'glossary', 'name', 'mod_glossary'),
(70, 'glossary', 'add entry', 'glossary', 'name', 'mod_glossary'),
(71, 'glossary', 'update entry', 'glossary', 'name', 'mod_glossary'),
(72, 'glossary', 'add category', 'glossary', 'name', 'mod_glossary'),
(73, 'glossary', 'update category', 'glossary', 'name', 'mod_glossary'),
(74, 'glossary', 'delete category', 'glossary', 'name', 'mod_glossary'),
(75, 'glossary', 'approve entry', 'glossary', 'name', 'mod_glossary'),
(76, 'glossary', 'view entry', 'glossary_entries', 'concept', 'mod_glossary'),
(77, 'imscp', 'view', 'imscp', 'name', 'mod_imscp'),
(78, 'imscp', 'view all', 'imscp', 'name', 'mod_imscp'),
(79, 'imscp', 'update', 'imscp', 'name', 'mod_imscp'),
(80, 'imscp', 'add', 'imscp', 'name', 'mod_imscp'),
(81, 'label', 'add', 'label', 'name', 'mod_label'),
(82, 'label', 'update', 'label', 'name', 'mod_label'),
(83, 'lesson', 'start', 'lesson', 'name', 'mod_lesson'),
(84, 'lesson', 'end', 'lesson', 'name', 'mod_lesson'),
(85, 'lesson', 'view', 'lesson_pages', 'title', 'mod_lesson'),
(86, 'lti', 'view', 'lti', 'name', 'mod_lti'),
(87, 'lti', 'launch', 'lti', 'name', 'mod_lti'),
(88, 'lti', 'view all', 'lti', 'name', 'mod_lti'),
(89, 'page', 'view', 'page', 'name', 'mod_page'),
(90, 'page', 'view all', 'page', 'name', 'mod_page'),
(91, 'page', 'update', 'page', 'name', 'mod_page'),
(92, 'page', 'add', 'page', 'name', 'mod_page'),
(93, 'quiz', 'add', 'quiz', 'name', 'mod_quiz'),
(94, 'quiz', 'update', 'quiz', 'name', 'mod_quiz'),
(95, 'quiz', 'view', 'quiz', 'name', 'mod_quiz'),
(96, 'quiz', 'report', 'quiz', 'name', 'mod_quiz'),
(97, 'quiz', 'attempt', 'quiz', 'name', 'mod_quiz'),
(98, 'quiz', 'submit', 'quiz', 'name', 'mod_quiz'),
(99, 'quiz', 'review', 'quiz', 'name', 'mod_quiz'),
(100, 'quiz', 'editquestions', 'quiz', 'name', 'mod_quiz'),
(101, 'quiz', 'preview', 'quiz', 'name', 'mod_quiz'),
(102, 'quiz', 'start attempt', 'quiz', 'name', 'mod_quiz'),
(103, 'quiz', 'close attempt', 'quiz', 'name', 'mod_quiz'),
(104, 'quiz', 'continue attempt', 'quiz', 'name', 'mod_quiz'),
(105, 'quiz', 'edit override', 'quiz', 'name', 'mod_quiz'),
(106, 'quiz', 'delete override', 'quiz', 'name', 'mod_quiz'),
(107, 'resource', 'view', 'resource', 'name', 'mod_resource'),
(108, 'resource', 'view all', 'resource', 'name', 'mod_resource'),
(109, 'resource', 'update', 'resource', 'name', 'mod_resource'),
(110, 'resource', 'add', 'resource', 'name', 'mod_resource'),
(111, 'scorm', 'view', 'scorm', 'name', 'mod_scorm'),
(112, 'scorm', 'review', 'scorm', 'name', 'mod_scorm'),
(113, 'scorm', 'update', 'scorm', 'name', 'mod_scorm'),
(114, 'scorm', 'add', 'scorm', 'name', 'mod_scorm'),
(115, 'survey', 'add', 'survey', 'name', 'mod_survey'),
(116, 'survey', 'update', 'survey', 'name', 'mod_survey'),
(117, 'survey', 'download', 'survey', 'name', 'mod_survey'),
(118, 'survey', 'view form', 'survey', 'name', 'mod_survey'),
(119, 'survey', 'view graph', 'survey', 'name', 'mod_survey'),
(120, 'survey', 'view report', 'survey', 'name', 'mod_survey'),
(121, 'survey', 'submit', 'survey', 'name', 'mod_survey'),
(122, 'url', 'view', 'url', 'name', 'mod_url'),
(123, 'url', 'view all', 'url', 'name', 'mod_url'),
(124, 'url', 'update', 'url', 'name', 'mod_url'),
(125, 'url', 'add', 'url', 'name', 'mod_url'),
(126, 'workshop', 'add', 'workshop', 'name', 'mod_workshop'),
(127, 'workshop', 'update', 'workshop', 'name', 'mod_workshop'),
(128, 'workshop', 'view', 'workshop', 'name', 'mod_workshop'),
(129, 'workshop', 'view all', 'workshop', 'name', 'mod_workshop'),
(130, 'workshop', 'add submission', 'workshop_submissions', 'title', 'mod_workshop'),
(131, 'workshop', 'update submission', 'workshop_submissions', 'title', 'mod_workshop'),
(132, 'workshop', 'view submission', 'workshop_submissions', 'title', 'mod_workshop'),
(133, 'workshop', 'add assessment', 'workshop_submissions', 'title', 'mod_workshop'),
(134, 'workshop', 'update assessment', 'workshop_submissions', 'title', 'mod_workshop'),
(135, 'workshop', 'add example', 'workshop_submissions', 'title', 'mod_workshop'),
(136, 'workshop', 'update example', 'workshop_submissions', 'title', 'mod_workshop'),
(137, 'workshop', 'view example', 'workshop_submissions', 'title', 'mod_workshop'),
(138, 'workshop', 'add reference assessment', 'workshop_submissions', 'title', 'mod_workshop'),
(139, 'workshop', 'update reference assessment', 'workshop_submissions', 'title', 'mod_workshop'),
(140, 'workshop', 'add example assessment', 'workshop_submissions', 'title', 'mod_workshop'),
(141, 'workshop', 'update example assessment', 'workshop_submissions', 'title', 'mod_workshop'),
(142, 'workshop', 'update aggregate grades', 'workshop', 'name', 'mod_workshop'),
(143, 'workshop', 'update clear aggregated grades', 'workshop', 'name', 'mod_workshop'),
(144, 'workshop', 'update clear assessments', 'workshop', 'name', 'mod_workshop');

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

--
-- Estructura de tabla para la tabla `mdl_log_queries`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_lti_submission`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_lti_types`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_lti_types_config`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_message`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_message_contacts`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_message_processors`
--

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

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

INSERT INTO `mdl_message_processors` (`id`, `name`, `enabled`) VALUES
(1, 'email', 1),
(2, 'jabber', 1),
(3, 'popup', 1);

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

--
-- Estructura de tabla para la tabla `mdl_message_providers`
--

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

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

INSERT INTO `mdl_message_providers` (`id`, `name`, `component`, `capability`) VALUES
(1, 'notices', 'moodle', 'moodle/site:config'),
(2, 'errors', 'moodle', 'moodle/site:config'),
(3, 'instantmessage', 'moodle', NULL),
(4, 'backup', 'moodle', 'moodle/site:config'),
(5, 'courserequested', 'moodle', 'moodle/site:approvecourse'),
(6, 'courserequestapproved', 'moodle', 'moodle/course:request'),
(7, 'courserequestrejected', 'moodle', 'moodle/course:request'),
(8, 'assignment_updates', 'mod_assignment', NULL),
(9, 'submission', 'mod_feedback', NULL),
(10, 'message', 'mod_feedback', NULL),
(11, 'posts', 'mod_forum', NULL),
(12, 'graded_essay', 'mod_lesson', NULL),
(13, 'submission', 'mod_quiz', 'mod/quiz:emailnotifysubmission'),
(14, 'confirmation', 'mod_quiz', 'mod/quiz:emailconfirmsubmission'),
(15, 'authorize_enrolment', 'enrol_authorize', NULL),
(16, 'flatfile_enrolment', 'enrol_flatfile', NULL),
(17, 'imsenterprise_enrolment', 'enrol_imsenterprise', NULL),
(18, 'paypal_enrolment', 'enrol_paypal', NULL);

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

--
-- Estructura de tabla para la tabla `mdl_message_read`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_message_working`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_mnetservice_enrol_courses`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_mnetservice_enrol_enrolments`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_mnet_application`
--

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

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

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

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

--
-- Estructura de tabla para la tabla `mdl_mnet_host`
--

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

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

INSERT INTO `mdl_mnet_host` (`id`, `deleted`, `wwwroot`, `ip_address`, `name`, `public_key`, `public_key_expires`, `transport`, `portno`, `last_connect_time`, `last_log_id`, `force_theme`, `theme`, `applicationid`) VALUES
(1, 0, 'http://moodle', '10.2.1.254', '', '', 0, 0, 0, 0, 0, 0, NULL, 1),
(2, 0, '', '', 'All Hosts', '', 0, 0, 0, 0, 0, 0, NULL, 1);

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

--
-- Estructura de tabla para la tabla `mdl_mnet_host2service`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_mnet_log`
--

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

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

--
-- Estructura de tabla para la tabla `mdl_mnet_remote_rpc`
--

CREATE TABLE IF NOT EXISTS `mdl_mnet_remote_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) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COMMENT='This table describes functions that might be called remotely' AUTO_INCREMENT=17 ;

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

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

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

--
-- Estructura de tabla para la tabla `mdl_mnet_remote_service2rpc`
--

