diff --git a/console.php b/console.php
index 37f659636a..c63438bf6f 100755
--- a/console.php
+++ b/console.php
@@ -71,11 +71,10 @@ $cli->addCommands(
new \Doctrine\DBAL\Migrations\Tools\Console\Command\VersionCommand(),
// Chamilo commands.
- new ChamiloLMS\Command\Database\UpgradeCommand(),
+ /*new ChamiloLMS\Command\Database\UpgradeCommand(),
new ChamiloLMS\Command\Database\InstallCommand(),
- //new ChamiloLMS\Command\Database\InstallExtendCommand(),
new ChamiloLMS\Command\Database\StatusCommand(),
- new ChamiloLMS\Command\Database\SetupCommand(),
+ new ChamiloLMS\Command\Database\SetupCommand(),*/
new ChamiloLMS\Command\Template\AsseticDumpCommand(),
new ChamiloLMS\Command\Translation\ExportLanguagesCommand(),
diff --git a/main/inc/services.php b/main/inc/services.php
index 208e0459de..2588cb12b5 100644
--- a/main/inc/services.php
+++ b/main/inc/services.php
@@ -485,6 +485,10 @@ class ChamiloServiceProvider implements ServiceProviderInterface
$db = new Database($app['db'], $app['dbs']);
return $db;
});
+
+ $app['installer'] = $app->share(function () use ($app) {
+ return new ChamiloLMS\Component\Installer\Installer();
+ });
}
public function boot(Application $app)
diff --git a/main/install/1.8.7/db_course1.sql b/main/install/1.8.7/db_course1.sql
deleted file mode 100644
index b455748d16..0000000000
--- a/main/install/1.8.7/db_course1.sql
+++ /dev/null
@@ -1,1736 +0,0 @@
--- MySQL dump 10.13 Distrib 5.5.29, for debian-linux-gnu (i686)
---
--- Host: localhost Database: chamilo187_1111
--- ------------------------------------------------------
--- Server version 5.5.29-0ubuntu0.12.10.1
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
---
--- Table structure for table `announcement`
---
-
-DROP TABLE IF EXISTS `announcement`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `announcement` (
- `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
- `title` text,
- `content` mediumtext,
- `end_date` date DEFAULT NULL,
- `display_order` mediumint(9) NOT NULL DEFAULT '0',
- `email_sent` tinyint(4) DEFAULT '0',
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `announcement_attachment`
---
-
-DROP TABLE IF EXISTS `announcement_attachment`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `announcement_attachment` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `path` varchar(255) NOT NULL,
- `comment` text,
- `size` int(11) NOT NULL DEFAULT '0',
- `announcement_id` int(11) NOT NULL,
- `filename` varchar(255) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `attendance`
---
-
-DROP TABLE IF EXISTS `attendance`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `attendance` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` text NOT NULL,
- `description` text,
- `active` tinyint(4) NOT NULL DEFAULT '1',
- `attendance_qualify_title` varchar(255) DEFAULT NULL,
- `attendance_qualify_max` int(11) NOT NULL DEFAULT '0',
- `attendance_weight` float(6,2) NOT NULL DEFAULT '0.00',
- `session_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`),
- KEY `active` (`active`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `attendance_calendar`
---
-
-DROP TABLE IF EXISTS `attendance_calendar`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `attendance_calendar` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `attendance_id` int(11) NOT NULL,
- `date_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `done_attendance` tinyint(4) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `attendance_id` (`attendance_id`),
- KEY `done_attendance` (`done_attendance`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `attendance_result`
---
-
-DROP TABLE IF EXISTS `attendance_result`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `attendance_result` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `user_id` int(11) NOT NULL,
- `attendance_id` int(11) NOT NULL,
- `score` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `attendance_id` (`attendance_id`),
- KEY `user_id` (`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `attendance_sheet`
---
-
-DROP TABLE IF EXISTS `attendance_sheet`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `attendance_sheet` (
- `user_id` int(11) NOT NULL,
- `attendance_calendar_id` int(11) NOT NULL,
- `presence` tinyint(4) NOT NULL DEFAULT '0',
- PRIMARY KEY (`user_id`,`attendance_calendar_id`),
- KEY `presence` (`presence`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog`
---
-
-DROP TABLE IF EXISTS `blog`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog` (
- `blog_id` smallint(6) NOT NULL AUTO_INCREMENT,
- `blog_name` varchar(250) NOT NULL DEFAULT '',
- `blog_subtitle` varchar(250) DEFAULT NULL,
- `date_creation` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `visibility` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`blog_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table with blogs in this course';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_attachment`
---
-
-DROP TABLE IF EXISTS `blog_attachment`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_attachment` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `path` varchar(255) NOT NULL COMMENT 'the real filename',
- `comment` text,
- `size` int(11) NOT NULL DEFAULT '0',
- `post_id` int(11) NOT NULL,
- `filename` varchar(255) NOT NULL COMMENT 'the user s file name',
- `blog_id` int(11) NOT NULL,
- `comment_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_comment`
---
-
-DROP TABLE IF EXISTS `blog_comment`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_comment` (
- `comment_id` int(11) NOT NULL AUTO_INCREMENT,
- `title` varchar(250) NOT NULL DEFAULT '',
- `comment` longtext NOT NULL,
- `author_id` int(11) NOT NULL DEFAULT '0',
- `date_creation` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `blog_id` mediumint(9) NOT NULL DEFAULT '0',
- `post_id` int(11) NOT NULL DEFAULT '0',
- `task_id` int(11) DEFAULT NULL,
- `parent_comment_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`comment_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table with comments on posts in a blog';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_post`
---
-
-DROP TABLE IF EXISTS `blog_post`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_post` (
- `post_id` int(11) NOT NULL AUTO_INCREMENT,
- `title` varchar(250) NOT NULL DEFAULT '',
- `full_text` longtext NOT NULL,
- `date_creation` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `blog_id` mediumint(9) NOT NULL DEFAULT '0',
- `author_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`post_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table with posts / blog.';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_rating`
---
-
-DROP TABLE IF EXISTS `blog_rating`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_rating` (
- `rating_id` int(11) NOT NULL AUTO_INCREMENT,
- `blog_id` int(11) NOT NULL DEFAULT '0',
- `rating_type` enum('post','comment') NOT NULL DEFAULT 'post',
- `item_id` int(11) NOT NULL DEFAULT '0',
- `user_id` int(11) NOT NULL DEFAULT '0',
- `rating` mediumint(9) NOT NULL DEFAULT '0',
- PRIMARY KEY (`rating_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table with ratings for post/comments in a certain blog';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_rel_user`
---
-
-DROP TABLE IF EXISTS `blog_rel_user`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_rel_user` (
- `blog_id` int(11) NOT NULL DEFAULT '0',
- `user_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`blog_id`,`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table representing users subscribed to a blog';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_task`
---
-
-DROP TABLE IF EXISTS `blog_task`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_task` (
- `task_id` mediumint(9) NOT NULL AUTO_INCREMENT,
- `blog_id` mediumint(9) NOT NULL DEFAULT '0',
- `title` varchar(250) NOT NULL DEFAULT '',
- `description` text NOT NULL,
- `color` varchar(10) NOT NULL DEFAULT '',
- `system_task` tinyint(3) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`task_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table with tasks for a blog';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_task_rel_user`
---
-
-DROP TABLE IF EXISTS `blog_task_rel_user`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_task_rel_user` (
- `blog_id` mediumint(9) NOT NULL DEFAULT '0',
- `user_id` int(11) NOT NULL DEFAULT '0',
- `task_id` mediumint(9) NOT NULL DEFAULT '0',
- `target_date` date NOT NULL DEFAULT '0000-00-00',
- PRIMARY KEY (`blog_id`,`user_id`,`task_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table with tasks assigned to a user in a blog';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `calendar_event`
---
-
-DROP TABLE IF EXISTS `calendar_event`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `calendar_event` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `title` varchar(255) NOT NULL,
- `content` text,
- `start_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `end_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `parent_event_id` int(11) DEFAULT NULL,
- `session_id` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `calendar_event_attachment`
---
-
-DROP TABLE IF EXISTS `calendar_event_attachment`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `calendar_event_attachment` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `path` varchar(255) NOT NULL,
- `comment` text,
- `size` int(11) NOT NULL DEFAULT '0',
- `agenda_id` int(11) NOT NULL,
- `filename` varchar(255) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `calendar_event_repeat`
---
-
-DROP TABLE IF EXISTS `calendar_event_repeat`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `calendar_event_repeat` (
- `cal_id` int(11) NOT NULL DEFAULT '0',
- `cal_type` varchar(20) DEFAULT NULL,
- `cal_end` int(11) DEFAULT NULL,
- `cal_frequency` int(11) DEFAULT '1',
- `cal_days` char(7) DEFAULT NULL,
- PRIMARY KEY (`cal_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `calendar_event_repeat_not`
---
-
-DROP TABLE IF EXISTS `calendar_event_repeat_not`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `calendar_event_repeat_not` (
- `cal_id` int(11) NOT NULL,
- `cal_date` int(11) NOT NULL,
- PRIMARY KEY (`cal_id`,`cal_date`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `chat_connected`
---
-
-DROP TABLE IF EXISTS `chat_connected`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `chat_connected` (
- `user_id` int(10) unsigned NOT NULL DEFAULT '0',
- `last_connection` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `session_id` int(11) NOT NULL DEFAULT '0',
- `to_group_id` int(11) NOT NULL DEFAULT '0',
- KEY `char_connected_index` (`user_id`,`session_id`,`to_group_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `course_description`
---
-
-DROP TABLE IF EXISTS `course_description`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `course_description` (
- `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
- `title` varchar(255) DEFAULT NULL,
- `content` text,
- `session_id` smallint(6) DEFAULT '0',
- `description_type` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `progress` int(11) NOT NULL DEFAULT '0',
- UNIQUE KEY `id` (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `course_setting`
---
-
-DROP TABLE IF EXISTS `course_setting`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `course_setting` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `variable` varchar(255) NOT NULL DEFAULT '',
- `subkey` varchar(255) DEFAULT NULL,
- `type` varchar(255) DEFAULT NULL,
- `category` varchar(255) DEFAULT NULL,
- `value` varchar(255) NOT NULL DEFAULT '',
- `title` varchar(255) NOT NULL DEFAULT '',
- `comment` varchar(255) DEFAULT NULL,
- `subkeytext` varchar(255) DEFAULT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `document`
---
-
-DROP TABLE IF EXISTS `document`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `document` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `path` varchar(255) NOT NULL DEFAULT '',
- `comment` text,
- `title` varchar(255) DEFAULT NULL,
- `filetype` set('file','folder') NOT NULL DEFAULT 'file',
- `size` int(11) NOT NULL DEFAULT '0',
- `readonly` tinyint(3) unsigned NOT NULL,
- `session_id` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=198 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `dropbox_category`
---
-
-DROP TABLE IF EXISTS `dropbox_category`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `dropbox_category` (
- `cat_id` int(11) NOT NULL AUTO_INCREMENT,
- `cat_name` text NOT NULL,
- `received` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `sent` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `user_id` int(11) NOT NULL DEFAULT '0',
- `session_id` smallint(6) NOT NULL DEFAULT '0',
- PRIMARY KEY (`cat_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `dropbox_feedback`
---
-
-DROP TABLE IF EXISTS `dropbox_feedback`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `dropbox_feedback` (
- `feedback_id` int(11) NOT NULL AUTO_INCREMENT,
- `file_id` int(11) NOT NULL DEFAULT '0',
- `author_user_id` int(11) NOT NULL DEFAULT '0',
- `feedback` text NOT NULL,
- `feedback_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`feedback_id`),
- KEY `file_id` (`file_id`),
- KEY `author_user_id` (`author_user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `dropbox_file`
---
-
-DROP TABLE IF EXISTS `dropbox_file`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `dropbox_file` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `uploader_id` int(10) unsigned NOT NULL DEFAULT '0',
- `filename` varchar(250) NOT NULL DEFAULT '',
- `filesize` int(10) unsigned NOT NULL,
- `title` varchar(250) DEFAULT '',
- `description` varchar(250) DEFAULT '',
- `author` varchar(250) DEFAULT '',
- `upload_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `last_upload_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `cat_id` int(11) NOT NULL DEFAULT '0',
- `session_id` smallint(5) unsigned NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `UN_filename` (`filename`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `dropbox_person`
---
-
-DROP TABLE IF EXISTS `dropbox_person`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `dropbox_person` (
- `file_id` int(10) unsigned NOT NULL,
- `user_id` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`file_id`,`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `dropbox_post`
---
-
-DROP TABLE IF EXISTS `dropbox_post`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `dropbox_post` (
- `file_id` int(10) unsigned NOT NULL,
- `dest_user_id` int(10) unsigned NOT NULL DEFAULT '0',
- `feedback_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `feedback` text,
- `cat_id` int(11) NOT NULL DEFAULT '0',
- `session_id` smallint(5) unsigned NOT NULL,
- PRIMARY KEY (`file_id`,`dest_user_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_attachment`
---
-
-DROP TABLE IF EXISTS `forum_attachment`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_attachment` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `path` varchar(255) NOT NULL,
- `comment` text,
- `size` int(11) NOT NULL DEFAULT '0',
- `post_id` int(11) NOT NULL,
- `filename` varchar(255) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_category`
---
-
-DROP TABLE IF EXISTS `forum_category`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_category` (
- `cat_id` int(11) NOT NULL AUTO_INCREMENT,
- `cat_title` varchar(255) NOT NULL DEFAULT '',
- `cat_comment` text,
- `cat_order` int(11) NOT NULL DEFAULT '0',
- `locked` int(11) NOT NULL DEFAULT '0',
- `session_id` smallint(5) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`cat_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_forum`
---
-
-DROP TABLE IF EXISTS `forum_forum`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_forum` (
- `forum_id` int(11) NOT NULL AUTO_INCREMENT,
- `forum_title` varchar(255) NOT NULL DEFAULT '',
- `forum_comment` text,
- `forum_threads` int(11) DEFAULT '0',
- `forum_posts` int(11) DEFAULT '0',
- `forum_last_post` int(11) DEFAULT '0',
- `forum_category` int(11) DEFAULT NULL,
- `allow_anonymous` int(11) DEFAULT NULL,
- `allow_edit` int(11) DEFAULT NULL,
- `approval_direct_post` varchar(20) DEFAULT NULL,
- `allow_attachments` int(11) DEFAULT NULL,
- `allow_new_threads` int(11) DEFAULT NULL,
- `default_view` varchar(20) DEFAULT NULL,
- `forum_of_group` varchar(20) DEFAULT NULL,
- `forum_group_public_private` varchar(20) DEFAULT 'public',
- `forum_order` int(11) DEFAULT NULL,
- `locked` int(11) NOT NULL DEFAULT '0',
- `session_id` int(11) NOT NULL DEFAULT '0',
- `forum_image` varchar(255) NOT NULL DEFAULT '',
- PRIMARY KEY (`forum_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_mailcue`
---
-
-DROP TABLE IF EXISTS `forum_mailcue`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_mailcue` (
- `thread_id` int(11) DEFAULT NULL,
- `user_id` int(11) DEFAULT NULL,
- `post_id` int(11) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_notification`
---
-
-DROP TABLE IF EXISTS `forum_notification`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_notification` (
- `user_id` int(11) DEFAULT NULL,
- `forum_id` int(11) DEFAULT NULL,
- `thread_id` int(11) DEFAULT NULL,
- `post_id` int(11) DEFAULT NULL,
- KEY `user_id` (`user_id`),
- KEY `forum_id` (`forum_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_post`
---
-
-DROP TABLE IF EXISTS `forum_post`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_post` (
- `post_id` int(11) NOT NULL AUTO_INCREMENT,
- `post_title` varchar(250) DEFAULT NULL,
- `post_text` text,
- `thread_id` int(11) DEFAULT '0',
- `forum_id` int(11) DEFAULT '0',
- `poster_id` int(11) DEFAULT '0',
- `poster_name` varchar(100) DEFAULT '',
- `post_date` datetime DEFAULT '0000-00-00 00:00:00',
- `post_notification` tinyint(4) DEFAULT '0',
- `post_parent_id` int(11) DEFAULT '0',
- `visible` tinyint(4) DEFAULT '1',
- PRIMARY KEY (`post_id`),
- KEY `poster_id` (`poster_id`),
- KEY `forum_id` (`forum_id`),
- KEY `idx_forum_post_thread_id` (`thread_id`),
- KEY `idx_forum_post_visible` (`visible`)
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_thread`
---
-
-DROP TABLE IF EXISTS `forum_thread`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_thread` (
- `thread_id` int(11) NOT NULL AUTO_INCREMENT,
- `thread_title` varchar(255) DEFAULT NULL,
- `forum_id` int(11) DEFAULT NULL,
- `thread_replies` int(11) DEFAULT '0',
- `thread_poster_id` int(11) DEFAULT NULL,
- `thread_poster_name` varchar(100) DEFAULT '',
- `thread_views` int(11) DEFAULT '0',
- `thread_last_post` int(11) DEFAULT NULL,
- `thread_date` datetime DEFAULT '0000-00-00 00:00:00',
- `thread_sticky` tinyint(3) unsigned DEFAULT '0',
- `locked` int(11) NOT NULL DEFAULT '0',
- `session_id` int(10) unsigned DEFAULT NULL,
- `thread_title_qualify` varchar(255) DEFAULT '',
- `thread_qualify_max` float(6,2) unsigned NOT NULL DEFAULT '0.00',
- `thread_close_date` datetime DEFAULT '0000-00-00 00:00:00',
- `thread_weight` float(6,2) unsigned NOT NULL DEFAULT '0.00',
- PRIMARY KEY (`thread_id`),
- KEY `idx_forum_thread_forum_id` (`forum_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_thread_qualify`
---
-
-DROP TABLE IF EXISTS `forum_thread_qualify`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_thread_qualify` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `user_id` int(10) unsigned NOT NULL,
- `thread_id` int(11) NOT NULL,
- `qualify` float(6,2) NOT NULL DEFAULT '0.00',
- `qualify_user_id` int(11) DEFAULT NULL,
- `qualify_time` datetime DEFAULT '0000-00-00 00:00:00',
- `session_id` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `user_id` (`user_id`,`thread_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_thread_qualify_log`
---
-
-DROP TABLE IF EXISTS `forum_thread_qualify_log`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_thread_qualify_log` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `user_id` int(10) unsigned NOT NULL,
- `thread_id` int(11) NOT NULL,
- `qualify` float(6,2) NOT NULL DEFAULT '0.00',
- `qualify_user_id` int(11) DEFAULT NULL,
- `qualify_time` datetime DEFAULT '0000-00-00 00:00:00',
- `session_id` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `user_id` (`user_id`,`thread_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `glossary`
---
-
-DROP TABLE IF EXISTS `glossary`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `glossary` (
- `glossary_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `name` varchar(255) NOT NULL,
- `description` text NOT NULL,
- `display_order` int(11) DEFAULT NULL,
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`glossary_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `group_category`
---
-
-DROP TABLE IF EXISTS `group_category`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `group_category` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `title` varchar(255) NOT NULL DEFAULT '',
- `description` text NOT NULL,
- `doc_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `calendar_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `work_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `announcements_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `forum_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `wiki_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `chat_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `max_student` smallint(5) unsigned NOT NULL DEFAULT '8',
- `self_reg_allowed` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `self_unreg_allowed` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `groups_per_user` smallint(5) unsigned NOT NULL DEFAULT '0',
- `display_order` smallint(5) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `group_info`
---
-
-DROP TABLE IF EXISTS `group_info`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `group_info` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `name` varchar(100) DEFAULT NULL,
- `category_id` int(10) unsigned NOT NULL DEFAULT '0',
- `description` text,
- `max_student` smallint(5) unsigned NOT NULL DEFAULT '8',
- `doc_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `calendar_state` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `work_state` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `announcements_state` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `forum_state` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `wiki_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `chat_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `secret_directory` varchar(255) DEFAULT NULL,
- `self_registration_allowed` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `self_unregistration_allowed` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `session_id` smallint(5) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `group_rel_tutor`
---
-
-DROP TABLE IF EXISTS `group_rel_tutor`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `group_rel_tutor` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `user_id` int(11) NOT NULL,
- `group_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `group_rel_user`
---
-
-DROP TABLE IF EXISTS `group_rel_user`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `group_rel_user` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `user_id` int(10) unsigned NOT NULL,
- `group_id` int(10) unsigned NOT NULL DEFAULT '0',
- `status` int(11) NOT NULL DEFAULT '0',
- `role` char(50) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `item_property`
---
-
-DROP TABLE IF EXISTS `item_property`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `item_property` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `tool` varchar(100) NOT NULL DEFAULT '',
- `insert_user_id` int(10) unsigned NOT NULL DEFAULT '0',
- `insert_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `lastedit_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `ref` int(11) NOT NULL DEFAULT '0',
- `lastedit_type` varchar(100) NOT NULL DEFAULT '',
- `lastedit_user_id` int(10) unsigned NOT NULL DEFAULT '0',
- `to_group_id` int(10) unsigned DEFAULT NULL,
- `to_user_id` int(10) unsigned DEFAULT NULL,
- `visibility` tinyint(4) NOT NULL DEFAULT '1',
- `start_visible` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `end_visible` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `id_session` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `idx_item_property_toolref` (`tool`,`ref`)
-) ENGINE=InnoDB AUTO_INCREMENT=205 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `link`
---
-
-DROP TABLE IF EXISTS `link`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `link` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `url` text NOT NULL,
- `title` varchar(150) DEFAULT NULL,
- `description` text,
- `category_id` smallint(5) unsigned DEFAULT NULL,
- `display_order` smallint(5) unsigned NOT NULL DEFAULT '0',
- `on_homepage` enum('0','1') NOT NULL DEFAULT '0',
- `target` char(10) DEFAULT '_self',
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `link_category`
---
-
-DROP TABLE IF EXISTS `link_category`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `link_category` (
- `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
- `category_title` varchar(255) NOT NULL,
- `description` text,
- `display_order` mediumint(8) unsigned NOT NULL DEFAULT '0',
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `lp`
---
-
-DROP TABLE IF EXISTS `lp`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `lp` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `lp_type` smallint(5) unsigned NOT NULL,
- `name` varchar(255) NOT NULL,
- `ref` tinytext,
- `description` text,
- `path` text NOT NULL,
- `force_commit` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `default_view_mod` char(32) NOT NULL DEFAULT 'embedded',
- `default_encoding` char(32) NOT NULL DEFAULT 'UTF-8',
- `display_order` int(10) unsigned NOT NULL DEFAULT '0',
- `content_maker` tinytext NOT NULL,
- `content_local` varchar(32) NOT NULL DEFAULT 'local',
- `content_license` text NOT NULL,
- `prevent_reinit` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `js_lib` tinytext NOT NULL,
- `debug` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `theme` varchar(255) NOT NULL DEFAULT '',
- `preview_image` varchar(255) NOT NULL DEFAULT '',
- `author` varchar(255) NOT NULL DEFAULT '',
- `session_id` int(10) unsigned NOT NULL DEFAULT '0',
- `prerequisite` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `lp_item`
---
-
-DROP TABLE IF EXISTS `lp_item`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `lp_item` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `lp_id` int(10) unsigned NOT NULL,
- `item_type` char(32) NOT NULL DEFAULT 'dokeos_document',
- `ref` tinytext NOT NULL,
- `title` varchar(511) NOT NULL,
- `description` varchar(511) NOT NULL DEFAULT '',
- `path` text NOT NULL,
- `min_score` float unsigned NOT NULL DEFAULT '0',
- `max_score` float unsigned NOT NULL DEFAULT '100',
- `mastery_score` float unsigned DEFAULT NULL,
- `parent_item_id` int(10) unsigned NOT NULL DEFAULT '0',
- `previous_item_id` int(10) unsigned NOT NULL DEFAULT '0',
- `next_item_id` int(10) unsigned NOT NULL DEFAULT '0',
- `display_order` int(10) unsigned NOT NULL DEFAULT '0',
- `prerequisite` text,
- `parameters` text,
- `launch_data` text NOT NULL,
- `max_time_allowed` char(13) DEFAULT '',
- `terms` text,
- `search_did` int(11) DEFAULT NULL,
- `audio` varchar(250) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `lp_id` (`lp_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `lp_item_view`
---
-
-DROP TABLE IF EXISTS `lp_item_view`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `lp_item_view` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `lp_item_id` int(10) unsigned NOT NULL,
- `lp_view_id` int(10) unsigned NOT NULL,
- `view_count` int(10) unsigned NOT NULL DEFAULT '0',
- `start_time` int(10) unsigned NOT NULL,
- `total_time` int(10) unsigned NOT NULL DEFAULT '0',
- `score` float unsigned NOT NULL DEFAULT '0',
- `status` char(32) NOT NULL DEFAULT 'not attempted',
- `suspend_data` text,
- `lesson_location` text,
- `core_exit` varchar(32) NOT NULL DEFAULT 'none',
- `max_score` varchar(8) DEFAULT '',
- PRIMARY KEY (`id`),
- KEY `lp_item_id` (`lp_item_id`),
- KEY `lp_view_id` (`lp_view_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `lp_iv_interaction`
---
-
-DROP TABLE IF EXISTS `lp_iv_interaction`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `lp_iv_interaction` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `order_id` smallint(5) unsigned NOT NULL DEFAULT '0',
- `lp_iv_id` bigint(20) unsigned NOT NULL,
- `interaction_id` varchar(255) NOT NULL DEFAULT '',
- `interaction_type` varchar(255) NOT NULL DEFAULT '',
- `weighting` double NOT NULL DEFAULT '0',
- `completion_time` varchar(16) NOT NULL DEFAULT '',
- `correct_responses` text NOT NULL,
- `student_response` text NOT NULL,
- `result` varchar(255) NOT NULL DEFAULT '',
- `latency` varchar(16) NOT NULL DEFAULT '',
- PRIMARY KEY (`id`),
- KEY `lp_iv_id` (`lp_iv_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `lp_iv_objective`
---
-
-DROP TABLE IF EXISTS `lp_iv_objective`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `lp_iv_objective` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `lp_iv_id` bigint(20) unsigned NOT NULL,
- `order_id` smallint(5) unsigned NOT NULL DEFAULT '0',
- `objective_id` varchar(255) NOT NULL DEFAULT '',
- `score_raw` float unsigned NOT NULL DEFAULT '0',
- `score_max` float unsigned NOT NULL DEFAULT '0',
- `score_min` float unsigned NOT NULL DEFAULT '0',
- `status` char(32) NOT NULL DEFAULT 'not attempted',
- PRIMARY KEY (`id`),
- KEY `lp_iv_id` (`lp_iv_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `lp_view`
---
-
-DROP TABLE IF EXISTS `lp_view`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `lp_view` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `lp_id` int(10) unsigned NOT NULL,
- `user_id` int(10) unsigned NOT NULL,
- `view_count` smallint(5) unsigned NOT NULL DEFAULT '0',
- `last_item` int(10) unsigned NOT NULL DEFAULT '0',
- `progress` int(10) unsigned DEFAULT '0',
- `session_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `lp_id` (`lp_id`),
- KEY `user_id` (`user_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `notebook`
---
-
-DROP TABLE IF EXISTS `notebook`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `notebook` (
- `notebook_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `user_id` int(10) unsigned NOT NULL,
- `course` varchar(40) NOT NULL,
- `session_id` int(11) NOT NULL DEFAULT '0',
- `title` varchar(255) NOT NULL,
- `description` text NOT NULL,
- `creation_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `update_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `status` int(11) DEFAULT NULL,
- PRIMARY KEY (`notebook_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `online_connected`
---
-
-DROP TABLE IF EXISTS `online_connected`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `online_connected` (
- `user_id` int(10) unsigned NOT NULL,
- `last_connection` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `online_link`
---
-
-DROP TABLE IF EXISTS `online_link`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `online_link` (
- `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
- `name` char(50) NOT NULL DEFAULT '',
- `url` char(100) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `permission_group`
---
-
-DROP TABLE IF EXISTS `permission_group`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `permission_group` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `group_id` int(11) NOT NULL DEFAULT '0',
- `tool` varchar(250) NOT NULL DEFAULT '',
- `action` varchar(250) NOT NULL DEFAULT '',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `permission_task`
---
-
-DROP TABLE IF EXISTS `permission_task`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `permission_task` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `task_id` int(11) NOT NULL DEFAULT '0',
- `tool` varchar(250) NOT NULL DEFAULT '',
- `action` varchar(250) NOT NULL DEFAULT '',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `permission_user`
---
-
-DROP TABLE IF EXISTS `permission_user`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `permission_user` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `user_id` int(11) NOT NULL DEFAULT '0',
- `tool` varchar(250) NOT NULL DEFAULT '',
- `action` varchar(250) NOT NULL DEFAULT '',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `quiz`
---
-
-DROP TABLE IF EXISTS `quiz`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `quiz` (
- `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
- `title` varchar(255) NOT NULL,
- `description` text,
- `sound` varchar(255) DEFAULT NULL,
- `type` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `random` smallint(6) NOT NULL DEFAULT '0',
- `random_answers` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `active` tinyint(4) NOT NULL DEFAULT '0',
- `results_disabled` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `access_condition` text,
- `max_attempt` int(11) NOT NULL DEFAULT '0',
- `start_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `end_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `feedback_type` int(11) NOT NULL DEFAULT '0',
- `expired_time` int(11) NOT NULL DEFAULT '0',
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `quiz_answer`
---
-
-DROP TABLE IF EXISTS `quiz_answer`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `quiz_answer` (
- `id` mediumint(8) unsigned NOT NULL,
- `question_id` mediumint(8) unsigned NOT NULL,
- `answer` text NOT NULL,
- `correct` mediumint(8) unsigned DEFAULT NULL,
- `comment` text,
- `ponderation` float(6,2) NOT NULL DEFAULT '0.00',
- `position` mediumint(8) unsigned NOT NULL DEFAULT '1',
- `hotspot_coordinates` text,
- `hotspot_type` enum('square','circle','poly','delineation') DEFAULT NULL,
- `destination` text NOT NULL,
- `id_auto` int(11) NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`id`,`question_id`),
- UNIQUE KEY `id_auto` (`id_auto`)
-) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `quiz_question`
---
-
-DROP TABLE IF EXISTS `quiz_question`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `quiz_question` (
- `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
- `question` varchar(511) NOT NULL,
- `description` text,
- `ponderation` float(6,2) NOT NULL DEFAULT '0.00',
- `position` mediumint(8) unsigned NOT NULL DEFAULT '1',
- `type` tinyint(3) unsigned NOT NULL DEFAULT '2',
- `picture` varchar(50) DEFAULT NULL,
- `level` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `position` (`position`)
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `quiz_rel_question`
---
-
-DROP TABLE IF EXISTS `quiz_rel_question`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `quiz_rel_question` (
- `question_id` mediumint(8) unsigned NOT NULL,
- `exercice_id` mediumint(8) unsigned NOT NULL,
- `question_order` mediumint(8) unsigned NOT NULL DEFAULT '1',
- PRIMARY KEY (`question_id`,`exercice_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `resource`
---
-
-DROP TABLE IF EXISTS `resource`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `resource` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `source_type` varchar(50) DEFAULT NULL,
- `source_id` int(10) unsigned DEFAULT NULL,
- `resource_type` varchar(50) DEFAULT NULL,
- `resource_id` int(10) unsigned DEFAULT NULL,
- UNIQUE KEY `id` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `role`
---
-
-DROP TABLE IF EXISTS `role`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `role` (
- `role_id` int(11) NOT NULL AUTO_INCREMENT,
- `role_name` varchar(250) NOT NULL DEFAULT '',
- `role_comment` text,
- `default_role` tinyint(4) DEFAULT '0',
- PRIMARY KEY (`role_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `role_group`
---
-
-DROP TABLE IF EXISTS `role_group`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `role_group` (
- `role_id` int(11) NOT NULL DEFAULT '0',
- `scope` varchar(20) NOT NULL DEFAULT 'course',
- `group_id` int(11) NOT NULL DEFAULT '0'
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `role_permissions`
---
-
-DROP TABLE IF EXISTS `role_permissions`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `role_permissions` (
- `role_id` int(11) NOT NULL DEFAULT '0',
- `tool` varchar(250) NOT NULL DEFAULT '',
- `action` varchar(50) NOT NULL DEFAULT '',
- `default_perm` tinyint(4) NOT NULL DEFAULT '0'
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `role_user`
---
-
-DROP TABLE IF EXISTS `role_user`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `role_user` (
- `role_id` int(11) NOT NULL DEFAULT '0',
- `scope` varchar(20) NOT NULL DEFAULT 'course',
- `user_id` int(11) NOT NULL DEFAULT '0'
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `student_publication`
---
-
-DROP TABLE IF EXISTS `student_publication`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `student_publication` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `url` varchar(255) DEFAULT NULL,
- `title` varchar(255) DEFAULT NULL,
- `description` text,
- `author` varchar(255) DEFAULT NULL,
- `active` tinyint(4) DEFAULT NULL,
- `accepted` tinyint(4) DEFAULT '0',
- `post_group_id` int(11) NOT NULL DEFAULT '0',
- `sent_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `filetype` set('file','folder') NOT NULL DEFAULT 'file',
- `has_properties` int(10) unsigned NOT NULL DEFAULT '0',
- `view_properties` tinyint(4) DEFAULT NULL,
- `qualification` float(6,2) unsigned NOT NULL DEFAULT '0.00',
- `date_of_qualification` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `parent_id` int(10) unsigned NOT NULL DEFAULT '0',
- `qualificator_id` int(10) unsigned NOT NULL DEFAULT '0',
- `weight` float(6,2) unsigned NOT NULL DEFAULT '0.00',
- `session_id` int(10) unsigned NOT NULL DEFAULT '0',
- `user_id` int(11) NOT NULL,
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `student_publication_assignment`
---
-
-DROP TABLE IF EXISTS `student_publication_assignment`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `student_publication_assignment` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `expires_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `ends_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `add_to_calendar` tinyint(4) NOT NULL,
- `enable_qualification` tinyint(4) NOT NULL,
- `publication_id` int(11) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `survey`
---
-
-DROP TABLE IF EXISTS `survey`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `survey` (
- `survey_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `code` varchar(20) DEFAULT NULL,
- `title` text,
- `subtitle` text,
- `author` varchar(20) DEFAULT NULL,
- `lang` varchar(20) DEFAULT NULL,
- `avail_from` date DEFAULT NULL,
- `avail_till` date DEFAULT NULL,
- `is_shared` char(1) DEFAULT '1',
- `template` varchar(20) DEFAULT NULL,
- `intro` text,
- `surveythanks` text,
- `creation_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `invited` int(11) NOT NULL,
- `answered` int(11) NOT NULL,
- `invite_mail` text NOT NULL,
- `reminder_mail` text NOT NULL,
- `mail_subject` varchar(255) NOT NULL,
- `anonymous` enum('0','1') NOT NULL DEFAULT '0',
- `access_condition` text,
- `shuffle` tinyint(1) NOT NULL DEFAULT '0',
- `one_question_per_page` tinyint(1) NOT NULL DEFAULT '0',
- `survey_version` varchar(255) NOT NULL DEFAULT '',
- `parent_id` int(10) unsigned NOT NULL,
- `survey_type` int(11) NOT NULL DEFAULT '0',
- `show_form_profile` int(11) NOT NULL DEFAULT '0',
- `form_fields` text NOT NULL,
- `session_id` smallint(5) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`survey_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `survey_answer`
---
-
-DROP TABLE IF EXISTS `survey_answer`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `survey_answer` (
- `answer_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `survey_id` int(10) unsigned NOT NULL,
- `question_id` int(10) unsigned NOT NULL,
- `option_id` text NOT NULL,
- `value` int(10) unsigned NOT NULL,
- `user` varchar(250) NOT NULL,
- PRIMARY KEY (`answer_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `survey_group`
---
-
-DROP TABLE IF EXISTS `survey_group`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `survey_group` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `name` varchar(20) NOT NULL,
- `description` varchar(255) NOT NULL,
- `survey_id` int(10) unsigned NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `survey_invitation`
---
-
-DROP TABLE IF EXISTS `survey_invitation`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `survey_invitation` (
- `survey_invitation_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `survey_code` varchar(20) NOT NULL,
- `user` varchar(250) NOT NULL,
- `invitation_code` varchar(250) NOT NULL,
- `invitation_date` datetime NOT NULL,
- `reminder_date` datetime NOT NULL,
- `answered` int(11) NOT NULL DEFAULT '0',
- `session_id` smallint(5) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`survey_invitation_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `survey_question`
---
-
-DROP TABLE IF EXISTS `survey_question`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `survey_question` (
- `question_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `survey_id` int(10) unsigned NOT NULL,
- `survey_question` text NOT NULL,
- `survey_question_comment` text NOT NULL,
- `type` varchar(250) NOT NULL,
- `display` varchar(10) NOT NULL,
- `sort` int(11) NOT NULL,
- `shared_question_id` int(11) DEFAULT NULL,
- `max_value` int(11) DEFAULT NULL,
- `survey_group_pri` int(10) unsigned NOT NULL DEFAULT '0',
- `survey_group_sec1` int(10) unsigned NOT NULL DEFAULT '0',
- `survey_group_sec2` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`question_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `survey_question_option`
---
-
-DROP TABLE IF EXISTS `survey_question_option`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `survey_question_option` (
- `question_option_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `question_id` int(10) unsigned NOT NULL,
- `survey_id` int(10) unsigned NOT NULL,
- `option_text` text NOT NULL,
- `sort` int(11) NOT NULL,
- `value` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`question_option_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `thematic`
---
-
-DROP TABLE IF EXISTS `thematic`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `thematic` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `title` varchar(255) NOT NULL,
- `content` text,
- `display_order` int(10) unsigned NOT NULL DEFAULT '0',
- `active` tinyint(4) NOT NULL DEFAULT '0',
- `session_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `active` (`active`,`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `thematic_advance`
---
-
-DROP TABLE IF EXISTS `thematic_advance`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `thematic_advance` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `thematic_id` int(11) NOT NULL,
- `attendance_id` int(11) NOT NULL DEFAULT '0',
- `content` text,
- `start_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `duration` int(11) NOT NULL DEFAULT '0',
- `done_advance` tinyint(4) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `thematic_id` (`thematic_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `thematic_plan`
---
-
-DROP TABLE IF EXISTS `thematic_plan`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `thematic_plan` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `thematic_id` int(11) NOT NULL,
- `title` varchar(255) NOT NULL,
- `description` text,
- `description_type` int(11) NOT NULL,
- PRIMARY KEY (`id`),
- KEY `thematic_id` (`thematic_id`,`description_type`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `tool`
---
-
-DROP TABLE IF EXISTS `tool`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `tool` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `name` varchar(255) NOT NULL,
- `link` varchar(255) NOT NULL,
- `image` varchar(255) DEFAULT NULL,
- `visibility` tinyint(3) unsigned DEFAULT '0',
- `admin` varchar(255) DEFAULT NULL,
- `address` varchar(255) DEFAULT NULL,
- `added_tool` tinyint(3) unsigned DEFAULT '1',
- `target` enum('_self','_blank') NOT NULL DEFAULT '_self',
- `category` enum('authoring','interaction','admin') NOT NULL DEFAULT 'authoring',
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `tool_intro`
---
-
-DROP TABLE IF EXISTS `tool_intro`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `tool_intro` (
- `id` varchar(50) NOT NULL,
- `intro_text` text NOT NULL,
- `session_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`,`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `userinfo_content`
---
-
-DROP TABLE IF EXISTS `userinfo_content`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `userinfo_content` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `user_id` int(10) unsigned NOT NULL,
- `definition_id` int(10) unsigned NOT NULL,
- `editor_ip` varchar(39) DEFAULT NULL,
- `edition_time` datetime DEFAULT NULL,
- `content` text NOT NULL,
- PRIMARY KEY (`id`),
- KEY `user_id` (`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `userinfo_def`
---
-
-DROP TABLE IF EXISTS `userinfo_def`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `userinfo_def` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `title` varchar(80) NOT NULL DEFAULT '',
- `comment` text,
- `line_count` tinyint(3) unsigned NOT NULL DEFAULT '5',
- `rank` tinyint(3) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `wiki`
---
-
-DROP TABLE IF EXISTS `wiki`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `wiki` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `page_id` int(11) NOT NULL DEFAULT '0',
- `reflink` varchar(255) NOT NULL DEFAULT 'index',
- `title` varchar(255) NOT NULL,
- `content` mediumtext NOT NULL,
- `user_id` int(11) NOT NULL DEFAULT '0',
- `group_id` int(11) DEFAULT NULL,
- `dtime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `addlock` int(11) NOT NULL DEFAULT '1',
- `editlock` int(11) NOT NULL DEFAULT '0',
- `visibility` int(11) NOT NULL DEFAULT '1',
- `addlock_disc` int(11) NOT NULL DEFAULT '1',
- `visibility_disc` int(11) NOT NULL DEFAULT '1',
- `ratinglock_disc` int(11) NOT NULL DEFAULT '1',
- `assignment` int(11) NOT NULL DEFAULT '0',
- `comment` text NOT NULL,
- `progress` text NOT NULL,
- `score` int(11) DEFAULT '0',
- `version` int(11) DEFAULT NULL,
- `is_editing` int(11) NOT NULL DEFAULT '0',
- `time_edit` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `hits` int(11) DEFAULT '0',
- `linksto` text NOT NULL,
- `tag` text NOT NULL,
- `user_ip` varchar(39) NOT NULL,
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `reflink` (`reflink`),
- KEY `group_id` (`group_id`),
- KEY `page_id` (`page_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `wiki_conf`
---
-
-DROP TABLE IF EXISTS `wiki_conf`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `wiki_conf` (
- `page_id` int(11) NOT NULL DEFAULT '0',
- `task` text NOT NULL,
- `feedback1` text NOT NULL,
- `feedback2` text NOT NULL,
- `feedback3` text NOT NULL,
- `fprogress1` varchar(3) NOT NULL,
- `fprogress2` varchar(3) NOT NULL,
- `fprogress3` varchar(3) NOT NULL,
- `max_size` int(11) DEFAULT NULL,
- `max_text` int(11) DEFAULT NULL,
- `max_version` int(11) DEFAULT NULL,
- `startdate_assig` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `enddate_assig` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `delayedsubmit` int(11) NOT NULL DEFAULT '0',
- KEY `page_id` (`page_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `wiki_discuss`
---
-
-DROP TABLE IF EXISTS `wiki_discuss`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `wiki_discuss` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `publication_id` int(11) NOT NULL DEFAULT '0',
- `userc_id` int(11) NOT NULL DEFAULT '0',
- `comment` text NOT NULL,
- `p_score` varchar(255) DEFAULT NULL,
- `dtime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `wiki_mailcue`
---
-
-DROP TABLE IF EXISTS `wiki_mailcue`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `wiki_mailcue` (
- `id` int(11) NOT NULL,
- `user_id` int(11) NOT NULL,
- `type` text NOT NULL,
- `group_id` int(11) DEFAULT NULL,
- KEY `id` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
--- Dump completed on 2013-03-27 11:30:07
\ No newline at end of file
diff --git a/main/install/1.8.7/db_course2.sql b/main/install/1.8.7/db_course2.sql
deleted file mode 100644
index c8e415e5ea..0000000000
--- a/main/install/1.8.7/db_course2.sql
+++ /dev/null
@@ -1,1736 +0,0 @@
--- MySQL dump 10.13 Distrib 5.5.29, for debian-linux-gnu (i686)
---
--- Host: localhost Database: chamilo187_222
--- ------------------------------------------------------
--- Server version 5.5.29-0ubuntu0.12.10.1
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
---
--- Table structure for table `announcement`
---
-
-DROP TABLE IF EXISTS `announcement`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `announcement` (
- `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
- `title` text,
- `content` mediumtext,
- `end_date` date DEFAULT NULL,
- `display_order` mediumint(9) NOT NULL DEFAULT '0',
- `email_sent` tinyint(4) DEFAULT '0',
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `announcement_attachment`
---
-
-DROP TABLE IF EXISTS `announcement_attachment`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `announcement_attachment` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `path` varchar(255) NOT NULL,
- `comment` text,
- `size` int(11) NOT NULL DEFAULT '0',
- `announcement_id` int(11) NOT NULL,
- `filename` varchar(255) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `attendance`
---
-
-DROP TABLE IF EXISTS `attendance`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `attendance` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` text NOT NULL,
- `description` text,
- `active` tinyint(4) NOT NULL DEFAULT '1',
- `attendance_qualify_title` varchar(255) DEFAULT NULL,
- `attendance_qualify_max` int(11) NOT NULL DEFAULT '0',
- `attendance_weight` float(6,2) NOT NULL DEFAULT '0.00',
- `session_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`),
- KEY `active` (`active`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `attendance_calendar`
---
-
-DROP TABLE IF EXISTS `attendance_calendar`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `attendance_calendar` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `attendance_id` int(11) NOT NULL,
- `date_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `done_attendance` tinyint(4) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `attendance_id` (`attendance_id`),
- KEY `done_attendance` (`done_attendance`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `attendance_result`
---
-
-DROP TABLE IF EXISTS `attendance_result`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `attendance_result` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `user_id` int(11) NOT NULL,
- `attendance_id` int(11) NOT NULL,
- `score` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `attendance_id` (`attendance_id`),
- KEY `user_id` (`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `attendance_sheet`
---
-
-DROP TABLE IF EXISTS `attendance_sheet`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `attendance_sheet` (
- `user_id` int(11) NOT NULL,
- `attendance_calendar_id` int(11) NOT NULL,
- `presence` tinyint(4) NOT NULL DEFAULT '0',
- PRIMARY KEY (`user_id`,`attendance_calendar_id`),
- KEY `presence` (`presence`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog`
---
-
-DROP TABLE IF EXISTS `blog`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog` (
- `blog_id` smallint(6) NOT NULL AUTO_INCREMENT,
- `blog_name` varchar(250) NOT NULL DEFAULT '',
- `blog_subtitle` varchar(250) DEFAULT NULL,
- `date_creation` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `visibility` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`blog_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table with blogs in this course';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_attachment`
---
-
-DROP TABLE IF EXISTS `blog_attachment`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_attachment` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `path` varchar(255) NOT NULL COMMENT 'the real filename',
- `comment` text,
- `size` int(11) NOT NULL DEFAULT '0',
- `post_id` int(11) NOT NULL,
- `filename` varchar(255) NOT NULL COMMENT 'the user s file name',
- `blog_id` int(11) NOT NULL,
- `comment_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_comment`
---
-
-DROP TABLE IF EXISTS `blog_comment`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_comment` (
- `comment_id` int(11) NOT NULL AUTO_INCREMENT,
- `title` varchar(250) NOT NULL DEFAULT '',
- `comment` longtext NOT NULL,
- `author_id` int(11) NOT NULL DEFAULT '0',
- `date_creation` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `blog_id` mediumint(9) NOT NULL DEFAULT '0',
- `post_id` int(11) NOT NULL DEFAULT '0',
- `task_id` int(11) DEFAULT NULL,
- `parent_comment_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`comment_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table with comments on posts in a blog';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_post`
---
-
-DROP TABLE IF EXISTS `blog_post`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_post` (
- `post_id` int(11) NOT NULL AUTO_INCREMENT,
- `title` varchar(250) NOT NULL DEFAULT '',
- `full_text` longtext NOT NULL,
- `date_creation` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `blog_id` mediumint(9) NOT NULL DEFAULT '0',
- `author_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`post_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table with posts / blog.';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_rating`
---
-
-DROP TABLE IF EXISTS `blog_rating`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_rating` (
- `rating_id` int(11) NOT NULL AUTO_INCREMENT,
- `blog_id` int(11) NOT NULL DEFAULT '0',
- `rating_type` enum('post','comment') NOT NULL DEFAULT 'post',
- `item_id` int(11) NOT NULL DEFAULT '0',
- `user_id` int(11) NOT NULL DEFAULT '0',
- `rating` mediumint(9) NOT NULL DEFAULT '0',
- PRIMARY KEY (`rating_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table with ratings for post/comments in a certain blog';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_rel_user`
---
-
-DROP TABLE IF EXISTS `blog_rel_user`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_rel_user` (
- `blog_id` int(11) NOT NULL DEFAULT '0',
- `user_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`blog_id`,`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table representing users subscribed to a blog';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_task`
---
-
-DROP TABLE IF EXISTS `blog_task`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_task` (
- `task_id` mediumint(9) NOT NULL AUTO_INCREMENT,
- `blog_id` mediumint(9) NOT NULL DEFAULT '0',
- `title` varchar(250) NOT NULL DEFAULT '',
- `description` text NOT NULL,
- `color` varchar(10) NOT NULL DEFAULT '',
- `system_task` tinyint(3) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`task_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table with tasks for a blog';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_task_rel_user`
---
-
-DROP TABLE IF EXISTS `blog_task_rel_user`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_task_rel_user` (
- `blog_id` mediumint(9) NOT NULL DEFAULT '0',
- `user_id` int(11) NOT NULL DEFAULT '0',
- `task_id` mediumint(9) NOT NULL DEFAULT '0',
- `target_date` date NOT NULL DEFAULT '0000-00-00',
- PRIMARY KEY (`blog_id`,`user_id`,`task_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table with tasks assigned to a user in a blog';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `calendar_event`
---
-
-DROP TABLE IF EXISTS `calendar_event`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `calendar_event` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `title` varchar(255) NOT NULL,
- `content` text,
- `start_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `end_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `parent_event_id` int(11) DEFAULT NULL,
- `session_id` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `calendar_event_attachment`
---
-
-DROP TABLE IF EXISTS `calendar_event_attachment`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `calendar_event_attachment` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `path` varchar(255) NOT NULL,
- `comment` text,
- `size` int(11) NOT NULL DEFAULT '0',
- `agenda_id` int(11) NOT NULL,
- `filename` varchar(255) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `calendar_event_repeat`
---
-
-DROP TABLE IF EXISTS `calendar_event_repeat`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `calendar_event_repeat` (
- `cal_id` int(11) NOT NULL DEFAULT '0',
- `cal_type` varchar(20) DEFAULT NULL,
- `cal_end` int(11) DEFAULT NULL,
- `cal_frequency` int(11) DEFAULT '1',
- `cal_days` char(7) DEFAULT NULL,
- PRIMARY KEY (`cal_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `calendar_event_repeat_not`
---
-
-DROP TABLE IF EXISTS `calendar_event_repeat_not`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `calendar_event_repeat_not` (
- `cal_id` int(11) NOT NULL,
- `cal_date` int(11) NOT NULL,
- PRIMARY KEY (`cal_id`,`cal_date`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `chat_connected`
---
-
-DROP TABLE IF EXISTS `chat_connected`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `chat_connected` (
- `user_id` int(10) unsigned NOT NULL DEFAULT '0',
- `last_connection` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `session_id` int(11) NOT NULL DEFAULT '0',
- `to_group_id` int(11) NOT NULL DEFAULT '0',
- KEY `char_connected_index` (`user_id`,`session_id`,`to_group_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `course_description`
---
-
-DROP TABLE IF EXISTS `course_description`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `course_description` (
- `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
- `title` varchar(255) DEFAULT NULL,
- `content` text,
- `session_id` smallint(6) DEFAULT '0',
- `description_type` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `progress` int(11) NOT NULL DEFAULT '0',
- UNIQUE KEY `id` (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `course_setting`
---
-
-DROP TABLE IF EXISTS `course_setting`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `course_setting` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `variable` varchar(255) NOT NULL DEFAULT '',
- `subkey` varchar(255) DEFAULT NULL,
- `type` varchar(255) DEFAULT NULL,
- `category` varchar(255) DEFAULT NULL,
- `value` varchar(255) NOT NULL DEFAULT '',
- `title` varchar(255) NOT NULL DEFAULT '',
- `comment` varchar(255) DEFAULT NULL,
- `subkeytext` varchar(255) DEFAULT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `document`
---
-
-DROP TABLE IF EXISTS `document`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `document` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `path` varchar(255) NOT NULL DEFAULT '',
- `comment` text,
- `title` varchar(255) DEFAULT NULL,
- `filetype` set('file','folder') NOT NULL DEFAULT 'file',
- `size` int(11) NOT NULL DEFAULT '0',
- `readonly` tinyint(3) unsigned NOT NULL,
- `session_id` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=198 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `dropbox_category`
---
-
-DROP TABLE IF EXISTS `dropbox_category`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `dropbox_category` (
- `cat_id` int(11) NOT NULL AUTO_INCREMENT,
- `cat_name` text NOT NULL,
- `received` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `sent` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `user_id` int(11) NOT NULL DEFAULT '0',
- `session_id` smallint(6) NOT NULL DEFAULT '0',
- PRIMARY KEY (`cat_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `dropbox_feedback`
---
-
-DROP TABLE IF EXISTS `dropbox_feedback`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `dropbox_feedback` (
- `feedback_id` int(11) NOT NULL AUTO_INCREMENT,
- `file_id` int(11) NOT NULL DEFAULT '0',
- `author_user_id` int(11) NOT NULL DEFAULT '0',
- `feedback` text NOT NULL,
- `feedback_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`feedback_id`),
- KEY `file_id` (`file_id`),
- KEY `author_user_id` (`author_user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `dropbox_file`
---
-
-DROP TABLE IF EXISTS `dropbox_file`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `dropbox_file` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `uploader_id` int(10) unsigned NOT NULL DEFAULT '0',
- `filename` varchar(250) NOT NULL DEFAULT '',
- `filesize` int(10) unsigned NOT NULL,
- `title` varchar(250) DEFAULT '',
- `description` varchar(250) DEFAULT '',
- `author` varchar(250) DEFAULT '',
- `upload_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `last_upload_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `cat_id` int(11) NOT NULL DEFAULT '0',
- `session_id` smallint(5) unsigned NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `UN_filename` (`filename`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `dropbox_person`
---
-
-DROP TABLE IF EXISTS `dropbox_person`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `dropbox_person` (
- `file_id` int(10) unsigned NOT NULL,
- `user_id` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`file_id`,`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `dropbox_post`
---
-
-DROP TABLE IF EXISTS `dropbox_post`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `dropbox_post` (
- `file_id` int(10) unsigned NOT NULL,
- `dest_user_id` int(10) unsigned NOT NULL DEFAULT '0',
- `feedback_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `feedback` text,
- `cat_id` int(11) NOT NULL DEFAULT '0',
- `session_id` smallint(5) unsigned NOT NULL,
- PRIMARY KEY (`file_id`,`dest_user_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_attachment`
---
-
-DROP TABLE IF EXISTS `forum_attachment`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_attachment` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `path` varchar(255) NOT NULL,
- `comment` text,
- `size` int(11) NOT NULL DEFAULT '0',
- `post_id` int(11) NOT NULL,
- `filename` varchar(255) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_category`
---
-
-DROP TABLE IF EXISTS `forum_category`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_category` (
- `cat_id` int(11) NOT NULL AUTO_INCREMENT,
- `cat_title` varchar(255) NOT NULL DEFAULT '',
- `cat_comment` text,
- `cat_order` int(11) NOT NULL DEFAULT '0',
- `locked` int(11) NOT NULL DEFAULT '0',
- `session_id` smallint(5) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`cat_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_forum`
---
-
-DROP TABLE IF EXISTS `forum_forum`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_forum` (
- `forum_id` int(11) NOT NULL AUTO_INCREMENT,
- `forum_title` varchar(255) NOT NULL DEFAULT '',
- `forum_comment` text,
- `forum_threads` int(11) DEFAULT '0',
- `forum_posts` int(11) DEFAULT '0',
- `forum_last_post` int(11) DEFAULT '0',
- `forum_category` int(11) DEFAULT NULL,
- `allow_anonymous` int(11) DEFAULT NULL,
- `allow_edit` int(11) DEFAULT NULL,
- `approval_direct_post` varchar(20) DEFAULT NULL,
- `allow_attachments` int(11) DEFAULT NULL,
- `allow_new_threads` int(11) DEFAULT NULL,
- `default_view` varchar(20) DEFAULT NULL,
- `forum_of_group` varchar(20) DEFAULT NULL,
- `forum_group_public_private` varchar(20) DEFAULT 'public',
- `forum_order` int(11) DEFAULT NULL,
- `locked` int(11) NOT NULL DEFAULT '0',
- `session_id` int(11) NOT NULL DEFAULT '0',
- `forum_image` varchar(255) NOT NULL DEFAULT '',
- PRIMARY KEY (`forum_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_mailcue`
---
-
-DROP TABLE IF EXISTS `forum_mailcue`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_mailcue` (
- `thread_id` int(11) DEFAULT NULL,
- `user_id` int(11) DEFAULT NULL,
- `post_id` int(11) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_notification`
---
-
-DROP TABLE IF EXISTS `forum_notification`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_notification` (
- `user_id` int(11) DEFAULT NULL,
- `forum_id` int(11) DEFAULT NULL,
- `thread_id` int(11) DEFAULT NULL,
- `post_id` int(11) DEFAULT NULL,
- KEY `user_id` (`user_id`),
- KEY `forum_id` (`forum_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_post`
---
-
-DROP TABLE IF EXISTS `forum_post`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_post` (
- `post_id` int(11) NOT NULL AUTO_INCREMENT,
- `post_title` varchar(250) DEFAULT NULL,
- `post_text` text,
- `thread_id` int(11) DEFAULT '0',
- `forum_id` int(11) DEFAULT '0',
- `poster_id` int(11) DEFAULT '0',
- `poster_name` varchar(100) DEFAULT '',
- `post_date` datetime DEFAULT '0000-00-00 00:00:00',
- `post_notification` tinyint(4) DEFAULT '0',
- `post_parent_id` int(11) DEFAULT '0',
- `visible` tinyint(4) DEFAULT '1',
- PRIMARY KEY (`post_id`),
- KEY `poster_id` (`poster_id`),
- KEY `forum_id` (`forum_id`),
- KEY `idx_forum_post_thread_id` (`thread_id`),
- KEY `idx_forum_post_visible` (`visible`)
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_thread`
---
-
-DROP TABLE IF EXISTS `forum_thread`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_thread` (
- `thread_id` int(11) NOT NULL AUTO_INCREMENT,
- `thread_title` varchar(255) DEFAULT NULL,
- `forum_id` int(11) DEFAULT NULL,
- `thread_replies` int(11) DEFAULT '0',
- `thread_poster_id` int(11) DEFAULT NULL,
- `thread_poster_name` varchar(100) DEFAULT '',
- `thread_views` int(11) DEFAULT '0',
- `thread_last_post` int(11) DEFAULT NULL,
- `thread_date` datetime DEFAULT '0000-00-00 00:00:00',
- `thread_sticky` tinyint(3) unsigned DEFAULT '0',
- `locked` int(11) NOT NULL DEFAULT '0',
- `session_id` int(10) unsigned DEFAULT NULL,
- `thread_title_qualify` varchar(255) DEFAULT '',
- `thread_qualify_max` float(6,2) unsigned NOT NULL DEFAULT '0.00',
- `thread_close_date` datetime DEFAULT '0000-00-00 00:00:00',
- `thread_weight` float(6,2) unsigned NOT NULL DEFAULT '0.00',
- PRIMARY KEY (`thread_id`),
- KEY `idx_forum_thread_forum_id` (`forum_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_thread_qualify`
---
-
-DROP TABLE IF EXISTS `forum_thread_qualify`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_thread_qualify` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `user_id` int(10) unsigned NOT NULL,
- `thread_id` int(11) NOT NULL,
- `qualify` float(6,2) NOT NULL DEFAULT '0.00',
- `qualify_user_id` int(11) DEFAULT NULL,
- `qualify_time` datetime DEFAULT '0000-00-00 00:00:00',
- `session_id` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `user_id` (`user_id`,`thread_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_thread_qualify_log`
---
-
-DROP TABLE IF EXISTS `forum_thread_qualify_log`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_thread_qualify_log` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `user_id` int(10) unsigned NOT NULL,
- `thread_id` int(11) NOT NULL,
- `qualify` float(6,2) NOT NULL DEFAULT '0.00',
- `qualify_user_id` int(11) DEFAULT NULL,
- `qualify_time` datetime DEFAULT '0000-00-00 00:00:00',
- `session_id` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `user_id` (`user_id`,`thread_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `glossary`
---
-
-DROP TABLE IF EXISTS `glossary`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `glossary` (
- `glossary_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `name` varchar(255) NOT NULL,
- `description` text NOT NULL,
- `display_order` int(11) DEFAULT NULL,
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`glossary_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `group_category`
---
-
-DROP TABLE IF EXISTS `group_category`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `group_category` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `title` varchar(255) NOT NULL DEFAULT '',
- `description` text NOT NULL,
- `doc_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `calendar_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `work_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `announcements_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `forum_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `wiki_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `chat_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `max_student` smallint(5) unsigned NOT NULL DEFAULT '8',
- `self_reg_allowed` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `self_unreg_allowed` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `groups_per_user` smallint(5) unsigned NOT NULL DEFAULT '0',
- `display_order` smallint(5) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `group_info`
---
-
-DROP TABLE IF EXISTS `group_info`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `group_info` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `name` varchar(100) DEFAULT NULL,
- `category_id` int(10) unsigned NOT NULL DEFAULT '0',
- `description` text,
- `max_student` smallint(5) unsigned NOT NULL DEFAULT '8',
- `doc_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `calendar_state` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `work_state` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `announcements_state` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `forum_state` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `wiki_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `chat_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `secret_directory` varchar(255) DEFAULT NULL,
- `self_registration_allowed` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `self_unregistration_allowed` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `session_id` smallint(5) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `group_rel_tutor`
---
-
-DROP TABLE IF EXISTS `group_rel_tutor`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `group_rel_tutor` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `user_id` int(11) NOT NULL,
- `group_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `group_rel_user`
---
-
-DROP TABLE IF EXISTS `group_rel_user`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `group_rel_user` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `user_id` int(10) unsigned NOT NULL,
- `group_id` int(10) unsigned NOT NULL DEFAULT '0',
- `status` int(11) NOT NULL DEFAULT '0',
- `role` char(50) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `item_property`
---
-
-DROP TABLE IF EXISTS `item_property`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `item_property` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `tool` varchar(100) NOT NULL DEFAULT '',
- `insert_user_id` int(10) unsigned NOT NULL DEFAULT '0',
- `insert_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `lastedit_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `ref` int(11) NOT NULL DEFAULT '0',
- `lastedit_type` varchar(100) NOT NULL DEFAULT '',
- `lastedit_user_id` int(10) unsigned NOT NULL DEFAULT '0',
- `to_group_id` int(10) unsigned DEFAULT NULL,
- `to_user_id` int(10) unsigned DEFAULT NULL,
- `visibility` tinyint(4) NOT NULL DEFAULT '1',
- `start_visible` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `end_visible` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `id_session` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `idx_item_property_toolref` (`tool`,`ref`)
-) ENGINE=InnoDB AUTO_INCREMENT=205 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `link`
---
-
-DROP TABLE IF EXISTS `link`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `link` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `url` text NOT NULL,
- `title` varchar(150) DEFAULT NULL,
- `description` text,
- `category_id` smallint(5) unsigned DEFAULT NULL,
- `display_order` smallint(5) unsigned NOT NULL DEFAULT '0',
- `on_homepage` enum('0','1') NOT NULL DEFAULT '0',
- `target` char(10) DEFAULT '_self',
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `link_category`
---
-
-DROP TABLE IF EXISTS `link_category`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `link_category` (
- `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
- `category_title` varchar(255) NOT NULL,
- `description` text,
- `display_order` mediumint(8) unsigned NOT NULL DEFAULT '0',
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `lp`
---
-
-DROP TABLE IF EXISTS `lp`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `lp` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `lp_type` smallint(5) unsigned NOT NULL,
- `name` varchar(255) NOT NULL,
- `ref` tinytext,
- `description` text,
- `path` text NOT NULL,
- `force_commit` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `default_view_mod` char(32) NOT NULL DEFAULT 'embedded',
- `default_encoding` char(32) NOT NULL DEFAULT 'UTF-8',
- `display_order` int(10) unsigned NOT NULL DEFAULT '0',
- `content_maker` tinytext NOT NULL,
- `content_local` varchar(32) NOT NULL DEFAULT 'local',
- `content_license` text NOT NULL,
- `prevent_reinit` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `js_lib` tinytext NOT NULL,
- `debug` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `theme` varchar(255) NOT NULL DEFAULT '',
- `preview_image` varchar(255) NOT NULL DEFAULT '',
- `author` varchar(255) NOT NULL DEFAULT '',
- `session_id` int(10) unsigned NOT NULL DEFAULT '0',
- `prerequisite` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `lp_item`
---
-
-DROP TABLE IF EXISTS `lp_item`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `lp_item` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `lp_id` int(10) unsigned NOT NULL,
- `item_type` char(32) NOT NULL DEFAULT 'dokeos_document',
- `ref` tinytext NOT NULL,
- `title` varchar(511) NOT NULL,
- `description` varchar(511) NOT NULL DEFAULT '',
- `path` text NOT NULL,
- `min_score` float unsigned NOT NULL DEFAULT '0',
- `max_score` float unsigned NOT NULL DEFAULT '100',
- `mastery_score` float unsigned DEFAULT NULL,
- `parent_item_id` int(10) unsigned NOT NULL DEFAULT '0',
- `previous_item_id` int(10) unsigned NOT NULL DEFAULT '0',
- `next_item_id` int(10) unsigned NOT NULL DEFAULT '0',
- `display_order` int(10) unsigned NOT NULL DEFAULT '0',
- `prerequisite` text,
- `parameters` text,
- `launch_data` text NOT NULL,
- `max_time_allowed` char(13) DEFAULT '',
- `terms` text,
- `search_did` int(11) DEFAULT NULL,
- `audio` varchar(250) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `lp_id` (`lp_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `lp_item_view`
---
-
-DROP TABLE IF EXISTS `lp_item_view`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `lp_item_view` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `lp_item_id` int(10) unsigned NOT NULL,
- `lp_view_id` int(10) unsigned NOT NULL,
- `view_count` int(10) unsigned NOT NULL DEFAULT '0',
- `start_time` int(10) unsigned NOT NULL,
- `total_time` int(10) unsigned NOT NULL DEFAULT '0',
- `score` float unsigned NOT NULL DEFAULT '0',
- `status` char(32) NOT NULL DEFAULT 'not attempted',
- `suspend_data` text,
- `lesson_location` text,
- `core_exit` varchar(32) NOT NULL DEFAULT 'none',
- `max_score` varchar(8) DEFAULT '',
- PRIMARY KEY (`id`),
- KEY `lp_item_id` (`lp_item_id`),
- KEY `lp_view_id` (`lp_view_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `lp_iv_interaction`
---
-
-DROP TABLE IF EXISTS `lp_iv_interaction`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `lp_iv_interaction` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `order_id` smallint(5) unsigned NOT NULL DEFAULT '0',
- `lp_iv_id` bigint(20) unsigned NOT NULL,
- `interaction_id` varchar(255) NOT NULL DEFAULT '',
- `interaction_type` varchar(255) NOT NULL DEFAULT '',
- `weighting` double NOT NULL DEFAULT '0',
- `completion_time` varchar(16) NOT NULL DEFAULT '',
- `correct_responses` text NOT NULL,
- `student_response` text NOT NULL,
- `result` varchar(255) NOT NULL DEFAULT '',
- `latency` varchar(16) NOT NULL DEFAULT '',
- PRIMARY KEY (`id`),
- KEY `lp_iv_id` (`lp_iv_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `lp_iv_objective`
---
-
-DROP TABLE IF EXISTS `lp_iv_objective`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `lp_iv_objective` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `lp_iv_id` bigint(20) unsigned NOT NULL,
- `order_id` smallint(5) unsigned NOT NULL DEFAULT '0',
- `objective_id` varchar(255) NOT NULL DEFAULT '',
- `score_raw` float unsigned NOT NULL DEFAULT '0',
- `score_max` float unsigned NOT NULL DEFAULT '0',
- `score_min` float unsigned NOT NULL DEFAULT '0',
- `status` char(32) NOT NULL DEFAULT 'not attempted',
- PRIMARY KEY (`id`),
- KEY `lp_iv_id` (`lp_iv_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `lp_view`
---
-
-DROP TABLE IF EXISTS `lp_view`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `lp_view` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `lp_id` int(10) unsigned NOT NULL,
- `user_id` int(10) unsigned NOT NULL,
- `view_count` smallint(5) unsigned NOT NULL DEFAULT '0',
- `last_item` int(10) unsigned NOT NULL DEFAULT '0',
- `progress` int(10) unsigned DEFAULT '0',
- `session_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `lp_id` (`lp_id`),
- KEY `user_id` (`user_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `notebook`
---
-
-DROP TABLE IF EXISTS `notebook`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `notebook` (
- `notebook_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `user_id` int(10) unsigned NOT NULL,
- `course` varchar(40) NOT NULL,
- `session_id` int(11) NOT NULL DEFAULT '0',
- `title` varchar(255) NOT NULL,
- `description` text NOT NULL,
- `creation_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `update_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `status` int(11) DEFAULT NULL,
- PRIMARY KEY (`notebook_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `online_connected`
---
-
-DROP TABLE IF EXISTS `online_connected`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `online_connected` (
- `user_id` int(10) unsigned NOT NULL,
- `last_connection` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `online_link`
---
-
-DROP TABLE IF EXISTS `online_link`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `online_link` (
- `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
- `name` char(50) NOT NULL DEFAULT '',
- `url` char(100) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `permission_group`
---
-
-DROP TABLE IF EXISTS `permission_group`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `permission_group` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `group_id` int(11) NOT NULL DEFAULT '0',
- `tool` varchar(250) NOT NULL DEFAULT '',
- `action` varchar(250) NOT NULL DEFAULT '',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `permission_task`
---
-
-DROP TABLE IF EXISTS `permission_task`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `permission_task` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `task_id` int(11) NOT NULL DEFAULT '0',
- `tool` varchar(250) NOT NULL DEFAULT '',
- `action` varchar(250) NOT NULL DEFAULT '',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `permission_user`
---
-
-DROP TABLE IF EXISTS `permission_user`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `permission_user` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `user_id` int(11) NOT NULL DEFAULT '0',
- `tool` varchar(250) NOT NULL DEFAULT '',
- `action` varchar(250) NOT NULL DEFAULT '',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `quiz`
---
-
-DROP TABLE IF EXISTS `quiz`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `quiz` (
- `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
- `title` varchar(255) NOT NULL,
- `description` text,
- `sound` varchar(255) DEFAULT NULL,
- `type` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `random` smallint(6) NOT NULL DEFAULT '0',
- `random_answers` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `active` tinyint(4) NOT NULL DEFAULT '0',
- `results_disabled` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `access_condition` text,
- `max_attempt` int(11) NOT NULL DEFAULT '0',
- `start_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `end_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `feedback_type` int(11) NOT NULL DEFAULT '0',
- `expired_time` int(11) NOT NULL DEFAULT '0',
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `quiz_answer`
---
-
-DROP TABLE IF EXISTS `quiz_answer`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `quiz_answer` (
- `id` mediumint(8) unsigned NOT NULL,
- `question_id` mediumint(8) unsigned NOT NULL,
- `answer` text NOT NULL,
- `correct` mediumint(8) unsigned DEFAULT NULL,
- `comment` text,
- `ponderation` float(6,2) NOT NULL DEFAULT '0.00',
- `position` mediumint(8) unsigned NOT NULL DEFAULT '1',
- `hotspot_coordinates` text,
- `hotspot_type` enum('square','circle','poly','delineation') DEFAULT NULL,
- `destination` text NOT NULL,
- `id_auto` int(11) NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`id`,`question_id`),
- UNIQUE KEY `id_auto` (`id_auto`)
-) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `quiz_question`
---
-
-DROP TABLE IF EXISTS `quiz_question`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `quiz_question` (
- `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
- `question` varchar(511) NOT NULL,
- `description` text,
- `ponderation` float(6,2) NOT NULL DEFAULT '0.00',
- `position` mediumint(8) unsigned NOT NULL DEFAULT '1',
- `type` tinyint(3) unsigned NOT NULL DEFAULT '2',
- `picture` varchar(50) DEFAULT NULL,
- `level` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `position` (`position`)
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `quiz_rel_question`
---
-
-DROP TABLE IF EXISTS `quiz_rel_question`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `quiz_rel_question` (
- `question_id` mediumint(8) unsigned NOT NULL,
- `exercice_id` mediumint(8) unsigned NOT NULL,
- `question_order` mediumint(8) unsigned NOT NULL DEFAULT '1',
- PRIMARY KEY (`question_id`,`exercice_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `resource`
---
-
-DROP TABLE IF EXISTS `resource`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `resource` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `source_type` varchar(50) DEFAULT NULL,
- `source_id` int(10) unsigned DEFAULT NULL,
- `resource_type` varchar(50) DEFAULT NULL,
- `resource_id` int(10) unsigned DEFAULT NULL,
- UNIQUE KEY `id` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `role`
---
-
-DROP TABLE IF EXISTS `role`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `role` (
- `role_id` int(11) NOT NULL AUTO_INCREMENT,
- `role_name` varchar(250) NOT NULL DEFAULT '',
- `role_comment` text,
- `default_role` tinyint(4) DEFAULT '0',
- PRIMARY KEY (`role_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `role_group`
---
-
-DROP TABLE IF EXISTS `role_group`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `role_group` (
- `role_id` int(11) NOT NULL DEFAULT '0',
- `scope` varchar(20) NOT NULL DEFAULT 'course',
- `group_id` int(11) NOT NULL DEFAULT '0'
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `role_permissions`
---
-
-DROP TABLE IF EXISTS `role_permissions`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `role_permissions` (
- `role_id` int(11) NOT NULL DEFAULT '0',
- `tool` varchar(250) NOT NULL DEFAULT '',
- `action` varchar(50) NOT NULL DEFAULT '',
- `default_perm` tinyint(4) NOT NULL DEFAULT '0'
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `role_user`
---
-
-DROP TABLE IF EXISTS `role_user`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `role_user` (
- `role_id` int(11) NOT NULL DEFAULT '0',
- `scope` varchar(20) NOT NULL DEFAULT 'course',
- `user_id` int(11) NOT NULL DEFAULT '0'
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `student_publication`
---
-
-DROP TABLE IF EXISTS `student_publication`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `student_publication` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `url` varchar(255) DEFAULT NULL,
- `title` varchar(255) DEFAULT NULL,
- `description` text,
- `author` varchar(255) DEFAULT NULL,
- `active` tinyint(4) DEFAULT NULL,
- `accepted` tinyint(4) DEFAULT '0',
- `post_group_id` int(11) NOT NULL DEFAULT '0',
- `sent_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `filetype` set('file','folder') NOT NULL DEFAULT 'file',
- `has_properties` int(10) unsigned NOT NULL DEFAULT '0',
- `view_properties` tinyint(4) DEFAULT NULL,
- `qualification` float(6,2) unsigned NOT NULL DEFAULT '0.00',
- `date_of_qualification` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `parent_id` int(10) unsigned NOT NULL DEFAULT '0',
- `qualificator_id` int(10) unsigned NOT NULL DEFAULT '0',
- `weight` float(6,2) unsigned NOT NULL DEFAULT '0.00',
- `session_id` int(10) unsigned NOT NULL DEFAULT '0',
- `user_id` int(11) NOT NULL,
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `student_publication_assignment`
---
-
-DROP TABLE IF EXISTS `student_publication_assignment`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `student_publication_assignment` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `expires_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `ends_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `add_to_calendar` tinyint(4) NOT NULL,
- `enable_qualification` tinyint(4) NOT NULL,
- `publication_id` int(11) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `survey`
---
-
-DROP TABLE IF EXISTS `survey`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `survey` (
- `survey_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `code` varchar(20) DEFAULT NULL,
- `title` text,
- `subtitle` text,
- `author` varchar(20) DEFAULT NULL,
- `lang` varchar(20) DEFAULT NULL,
- `avail_from` date DEFAULT NULL,
- `avail_till` date DEFAULT NULL,
- `is_shared` char(1) DEFAULT '1',
- `template` varchar(20) DEFAULT NULL,
- `intro` text,
- `surveythanks` text,
- `creation_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `invited` int(11) NOT NULL,
- `answered` int(11) NOT NULL,
- `invite_mail` text NOT NULL,
- `reminder_mail` text NOT NULL,
- `mail_subject` varchar(255) NOT NULL,
- `anonymous` enum('0','1') NOT NULL DEFAULT '0',
- `access_condition` text,
- `shuffle` tinyint(1) NOT NULL DEFAULT '0',
- `one_question_per_page` tinyint(1) NOT NULL DEFAULT '0',
- `survey_version` varchar(255) NOT NULL DEFAULT '',
- `parent_id` int(10) unsigned NOT NULL,
- `survey_type` int(11) NOT NULL DEFAULT '0',
- `show_form_profile` int(11) NOT NULL DEFAULT '0',
- `form_fields` text NOT NULL,
- `session_id` smallint(5) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`survey_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `survey_answer`
---
-
-DROP TABLE IF EXISTS `survey_answer`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `survey_answer` (
- `answer_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `survey_id` int(10) unsigned NOT NULL,
- `question_id` int(10) unsigned NOT NULL,
- `option_id` text NOT NULL,
- `value` int(10) unsigned NOT NULL,
- `user` varchar(250) NOT NULL,
- PRIMARY KEY (`answer_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `survey_group`
---
-
-DROP TABLE IF EXISTS `survey_group`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `survey_group` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `name` varchar(20) NOT NULL,
- `description` varchar(255) NOT NULL,
- `survey_id` int(10) unsigned NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `survey_invitation`
---
-
-DROP TABLE IF EXISTS `survey_invitation`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `survey_invitation` (
- `survey_invitation_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `survey_code` varchar(20) NOT NULL,
- `user` varchar(250) NOT NULL,
- `invitation_code` varchar(250) NOT NULL,
- `invitation_date` datetime NOT NULL,
- `reminder_date` datetime NOT NULL,
- `answered` int(11) NOT NULL DEFAULT '0',
- `session_id` smallint(5) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`survey_invitation_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `survey_question`
---
-
-DROP TABLE IF EXISTS `survey_question`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `survey_question` (
- `question_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `survey_id` int(10) unsigned NOT NULL,
- `survey_question` text NOT NULL,
- `survey_question_comment` text NOT NULL,
- `type` varchar(250) NOT NULL,
- `display` varchar(10) NOT NULL,
- `sort` int(11) NOT NULL,
- `shared_question_id` int(11) DEFAULT NULL,
- `max_value` int(11) DEFAULT NULL,
- `survey_group_pri` int(10) unsigned NOT NULL DEFAULT '0',
- `survey_group_sec1` int(10) unsigned NOT NULL DEFAULT '0',
- `survey_group_sec2` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`question_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `survey_question_option`
---
-
-DROP TABLE IF EXISTS `survey_question_option`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `survey_question_option` (
- `question_option_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `question_id` int(10) unsigned NOT NULL,
- `survey_id` int(10) unsigned NOT NULL,
- `option_text` text NOT NULL,
- `sort` int(11) NOT NULL,
- `value` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`question_option_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `thematic`
---
-
-DROP TABLE IF EXISTS `thematic`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `thematic` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `title` varchar(255) NOT NULL,
- `content` text,
- `display_order` int(10) unsigned NOT NULL DEFAULT '0',
- `active` tinyint(4) NOT NULL DEFAULT '0',
- `session_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `active` (`active`,`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `thematic_advance`
---
-
-DROP TABLE IF EXISTS `thematic_advance`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `thematic_advance` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `thematic_id` int(11) NOT NULL,
- `attendance_id` int(11) NOT NULL DEFAULT '0',
- `content` text,
- `start_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `duration` int(11) NOT NULL DEFAULT '0',
- `done_advance` tinyint(4) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `thematic_id` (`thematic_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `thematic_plan`
---
-
-DROP TABLE IF EXISTS `thematic_plan`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `thematic_plan` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `thematic_id` int(11) NOT NULL,
- `title` varchar(255) NOT NULL,
- `description` text,
- `description_type` int(11) NOT NULL,
- PRIMARY KEY (`id`),
- KEY `thematic_id` (`thematic_id`,`description_type`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `tool`
---
-
-DROP TABLE IF EXISTS `tool`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `tool` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `name` varchar(255) NOT NULL,
- `link` varchar(255) NOT NULL,
- `image` varchar(255) DEFAULT NULL,
- `visibility` tinyint(3) unsigned DEFAULT '0',
- `admin` varchar(255) DEFAULT NULL,
- `address` varchar(255) DEFAULT NULL,
- `added_tool` tinyint(3) unsigned DEFAULT '1',
- `target` enum('_self','_blank') NOT NULL DEFAULT '_self',
- `category` enum('authoring','interaction','admin') NOT NULL DEFAULT 'authoring',
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `tool_intro`
---
-
-DROP TABLE IF EXISTS `tool_intro`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `tool_intro` (
- `id` varchar(50) NOT NULL,
- `intro_text` text NOT NULL,
- `session_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`,`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `userinfo_content`
---
-
-DROP TABLE IF EXISTS `userinfo_content`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `userinfo_content` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `user_id` int(10) unsigned NOT NULL,
- `definition_id` int(10) unsigned NOT NULL,
- `editor_ip` varchar(39) DEFAULT NULL,
- `edition_time` datetime DEFAULT NULL,
- `content` text NOT NULL,
- PRIMARY KEY (`id`),
- KEY `user_id` (`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `userinfo_def`
---
-
-DROP TABLE IF EXISTS `userinfo_def`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `userinfo_def` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `title` varchar(80) NOT NULL DEFAULT '',
- `comment` text,
- `line_count` tinyint(3) unsigned NOT NULL DEFAULT '5',
- `rank` tinyint(3) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `wiki`
---
-
-DROP TABLE IF EXISTS `wiki`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `wiki` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `page_id` int(11) NOT NULL DEFAULT '0',
- `reflink` varchar(255) NOT NULL DEFAULT 'index',
- `title` varchar(255) NOT NULL,
- `content` mediumtext NOT NULL,
- `user_id` int(11) NOT NULL DEFAULT '0',
- `group_id` int(11) DEFAULT NULL,
- `dtime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `addlock` int(11) NOT NULL DEFAULT '1',
- `editlock` int(11) NOT NULL DEFAULT '0',
- `visibility` int(11) NOT NULL DEFAULT '1',
- `addlock_disc` int(11) NOT NULL DEFAULT '1',
- `visibility_disc` int(11) NOT NULL DEFAULT '1',
- `ratinglock_disc` int(11) NOT NULL DEFAULT '1',
- `assignment` int(11) NOT NULL DEFAULT '0',
- `comment` text NOT NULL,
- `progress` text NOT NULL,
- `score` int(11) DEFAULT '0',
- `version` int(11) DEFAULT NULL,
- `is_editing` int(11) NOT NULL DEFAULT '0',
- `time_edit` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `hits` int(11) DEFAULT '0',
- `linksto` text NOT NULL,
- `tag` text NOT NULL,
- `user_ip` varchar(39) NOT NULL,
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `reflink` (`reflink`),
- KEY `group_id` (`group_id`),
- KEY `page_id` (`page_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `wiki_conf`
---
-
-DROP TABLE IF EXISTS `wiki_conf`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `wiki_conf` (
- `page_id` int(11) NOT NULL DEFAULT '0',
- `task` text NOT NULL,
- `feedback1` text NOT NULL,
- `feedback2` text NOT NULL,
- `feedback3` text NOT NULL,
- `fprogress1` varchar(3) NOT NULL,
- `fprogress2` varchar(3) NOT NULL,
- `fprogress3` varchar(3) NOT NULL,
- `max_size` int(11) DEFAULT NULL,
- `max_text` int(11) DEFAULT NULL,
- `max_version` int(11) DEFAULT NULL,
- `startdate_assig` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `enddate_assig` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `delayedsubmit` int(11) NOT NULL DEFAULT '0',
- KEY `page_id` (`page_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `wiki_discuss`
---
-
-DROP TABLE IF EXISTS `wiki_discuss`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `wiki_discuss` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `publication_id` int(11) NOT NULL DEFAULT '0',
- `userc_id` int(11) NOT NULL DEFAULT '0',
- `comment` text NOT NULL,
- `p_score` varchar(255) DEFAULT NULL,
- `dtime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `wiki_mailcue`
---
-
-DROP TABLE IF EXISTS `wiki_mailcue`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `wiki_mailcue` (
- `id` int(11) NOT NULL,
- `user_id` int(11) NOT NULL,
- `type` text NOT NULL,
- `group_id` int(11) DEFAULT NULL,
- KEY `id` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
--- Dump completed on 2013-03-27 11:30:20
\ No newline at end of file
diff --git a/main/install/1.8.7/db_main.sql b/main/install/1.8.7/db_main.sql
deleted file mode 100755
index 6c7be8992c..0000000000
--- a/main/install/1.8.7/db_main.sql
+++ /dev/null
@@ -1,2420 +0,0 @@
--- MySQL dump 10.9
---
--- Host: localhost Database: chamilo_main
--- ------------------------------------------------------
--- Server version 4.1.14
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
-
---
--- Table structure for table user
---
-
-DROP TABLE IF EXISTS user;
-CREATE TABLE user (
- user_id int unsigned NOT NULL auto_increment,
- lastname varchar(60) default NULL,
- firstname varchar(60) default NULL,
- username varchar(20) NOT NULL default '',
- password varchar(50) NOT NULL default '',
- auth_source varchar(50) default 'platform',
- email varchar(100) default NULL,
- status tinyint NOT NULL default '5',
- official_code varchar(40) default NULL,
- phone varchar(30) default NULL,
- picture_uri varchar(250) default NULL,
- creator_id int unsigned default NULL,
- competences text,
- diplomas text,
- openarea text,
- teach text,
- productions varchar(250) default NULL,
- chatcall_user_id int unsigned NOT NULL default '0',
- chatcall_date datetime NOT NULL default '0000-00-00 00:00:00',
- chatcall_text varchar(50) NOT NULL default '',
- language varchar(40) default NULL,
- registration_date datetime NOT NULL default '0000-00-00 00:00:00',
- expiration_date datetime NOT NULL default '0000-00-00 00:00:00',
- active tinyint unsigned NOT NULL default 1,
- openid varchar(255) DEFAULT NULL,
- theme varchar(255) DEFAULT NULL,
- hr_dept_id smallint unsigned NOT NULL default 0,
- PRIMARY KEY (user_id),
- UNIQUE KEY username (username)
-);
-ALTER TABLE user ADD INDEX (status);
-
---
--- Dumping data for table user
---
-
-/*!40000 ALTER TABLE user DISABLE KEYS */;
-LOCK TABLES user WRITE;
-INSERT INTO user (lastname, firstname, username, password, auth_source, email, status, official_code,phone, creator_id, registration_date, expiration_date,active,openid,language) VALUES ('{ADMINLASTNAME}','{ADMINFIRSTNAME}','{ADMINLOGIN}','{ADMINPASSWORD}','{PLATFORM_AUTH_SOURCE}','{ADMINEMAIL}',1,'ADMIN','{ADMINPHONE}',1,NOW(),'0000-00-00 00:00:00','1',NULL,'{ADMINLANGUAGE}');
--- Insert anonymous user
-INSERT INTO user (lastname, firstname, username, password, auth_source, email, status, official_code, creator_id, registration_date, expiration_date,active,openid,language) VALUES ('Anonymous', 'Joe', '', '', 'platform', 'anonymous@localhost', 6, 'anonymous', 1, NOW(), '0000-00-00 00:00:00', 1,NULL,'{ADMINLANGUAGE}');
-UNLOCK TABLES;
-/*!40000 ALTER TABLE user ENABLE KEYS */;
-
---
--- Table structure for table admin
---
-
-DROP TABLE IF EXISTS admin;
-CREATE TABLE admin (
- user_id int unsigned NOT NULL default '0',
- UNIQUE KEY user_id (user_id)
-);
-
---
--- Dumping data for table admin
---
-
-
-/*!40000 ALTER TABLE admin DISABLE KEYS */;
-LOCK TABLES admin WRITE;
-INSERT INTO admin VALUES (1);
-UNLOCK TABLES;
-/*!40000 ALTER TABLE admin ENABLE KEYS */;
-
---
--- Table structure for table class
---
-
-DROP TABLE IF EXISTS class;
-CREATE TABLE class (
- id mediumint unsigned NOT NULL auto_increment,
- code varchar(40) default '',
- name text NOT NULL,
- PRIMARY KEY (id)
-);
-
---
--- Dumping data for table class
---
-
-
-/*!40000 ALTER TABLE class DISABLE KEYS */;
-LOCK TABLES class WRITE;
-UNLOCK TABLES;
-/*!40000 ALTER TABLE class ENABLE KEYS */;
-
---
--- Table structure for table class_user
---
-
-DROP TABLE IF EXISTS class_user;
-CREATE TABLE class_user (
- class_id mediumint unsigned NOT NULL default '0',
- user_id int unsigned NOT NULL default '0',
- PRIMARY KEY (class_id,user_id)
-);
-
---
--- Dumping data for table class_user
---
-
-
-/*!40000 ALTER TABLE class_user DISABLE KEYS */;
-LOCK TABLES class_user WRITE;
-UNLOCK TABLES;
-/*!40000 ALTER TABLE class_user ENABLE KEYS */;
-
---
--- Table structure for table course
---
-
-DROP TABLE IF EXISTS course;
-CREATE TABLE course (
- id int auto_increment,
- code varchar(40) NOT NULL,
- directory varchar(40) default NULL,
- db_name varchar(40) default NULL,
- course_language varchar(20) default NULL,
- title varchar(250) default NULL,
- description text,
- category_code varchar(40) default NULL,
- visibility tinyint default '0',
- show_score int NOT NULL default '1',
- tutor_name varchar(200) default NULL,
- visual_code varchar(40) default NULL,
- department_name varchar(30) default NULL,
- department_url varchar(180) default NULL,
- disk_quota int unsigned default NULL,
- last_visit datetime default NULL,
- last_edit datetime default NULL,
- creation_date datetime default NULL,
- expiration_date datetime default NULL,
- target_course_code varchar(40) default NULL,
- subscribe tinyint NOT NULL default '1',
- unsubscribe tinyint NOT NULL default '1',
- registration_code varchar(255) NOT NULL default '',
- PRIMARY KEY (id),
- UNIQUE KEY code (code)
-);
-
---
--- Dumping data for table course
---
-
-
-/*!40000 ALTER TABLE course DISABLE KEYS */;
-LOCK TABLES course WRITE;
-UNLOCK TABLES;
-/*!40000 ALTER TABLE course ENABLE KEYS */;
-
---
--- Table structure for table course_category
---
-
-DROP TABLE IF EXISTS course_category;
-CREATE TABLE course_category (
- id int unsigned NOT NULL auto_increment,
- name varchar(100) NOT NULL default '',
- code varchar(40) NOT NULL default '',
- parent_id varchar(40) default NULL,
- tree_pos int unsigned default NULL,
- children_count smallint default NULL,
- auth_course_child enum('TRUE','FALSE') default 'TRUE',
- auth_cat_child enum('TRUE','FALSE') default 'TRUE',
- PRIMARY KEY (id),
- UNIQUE KEY code (code),
- KEY parent_id (parent_id),
- KEY tree_pos (tree_pos)
-);
-
---
--- Dumping data for table course_category
---
-
-
-/*!40000 ALTER TABLE course_category DISABLE KEYS */;
-LOCK TABLES course_category WRITE;
-INSERT INTO course_category VALUES (1,'Language skills','LANG',NULL,1,0,'TRUE','TRUE'),(2,'PC Skills','PC',NULL,2,0,'TRUE','TRUE'),(3,'Projects','PROJ',NULL,3,0,'TRUE','TRUE');
-UNLOCK TABLES;
-/*!40000 ALTER TABLE course_category ENABLE KEYS */;
-
---
--- Table structure for table course_field
---
-
-DROP TABLE IF EXISTS course_field;
-CREATE TABLE course_field (
- id int NOT NULL auto_increment,
- field_type int NOT NULL default 1,
- field_variable varchar(64) NOT NULL,
- field_display_text varchar(64),
- field_default_value text,
- field_order int,
- field_visible tinyint default 0,
- field_changeable tinyint default 0,
- field_filter tinyint default 0,
- tms DATETIME NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY(id)
-);
-
---
--- Table structure for table course_field_values
---
-
-DROP TABLE IF EXISTS course_field_values;
-CREATE TABLE course_field_values(
- id int NOT NULL auto_increment,
- course_code varchar(40) NOT NULL,
- field_id int NOT NULL,
- field_value text,
- tms DATETIME NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY(id)
-);
-
-
---
--- Table structure for table course_module
---
-
-DROP TABLE IF EXISTS course_module;
-CREATE TABLE course_module (
- id int unsigned NOT NULL auto_increment,
- name varchar(255) NOT NULL,
- link varchar(255) NOT NULL,
- image varchar(100) default NULL,
- `row` int unsigned NOT NULL default '0',
- `column` int unsigned NOT NULL default '0',
- position varchar(20) NOT NULL default 'basic',
- PRIMARY KEY (id)
-);
-
---
--- Dumping data for table course_module
---
-
-
-/*!40000 ALTER TABLE course_module DISABLE KEYS */;
-LOCK TABLES course_module WRITE;
-INSERT INTO course_module VALUES
-(1,'calendar_event','calendar/agenda.php','agenda.gif',1,1,'basic'),
-(2,'link','link/link.php','links.gif',4,1,'basic'),
-(3,'document','document/document.php','documents.gif',3,1,'basic'),
-(4,'student_publication','work/work.php','works.gif',3,2,'basic'),
-(5,'announcement','announcements/announcements.php','valves.gif',2,1,'basic'),
-(6,'user','user/user.php','members.gif',2,3,'basic'),
-(7,'forum','forum/index.php','forum.gif',1,2,'basic'),
-(8,'quiz','exercice/exercice.php','quiz.gif',2,2,'basic'),
-(9,'group','group/group.php','group.gif',3,3,'basic'),
-(10,'course_description','course_description/','info.gif',1,3,'basic'),
-(11,'chat','chat/chat.php','chat.gif',0,0,'external'),
-(12,'dropbox','dropbox/index.php','dropbox.gif',4,2,'basic'),
-(13,'tracking','tracking/courseLog.php','statistics.gif',1,3,'courseadmin'),
-(14,'homepage_link','link/link.php?action=addlink','npage.gif',1,1,'courseadmin'),
-(15,'course_setting','course_info/infocours.php','reference.gif',1,1,'courseadmin'),
-(16,'External','','external.gif',0,0,'external'),
-(17,'AddedLearnpath','','scormbuilder.gif',0,0,'external'),
-(18,'conference','conference/index.php?type=conference','conf.gif',0,0,'external'),
-(19,'conference','conference/index.php?type=classroom','conf.gif',0,0,'external'),
-(20,'learnpath','newscorm/lp_controller.php','scorm.gif',5,1,'basic'),
-(21,'blog','blog/blog.php','blog.gif',1,2,'basic'),
-(22,'blog_management','blog/blog_admin.php','blog_admin.gif',1,2,'courseadmin'),
-(23,'course_maintenance','course_info/maintenance.php','backup.gif',2,3,'courseadmin'),
-(24,'survey','survey/survey_list.php','survey.gif',2,1,'basic'),
-(25,'wiki','wiki/index.php','wiki.gif',2,3,'basic'),
-(26,'gradebook','gradebook/index.php','gradebook.gif',2,2,'basic'),
-(27,'glossary','glossary/index.php','glossary.gif',2,1,'basic'),
-(28,'notebook','notebook/index.php','notebook.gif',2,1,'basic'),
-(29,'attendance','attendance/index.php','attendance.gif',2,1,'basic'),
-(30,'course_progress','course_progress/index.php','course_progress.gif',2,1,'basic');
-UNLOCK TABLES;
-/*!40000 ALTER TABLE course_module ENABLE KEYS */;
-
---
--- Table structure for table course_rel_class
---
-
-DROP TABLE IF EXISTS course_rel_class;
-CREATE TABLE course_rel_class (
- course_code char(40) NOT NULL,
- class_id mediumint unsigned NOT NULL,
- PRIMARY KEY (course_code,class_id)
-);
-
---
--- Dumping data for table course_rel_class
---
-
-
-/*!40000 ALTER TABLE course_rel_class DISABLE KEYS */;
-LOCK TABLES course_rel_class WRITE;
-UNLOCK TABLES;
-/*!40000 ALTER TABLE course_rel_class ENABLE KEYS */;
-
---
--- Table structure for table course_rel_user
---
-
-DROP TABLE IF EXISTS course_rel_user;
-CREATE TABLE course_rel_user (
- course_code varchar(40) NOT NULL,
- user_id int unsigned NOT NULL default '0',
- status tinyint NOT NULL default '5',
- role varchar(60) default NULL,
- group_id int NOT NULL default '0',
- tutor_id int unsigned NOT NULL default '0',
- sort int default NULL,
- user_course_cat int default '0',
- relation_type int default 0,
- PRIMARY KEY (course_code,user_id,relation_type)
-);
-ALTER TABLE course_rel_user ADD INDEX (user_id);
-
---
--- Dumping data for table course_rel_user
---
-
-
-/*!40000 ALTER TABLE course_rel_user DISABLE KEYS */;
-LOCK TABLES course_rel_user WRITE;
-UNLOCK TABLES;
-/*!40000 ALTER TABLE course_rel_user ENABLE KEYS */;
-
---
--- Table structure for table language
---
-
-DROP TABLE IF EXISTS language;
-CREATE TABLE language (
- id tinyint unsigned NOT NULL auto_increment,
- original_name varchar(255) default NULL,
- english_name varchar(255) default NULL,
- isocode varchar(10) default NULL,
- dokeos_folder varchar(250) default NULL,
- available tinyint NOT NULL default 1,
- parent_id tinyint unsigned,
- PRIMARY KEY (id)
-);
-ALTER TABLE language ADD INDEX idx_language_dokeos_folder(dokeos_folder);
-
---
--- Dumping data for table language
---
-
-
-/*!40000 ALTER TABLE language DISABLE KEYS */;
-LOCK TABLES language WRITE;
-INSERT INTO language (original_name, english_name, isocode, dokeos_folder, available) VALUES
-('العربية','arabic','ar','arabic',0),
-('Asturianu','asturian','ast','asturian',0),
-('Български','bulgarian','bg','bulgarian',1),
-('Bosanski','bosnian','bs','bosnian',1),
-('Català','catalan','ca','catalan',0),
-('中文(简体)','simpl_chinese','zh','simpl_chinese',0),
-('繁體中文','trad_chinese','zh-TW','trad_chinese',0),
-('Česky','czech','cs','czech',0),
-('Dansk','danish','da','danish',0),
-('دری','dari','prs','dari',0),
-('Deutsch','german','de','german',1),
-('Ελληνικά','greek','el','greek',0),
-('English','english','en','english',1),
-('Español','spanish','es','spanish',1),
-('Esperanto','esperanto','eo','esperanto',0),
-('Euskara','euskera','eu','euskera',0),
-('فارسی','persian','fa','persian',0),
-('Français','french','fr','french',1),
-('Furlan','friulian','fur','friulian',0),
-('Galego','galician','gl','galician',0),
-('ქართული','georgian','ka','georgian',0),
-('Hrvatski','croatian','hr','croatian',0),
-('עברית','hebrew','he','hebrew',0),
-('Bahasa Indonesia','indonesian','id','indonesian',1),
-('Italiano','italian','it','italian',1),
-('한국어','korean','ko','korean',0),
-('Latviešu','latvian','lv','latvian',0),
-('Lietuvių','lithuanian','lt','lithuanian',0),
-('Македонски','macedonian','mk','macedonian',0),
-('Magyar','hungarian','hu','hungarian',1),
-('Bahasa Melayu','malay','ms','malay',0),
-('Nederlands','dutch','nl','dutch',1),
-('日本語','japanese','ja','japanese',0),
-('Norsk','norwegian','no','norwegian',0),
-('Occitan','occitan','oc','occitan',0),
-('پښتو','pashto','ps','pashto',0),
-('Polski','polish','pl','polish',0),
-('Português europeu','portuguese','pt','portuguese',1),
-('Português do Brasil','brazilian','pt-BR','brazilian',1),
-('Română','romanian','ro','romanian',0),
-('Runasimi','quechua_cusco','qu','quechua_cusco',0),
-('Русский','russian','ru','russian',0),
-('Slovenčina','slovak','sk','slovak',0),
-('Slovenščina','slovenian','sl','slovenian',1),
-('Srpski','serbian','sr','serbian',0),
-('Suomi','finnish','fi','finnish',0),
-('Svenska','swedish','sv','swedish',0),
-('ไทย','thai','th','thai',0),
-('Türkçe','turkce','tr','turkce',0),
-('Українська','ukrainian','uk','ukrainian',0),
-('Tiếng Việt','vietnamese','vi','vietnamese',0),
-('Kiswahili','swahili','sw','swahili',0),
-('Yorùbá','yoruba','yo','yoruba',0);
-
--- The chosen during the installation platform language should be enabled.
-UPDATE language SET available=1 WHERE dokeos_folder = '{PLATFORMLANGUAGE}';
-
-UNLOCK TABLES;
-/*!40000 ALTER TABLE language ENABLE KEYS */;
-
---
--- Table structure for table php_session
---
-
-DROP TABLE IF EXISTS php_session;
-CREATE TABLE php_session (
- session_id varchar(32) NOT NULL default '',
- session_name varchar(10) NOT NULL default '',
- session_time int NOT NULL default '0',
- session_start int NOT NULL default '0',
- session_value mediumtext NOT NULL,
- PRIMARY KEY (session_id)
-);
-
---
--- Table structure for table session
---
-DROP TABLE IF EXISTS session;
-CREATE TABLE session (
- id smallint unsigned NOT NULL auto_increment,
- id_coach int unsigned NOT NULL default '0',
- name char(50) NOT NULL default '',
- nbr_courses smallint unsigned NOT NULL default '0',
- nbr_users mediumint unsigned NOT NULL default '0',
- nbr_classes mediumint unsigned NOT NULL default '0',
- date_start date NOT NULL default '0000-00-00',
- date_end date NOT NULL default '0000-00-00',
- nb_days_access_before_beginning TINYINT UNSIGNED NULL default '0',
- nb_days_access_after_end TINYINT UNSIGNED NULL default '0',
- session_admin_id INT UNSIGNED NOT NULL,
- visibility int NOT NULL default 1,
- session_category_id int NOT NULL,
- PRIMARY KEY (id),
- INDEX (session_admin_id),
- UNIQUE KEY name (name)
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for table session_rel_course
---
-DROP TABLE IF EXISTS session_rel_course;
-CREATE TABLE session_rel_course (
- id_session smallint unsigned NOT NULL default '0',
- course_code char(40) NOT NULL default '',
- nbr_users smallint unsigned NOT NULL default '0',
- PRIMARY KEY (id_session,course_code),
- KEY course_code (course_code)
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for table session_rel_course_rel_user
---
-DROP TABLE IF EXISTS session_rel_course_rel_user;
-CREATE TABLE session_rel_course_rel_user (
- id_session smallint unsigned NOT NULL default '0',
- course_code char(40) NOT NULL default '',
- id_user int unsigned NOT NULL default '0',
- visibility int NOT NULL default 1,
- status int NOT NULL default 0,
- PRIMARY KEY (id_session,course_code,id_user),
- KEY id_user (id_user),
- KEY course_code (course_code)
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for table session_rel_user
---
-DROP TABLE IF EXISTS session_rel_user;
-CREATE TABLE session_rel_user (
- id_session mediumint unsigned NOT NULL default '0',
- id_user mediumint unsigned NOT NULL default '0',
- relation_type int default 0,
- PRIMARY KEY (id_session, id_user, relation_type)
-);
-
-
-DROP TABLE IF EXISTS session_field;
-CREATE TABLE session_field (
- id int NOT NULL auto_increment,
- field_type int NOT NULL default 1,
- field_variable varchar(64) NOT NULL,
- field_display_text varchar(64),
- field_default_value text,
- field_order int,
- field_visible tinyint default 0,
- field_changeable tinyint default 0,
- field_filter tinyint default 0,
- tms DATETIME NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY(id)
-);
-
-DROP TABLE IF EXISTS session_field_values;
-CREATE TABLE session_field_values(
- id int NOT NULL auto_increment,
- session_id int NOT NULL,
- field_id int NOT NULL,
- field_value text,
- tms DATETIME NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY(id)
-);
-
---
--- Table structure for table settings_current
---
-
-DROP TABLE IF EXISTS settings_current;
-CREATE TABLE settings_current (
- id int unsigned NOT NULL auto_increment,
- variable varchar(255) default NULL,
- subkey varchar(255) default NULL,
- type varchar(255) default NULL,
- category varchar(255) default NULL,
- selected_value varchar(255) default NULL,
- title varchar(255) NOT NULL default '',
- comment varchar(255) default NULL,
- scope varchar(50) default NULL,
- subkeytext varchar(255) default NULL,
- access_url int unsigned not null default 1,
- access_url_changeable int unsigned not null default 0,
- PRIMARY KEY id (id),
- INDEX (access_url)
-);
-
-ALTER TABLE settings_current ADD UNIQUE unique_setting ( variable , subkey , category, access_url) ;
-
---
--- Dumping data for table settings_current
---
-
-/*!40000 ALTER TABLE settings_current DISABLE KEYS */;
-LOCK TABLES settings_current WRITE;
-INSERT INTO settings_current
-(variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable)
-VALUES
-('Institution',NULL,'textfield','Platform','{ORGANISATIONNAME}','InstitutionTitle','InstitutionComment','platform',NULL, 1),
-('InstitutionUrl',NULL,'textfield','Platform','{ORGANISATIONURL}','InstitutionUrlTitle','InstitutionUrlComment',NULL,NULL, 1),
-('siteName',NULL,'textfield','Platform','{CAMPUSNAME}','SiteNameTitle','SiteNameComment',NULL,NULL, 1),
-('emailAdministrator',NULL,'textfield','Platform','{ADMINEMAIL}','emailAdministratorTitle','emailAdministratorComment',NULL,NULL, 1),
-('administratorSurname',NULL,'textfield','Platform','{ADMINLASTNAME}','administratorSurnameTitle','administratorSurnameComment',NULL,NULL, 1),
-('administratorName',NULL,'textfield','Platform','{ADMINFIRSTNAME}','administratorNameTitle','administratorNameComment',NULL,NULL, 1),
-('show_administrator_data',NULL,'radio','Platform','true','ShowAdministratorDataTitle','ShowAdministratorDataComment',NULL,NULL, 1),
-('show_tutor_data',NULL,'radio','Platform','true','ShowTutorDataTitle','ShowTutorDataComment',NULL,NULL, 1),
-('show_teacher_data',NULL,'radio','Platform','true','ShowTeacherDataTitle','ShowTeacherDataComment',NULL,NULL, 1),
-('homepage_view',NULL,'radio','Course','activity','HomepageViewTitle','HomepageViewComment',NULL,NULL, 0),
-('show_toolshortcuts',NULL,'radio','Course','false','ShowToolShortcutsTitle','ShowToolShortcutsComment',NULL,NULL, 0),
-('allow_group_categories',NULL,'radio','Course','false','AllowGroupCategories','AllowGroupCategoriesComment',NULL,NULL, 0),
-('server_type',NULL,'radio','Platform','production','ServerStatusTitle','ServerStatusComment',NULL,NULL, 0),
-('platformLanguage',NULL,'link','Languages','{PLATFORMLANGUAGE}','PlatformLanguageTitle','PlatformLanguageComment',NULL,NULL, 0),
-('showonline','world','checkbox','Platform','true','ShowOnlineTitle','ShowOnlineComment',NULL,'ShowOnlineWorld', 0),
-('showonline','users','checkbox','Platform','true','ShowOnlineTitle','ShowOnlineComment',NULL,'ShowOnlineUsers', 0),
-('showonline','course','checkbox','Platform','true','ShowOnlineTitle','ShowOnlineComment',NULL,'ShowOnlineCourse', 0),
-('profile','name','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'name', 0),
-('profile','officialcode','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'officialcode', 0),
-('profile','email','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'Email', 0),
-('profile','picture','checkbox','User','true','ProfileChangesTitle','ProfileChangesComment',NULL,'UserPicture', 0),
-('profile','login','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'Login', 0),
-('profile','password','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'UserPassword', 0),
-('profile','language','checkbox','User','true','ProfileChangesTitle','ProfileChangesComment',NULL,'Language', 0),
-('default_document_quotum',NULL,'textfield','Course','50000000','DefaultDocumentQuotumTitle','DefaultDocumentQuotumComment',NULL,NULL, 0),
-('registration','officialcode','checkbox','User','false','RegistrationRequiredFormsTitle','RegistrationRequiredFormsComment',NULL,'OfficialCode', 0),
-('registration','email','checkbox','User','true','RegistrationRequiredFormsTitle','RegistrationRequiredFormsComment',NULL,'Email', 0),
-('registration','language','checkbox','User','true','RegistrationRequiredFormsTitle','RegistrationRequiredFormsComment',NULL,'Language', 0),
-('default_group_quotum',NULL,'textfield','Course','5000000','DefaultGroupQuotumTitle','DefaultGroupQuotumComment',NULL,NULL, 0),
-('allow_registration',NULL,'radio','Platform','{ALLOWSELFREGISTRATION}','AllowRegistrationTitle','AllowRegistrationComment',NULL,NULL, 0),
-('allow_registration_as_teacher',NULL,'radio','Platform','{ALLOWTEACHERSELFREGISTRATION}','AllowRegistrationAsTeacherTitle','AllowRegistrationAsTeacherComment',NULL,NULL, 0),
-('allow_lostpassword',NULL,'radio','Platform','true','AllowLostPasswordTitle','AllowLostPasswordComment',NULL,NULL, 0),
-('allow_user_headings',NULL,'radio','Course','false','AllowUserHeadings','AllowUserHeadingsComment',NULL,NULL, 0),
-('course_create_active_tools','course_description','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'CourseDescription', 0),
-('course_create_active_tools','agenda','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Agenda', 0),
-('course_create_active_tools','documents','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Documents', 0),
-('course_create_active_tools','learning_path','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'LearningPath', 0),
-('course_create_active_tools','links','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Links', 0),
-('course_create_active_tools','announcements','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Announcements', 0),
-('course_create_active_tools','forums','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Forums', 0),
-('course_create_active_tools','dropbox','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Dropbox', 0),
-('course_create_active_tools','quiz','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Quiz', 0),
-('course_create_active_tools','users','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Users', 0),
-('course_create_active_tools','groups','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Groups', 0),
-('course_create_active_tools','chat','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Chat', 0),
-('course_create_active_tools','online_conference','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'OnlineConference', 0),
-('course_create_active_tools','student_publications','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'StudentPublications', 0),
-('allow_personal_agenda',NULL,'radio','User','false','AllowPersonalAgendaTitle','AllowPersonalAgendaComment',NULL,NULL, 0),
-('display_coursecode_in_courselist',NULL,'radio','Platform','false','DisplayCourseCodeInCourselistTitle','DisplayCourseCodeInCourselistComment',NULL,NULL, 0),
-('display_teacher_in_courselist',NULL,'radio','Platform','true','DisplayTeacherInCourselistTitle','DisplayTeacherInCourselistComment',NULL,NULL, 0),
-('use_document_title',NULL,'radio','Tools','true','UseDocumentTitleTitle','UseDocumentTitleComment',NULL,NULL, 0),
-('permanently_remove_deleted_files',NULL,'radio','Tools','false','PermanentlyRemoveFilesTitle','PermanentlyRemoveFilesComment',NULL,NULL, 0),
-('dropbox_allow_overwrite',NULL,'radio','Tools','true','DropboxAllowOverwriteTitle','DropboxAllowOverwriteComment',NULL,NULL, 0),
-('dropbox_max_filesize',NULL,'textfield','Tools','100000000','DropboxMaxFilesizeTitle','DropboxMaxFilesizeComment',NULL,NULL, 0),
-('dropbox_allow_just_upload',NULL,'radio','Tools','true','DropboxAllowJustUploadTitle','DropboxAllowJustUploadComment',NULL,NULL, 0),
-('dropbox_allow_student_to_student',NULL,'radio','Tools','true','DropboxAllowStudentToStudentTitle','DropboxAllowStudentToStudentComment',NULL,NULL, 0),
-('dropbox_allow_group',NULL,'radio','Tools','true','DropboxAllowGroupTitle','DropboxAllowGroupComment',NULL,NULL, 0),
-('dropbox_allow_mailing',NULL,'radio','Tools','false','DropboxAllowMailingTitle','DropboxAllowMailingComment',NULL,NULL, 0),
-('administratorTelephone',NULL,'textfield','Platform','(000) 001 02 03','administratorTelephoneTitle','administratorTelephoneComment',NULL,NULL, 1),
-('extended_profile',NULL,'radio','User','true','ExtendedProfileTitle','ExtendedProfileComment',NULL,NULL, 0),
-('student_view_enabled',NULL,'radio','Platform','true','StudentViewEnabledTitle','StudentViewEnabledComment',NULL,NULL, 0),
-('show_navigation_menu',NULL,'radio','Course','false','ShowNavigationMenuTitle','ShowNavigationMenuComment',NULL,NULL, 0),
-('enable_tool_introduction',NULL,'radio','course','false','EnableToolIntroductionTitle','EnableToolIntroductionComment',NULL,NULL, 0),
-('page_after_login', NULL, 'radio','Platform','user_portal.php', 'PageAfterLoginTitle','PageAfterLoginComment', NULL, NULL, 0),
-('time_limit_whosonline', NULL, 'textfield','Platform','30', 'TimeLimitWhosonlineTitle','TimeLimitWhosonlineComment', NULL, NULL, 0),
-('breadcrumbs_course_homepage', NULL, 'radio','Course','course_title', 'BreadCrumbsCourseHomepageTitle','BreadCrumbsCourseHomepageComment', NULL, NULL, 0),
-('example_material_course_creation', NULL, 'radio','Platform','true', 'ExampleMaterialCourseCreationTitle','ExampleMaterialCourseCreationComment', NULL, NULL, 0),
-('account_valid_duration',NULL, 'textfield','Platform','3660', 'AccountValidDurationTitle','AccountValidDurationComment', NULL, NULL, 0),
-('use_session_mode', NULL, 'radio','Platform','true', 'UseSessionModeTitle','UseSessionModeComment', NULL, NULL, 0),
-('allow_email_editor', NULL, 'radio', 'Tools', 'false', 'AllowEmailEditorTitle', 'AllowEmailEditorComment', NULL, NULL, 0),
-('registered', NULL, 'textfield', NULL, 'false', NULL, NULL, NULL, NULL, 0),
-('donotlistcampus', NULL, 'textfield', NULL, 'false', NULL, NULL, NULL, NULL,0 ),
-('show_email_addresses', NULL,'radio','Platform','false','ShowEmailAddresses','ShowEmailAddressesComment',NULL,NULL, 1),
-('profile','phone','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'phone', 0),
-('service_visio', 'active', 'radio',NULL,'false', 'VisioEnable','', NULL, NULL, 0),
-('service_visio', 'visio_host', 'textfield',NULL,'', 'VisioHost','', NULL, NULL, 0),
-('service_visio', 'visio_port', 'textfield',NULL,'1935', 'VisioPort','', NULL, NULL, 0),
-('service_visio', 'visio_pass', 'textfield',NULL,'', 'VisioPassword','', NULL, NULL, 0),
-('service_ppt2lp', 'active', 'radio',NULL,'false', 'ppt2lp_actived','', NULL, NULL, 0),
-('service_ppt2lp', 'host', 'textfield', NULL, NULL, 'Host', NULL, NULL, NULL, 0),
-('service_ppt2lp', 'port', 'textfield', NULL, 2002, 'Port', NULL, NULL, NULL, 0),
-('service_ppt2lp', 'user', 'textfield', NULL, NULL, 'UserOnHost', NULL, NULL, NULL, 0),
-('service_ppt2lp', 'ftp_password', 'textfield', NULL, NULL, 'FtpPassword', NULL, NULL, NULL, 0),
-('service_ppt2lp', 'path_to_lzx', 'textfield', NULL, NULL, '', NULL, NULL, NULL, 0),
-('service_ppt2lp', 'size', 'radio', NULL, '720x540', '', NULL, NULL, NULL, 0),
-('wcag_anysurfer_public_pages', NULL, 'radio','Editor','false','PublicPagesComplyToWAITitle','PublicPagesComplyToWAIComment', NULL, NULL, 0),
-('stylesheets', NULL, 'textfield','stylesheets','chamilo','',NULL, NULL, NULL, 1),
-('upload_extensions_list_type', NULL, 'radio', 'Security', 'blacklist', 'UploadExtensionsListType', 'UploadExtensionsListTypeComment', NULL, NULL, 0),
-('upload_extensions_blacklist', NULL, 'textfield', 'Security', '', 'UploadExtensionsBlacklist', 'UploadExtensionsBlacklistComment', NULL, NULL, 0),
-('upload_extensions_whitelist', NULL, 'textfield', 'Security', 'htm;html;jpg;jpeg;gif;png;swf;avi;mpg;mpeg;mov;flv;doc;docx;xls;xlsx;ppt;pptx;odt;odp;ods;pdf', 'UploadExtensionsWhitelist', 'UploadExtensionsWhitelistComment', NULL, NULL, 0),
-('upload_extensions_skip', NULL, 'radio', 'Security', 'true', 'UploadExtensionsSkip', 'UploadExtensionsSkipComment', NULL, NULL, 0),
-('upload_extensions_replace_by', NULL, 'textfield', 'Security', 'dangerous', 'UploadExtensionsReplaceBy', 'UploadExtensionsReplaceByComment', NULL, NULL, 0),
-('show_number_of_courses', NULL, 'radio','Platform','false', 'ShowNumberOfCourses','ShowNumberOfCoursesComment', NULL, NULL, 0),
-('show_empty_course_categories', NULL, 'radio','Platform','true', 'ShowEmptyCourseCategories','ShowEmptyCourseCategoriesComment', NULL, NULL, 0),
-('show_back_link_on_top_of_tree', NULL, 'radio','Platform','false', 'ShowBackLinkOnTopOfCourseTree','ShowBackLinkOnTopOfCourseTreeComment', NULL, NULL, 0),
-('show_different_course_language', NULL, 'radio','Platform','true', 'ShowDifferentCourseLanguage','ShowDifferentCourseLanguageComment', NULL, NULL, 1),
-('split_users_upload_directory', NULL, 'radio','Tuning','false', 'SplitUsersUploadDirectory','SplitUsersUploadDirectoryComment', NULL, NULL, 0),
-('hide_dltt_markup', NULL, 'radio','Languages','true', 'HideDLTTMarkup','HideDLTTMarkupComment', NULL, NULL, 0),
-('display_categories_on_homepage',NULL,'radio','Platform','false','DisplayCategoriesOnHomepageTitle','DisplayCategoriesOnHomepageComment',NULL,NULL, 1),
-('permissions_for_new_directories', NULL, 'textfield', 'Security', '0777', 'PermissionsForNewDirs', 'PermissionsForNewDirsComment', NULL, NULL, 0),
-('permissions_for_new_files', NULL, 'textfield', 'Security', '0666', 'PermissionsForNewFiles', 'PermissionsForNewFilesComment', NULL, NULL, 0),
-('show_tabs', 'campus_homepage', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsCampusHomepage', 1),
-('show_tabs', 'my_courses', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsMyCourses', 1),
-('show_tabs', 'reporting', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsReporting', 1),
-('show_tabs', 'platform_administration', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsPlatformAdministration', 1),
-('show_tabs', 'my_agenda', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsMyAgenda', 1),
-('show_tabs', 'my_profile', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsMyProfile', 1),
-('default_forum_view', NULL, 'radio', 'Course', 'flat', 'DefaultForumViewTitle','DefaultForumViewComment',NULL,NULL, 0),
-('platform_charset',NULL,'textfield','Languages','UTF-8','PlatformCharsetTitle','PlatformCharsetComment','platform',NULL, 0),
-('noreply_email_address', '', 'textfield', 'Platform', '', 'NoReplyEmailAddress', 'NoReplyEmailAddressComment', NULL, NULL, 0),
-('survey_email_sender_noreply', '', 'radio', 'Course', 'coach', 'SurveyEmailSenderNoReply', 'SurveyEmailSenderNoReplyComment', NULL, NULL, 0),
-('openid_authentication',NULL,'radio','Security','false','OpenIdAuthentication','OpenIdAuthenticationComment',NULL,NULL, 0),
-('profile','openid','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'OpenIDURL', 0),
-('gradebook_enable',NULL,'radio','Gradebook','false','GradebookActivation','GradebookActivationComment',NULL,NULL, 0),
-('show_tabs','my_gradebook','checkbox','Platform','true','ShowTabsTitle','ShowTabsComment',NULL,'TabsMyGradebook', 1),
-('gradebook_score_display_coloring','my_display_coloring','checkbox','Gradebook','false','GradebookScoreDisplayColoring','GradebookScoreDisplayColoringComment',NULL,'TabsGradebookEnableColoring', 0),
-('gradebook_score_display_custom','my_display_custom','checkbox','Gradebook','false','GradebookScoreDisplayCustom','GradebookScoreDisplayCustomComment',NULL,'TabsGradebookEnableCustom', 0),
-('gradebook_score_display_colorsplit',NULL,'textfield','Gradebook','50','GradebookScoreDisplayColorSplit','GradebookScoreDisplayColorSplitComment',NULL,NULL, 0),
-('gradebook_score_display_upperlimit','my_display_upperlimit','checkbox','Gradebook','false','GradebookScoreDisplayUpperLimit','GradebookScoreDisplayUpperLimitComment',NULL,'TabsGradebookEnableUpperLimit', 0),
-('gradebook_number_decimals', NULL, 'select', 'Gradebook', '0', 'GradebookNumberDecimals', 'GradebookNumberDecimalsComment', NULL, NULL, 0),
-('user_selected_theme',NULL,'radio','Platform','false','UserThemeSelection','UserThemeSelectionComment',NULL,NULL, 0),
-('profile','theme','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'UserTheme', 0),
-('allow_course_theme',NULL,'radio','Course','true','AllowCourseThemeTitle','AllowCourseThemeComment',NULL,NULL, 0),
-('display_mini_month_calendar',NULL,'radio','Tools', 'true', 'DisplayMiniMonthCalendarTitle', 'DisplayMiniMonthCalendarComment', NULL, NULL, 0),
-('display_upcoming_events',NULL,'radio','Tools','true','DisplayUpcomingEventsTitle','DisplayUpcomingEventsComment',NULL,NULL, 0),
-('number_of_upcoming_events',NULL,'textfield','Tools','1','NumberOfUpcomingEventsTitle','NumberOfUpcomingEventsComment',NULL,NULL, 0),
-('show_closed_courses',NULL,'radio','Platform','false','ShowClosedCoursesTitle','ShowClosedCoursesComment',NULL,NULL, 0),
-('ldap_main_server_address', NULL, 'textfield', 'LDAP', 'localhost', 'LDAPMainServerAddressTitle', 'LDAPMainServerAddressComment', NULL, NULL, 0),
-('ldap_main_server_port', NULL, 'textfield', 'LDAP', '389', 'LDAPMainServerPortTitle', 'LDAPMainServerPortComment', NULL, NULL, 0),
-('ldap_domain', NULL, 'textfield', 'LDAP', 'dc=nodomain', 'LDAPDomainTitle', 'LDAPDomainComment', NULL, NULL, 0),
-('ldap_replicate_server_address', NULL, 'textfield', 'LDAP', 'localhost', 'LDAPReplicateServerAddressTitle', 'LDAPReplicateServerAddressComment', NULL, NULL, 0),
-('ldap_replicate_server_port', NULL, 'textfield', 'LDAP', '389', 'LDAPReplicateServerPortTitle', 'LDAPReplicateServerPortComment', NULL, NULL, 0),
-('ldap_search_term', NULL, 'textfield', 'LDAP', '', 'LDAPSearchTermTitle', 'LDAPSearchTermComment', NULL, NULL, 0),
-('ldap_version', NULL, 'radio', 'LDAP', '3', 'LDAPVersionTitle', 'LDAPVersionComment', NULL, '', 0),
-('ldap_filled_tutor_field', NULL, 'textfield', 'LDAP', 'employeenumber', 'LDAPFilledTutorFieldTitle', 'LDAPFilledTutorFieldComment', NULL, '', 0),
-('ldap_authentication_login', NULL, 'textfield', 'LDAP', '', 'LDAPAuthenticationLoginTitle', 'LDAPAuthenticationLoginComment', NULL, '', 0),
-('ldap_authentication_password', NULL, 'textfield', 'LDAP', '', 'LDAPAuthenticationPasswordTitle', 'LDAPAuthenticationPasswordComment', NULL, '', 0),
-('service_visio', 'visio_use_rtmpt', 'radio',null,'false', 'VisioUseRtmptTitle','VisioUseRtmptComment', NULL, NULL, 0),
-('extendedprofile_registration', 'mycomptetences', 'checkbox','User','false', 'ExtendedProfileRegistrationTitle','ExtendedProfileRegistrationComment', NULL, 'MyCompetences', 0),
-('extendedprofile_registration', 'mydiplomas', 'checkbox','User','false', 'ExtendedProfileRegistrationTitle','ExtendedProfileRegistrationComment', NULL, 'MyDiplomas', 0),
-('extendedprofile_registration', 'myteach', 'checkbox','User','false', 'ExtendedProfileRegistrationTitle','ExtendedProfileRegistrationComment', NULL, 'MyTeach', 0),
-('extendedprofile_registration', 'mypersonalopenarea', 'checkbox','User','false', 'ExtendedProfileRegistrationTitle','ExtendedProfileRegistrationComment', NULL, 'MyPersonalOpenArea', 0),
-('extendedprofile_registrationrequired', 'mycomptetences', 'checkbox','User','false', 'ExtendedProfileRegistrationRequiredTitle','ExtendedProfileRegistrationRequiredComment', NULL, 'MyCompetences', 0),
-('extendedprofile_registrationrequired', 'mydiplomas', 'checkbox','User','false', 'ExtendedProfileRegistrationRequiredTitle','ExtendedProfileRegistrationRequiredComment', NULL, 'MyDiplomas', 0),
-('extendedprofile_registrationrequired', 'myteach', 'checkbox','User','false', 'ExtendedProfileRegistrationRequiredTitle','ExtendedProfileRegistrationRequiredComment', NULL, 'MyTeach', 0),
-('extendedprofile_registrationrequired', 'mypersonalopenarea', 'checkbox','User','false', 'ExtendedProfileRegistrationRequiredTitle','ExtendedProfileRegistrationRequiredComment', NULL, 'MyPersonalOpenArea', 0),
-('ldap_filled_tutor_field_value', NULL, 'textfield', 'LDAP', '', 'LDAPFilledTutorFieldValueTitle', 'LDAPFilledTutorFieldValueComment', NULL, '', 0),
-('registration','phone','textfield','User','false','RegistrationRequiredFormsTitle','RegistrationRequiredFormsComment',NULL,'Phone', 0),
-('add_users_by_coach',NULL,'radio','Security','false','AddUsersByCoachTitle','AddUsersByCoachComment',NULL,NULL, 0),
-('extend_rights_for_coach',NULL,'radio','Security','false','ExtendRightsForCoachTitle','ExtendRightsForCoachComment',NULL,NULL, 0),
-('extend_rights_for_coach_on_survey',NULL,'radio','Security','true','ExtendRightsForCoachOnSurveyTitle','ExtendRightsForCoachOnSurveyComment',NULL,NULL, 0),
-('course_create_active_tools','wiki','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Wiki', 0),
-('show_session_coach', NULL, 'radio','Platform','false', 'ShowSessionCoachTitle','ShowSessionCoachComment', NULL, NULL, 0),
-('course_create_active_tools','gradebook','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Gradebook', 0),
-('allow_users_to_create_courses',NULL,'radio','Platform','true','AllowUsersToCreateCoursesTitle','AllowUsersToCreateCoursesComment',NULL,NULL, 0),
-('course_create_active_tools','survey','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Survey', 0),
-('course_create_active_tools','glossary','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Glossary', 0),
-('course_create_active_tools','notebook','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Notebook', 0),
-('course_create_active_tools','attendances','checkbox','Tools','false','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Attendances', 0),
-('course_create_active_tools','course_progress','checkbox','Tools','false','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'CourseProgress', 0),
-('advanced_filemanager',NULL,'radio','Editor','false','AdvancedFileManagerTitle','AdvancedFileManagerComment',NULL,NULL, 0),
-('allow_reservation', NULL, 'radio', 'Tools', 'false', 'AllowReservationTitle', 'AllowReservationComment', NULL, NULL, 0),
-('profile','apikeys','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'ApiKeys', 0),
-('allow_message_tool', NULL, 'radio', 'Tools', 'true', 'AllowMessageToolTitle', 'AllowMessageToolComment', NULL, NULL,0),
-('allow_social_tool', NULL, 'radio', 'Tools', 'true', 'AllowSocialToolTitle', 'AllowSocialToolComment', NULL, NULL, 0),
-('allow_students_to_browse_courses',NULL,'radio','Platform','true','AllowStudentsToBrowseCoursesTitle','AllowStudentsToBrowseCoursesComment',NULL,NULL, 1),
-('show_session_data', NULL, 'radio', 'Course', 'false', 'ShowSessionDataTitle', 'ShowSessionDataComment', NULL, NULL, 1),
-('allow_use_sub_language', NULL, 'radio', 'Languages', 'false', 'AllowUseSubLanguageTitle', 'AllowUseSubLanguageComment', NULL, NULL,0),
-('show_glossary_in_documents', NULL, 'radio', 'Course', 'none', 'ShowGlossaryInDocumentsTitle', 'ShowGlossaryInDocumentsComment', NULL, NULL,1),
-('allow_terms_conditions', NULL, 'radio', 'Platform', 'false', 'AllowTermsAndConditionsTitle', 'AllowTermsAndConditionsComment', NULL, NULL,0),
-('course_create_active_tools','enable_search','checkbox','Tools','false','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Search',0),
-('search_enabled',NULL,'radio','Tools','false','EnableSearchTitle','EnableSearchComment',NULL,NULL,1),
-('search_prefilter_prefix',NULL, NULL,'Search','','SearchPrefilterPrefix','SearchPrefilterPrefixComment',NULL,NULL,0),
-('search_show_unlinked_results',NULL,'radio','Search','true','SearchShowUnlinkedResultsTitle','SearchShowUnlinkedResultsComment',NULL,NULL,1),
-('show_courses_descriptions_in_catalog', NULL, 'radio', 'Course', 'true', 'ShowCoursesDescriptionsInCatalogTitle', 'ShowCoursesDescriptionsInCatalogComment', NULL, NULL, 1),
-('allow_coach_to_edit_course_session',NULL,'radio','Course','true','AllowCoachsToEditInsideTrainingSessions','AllowCoachsToEditInsideTrainingSessionsComment',NULL,NULL, 0),
-('show_glossary_in_extra_tools', NULL, 'radio', 'Course', 'false', 'ShowGlossaryInExtraToolsTitle', 'ShowGlossaryInExtraToolsComment', NULL, NULL,1),
-('send_email_to_admin_when_create_course',NULL,'radio','Platform','false','SendEmailToAdminTitle','SendEmailToAdminComment',NULL,NULL, 1),
-('go_to_course_after_login',NULL,'radio','Course','false','GoToCourseAfterLoginTitle','GoToCourseAfterLoginComment',NULL,NULL, 0),
-('math_mimetex',NULL,'radio','Editor','false','MathMimetexTitle','MathMimetexComment',NULL,NULL, 0),
-('math_asciimathML',NULL,'radio','Editor','false','MathASCIImathMLTitle','MathASCIImathMLComment',NULL,NULL, 0),
-('youtube_for_students',NULL,'radio','Editor','true','YoutubeForStudentsTitle','YoutubeForStudentsComment',NULL,NULL, 0),
-('block_copy_paste_for_students',NULL,'radio','Editor','false','BlockCopyPasteForStudentsTitle','BlockCopyPasteForStudentsComment',NULL,NULL, 0),
-('more_buttons_maximized_mode',NULL,'radio','Editor','false','MoreButtonsForMaximizedModeTitle','MoreButtonsForMaximizedModeComment',NULL,NULL, 0),
-('students_download_folders',NULL,'radio','Tools','true','AllowStudentsDownloadFoldersTitle','AllowStudentsDownloadFoldersComment',NULL,NULL, 0),
-('show_tabs', 'social', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsSocial', 0),
-('allow_students_to_create_groups_in_social',NULL,'radio','Tools','false','AllowStudentsToCreateGroupsInSocialTitle','AllowStudentsToCreateGroupsInSocialComment',NULL,NULL, 0),
-('allow_send_message_to_all_platform_users',NULL,'radio','Tools','false','AllowSendMessageToAllPlatformUsersTitle','AllowSendMessageToAllPlatformUsersComment',NULL,NULL, 0),
-('message_max_upload_filesize',NULL,'textfield','Tools','20971520','MessageMaxUploadFilesizeTitle','MessageMaxUploadFilesizeComment',NULL,NULL, 0),
-('show_tabs', 'dashboard', 'checkbox', 'Platform', 'true', 'ShowTabsTitle', 'ShowTabsComment', NULL, 'TabsDashboard', 1),
-('use_users_timezone', 'timezones', 'radio', 'Timezones', 'true', 'UseUsersTimezoneTitle','UseUsersTimezoneComment',NULL,'Timezones', 1),
-('timezone_value', 'timezones', 'select', 'Timezones', '', 'TimezoneValueTitle','TimezoneValueComment',NULL,'Timezones', 1),
-('allow_user_course_subscription_by_course_admin', NULL, 'radio', 'Security', 'true', 'AllowUserCourseSubscriptionByCourseAdminTitle', 'AllowUserCourseSubscriptionByCourseAdminComment', NULL, NULL, 1),
-('show_link_bug_notification', NULL, 'radio', 'Platform', 'true', 'ShowLinkBugNotificationTitle', 'ShowLinkBugNotificationComment', NULL, NULL, 0),
-('dokeos_database_version', NULL, 'textfield', NULL,'1.8.7.11571','DokeosDatabaseVersion','',NULL,NULL,0);
-
-
-UNLOCK TABLES;
-/*!40000 ALTER TABLE settings_current ENABLE KEYS */;
-
---
--- Table structure for table settings_options
---
-
-DROP TABLE IF EXISTS settings_options;
-CREATE TABLE settings_options (
- id int unsigned NOT NULL auto_increment,
- variable varchar(255) default NULL,
- value varchar(255) default NULL,
- display_text varchar(255) NOT NULL default '',
- PRIMARY KEY (id),
- UNIQUE KEY id (id)
-);
-
-ALTER TABLE settings_options ADD UNIQUE unique_setting_option (variable , value) ;
-
---
--- Dumping data for table settings_options
---
-
-
-/*!40000 ALTER TABLE settings_options DISABLE KEYS */;
-LOCK TABLES settings_options WRITE;
-INSERT INTO settings_options
-(variable, value, display_text)
-VALUES
-('show_administrator_data','true','Yes'),
-('show_administrator_data','false','No'),
-('show_tutor_data','true','Yes'),
-('show_tutor_data','false','No'),
-('show_teacher_data','true','Yes'),
-('show_teacher_data','false','No'),
-('homepage_view','activity','HomepageViewActivity'),
-('homepage_view','2column','HomepageView2column'),
-('homepage_view','3column','HomepageView3column'),
-('homepage_view','vertical_activity','HomepageViewVerticalActivity'),
-('show_toolshortcuts','true','Yes'),
-('show_toolshortcuts','false','No'),
-('allow_group_categories','true','Yes'),
-('allow_group_categories','false','No'),
-('server_type','production','ProductionServer'),
-('server_type','test','TestServer'),
-('allow_name_change','true','Yes'),
-('allow_name_change','false','No'),
-('allow_officialcode_change','true','Yes'),
-('allow_officialcode_change','false','No'),
-('allow_registration','true','Yes'),
-('allow_registration','false','No'),
-('allow_registration','approval','AfterApproval'),
-('allow_registration_as_teacher','true','Yes'),
-('allow_registration_as_teacher','false','No'),
-('allow_lostpassword','true','Yes'),
-('allow_lostpassword','false','No'),
-('allow_user_headings','true','Yes'),
-('allow_user_headings','false','No'),
-('allow_personal_agenda','true','Yes'),
-('allow_personal_agenda','false','No'),
-('display_coursecode_in_courselist','true','Yes'),
-('display_coursecode_in_courselist','false','No'),
-('display_teacher_in_courselist','true','Yes'),
-('display_teacher_in_courselist','false','No'),
-('use_document_title','true','Yes'),
-('use_document_title','false','No'),
-('permanently_remove_deleted_files','true','YesWillDeletePermanently'),
-('permanently_remove_deleted_files','false','NoWillDeletePermanently'),
-('dropbox_allow_overwrite','true','Yes'),
-('dropbox_allow_overwrite','false','No'),
-('dropbox_allow_just_upload','true','Yes'),
-('dropbox_allow_just_upload','false','No'),
-('dropbox_allow_student_to_student','true','Yes'),
-('dropbox_allow_student_to_student','false','No'),
-('dropbox_allow_group','true','Yes'),
-('dropbox_allow_group','false','No'),
-('dropbox_allow_mailing','true','Yes'),
-('dropbox_allow_mailing','false','No'),
-('extended_profile','true','Yes'),
-('extended_profile','false','No'),
-('student_view_enabled','true','Yes'),
-('student_view_enabled','false','No'),
-('show_navigation_menu','false','No'),
-('show_navigation_menu','icons','IconsOnly'),
-('show_navigation_menu','text','TextOnly'),
-('show_navigation_menu','iconstext','IconsText'),
-('enable_tool_introduction','true','Yes'),
-('enable_tool_introduction','false','No'),
-('page_after_login', 'index.php', 'CampusHomepage'),
-('page_after_login', 'user_portal.php', 'MyCourses'),
-('breadcrumbs_course_homepage', 'get_lang', 'CourseHomepage'),
-('breadcrumbs_course_homepage', 'course_code', 'CourseCode'),
-('breadcrumbs_course_homepage', 'course_title', 'CourseTitle'),
-('example_material_course_creation', 'true', 'Yes'),
-('example_material_course_creation', 'false', 'No'),
-('use_session_mode', 'true', 'Yes'),
-('use_session_mode', 'false', 'No'),
-('allow_email_editor', 'true' ,'Yes'),
-('allow_email_editor', 'false', 'No'),
-('show_email_addresses','true','Yes'),
-('show_email_addresses','false','No'),
-('wcag_anysurfer_public_pages', 'true', 'Yes'),
-('wcag_anysurfer_public_pages', 'false', 'No'),
-('upload_extensions_list_type', 'blacklist', 'Blacklist'),
-('upload_extensions_list_type', 'whitelist', 'Whitelist'),
-('upload_extensions_skip', 'true', 'Remove'),
-('upload_extensions_skip', 'false', 'Rename'),
-('show_number_of_courses', 'true', 'Yes'),
-('show_number_of_courses', 'false', 'No'),
-('show_empty_course_categories', 'true', 'Yes'),
-('show_empty_course_categories', 'false', 'No'),
-('show_back_link_on_top_of_tree', 'true', 'Yes'),
-('show_back_link_on_top_of_tree', 'false', 'No'),
-('show_different_course_language', 'true', 'Yes'),
-('show_different_course_language', 'false', 'No'),
-('split_users_upload_directory', 'true', 'Yes'),
-('split_users_upload_directory', 'false', 'No'),
-('hide_dltt_markup', 'false', 'No'),
-('hide_dltt_markup', 'true', 'Yes'),
-('display_categories_on_homepage','true','Yes'),
-('display_categories_on_homepage','false','No'),
-('default_forum_view', 'flat', 'Flat'),
-('default_forum_view', 'threaded', 'Threaded'),
-('default_forum_view', 'nested', 'Nested'),
-('survey_email_sender_noreply', 'coach', 'CourseCoachEmailSender'),
-('survey_email_sender_noreply', 'noreply', 'NoReplyEmailSender'),
-('openid_authentication','true','Yes'),
-('openid_authentication','false','No'),
-('gradebook_enable','true','Yes'),
-('gradebook_enable','false','No'),
-('user_selected_theme','true','Yes'),
-('user_selected_theme','false','No'),
-('allow_course_theme','true','Yes'),
-('allow_course_theme','false','No'),
-('display_mini_month_calendar', 'true', 'Yes'),
-('display_mini_month_calendar', 'false', 'No'),
-('display_upcoming_events', 'true', 'Yes'),
-('display_upcoming_events', 'false', 'No'),
-('show_closed_courses', 'true', 'Yes'),
-('show_closed_courses', 'false', 'No'),
-('ldap_version', '2', 'LDAPVersion2'),
-('ldap_version', '3', 'LDAPVersion3'),
-('visio_use_rtmpt','true','Yes'),
-('visio_use_rtmpt','false','No'),
-('add_users_by_coach', 'true', 'Yes'),
-('add_users_by_coach', 'false', 'No'),
-('extend_rights_for_coach', 'true', 'Yes'),
-('extend_rights_for_coach', 'false', 'No'),
-('extend_rights_for_coach_on_survey', 'true', 'Yes'),
-('extend_rights_for_coach_on_survey', 'false', 'No'),
-('show_session_coach', 'true', 'Yes'),
-('show_session_coach', 'false', 'No'),
-('allow_users_to_create_courses','true','Yes'),
-('allow_users_to_create_courses','false','No'),
-('breadcrumbs_course_homepage', 'session_name_and_course_title', 'SessionNameAndCourseTitle'),
-('advanced_filemanager','true','Yes'),
-('advanced_filemanager','false','No'),
-('allow_reservation', 'true', 'Yes'),
-('allow_reservation', 'false', 'No'),
-('allow_message_tool', 'true', 'Yes'),
-('allow_message_tool', 'false', 'No'),
-('allow_social_tool', 'true', 'Yes'),
-('allow_social_tool', 'false', 'No'),
-('allow_students_to_browse_courses','true','Yes'),
-('allow_students_to_browse_courses','false','No'),
-('show_email_of_teacher_or_tutor ', 'true', 'Yes'),
-('show_email_of_teacher_or_tutor ', 'false', 'No'),
-('show_session_data ', 'true', 'Yes'),
-('show_session_data ', 'false', 'No'),
-('allow_use_sub_language', 'true', 'Yes'),
-('allow_use_sub_language', 'false', 'No'),
-('show_glossary_in_documents', 'none', 'ShowGlossaryInDocumentsIsNone'),
-('show_glossary_in_documents', 'ismanual', 'ShowGlossaryInDocumentsIsManual'),
-('show_glossary_in_documents', 'isautomatic', 'ShowGlossaryInDocumentsIsAutomatic'),
-('allow_terms_conditions', 'true', 'Yes'),
-('allow_terms_conditions', 'false', 'No'),
-('search_enabled', 'true', 'Yes'),
-('search_enabled', 'false', 'No'),
-('search_show_unlinked_results', 'true', 'SearchShowUnlinkedResults'),
-('search_show_unlinked_results', 'false', 'SearchHideUnlinkedResults'),
-('show_courses_descriptions_in_catalog', 'true', 'Yes'),
-('show_courses_descriptions_in_catalog', 'false', 'No'),
-('allow_coach_to_edit_course_session','true','Yes'),
-('allow_coach_to_edit_course_session','false','No'),
-('show_glossary_in_extra_tools', 'true', 'Yes'),
-('show_glossary_in_extra_tools', 'false', 'No'),
-('send_email_to_admin_when_create_course','true','Yes'),
-('send_email_to_admin_when_create_course','false','No'),
-('go_to_course_after_login','true','Yes'),
-('go_to_course_after_login','false','No'),
-('math_mimetex','true','Yes'),
-('math_mimetex','false','No'),
-('math_asciimathML','true','Yes'),
-('math_asciimathML','false','No'),
-('youtube_for_students','true','Yes'),
-('youtube_for_students','false','No'),
-('block_copy_paste_for_students','true','Yes'),
-('block_copy_paste_for_students','false','No'),
-('more_buttons_maximized_mode','true','Yes'),
-('more_buttons_maximized_mode','false','No'),
-('students_download_folders','true','Yes'),
-('students_download_folders','false','No'),
-('allow_students_to_create_groups_in_social','true','Yes'),
-('allow_students_to_create_groups_in_social','false','No'),
-('allow_send_message_to_all_platform_users','true','Yes'),
-('allow_send_message_to_all_platform_users','false','No'),
-('use_users_timezone', 'true', 'Yes'),
-('use_users_timezone', 'false', 'No'),
-('allow_user_course_subscription_by_course_admin', 'true', 'Yes'),
-('allow_user_course_subscription_by_course_admin', 'false', 'No'),
-('show_link_bug_notification', 'true', 'Yes'),
-('show_link_bug_notification', 'false', 'No');
-
-UNLOCK TABLES;
-
-/*!40000 ALTER TABLE settings_options ENABLE KEYS */;
-
---
--- Table structure for table sys_announcement
---
-
-DROP TABLE IF EXISTS sys_announcement;
-CREATE TABLE sys_announcement (
- id int unsigned NOT NULL auto_increment,
- date_start datetime NOT NULL default '0000-00-00 00:00:00',
- date_end datetime NOT NULL default '0000-00-00 00:00:00',
- visible_teacher tinyint NOT NULL default 0,
- visible_student tinyint NOT NULL default 0,
- visible_guest tinyint NOT NULL default 0,
- title varchar(250) NOT NULL default '',
- content text NOT NULL,
- lang varchar(70) NULL default NULL,
- PRIMARY KEY (id)
-);
-
---
--- Dumping data for table sys_announcement
---
-
-
-/*!40000 ALTER TABLE sys_announcement DISABLE KEYS */;
-LOCK TABLES sys_announcement WRITE;
-UNLOCK TABLES;
-/*!40000 ALTER TABLE sys_announcement ENABLE KEYS */;
-
---
--- Table structure for shared_survey
---
-
-DROP TABLE IF EXISTS shared_survey;
-CREATE TABLE shared_survey (
- survey_id int unsigned NOT NULL auto_increment,
- code varchar(20) default NULL,
- title text default NULL,
- subtitle text default NULL,
- author varchar(250) default NULL,
- lang varchar(20) default NULL,
- template varchar(20) default NULL,
- intro text,
- surveythanks text,
- creation_date datetime NOT NULL default '0000-00-00 00:00:00',
- course_code varchar(40) NOT NULL default '',
- PRIMARY KEY (survey_id),
- UNIQUE KEY id (survey_id)
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for shared_survey_question
---
-
-DROP TABLE IF EXISTS shared_survey_question;
-CREATE TABLE shared_survey_question (
- question_id int NOT NULL auto_increment,
- survey_id int NOT NULL default '0',
- survey_question text NOT NULL,
- survey_question_comment text NOT NULL,
- type varchar(250) NOT NULL default '',
- display varchar(10) NOT NULL default '',
- sort int NOT NULL default '0',
- code varchar(40) NOT NULL default '',
- max_value int NOT NULL,
- PRIMARY KEY (question_id)
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for shared_survey_question_option
---
-
-DROP TABLE IF EXISTS shared_survey_question_option;
-CREATE TABLE shared_survey_question_option (
- question_option_id int NOT NULL auto_increment,
- question_id int NOT NULL default '0',
- survey_id int NOT NULL default '0',
- option_text text NOT NULL,
- sort int NOT NULL default '0',
- PRIMARY KEY (question_option_id)
-);
-
-
--- --------------------------------------------------------
-
---
--- Table structure for templates (User's FCKEditor templates)
---
-
-DROP TABLE IF EXISTS templates;
-CREATE TABLE templates (
- id int NOT NULL auto_increment,
- title varchar(100) NOT NULL,
- description varchar(250) NOT NULL,
- course_code varchar(40) NOT NULL,
- user_id int NOT NULL,
- ref_doc int NOT NULL,
- image varchar(250) NOT NULL,
- PRIMARY KEY (id)
-);
-
-
-
---
-
--- --------------------------------------------------------
-
---
--- Table structure of openid_association (keep info on openid servers)
---
-
-DROP TABLE IF EXISTS openid_association;
-CREATE TABLE IF NOT EXISTS openid_association (
- id int NOT NULL auto_increment,
- idp_endpoint_uri text NOT NULL,
- session_type varchar(30) NOT NULL,
- assoc_handle text NOT NULL,
- assoc_type text NOT NULL,
- expires_in bigint NOT NULL,
- mac_key text NOT NULL,
- created bigint NOT NULL,
- PRIMARY KEY (id)
-);
---
--- --------------------------------------------------------
---
--- Tables for gradebook
---
-DROP TABLE IF EXISTS gradebook_category;
-CREATE TABLE gradebook_category (
- id int NOT NULL auto_increment,
- name text NOT NULL,
- description text,
- user_id int NOT NULL,
- course_code varchar(40) default NULL,
- parent_id int default NULL,
- weight smallint NOT NULL,
- visible tinyint NOT NULL,
- certif_min_score int DEFAULT NULL,
- session_id int DEFAULT NULL,
- document_id int unsigned DEFAULT NULL,
- PRIMARY KEY (id)
-);
-DROP TABLE IF EXISTS gradebook_evaluation;
-CREATE TABLE gradebook_evaluation (
- id int unsigned NOT NULL auto_increment,
- name text NOT NULL,
- description text,
- user_id int NOT NULL,
- course_code varchar(40) default NULL,
- category_id int default NULL,
- created_at DATETIME NOT NULL default '0000-00-00 00:00:00',
- weight smallint NOT NULL,
- max float unsigned NOT NULL,
- visible tinyint NOT NULL,
- type varchar(40) NOT NULL default 'evaluation',
- PRIMARY KEY (id)
-);
-DROP TABLE IF EXISTS gradebook_link;
-CREATE TABLE gradebook_link (
- id int NOT NULL auto_increment,
- type int NOT NULL,
- ref_id int NOT NULL,
- user_id int NOT NULL,
- course_code varchar(40) NOT NULL,
- category_id int NOT NULL,
- created_at DATETIME NOT NULL default '0000-00-00 00:00:00',
- weight smallint NOT NULL,
- visible tinyint NOT NULL,
- PRIMARY KEY (id)
-);
-DROP TABLE IF EXISTS gradebook_result;
-CREATE TABLE gradebook_result (
- id int NOT NULL auto_increment,
- user_id int NOT NULL,
- evaluation_id int NOT NULL,
- created_at DATETIME NOT NULL default '0000-00-00 00:00:00',
- score float unsigned default NULL,
- PRIMARY KEY (id)
-);
-DROP TABLE IF EXISTS gradebook_score_display;
-CREATE TABLE gradebook_score_display (
- id int NOT NULL auto_increment,
- score float unsigned NOT NULL,
- display varchar(40) NOT NULL,
- category_id int NOT NULL default 0,
- score_color_percent float unsigned NOT NULL default 0,
- PRIMARY KEY (id)
-);
-ALTER TABLE gradebook_score_display ADD INDEX(category_id);
-
-DROP TABLE IF EXISTS user_field;
-CREATE TABLE user_field (
- id INT NOT NULL auto_increment,
- field_type int NOT NULL DEFAULT 1,
- field_variable varchar(64) NOT NULL,
- field_display_text varchar(64),
- field_default_value text,
- field_order int,
- field_visible tinyint default 0,
- field_changeable tinyint default 0,
- field_filter tinyint default 0,
- tms DATETIME NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY(id)
-);
-DROP TABLE IF EXISTS user_field_options;
-CREATE TABLE user_field_options (
- id int NOT NULL auto_increment,
- field_id int NOT NULL,
- option_value text,
- option_display_text varchar(64),
- option_order int,
- tms DATETIME NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY (id)
-);
-DROP TABLE IF EXISTS user_field_values;
-CREATE TABLE user_field_values(
- id bigint NOT NULL auto_increment,
- user_id int unsigned NOT NULL,
- field_id int NOT NULL,
- field_value text,
- tms DATETIME NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY(id)
-);
-
-ALTER TABLE user_field_values ADD INDEX (user_id, field_id);
-
-DROP TABLE IF EXISTS gradebook_result_log;
-CREATE TABLE gradebook_result_log (
- id int NOT NULL auto_increment,
- id_result int NOT NULL,
- user_id int NOT NULL,
- evaluation_id int NOT NULL,
- created_at DATETIME NOT NULL default '0000-00-00 00:00:00',
- score float unsigned default NULL,
- PRIMARY KEY(id)
-);
-
-DROP TABLE IF EXISTS gradebook_linkeval_log;
-CREATE TABLE gradebook_linkeval_log (
- id int NOT NULL auto_increment,
- id_linkeval_log int NOT NULL,
- name text,
- description text,
- created_at DATETIME NOT NULL default '0000-00-00 00:00:00',
- weight smallint default NULL,
- visible tinyint default NULL,
- type varchar(20) NOT NULL,
- user_id_log int NOT NULL,
- PRIMARY KEY (id)
-);
-
---
--- --------------------------------------------------------
---
--- Tables for the access URL feature
---
-
-DROP TABLE IF EXISTS access_url;
-CREATE TABLE access_url(
- id int unsigned NOT NULL auto_increment,
- url varchar(255) NOT NULL,
- description text,
- active int unsigned not null default 0,
- created_by int not null,
- tms DATETIME NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY (id)
-);
-
-INSERT INTO access_url(url, description, active, created_by) VALUES ('http://localhost/',' ',1,1);
-
-DROP TABLE IF EXISTS access_url_rel_user;
-CREATE TABLE access_url_rel_user (
- access_url_id int unsigned NOT NULL,
- user_id int unsigned NOT NULL,
- PRIMARY KEY (access_url_id, user_id)
-);
-
-ALTER TABLE access_url_rel_user ADD INDEX idx_access_url_rel_user_user (user_id);
-ALTER TABLE access_url_rel_user ADD INDEX idx_access_url_rel_user_access_url(access_url_id);
-ALTER TABLE access_url_rel_user ADD INDEX idx_access_url_rel_user_access_url_user (user_id,access_url_id);
-
-DROP TABLE IF EXISTS access_url_rel_course;
-CREATE TABLE access_url_rel_course (
- access_url_id int unsigned NOT NULL,
- course_code char(40) NOT NULL,
- PRIMARY KEY (access_url_id, course_code)
-);
-
-
-DROP TABLE IF EXISTS access_url_rel_session;
-CREATE TABLE access_url_rel_session (
- access_url_id int unsigned NOT NULL,
- session_id int unsigned NOT NULL,
- PRIMARY KEY (access_url_id, session_id)
-);
-
---
--- Table structure for table sys_calendar
---
-CREATE TABLE IF NOT EXISTS sys_calendar (
- id int unsigned NOT NULL auto_increment,
- title varchar(255) NOT NULL,
- content text,
- start_date datetime NOT NULL default '0000-00-00 00:00:00',
- end_date datetime NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY (id)
-);
-
-CREATE TABLE IF NOT EXISTS system_template (
- id int UNSIGNED NOT NULL auto_increment,
- title varchar(250) NOT NULL,
- comment text NOT NULL,
- image varchar(250) NOT NULL,
- content text NOT NULL,
- PRIMARY KEY (id)
-);
-
--- Adding the platform templates
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleCourseTitle', 'TemplateTitleCourseTitleDescription', 'coursetitle.gif', '
-
- {CSS}
-
-
-
-
-
-
-
-
- TITULUS 1
- TITULUS 2
-
- |
-
-  |
-
-
-
-
-
-
-
-');
-
-/*
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleCheckList', 'TemplateTitleCheckListDescription', 'checklist.gif', '
-
- {CSS}
-
-
-
-
-
-
- Lorem ipsum dolor sit amet
-
- - consectetur adipisicing elit
- - sed do eiusmod tempor incididunt
- - ut labore et dolore magna aliqua
-
-
- Ut enim ad minim veniam
-
- - quis nostrud exercitation ullamco
- - laboris nisi ut aliquip ex ea commodo consequat
- - Excepteur sint occaecat cupidatat non proident
-
-
- Sed ut perspiciatis unde omnis
-
- - iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam
- - eaque ipsa quae ab illo inventore veritatis
- - et quasi architecto beatae vitae dicta sunt explicabo.
-
-
- |
-
- Ut enim ad minima
- Veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur.
-
- 
- |
-
-
-
-
-
-
-
-');
-*/
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleTeacher', 'TemplateTitleTeacherDescription', 'yourinstructor.gif', '
-
- {CSS}
-
-
-
-
-
-
- |
- |
- |
-
-
- |
-
-
-
- Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis pellentesque.
- |
-
-  |
-
-
-
-
-
-
-
-');
-
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleLeftList', 'TemplateTitleListLeftListDescription', 'leftlist.gif', '
-
- {CSS}
-
-
-
-
-
- |
- 
- |
-
-
- | Lorem
- ipsum dolor sit amet.
- |
-
-
-
- Vivamus
- a quam.
- |
-
-
- |
- Proin
- a est stibulum ante ipsum. |
-
-
-
-
-
-
-
-');
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleLeftRightList', 'TemplateTitleLeftRightListDescription', 'leftrightlist.gif', '
-
-
- {CSS}
-
-
-
-
-
- |
- 
- |
- |
-
-
- | Lorem
- ipsum dolor sit amet.
- |
-
- Convallis
- ut. Cras dui magna. |
-
-
-
- Vivamus
- a quam.
- |
-
- Etiam
- lacinia stibulum ante.
- |
-
-
- |
- Proin
- a est stibulum ante ipsum. |
-
- Consectetuer
- adipiscing elit.
- |
-
-
-
-
-
-
-
-
-');
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleRightList', 'TemplateTitleRightListDescription', 'rightlist.gif', '
-
- {CSS}
-
-
-
-
-
- 
- |
- |
-
-
- |
- Convallis
- ut. Cras dui magna. |
-
-
-
- Etiam
- lacinia.
- |
-
-
-
- Consectetuer
- adipiscing elit.
- |
-
-
-
-
-
-
-
-');
-
-/*
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleComparison', 'TemplateTitleComparisonDescription', 'compare.gif', '
-
- {CSS}
-
-
-
-
-
- |
- 
- |
- |
-
-
- |
- Lorem ipsum dolor sit amet.
- |
-
- Convallis
- ut. Cras dui magna. |
-
-
-');
-*/
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleDiagram', 'TemplateTitleDiagramDescription', 'diagram.gif', '
-
- {CSS}
-
-
-
-
-
-
-
-
- Etiam
- lacinia stibulum ante.
- Convallis
- ut. Cras dui magna. |
-
-  |
-
-
-
-  |
-
-
-
-
-
-
-
-
-
-');
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleDesc', 'TemplateTitleCheckListDescription', 'description.gif', '
-
- {CSS}
-
-
-
-
-
-
-  Lorem ipsum dolor sit amet
-
- Ut enim ad minim veniam
- Duis aute irure dolor in reprehenderit
- Neque porro quisquam est |
-
-
- 
|
-
-
-
-
-
-
-
-');
-
-/*
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleObjectives', 'TemplateTitleObjectivesDescription', 'courseobjectives.gif', '
-
- {CSS}
-
-
-
-
-
-
-
- 
- |
- |
-
-
-
- Lorem ipsum dolor sit amet
-
- - consectetur adipisicing elit
- - sed do eiusmod tempor incididunt
- - ut labore et dolore magna aliqua
-
- Ut enim ad minim veniam
-
- - quis nostrud exercitation ullamco
- - laboris nisi ut aliquip ex ea commodo consequat
- - Excepteur sint occaecat cupidatat non proident
-
- |
-
-
-
-
-
-
-
-');
-*/
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleCycle', 'TemplateTitleCycleDescription', 'cyclechart.gif', '
-
- {CSS}
-
-
-
-
-
-
-
-
-
-
- |
-
-
- |
- Lorem ipsum
- |
-
- |
-
- Sed ut perspiciatis
- |
-
-
-
-
- - dolor sit amet
- - consectetur adipisicing elit
- - sed do eiusmod tempor
- - adipisci velit, sed quia non numquam
- - eius modi tempora incidunt ut labore et dolore magnam
-
- |
- |
-
-
- - ut enim ad minim veniam
- - quis nostrud exercitation
- ullamco laboris nisi ut
- - Quis autem vel eum iure reprehenderit qui in ea
- - voluptate velit esse quam nihil molestiae consequatur,
-
- |
-
-
-
-
- |
-
-
-
-
-
-
-
-');
-
-/*
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleLearnerWonder', 'TemplateTitleLearnerWonderDescription', 'learnerwonder.gif', '
-
- {CSS}
-
-
-
-
-
-
-
- 
- |
- |
-
-
- |
- Convallis
- ut. Cras dui magna. |
-
-
-
- Etiam
- lacinia stibulum ante.
- |
-
-
-
- Consectetuer
- adipiscing elit.
- |
-
-
-
-
-
-
-
-');
-*/
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleTimeline', 'TemplateTitleTimelineDescription', 'phasetimeline.gif', '
-
- {CSS}
-
-
-
-
-
-
-
- | Lorem ipsum |
- |
- Perspiciatis |
- |
- Nemo enim |
-
-
-
-
-
- - dolor sit amet
- - consectetur
- - adipisicing elit
-
-
- |
-
-
- |
-
-
-
- - ut labore
- - et dolore
- - magni dolores
-
- |
-
-
- |
-
-
-
- - neque porro
- - quisquam est
- - qui dolorem
-
-
- |
-
-
-
-
-
-
-
-');
-
-/*
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleStopAndThink', 'TemplateTitleStopAndThinkDescription', 'stopthink.gif', '
-
- {CSS}
-
-
-
-
-
-
-
-
- |
- |
-
-
-
- Attentio sectetur adipisicing elit
-
- - sed do eiusmod tempor incididunt
- - ut labore et dolore magna aliqua
- - quis nostrud exercitation ullamco
-
|
-
-
-
-
-
-
-
-');
-*/
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleTable', 'TemplateTitleCheckListDescription', 'table.gif', '
-
- {CSS}
-
-
-
-
-
- A table
-
-
-
- | City |
- 2005 |
- 2006 |
- 2007 |
- 2008 |
-
-
- | Lima |
- 10,40 |
- 8,95 |
- 9,19 |
- 9,76 |
-
-
- | New York |
- 18,39 |
- 17,52 |
- 16,57 |
- 16,60 |
-
-
- | Barcelona |
- 0,10 |
- 0,10 |
- 0,05 |
- 0,05 |
-
-
- | Paris |
- 3,38 |
- 3,63 |
- 3,63 |
- 3,54 |
-
-
-
-
-
-');
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleAudio', 'TemplateTitleAudioDescription', 'audiocomment.gif', '
-
- {CSS}
-
-
-
-
-
-
-
-');
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleVideo', 'TemplateTitleVideoDescription', 'video.gif', '
-
- {CSS}
-
-
-
-
-
-
-
-
-
-
-
-
- url={REL_PATH}main/default_course_document/video/flv/example.flv width=320 height=240 loop=false play=false downloadable=false fullscreen=true displayNavigation=true displayDigits=true align=left dispPlaylist=none playlistThumbs=false
-
-
-
-
-
-
-
- |
-
-
-
- Lorem ipsum dolor sit amet
-
- - consectetur adipisicing elit
- - sed do eiusmod tempor incididunt
- - ut labore et dolore magna aliqua
-
- Ut enim ad minim veniam
-
- - quis nostrud exercitation ullamco
- - laboris nisi ut aliquip ex ea commodo consequat
- - Excepteur sint occaecat cupidatat non proident
-
- |
-
-
-
-
-
-
-
-
-');
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleFlash', 'TemplateTitleFlashDescription', 'flash.gif', '
-
- {CSS}
-
-
-
-
-
-
-
-
-
-');
-
-
---
--- --------------------------------------------------------
---
--- Tables for reservation
---
-
-
---
--- Table structure for table reservation category
---
-
-CREATE TABLE reservation_category (
- id int unsigned NOT NULL auto_increment,
- parent_id int NOT NULL default 0,
- name varchar(128) NOT NULL default '',
- PRIMARY KEY ( id )
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for table reservation category_rights
---
-
-CREATE TABLE reservation_category_rights (
- category_id int NOT NULL default 0,
- class_id int NOT NULL default 0,
- m_items tinyint NOT NULL default 0
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for table item reservation
---
-
-CREATE TABLE reservation_item (
- id int unsigned NOT NULL auto_increment,
- category_id int unsigned NOT NULL default 0,
- course_code varchar(40) NOT NULL default '',
- name varchar(128) NOT NULL default '',
- description text NOT NULL,
- blackout tinyint NOT NULL default 0,
- creator int unsigned NOT NULL default 0,
- always_available TINYINT NOT NULL default 0,
- PRIMARY KEY ( id )
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for table reservation item_rights
---
-
-CREATE TABLE reservation_item_rights (
- item_id int unsigned NOT NULL default 0,
- class_id int unsigned NOT NULL default 0,
- edit_right tinyint unsigned NOT NULL default 0,
- delete_right tinyint unsigned NOT NULL default 0,
- m_reservation tinyint unsigned NOT NULL default 0,
- view_right tinyint NOT NULL default 0,
- PRIMARY KEY ( item_id , class_id )
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for main reservation table
---
-
-CREATE TABLE reservation_main (
- id int unsigned NOT NULL auto_increment,
- subid int unsigned NOT NULL default 0,
- item_id int unsigned NOT NULL default 0,
- auto_accept tinyint unsigned NOT NULL default 0,
- max_users int unsigned NOT NULL default 1,
- start_at datetime NOT NULL default '0000-00-00 00:00:00',
- end_at datetime NOT NULL default '0000-00-00 00:00:00',
- subscribe_from datetime NOT NULL default '0000-00-00 00:00:00',
- subscribe_until datetime NOT NULL default '0000-00-00 00:00:00',
- subscribers int unsigned NOT NULL default 0,
- notes text NOT NULL,
- timepicker tinyint NOT NULL default 0,
- timepicker_min int NOT NULL default 0,
- timepicker_max int NOT NULL default 0,
- PRIMARY KEY ( id )
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for reservation subscription table
---
-
-CREATE TABLE reservation_subscription (
- dummy int unsigned NOT NULL auto_increment,
- user_id int unsigned NOT NULL default 0,
- reservation_id int unsigned NOT NULL default 0,
- accepted tinyint unsigned NOT NULL default 0,
- start_at datetime NOT NULL default '0000-00-00 00:00:00',
- end_at datetime NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY ( dummy )
-);
-
--- ---------------------------------------------------------
-
---
--- Table structure for table user_rel_user
---
-CREATE TABLE user_rel_user (
- id bigint unsigned not null auto_increment,
- user_id int unsigned not null,
- friend_user_id int unsigned not null,
- relation_type int not null default 0,
- last_edit DATETIME,
- PRIMARY KEY(id)
-);
-
--- Commenting by jmontoya produces errors
--- ALTER TABLE user_friend ADD INDEX idx_user_friend_user (user_id);
--- ALTER TABLE user_friend ADD INDEX idx_user_friend_friend_user(friend_user_id);
--- ALTER TABLE user_friend ADD INDEX idx_user_friend_user_friend_user(user_id,friend_user_id);
-
---
--- Table structure for table user_friend_relation_type
---
-CREATE TABLE user_friend_relation_type(
- id int unsigned not null auto_increment,
- title char(20),
- PRIMARY KEY(id)
-);
-
-
---
--- Table structure for MD5 API keys for users
---
-
-CREATE TABLE user_api_key (
- id int unsigned NOT NULL auto_increment,
- user_id int unsigned NOT NULL,
- api_key char(32) NOT NULL,
- api_service char(10) NOT NULL default 'dokeos',
- PRIMARY KEY (id)
-);
-ALTER TABLE user_api_key ADD INDEX idx_user_api_keys_user (user_id);
-
---
--- Table structure for table message
---
-CREATE TABLE message(
- id bigint unsigned not null auto_increment,
- user_sender_id int unsigned not null,
- user_receiver_id int unsigned not null,
- msg_status tinyint unsigned not null default 0, -- 0 read, 1 unread, 3 deleted, 5 pending invitation, 6 accepted invitation, 7 invitation denied
- send_date datetime not null default '0000-00-00 00:00:00',
- title varchar(255) not null,
- content text not null,
- group_id int unsigned not null default 0,
- parent_id int unsigned not null default 0,
- update_date datetime not null default '0000-00-00 00:00:00',
- PRIMARY KEY(id)
-);
-ALTER TABLE message ADD INDEX idx_message_user_sender(user_sender_id);
-ALTER TABLE message ADD INDEX idx_message_user_receiver(user_receiver_id);
-ALTER TABLE message ADD INDEX idx_message_user_sender_user_receiver(user_sender_id,user_receiver_id);
-ALTER TABLE message ADD INDEX idx_message_group(group_id);
-ALTER TABLE message ADD INDEX idx_message_parent(parent_id);
-
-INSERT INTO user_friend_relation_type (id,title)
-VALUES
-(1,'SocialUnknow'),
-(2,'SocialParent'),
-(3,'SocialFriend'),
-(4,'SocialGoodFriend'),
-(5,'SocialEnemy'),
-(6,'SocialDeleted');
-
---
--- Table structure for table legal (Terms & Conditions)
---
-
-CREATE TABLE legal (
- legal_id int NOT NULL auto_increment,
- language_id int NOT NULL,
- date int NOT NULL default 0,
- content text,
- type int NOT NULL,
- changes text NOT NULL,
- version int,
- PRIMARY KEY (legal_id,language_id)
-);
-
-INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable) values (1, 'legal_accept','Legal',0,0);
-
---
--- Table structure for certificate with gradebook
---
-
-CREATE TABLE gradebook_certificate (
- id bigint unsigned not null auto_increment,
- cat_id int unsigned not null,
- user_id int unsigned not null,
- score_certificate float unsigned not null default 0,
- created_at DATETIME NOT NULL default '0000-00-00 00:00:00',
- path_certificate text null,
- PRIMARY KEY(id)
-);
-ALTER TABLE gradebook_certificate ADD INDEX idx_gradebook_certificate_category_id(cat_id);
-ALTER TABLE gradebook_certificate ADD INDEX idx_gradebook_certificate_user_id(user_id);
-ALTER TABLE gradebook_certificate ADD INDEX idx_gradebook_certificate_category_id_user_id(cat_id,user_id);
-
-
-
---
--- Tables structure for search tool
---
-
--- specific fields tables
-CREATE TABLE specific_field (
- id INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
- code char(1) NOT NULL,
- name VARCHAR(200) NOT NULL
-);
-
-CREATE TABLE specific_field_values (
- id INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
- course_code VARCHAR(40) NOT NULL ,
- tool_id VARCHAR(100) NOT NULL ,
- ref_id INT NOT NULL ,
- field_id INT NOT NULL ,
- value VARCHAR(200) NOT NULL
-);
-ALTER TABLE specific_field ADD CONSTRAINT unique_specific_field__code UNIQUE (code);
-
--- search engine references to map dokeos resources
-
-CREATE TABLE search_engine_ref (
- id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
- course_code VARCHAR( 40 ) NOT NULL,
- tool_id VARCHAR( 100 ) NOT NULL,
- ref_id_high_level INT NOT NULL,
- ref_id_second_level INT NULL,
- search_did INT NOT NULL
-);
-
---
--- Table structure for table sessions categories
---
-
-CREATE TABLE session_category (
- id int NOT NULL auto_increment,
- name varchar(100) default NULL,
- date_start date default NULL,
- date_end date default NULL,
- PRIMARY KEY (id)
-);
-
-
---
--- Table structure for table user tag
---
-
-CREATE TABLE tag (
- id int NOT NULL auto_increment,
- tag char(255) NOT NULL,
- field_id int NOT NULL,
- count int NOT NULL,
- PRIMARY KEY (id)
-);
-
-
-CREATE TABLE user_rel_tag (
- id int NOT NULL auto_increment,
- user_id int NOT NULL,
- tag_id int NOT NULL,
- PRIMARY KEY (id)
-);
-
---
--- Table structure for user platform groups
---
-
-CREATE TABLE groups (
- id int NOT NULL AUTO_INCREMENT,
- name varchar(255) NOT NULL,
- description varchar(255) NOT NULL,
- picture_uri varchar(255) NOT NULL,
- url varchar(255) NOT NULL,
- visibility int NOT NULL,
- updated_on varchar(255) NOT NULL,
- created_on varchar(255) NOT NULL,
- PRIMARY KEY (id)
-);
-
-CREATE TABLE group_rel_tag (
- id int NOT NULL AUTO_INCREMENT,
- tag_id int NOT NULL,
- group_id int NOT NULL,
- PRIMARY KEY (id)
-);
-
-ALTER TABLE group_rel_tag ADD INDEX ( group_id );
-ALTER TABLE group_rel_tag ADD INDEX ( tag_id );
-
-CREATE TABLE group_rel_user (
- id int NOT NULL AUTO_INCREMENT,
- group_id int NOT NULL,
- user_id int NOT NULL,
- relation_type int NOT NULL,
- PRIMARY KEY (id)
-);
-ALTER TABLE group_rel_user ADD INDEX ( group_id );
-ALTER TABLE group_rel_user ADD INDEX ( user_id );
-ALTER TABLE group_rel_user ADD INDEX ( relation_type );
---
--- Table structure for table message attachment
---
-
-CREATE TABLE IF NOT EXISTS message_attachment (
- id int NOT NULL AUTO_INCREMENT,
- path varchar(255) NOT NULL,
- comment text,
- size int NOT NULL default 0,
- message_id int NOT NULL,
- filename varchar(255) NOT NULL,
- PRIMARY KEY (id)
-);
-
-INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable) values (10, 'tags','tags',0,0);
-INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable) values (1, 'rssfeeds','RSS',0,0);
-INSERT INTO course_field (field_type, field_variable, field_display_text, field_default_value, field_visible, field_changeable) values (10, 'special_course','Special course', 'Yes', 1 , 1);
-
---
--- Table structure for table block
---
-
-CREATE TABLE IF NOT EXISTS block (
- id INT NOT NULL AUTO_INCREMENT,
- name VARCHAR(255) NULL,
- description TEXT NULL,
- path VARCHAR(255) NOT NULL,
- controller VARCHAR(100) NOT NULL,
- active TINYINT NOT NULL DEFAULT 1,
- PRIMARY KEY(id)
-);
-ALTER TABLE block ADD UNIQUE(path);
-
-INSERT INTO user_field(field_type, field_variable, field_display_text, field_visible, field_changeable) VALUES(1, 'dashboard', 'Dashboard', 0, 0);
-INSERT INTO user_field(field_type, field_variable, field_display_text, field_visible, field_changeable) VALUES(11, 'timezone', 'Timezone', 0, 0);
diff --git a/main/install/1.8.7/db_stats.sql b/main/install/1.8.7/db_stats.sql
deleted file mode 100755
index 40b06ac7e8..0000000000
--- a/main/install/1.8.7/db_stats.sql
+++ /dev/null
@@ -1,267 +0,0 @@
--- MySQL dump
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
-CREATE TABLE track_c_browsers (
- id int NOT NULL auto_increment,
- browser varchar(255) NOT NULL default '',
- counter int NOT NULL default 0,
- PRIMARY KEY (id)
-);
-
-CREATE TABLE track_c_countries (
- id int NOT NULL auto_increment,
- code varchar(40) NOT NULL default '',
- country varchar(50) NOT NULL default '',
- counter int NOT NULL default 0,
- PRIMARY KEY (id)
-);
-
-CREATE TABLE track_c_os (
- id int NOT NULL auto_increment,
- os varchar(255) NOT NULL default '',
- counter int NOT NULL default 0,
- PRIMARY KEY (id)
-);
-
-CREATE TABLE track_c_providers (
- id int NOT NULL auto_increment,
- provider varchar(255) NOT NULL default '',
- counter int NOT NULL default 0,
- PRIMARY KEY (id)
-);
-
-CREATE TABLE track_c_referers (
- id int NOT NULL auto_increment,
- referer varchar(255) NOT NULL default '',
- counter int NOT NULL default 0,
- PRIMARY KEY (id)
-);
-
-CREATE TABLE track_e_access (
- access_id int NOT NULL auto_increment,
- access_user_id int unsigned default NULL,
- access_date datetime NOT NULL default '0000-00-00 00:00:00',
- access_cours_code varchar(40) NOT NULL default '',
- access_tool varchar(30) default NULL,
- access_session_id int NOT NULL default 0,
- PRIMARY KEY (access_id),
- KEY access_user_id (access_user_id),
- KEY access_cours_code (access_cours_code)
-);
-
-CREATE TABLE track_e_lastaccess (
- access_id bigint NOT NULL auto_increment,
- access_user_id int unsigned default NULL,
- access_date datetime NOT NULL default '0000-00-00 00:00:00',
- access_cours_code varchar(40) NOT NULL,
- access_tool varchar(30) default NULL,
- access_session_id int unsigned default NULL,
- PRIMARY KEY (access_id),
- KEY access_user_id (access_user_id),
- KEY access_cours_code (access_cours_code),
- KEY access_session_id (access_session_id)
-);
-
-
-CREATE TABLE track_e_default (
- default_id int NOT NULL auto_increment,
- default_user_id int unsigned NOT NULL default 0,
- default_cours_code varchar(40) NOT NULL default '',
- default_date datetime NOT NULL default '0000-00-00 00:00:00',
- default_event_type varchar(20) NOT NULL default '',
- default_value_type varchar(20) NOT NULL default '',
- default_value tinytext NOT NULL,
- PRIMARY KEY (default_id)
-);
-
-CREATE TABLE track_e_downloads (
- down_id int NOT NULL auto_increment,
- down_user_id int unsigned default NULL,
- down_date datetime NOT NULL default '0000-00-00 00:00:00',
- down_cours_id varchar(40) NOT NULL default '',
- down_doc_path varchar(255) NOT NULL default '',
- down_session_id INT NOT NULL DEFAULT 0,
- PRIMARY KEY (down_id),
- KEY down_user_id (down_user_id),
- KEY down_cours_id (down_cours_id)
-);
-
-CREATE TABLE track_e_exercices (
- exe_id int NOT NULL auto_increment,
- exe_user_id int unsigned default NULL,
- exe_date datetime NOT NULL default '0000-00-00 00:00:00',
- exe_cours_id varchar(40) NOT NULL default '',
- exe_exo_id mediumint unsigned NOT NULL default 0,
- exe_result float(6,2) NOT NULL default 0,
- exe_weighting float(6,2) NOT NULL default 0,
- PRIMARY KEY (exe_id),
- KEY exe_user_id (exe_user_id),
- KEY exe_cours_id (exe_cours_id)
-);
-
-ALTER TABLE track_e_exercices ADD status varchar(20) NOT NULL default '';
-ALTER TABLE track_e_exercices ADD data_tracking text NOT NULL default '';
-ALTER TABLE track_e_exercices ADD start_date datetime NOT NULL default '0000-00-00 00:00:00';
-ALTER TABLE track_e_exercices ADD steps_counter SMALLINT UNSIGNED NOT NULL default 0;
-ALTER TABLE track_e_exercices ADD session_id SMALLINT UNSIGNED NOT NULL default 0;
-ALTER TABLE track_e_exercices ADD INDEX ( session_id ) ;
-ALTER TABLE track_e_exercices ADD orig_lp_id int NOT NULL default 0;
-ALTER TABLE track_e_exercices ADD orig_lp_item_id int NOT NULL default 0;
-ALTER TABLE track_e_exercices ADD exe_duration int UNSIGNED NOT NULL default 0;
-ALTER TABLE track_e_exercices ADD COLUMN expired_time_control datetime NOT NULL DEFAULT '0000-00-00 00:00:00';
-
-CREATE TABLE track_e_attempt (
- exe_id int default NULL,
- user_id int NOT NULL default 0,
- question_id int NOT NULL default 0,
- answer text NOT NULL,
- teacher_comment text NOT NULL,
- marks float(6,2) NOT NULL default 0,
- course_code varchar(40) NOT NULL default '',
- position int default 0,
- tms datetime NOT NULL default '0000-00-00 00:00:00',
- session_id INT NOT NULL DEFAULT 0
-);
-ALTER TABLE track_e_attempt ADD INDEX (exe_id);
-ALTER TABLE track_e_attempt ADD INDEX (user_id);
-ALTER TABLE track_e_attempt ADD INDEX (question_id);
-ALTER TABLE track_e_attempt ADD INDEX (session_id);
-
-CREATE TABLE track_e_attempt_recording (
- exe_id int unsigned NOT NULL,
- question_id int unsigned NOT NULL,
- marks int NOT NULL,
- insert_date datetime NOT NULL default '0000-00-00 00:00:00',
- author int unsigned NOT NULL,
- teacher_comment text NOT NULL,
- session_id INT NOT NULL DEFAULT 0
-);
-ALTER TABLE track_e_attempt_recording ADD INDEX (exe_id);
-ALTER TABLE track_e_attempt_recording ADD INDEX (question_id);
-ALTER TABLE track_e_attempt_recording ADD INDEX (session_id);
-
-CREATE TABLE track_e_hotpotatoes (
- exe_name VARCHAR( 255 ) NOT NULL ,
- exe_user_id int unsigned DEFAULT NULL ,
- exe_date DATETIME DEFAULT '0000-00-00 00:00:00' NOT NULL ,
- exe_cours_id varchar(40) NOT NULL ,
- exe_result smallint default 0 NOT NULL ,
- exe_weighting smallint default 0 NOT NULL,
- KEY exe_user_id (exe_user_id),
- KEY exe_cours_id (exe_cours_id)
-);
-
-CREATE TABLE track_e_links (
- links_id int NOT NULL auto_increment,
- links_user_id int unsigned default NULL,
- links_date datetime NOT NULL default '0000-00-00 00:00:00',
- links_cours_id varchar(40) NOT NULL default '' ,
- links_link_id int NOT NULL default 0,
- links_session_id INT NOT NULL DEFAULT 0,
- PRIMARY KEY (links_id),
- KEY links_cours_id (links_cours_id),
- KEY links_user_id (links_user_id)
-);
-
-CREATE TABLE track_e_login (
- login_id int NOT NULL auto_increment,
- login_user_id int unsigned NOT NULL default 0,
- login_date datetime NOT NULL default '0000-00-00 00:00:00',
- login_ip varchar(39) NOT NULL default '',
- logout_date datetime NULL default NULL,
- PRIMARY KEY (login_id),
- KEY login_user_id (login_user_id)
-);
-
-CREATE TABLE track_e_online (
- login_id int NOT NULL auto_increment,
- login_user_id int unsigned NOT NULL default 0,
- login_date datetime NOT NULL default '0000-00-00 00:00:00',
- login_ip varchar(39) NOT NULL default '',
- course varchar(40) default NULL,
- session_id INT NOT NULL DEFAULT 0,
- access_url_id INT NOT NULL DEFAULT 1,
- PRIMARY KEY (login_id),
- KEY login_user_id (login_user_id)
-);
-
-CREATE TABLE track_e_open (
- open_id int NOT NULL auto_increment,
- open_remote_host tinytext NOT NULL,
- open_agent tinytext NOT NULL,
- open_referer tinytext NOT NULL,
- open_date datetime NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY (open_id)
-);
-
-CREATE TABLE track_e_uploads (
- upload_id int NOT NULL auto_increment,
- upload_user_id int unsigned default NULL,
- upload_date datetime NOT NULL default '0000-00-00 00:00:00',
- upload_cours_id varchar(40) NOT NULL default '',
- upload_work_id int NOT NULL default 0,
- upload_session_id INT NOT NULL DEFAULT 0,
- PRIMARY KEY (upload_id),
- KEY upload_user_id (upload_user_id),
- KEY upload_cours_id (upload_cours_id)
-);
-
-CREATE TABLE track_e_course_access (
- course_access_id int NOT NULL auto_increment,
- course_code varchar(40) NOT NULL,
- user_id int NOT NULL,
- login_course_date datetime NOT NULL default '0000-00-00 00:00:00',
- logout_course_date datetime default NULL,
- counter int NOT NULL,
- session_id int NOT NULL default 0,
- PRIMARY KEY (course_access_id)
-);
-
-CREATE TABLE track_e_hotspot (
- hotspot_id int NOT NULL auto_increment,
- hotspot_user_id int NOT NULL,
- hotspot_course_code varchar(50) NOT NULL,
- hotspot_exe_id int NOT NULL,
- hotspot_question_id int NOT NULL,
- hotspot_answer_id int NOT NULL,
- hotspot_correct tinyint(3) unsigned NOT NULL,
- hotspot_coordinate text NOT NULL,
- PRIMARY KEY (hotspot_id),
- KEY hotspot_course_code (hotspot_course_code),
- KEY hotspot_user_id (hotspot_user_id),
- KEY hotspot_exe_id (hotspot_exe_id),
- KEY hotspot_question_id (hotspot_question_id)
-);
-
-CREATE TABLE track_e_item_property (
- id int NOT NULL auto_increment PRIMARY KEY,
- course_id int NOT NULL,
- item_property_id int NOT NULL,
- title varchar(255),
- content text,
- progress int NOT NULL default 0,
- lastedit_date datetime NOT NULL default '0000-00-00 00:00:00',
- lastedit_user_id int NOT NULL,
- session_id int NOT NULL default 0
-);
-
-ALTER TABLE track_e_course_access ADD INDEX (user_id);
-ALTER TABLE track_e_course_access ADD INDEX (login_course_date);
-ALTER TABLE track_e_course_access ADD INDEX (course_code);
-ALTER TABLE track_e_course_access ADD INDEX (session_id);
-ALTER TABLE track_e_access ADD INDEX (access_session_id);
-
-ALTER TABLE track_e_online ADD INDEX (course);
-ALTER TABLE track_e_online ADD INDEX (session_id);
-
-ALTER TABLE track_e_item_property ADD INDEX (course_id, item_property_id, session_id);
-ALTER TABLE track_e_downloads ADD INDEX (down_session_id);
-ALTER TABLE track_e_links ADD INDEX (links_session_id);
-ALTER TABLE track_e_uploads ADD INDEX (upload_session_id);
diff --git a/main/install/1.8.7/db_user.sql b/main/install/1.8.7/db_user.sql
deleted file mode 100755
index d2ddccef31..0000000000
--- a/main/install/1.8.7/db_user.sql
+++ /dev/null
@@ -1,41 +0,0 @@
--- MySQL dump
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
-CREATE TABLE personal_agenda (
- id int NOT NULL auto_increment,
- user int unsigned,
- title text,
- `text` text,
- `date` datetime default NULL,
- enddate datetime default NULL,
- course varchar(255),
- parent_event_id int null,
- UNIQUE KEY id (id)
-);
-CREATE TABLE personal_agenda_repeat (
- cal_id INT DEFAULT 0 NOT NULL,
- cal_type VARCHAR(20),
- cal_end INT,
- cal_frequency INT DEFAULT 1,
- cal_days CHAR(7),
- PRIMARY KEY (cal_id)
-);
-CREATE TABLE personal_agenda_repeat_not (
- cal_id INT NOT NULL,
- cal_date INT NOT NULL,
- PRIMARY KEY ( cal_id, cal_date )
-);
-CREATE TABLE user_course_category (
- id int unsigned NOT NULL auto_increment,
- user_id int unsigned NOT NULL default 0,
- title text NOT NULL,
- sort int,
- PRIMARY KEY (id)
-);
\ No newline at end of file
diff --git a/main/install/1.8.8/db_course1.sql b/main/install/1.8.8/db_course1.sql
deleted file mode 100644
index b2bd29c772..0000000000
--- a/main/install/1.8.8/db_course1.sql
+++ /dev/null
@@ -1,1782 +0,0 @@
--- MySQL dump 10.13 Distrib 5.5.29, for debian-linux-gnu (i686)
---
--- Host: localhost Database: chamilo1884
--- ------------------------------------------------------
--- Server version 5.5.29-0ubuntu0.12.10.1
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
---
--- Table structure for table `announcement`
---
-
-DROP TABLE IF EXISTS `announcement`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `announcement` (
- `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
- `title` text,
- `content` mediumtext,
- `end_date` date DEFAULT NULL,
- `display_order` mediumint(9) NOT NULL DEFAULT '0',
- `email_sent` tinyint(4) DEFAULT '0',
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `announcement_attachment`
---
-
-DROP TABLE IF EXISTS `announcement_attachment`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `announcement_attachment` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `path` varchar(255) NOT NULL,
- `comment` text,
- `size` int(11) NOT NULL DEFAULT '0',
- `announcement_id` int(11) NOT NULL,
- `filename` varchar(255) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `attendance`
---
-
-DROP TABLE IF EXISTS `attendance`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `attendance` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` text NOT NULL,
- `description` text,
- `active` tinyint(4) NOT NULL DEFAULT '1',
- `attendance_qualify_title` varchar(255) DEFAULT NULL,
- `attendance_qualify_max` int(11) NOT NULL DEFAULT '0',
- `attendance_weight` float(6,2) NOT NULL DEFAULT '0.00',
- `session_id` int(11) NOT NULL DEFAULT '0',
- `locked` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`),
- KEY `active` (`active`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `attendance_calendar`
---
-
-DROP TABLE IF EXISTS `attendance_calendar`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `attendance_calendar` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `attendance_id` int(11) NOT NULL,
- `date_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `done_attendance` tinyint(4) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `attendance_id` (`attendance_id`),
- KEY `done_attendance` (`done_attendance`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `attendance_result`
---
-
-DROP TABLE IF EXISTS `attendance_result`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `attendance_result` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `user_id` int(11) NOT NULL,
- `attendance_id` int(11) NOT NULL,
- `score` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `attendance_id` (`attendance_id`),
- KEY `user_id` (`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `attendance_sheet`
---
-
-DROP TABLE IF EXISTS `attendance_sheet`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `attendance_sheet` (
- `user_id` int(11) NOT NULL,
- `attendance_calendar_id` int(11) NOT NULL,
- `presence` tinyint(4) NOT NULL DEFAULT '0',
- PRIMARY KEY (`user_id`,`attendance_calendar_id`),
- KEY `presence` (`presence`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `attendance_sheet_log`
---
-
-DROP TABLE IF EXISTS `attendance_sheet_log`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `attendance_sheet_log` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `attendance_id` int(11) NOT NULL DEFAULT '0',
- `lastedit_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `lastedit_type` varchar(200) NOT NULL,
- `lastedit_user_id` int(11) NOT NULL DEFAULT '0',
- `calendar_date_value` datetime DEFAULT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog`
---
-
-DROP TABLE IF EXISTS `blog`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog` (
- `blog_id` smallint(6) NOT NULL AUTO_INCREMENT,
- `blog_name` varchar(250) NOT NULL DEFAULT '',
- `blog_subtitle` varchar(250) DEFAULT NULL,
- `date_creation` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `visibility` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`blog_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table with blogs in this course';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_attachment`
---
-
-DROP TABLE IF EXISTS `blog_attachment`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_attachment` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `path` varchar(255) NOT NULL COMMENT 'the real filename',
- `comment` text,
- `size` int(11) NOT NULL DEFAULT '0',
- `post_id` int(11) NOT NULL,
- `filename` varchar(255) NOT NULL COMMENT 'the user s file name',
- `blog_id` int(11) NOT NULL,
- `comment_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_comment`
---
-
-DROP TABLE IF EXISTS `blog_comment`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_comment` (
- `comment_id` int(11) NOT NULL AUTO_INCREMENT,
- `title` varchar(250) NOT NULL DEFAULT '',
- `comment` longtext NOT NULL,
- `author_id` int(11) NOT NULL DEFAULT '0',
- `date_creation` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `blog_id` mediumint(9) NOT NULL DEFAULT '0',
- `post_id` int(11) NOT NULL DEFAULT '0',
- `task_id` int(11) DEFAULT NULL,
- `parent_comment_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`comment_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table with comments on posts in a blog';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_post`
---
-
-DROP TABLE IF EXISTS `blog_post`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_post` (
- `post_id` int(11) NOT NULL AUTO_INCREMENT,
- `title` varchar(250) NOT NULL DEFAULT '',
- `full_text` longtext NOT NULL,
- `date_creation` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `blog_id` mediumint(9) NOT NULL DEFAULT '0',
- `author_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`post_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table with posts / blog.';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_rating`
---
-
-DROP TABLE IF EXISTS `blog_rating`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_rating` (
- `rating_id` int(11) NOT NULL AUTO_INCREMENT,
- `blog_id` int(11) NOT NULL DEFAULT '0',
- `rating_type` enum('post','comment') NOT NULL DEFAULT 'post',
- `item_id` int(11) NOT NULL DEFAULT '0',
- `user_id` int(11) NOT NULL DEFAULT '0',
- `rating` mediumint(9) NOT NULL DEFAULT '0',
- PRIMARY KEY (`rating_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table with ratings for post/comments in a certain blog';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_rel_user`
---
-
-DROP TABLE IF EXISTS `blog_rel_user`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_rel_user` (
- `blog_id` int(11) NOT NULL DEFAULT '0',
- `user_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`blog_id`,`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table representing users subscribed to a blog';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_task`
---
-
-DROP TABLE IF EXISTS `blog_task`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_task` (
- `task_id` mediumint(9) NOT NULL AUTO_INCREMENT,
- `blog_id` mediumint(9) NOT NULL DEFAULT '0',
- `title` varchar(250) NOT NULL DEFAULT '',
- `description` text NOT NULL,
- `color` varchar(10) NOT NULL DEFAULT '',
- `system_task` tinyint(3) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`task_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table with tasks for a blog';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_task_rel_user`
---
-
-DROP TABLE IF EXISTS `blog_task_rel_user`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_task_rel_user` (
- `blog_id` mediumint(9) NOT NULL DEFAULT '0',
- `user_id` int(11) NOT NULL DEFAULT '0',
- `task_id` mediumint(9) NOT NULL DEFAULT '0',
- `target_date` date NOT NULL DEFAULT '0000-00-00',
- PRIMARY KEY (`blog_id`,`user_id`,`task_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table with tasks assigned to a user in a blog';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `calendar_event`
---
-
-DROP TABLE IF EXISTS `calendar_event`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `calendar_event` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `title` varchar(255) NOT NULL,
- `content` text,
- `start_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `end_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `parent_event_id` int(11) DEFAULT NULL,
- `session_id` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `calendar_event_attachment`
---
-
-DROP TABLE IF EXISTS `calendar_event_attachment`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `calendar_event_attachment` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `path` varchar(255) NOT NULL,
- `comment` text,
- `size` int(11) NOT NULL DEFAULT '0',
- `agenda_id` int(11) NOT NULL,
- `filename` varchar(255) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `calendar_event_repeat`
---
-
-DROP TABLE IF EXISTS `calendar_event_repeat`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `calendar_event_repeat` (
- `cal_id` int(11) NOT NULL DEFAULT '0',
- `cal_type` varchar(20) DEFAULT NULL,
- `cal_end` int(11) DEFAULT NULL,
- `cal_frequency` int(11) DEFAULT '1',
- `cal_days` char(7) DEFAULT NULL,
- PRIMARY KEY (`cal_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `calendar_event_repeat_not`
---
-
-DROP TABLE IF EXISTS `calendar_event_repeat_not`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `calendar_event_repeat_not` (
- `cal_id` int(11) NOT NULL,
- `cal_date` int(11) NOT NULL,
- PRIMARY KEY (`cal_id`,`cal_date`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `chat_connected`
---
-
-DROP TABLE IF EXISTS `chat_connected`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `chat_connected` (
- `user_id` int(10) unsigned NOT NULL DEFAULT '0',
- `last_connection` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `session_id` int(11) NOT NULL DEFAULT '0',
- `to_group_id` int(11) NOT NULL DEFAULT '0',
- KEY `char_connected_index` (`user_id`,`session_id`,`to_group_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `course_description`
---
-
-DROP TABLE IF EXISTS `course_description`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `course_description` (
- `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
- `title` varchar(255) DEFAULT NULL,
- `content` text,
- `session_id` smallint(6) DEFAULT '0',
- `description_type` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `progress` int(11) NOT NULL DEFAULT '0',
- UNIQUE KEY `id` (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `course_setting`
---
-
-DROP TABLE IF EXISTS `course_setting`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `course_setting` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `variable` varchar(255) NOT NULL DEFAULT '',
- `subkey` varchar(255) DEFAULT NULL,
- `type` varchar(255) DEFAULT NULL,
- `category` varchar(255) DEFAULT NULL,
- `value` varchar(255) NOT NULL DEFAULT '',
- `title` varchar(255) NOT NULL DEFAULT '',
- `comment` varchar(255) DEFAULT NULL,
- `subkeytext` varchar(255) DEFAULT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `document`
---
-
-DROP TABLE IF EXISTS `document`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `document` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `path` varchar(255) NOT NULL DEFAULT '',
- `comment` text,
- `title` varchar(255) DEFAULT NULL,
- `filetype` set('file','folder') NOT NULL DEFAULT 'file',
- `size` int(11) NOT NULL DEFAULT '0',
- `readonly` tinyint(3) unsigned NOT NULL,
- `session_id` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `dropbox_category`
---
-
-DROP TABLE IF EXISTS `dropbox_category`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `dropbox_category` (
- `cat_id` int(11) NOT NULL AUTO_INCREMENT,
- `cat_name` text NOT NULL,
- `received` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `sent` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `user_id` int(11) NOT NULL DEFAULT '0',
- `session_id` smallint(6) NOT NULL DEFAULT '0',
- PRIMARY KEY (`cat_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `dropbox_feedback`
---
-
-DROP TABLE IF EXISTS `dropbox_feedback`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `dropbox_feedback` (
- `feedback_id` int(11) NOT NULL AUTO_INCREMENT,
- `file_id` int(11) NOT NULL DEFAULT '0',
- `author_user_id` int(11) NOT NULL DEFAULT '0',
- `feedback` text NOT NULL,
- `feedback_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`feedback_id`),
- KEY `file_id` (`file_id`),
- KEY `author_user_id` (`author_user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `dropbox_file`
---
-
-DROP TABLE IF EXISTS `dropbox_file`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `dropbox_file` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `uploader_id` int(10) unsigned NOT NULL DEFAULT '0',
- `filename` varchar(250) NOT NULL DEFAULT '',
- `filesize` int(10) unsigned NOT NULL,
- `title` varchar(250) DEFAULT '',
- `description` varchar(250) DEFAULT '',
- `author` varchar(250) DEFAULT '',
- `upload_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `last_upload_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `cat_id` int(11) NOT NULL DEFAULT '0',
- `session_id` smallint(5) unsigned NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `UN_filename` (`filename`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `dropbox_person`
---
-
-DROP TABLE IF EXISTS `dropbox_person`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `dropbox_person` (
- `file_id` int(10) unsigned NOT NULL,
- `user_id` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`file_id`,`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `dropbox_post`
---
-
-DROP TABLE IF EXISTS `dropbox_post`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `dropbox_post` (
- `file_id` int(10) unsigned NOT NULL,
- `dest_user_id` int(10) unsigned NOT NULL DEFAULT '0',
- `feedback_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `feedback` text,
- `cat_id` int(11) NOT NULL DEFAULT '0',
- `session_id` smallint(5) unsigned NOT NULL,
- PRIMARY KEY (`file_id`,`dest_user_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_attachment`
---
-
-DROP TABLE IF EXISTS `forum_attachment`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_attachment` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `path` varchar(255) NOT NULL,
- `comment` text,
- `size` int(11) NOT NULL DEFAULT '0',
- `post_id` int(11) NOT NULL,
- `filename` varchar(255) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_category`
---
-
-DROP TABLE IF EXISTS `forum_category`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_category` (
- `cat_id` int(11) NOT NULL AUTO_INCREMENT,
- `cat_title` varchar(255) NOT NULL DEFAULT '',
- `cat_comment` text,
- `cat_order` int(11) NOT NULL DEFAULT '0',
- `locked` int(11) NOT NULL DEFAULT '0',
- `session_id` smallint(5) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`cat_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_forum`
---
-
-DROP TABLE IF EXISTS `forum_forum`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_forum` (
- `forum_id` int(11) NOT NULL AUTO_INCREMENT,
- `forum_title` varchar(255) NOT NULL DEFAULT '',
- `forum_comment` text,
- `forum_threads` int(11) DEFAULT '0',
- `forum_posts` int(11) DEFAULT '0',
- `forum_last_post` int(11) DEFAULT '0',
- `forum_category` int(11) DEFAULT NULL,
- `allow_anonymous` int(11) DEFAULT NULL,
- `allow_edit` int(11) DEFAULT NULL,
- `approval_direct_post` varchar(20) DEFAULT NULL,
- `allow_attachments` int(11) DEFAULT NULL,
- `allow_new_threads` int(11) DEFAULT NULL,
- `default_view` varchar(20) DEFAULT NULL,
- `forum_of_group` varchar(20) DEFAULT NULL,
- `forum_group_public_private` varchar(20) DEFAULT 'public',
- `forum_order` int(11) DEFAULT NULL,
- `locked` int(11) NOT NULL DEFAULT '0',
- `session_id` int(11) NOT NULL DEFAULT '0',
- `forum_image` varchar(255) NOT NULL DEFAULT '',
- `start_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `end_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`forum_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_mailcue`
---
-
-DROP TABLE IF EXISTS `forum_mailcue`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_mailcue` (
- `thread_id` int(11) DEFAULT NULL,
- `user_id` int(11) DEFAULT NULL,
- `post_id` int(11) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_notification`
---
-
-DROP TABLE IF EXISTS `forum_notification`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_notification` (
- `user_id` int(11) DEFAULT NULL,
- `forum_id` int(11) DEFAULT NULL,
- `thread_id` int(11) DEFAULT NULL,
- `post_id` int(11) DEFAULT NULL,
- KEY `user_id` (`user_id`),
- KEY `forum_id` (`forum_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_post`
---
-
-DROP TABLE IF EXISTS `forum_post`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_post` (
- `post_id` int(11) NOT NULL AUTO_INCREMENT,
- `post_title` varchar(250) DEFAULT NULL,
- `post_text` text,
- `thread_id` int(11) DEFAULT '0',
- `forum_id` int(11) DEFAULT '0',
- `poster_id` int(11) DEFAULT '0',
- `poster_name` varchar(100) DEFAULT '',
- `post_date` datetime DEFAULT '0000-00-00 00:00:00',
- `post_notification` tinyint(4) DEFAULT '0',
- `post_parent_id` int(11) DEFAULT '0',
- `visible` tinyint(4) DEFAULT '1',
- PRIMARY KEY (`post_id`),
- KEY `poster_id` (`poster_id`),
- KEY `forum_id` (`forum_id`),
- KEY `idx_forum_post_thread_id` (`thread_id`),
- KEY `idx_forum_post_visible` (`visible`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_thread`
---
-
-DROP TABLE IF EXISTS `forum_thread`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_thread` (
- `thread_id` int(11) NOT NULL AUTO_INCREMENT,
- `thread_title` varchar(255) DEFAULT NULL,
- `forum_id` int(11) DEFAULT NULL,
- `thread_replies` int(11) DEFAULT '0',
- `thread_poster_id` int(11) DEFAULT NULL,
- `thread_poster_name` varchar(100) DEFAULT '',
- `thread_views` int(11) DEFAULT '0',
- `thread_last_post` int(11) DEFAULT NULL,
- `thread_date` datetime DEFAULT '0000-00-00 00:00:00',
- `thread_sticky` tinyint(3) unsigned DEFAULT '0',
- `locked` int(11) NOT NULL DEFAULT '0',
- `session_id` int(10) unsigned DEFAULT NULL,
- `thread_title_qualify` varchar(255) DEFAULT '',
- `thread_qualify_max` float(6,2) unsigned NOT NULL DEFAULT '0.00',
- `thread_close_date` datetime DEFAULT '0000-00-00 00:00:00',
- `thread_weight` float(6,2) unsigned NOT NULL DEFAULT '0.00',
- PRIMARY KEY (`thread_id`),
- KEY `idx_forum_thread_forum_id` (`forum_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_thread_qualify`
---
-
-DROP TABLE IF EXISTS `forum_thread_qualify`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_thread_qualify` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `user_id` int(10) unsigned NOT NULL,
- `thread_id` int(11) NOT NULL,
- `qualify` float(6,2) NOT NULL DEFAULT '0.00',
- `qualify_user_id` int(11) DEFAULT NULL,
- `qualify_time` datetime DEFAULT '0000-00-00 00:00:00',
- `session_id` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `user_id` (`user_id`,`thread_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_thread_qualify_log`
---
-
-DROP TABLE IF EXISTS `forum_thread_qualify_log`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_thread_qualify_log` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `user_id` int(10) unsigned NOT NULL,
- `thread_id` int(11) NOT NULL,
- `qualify` float(6,2) NOT NULL DEFAULT '0.00',
- `qualify_user_id` int(11) DEFAULT NULL,
- `qualify_time` datetime DEFAULT '0000-00-00 00:00:00',
- `session_id` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `user_id` (`user_id`,`thread_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `glossary`
---
-
-DROP TABLE IF EXISTS `glossary`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `glossary` (
- `glossary_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `name` varchar(255) NOT NULL,
- `description` text NOT NULL,
- `display_order` int(11) DEFAULT NULL,
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`glossary_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `group_category`
---
-
-DROP TABLE IF EXISTS `group_category`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `group_category` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `title` varchar(255) NOT NULL DEFAULT '',
- `description` text NOT NULL,
- `doc_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `calendar_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `work_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `announcements_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `forum_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `wiki_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `chat_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `max_student` smallint(5) unsigned NOT NULL DEFAULT '8',
- `self_reg_allowed` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `self_unreg_allowed` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `groups_per_user` smallint(5) unsigned NOT NULL DEFAULT '0',
- `display_order` smallint(5) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `group_info`
---
-
-DROP TABLE IF EXISTS `group_info`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `group_info` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `name` varchar(100) DEFAULT NULL,
- `category_id` int(10) unsigned NOT NULL DEFAULT '0',
- `description` text,
- `max_student` smallint(5) unsigned NOT NULL DEFAULT '8',
- `doc_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `calendar_state` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `work_state` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `announcements_state` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `forum_state` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `wiki_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `chat_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `secret_directory` varchar(255) DEFAULT NULL,
- `self_registration_allowed` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `self_unregistration_allowed` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `session_id` smallint(5) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `group_rel_tutor`
---
-
-DROP TABLE IF EXISTS `group_rel_tutor`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `group_rel_tutor` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `user_id` int(11) NOT NULL,
- `group_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `group_rel_user`
---
-
-DROP TABLE IF EXISTS `group_rel_user`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `group_rel_user` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `user_id` int(10) unsigned NOT NULL,
- `group_id` int(10) unsigned NOT NULL DEFAULT '0',
- `status` int(11) NOT NULL DEFAULT '0',
- `role` char(50) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `item_property`
---
-
-DROP TABLE IF EXISTS `item_property`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `item_property` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `tool` varchar(100) NOT NULL DEFAULT '',
- `insert_user_id` int(10) unsigned NOT NULL DEFAULT '0',
- `insert_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `lastedit_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `ref` int(11) NOT NULL DEFAULT '0',
- `lastedit_type` varchar(100) NOT NULL DEFAULT '',
- `lastedit_user_id` int(10) unsigned NOT NULL DEFAULT '0',
- `to_group_id` int(10) unsigned DEFAULT NULL,
- `to_user_id` int(10) unsigned DEFAULT NULL,
- `visibility` tinyint(4) NOT NULL DEFAULT '1',
- `start_visible` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `end_visible` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `id_session` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `idx_item_property_toolref` (`tool`,`ref`)
-) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `link`
---
-
-DROP TABLE IF EXISTS `link`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `link` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `url` text NOT NULL,
- `title` varchar(150) DEFAULT NULL,
- `description` text,
- `category_id` smallint(5) unsigned DEFAULT NULL,
- `display_order` smallint(5) unsigned NOT NULL DEFAULT '0',
- `on_homepage` enum('0','1') NOT NULL DEFAULT '0',
- `target` char(10) DEFAULT '_self',
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `link_category`
---
-
-DROP TABLE IF EXISTS `link_category`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `link_category` (
- `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
- `category_title` varchar(255) NOT NULL,
- `description` text,
- `display_order` mediumint(8) unsigned NOT NULL DEFAULT '0',
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `lp`
---
-
-DROP TABLE IF EXISTS `lp`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `lp` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `lp_type` smallint(5) unsigned NOT NULL,
- `name` varchar(255) NOT NULL,
- `ref` tinytext,
- `description` text,
- `path` text NOT NULL,
- `force_commit` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `default_view_mod` char(32) NOT NULL DEFAULT 'embedded',
- `default_encoding` char(32) NOT NULL DEFAULT 'UTF-8',
- `display_order` int(10) unsigned NOT NULL DEFAULT '0',
- `content_maker` tinytext NOT NULL,
- `content_local` varchar(32) NOT NULL DEFAULT 'local',
- `content_license` text NOT NULL,
- `prevent_reinit` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `js_lib` tinytext NOT NULL,
- `debug` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `theme` varchar(255) NOT NULL DEFAULT '',
- `preview_image` varchar(255) NOT NULL DEFAULT '',
- `author` varchar(255) NOT NULL DEFAULT '',
- `session_id` int(10) unsigned NOT NULL DEFAULT '0',
- `prerequisite` int(10) unsigned NOT NULL DEFAULT '0',
- `use_max_score` int(10) unsigned NOT NULL DEFAULT '1',
- `autolunch` int(10) unsigned NOT NULL DEFAULT '0',
- `created_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `modified_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `publicated_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `expired_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `lp_item`
---
-
-DROP TABLE IF EXISTS `lp_item`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `lp_item` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `lp_id` int(10) unsigned NOT NULL,
- `item_type` char(32) NOT NULL DEFAULT 'dokeos_document',
- `ref` tinytext NOT NULL,
- `title` varchar(511) NOT NULL,
- `description` varchar(511) NOT NULL DEFAULT '',
- `path` text NOT NULL,
- `min_score` float unsigned NOT NULL DEFAULT '0',
- `max_score` float unsigned DEFAULT '100',
- `mastery_score` float unsigned DEFAULT NULL,
- `parent_item_id` int(10) unsigned NOT NULL DEFAULT '0',
- `previous_item_id` int(10) unsigned NOT NULL DEFAULT '0',
- `next_item_id` int(10) unsigned NOT NULL DEFAULT '0',
- `display_order` int(10) unsigned NOT NULL DEFAULT '0',
- `prerequisite` text,
- `parameters` text,
- `launch_data` text NOT NULL,
- `max_time_allowed` char(13) DEFAULT '',
- `terms` text,
- `search_did` int(11) DEFAULT NULL,
- `audio` varchar(250) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `lp_id` (`lp_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `lp_item_view`
---
-
-DROP TABLE IF EXISTS `lp_item_view`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `lp_item_view` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `lp_item_id` int(10) unsigned NOT NULL,
- `lp_view_id` int(10) unsigned NOT NULL,
- `view_count` int(10) unsigned NOT NULL DEFAULT '0',
- `start_time` int(10) unsigned NOT NULL,
- `total_time` int(10) unsigned NOT NULL DEFAULT '0',
- `score` float unsigned NOT NULL DEFAULT '0',
- `status` char(32) NOT NULL DEFAULT 'not attempted',
- `suspend_data` text,
- `lesson_location` text,
- `core_exit` varchar(32) NOT NULL DEFAULT 'none',
- `max_score` varchar(8) DEFAULT '',
- PRIMARY KEY (`id`),
- KEY `lp_item_id` (`lp_item_id`),
- KEY `lp_view_id` (`lp_view_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `lp_iv_interaction`
---
-
-DROP TABLE IF EXISTS `lp_iv_interaction`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `lp_iv_interaction` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `order_id` smallint(5) unsigned NOT NULL DEFAULT '0',
- `lp_iv_id` bigint(20) unsigned NOT NULL,
- `interaction_id` varchar(255) NOT NULL DEFAULT '',
- `interaction_type` varchar(255) NOT NULL DEFAULT '',
- `weighting` double NOT NULL DEFAULT '0',
- `completion_time` varchar(16) NOT NULL DEFAULT '',
- `correct_responses` text NOT NULL,
- `student_response` text NOT NULL,
- `result` varchar(255) NOT NULL DEFAULT '',
- `latency` varchar(16) NOT NULL DEFAULT '',
- PRIMARY KEY (`id`),
- KEY `lp_iv_id` (`lp_iv_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `lp_iv_objective`
---
-
-DROP TABLE IF EXISTS `lp_iv_objective`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `lp_iv_objective` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `lp_iv_id` bigint(20) unsigned NOT NULL,
- `order_id` smallint(5) unsigned NOT NULL DEFAULT '0',
- `objective_id` varchar(255) NOT NULL DEFAULT '',
- `score_raw` float unsigned NOT NULL DEFAULT '0',
- `score_max` float unsigned NOT NULL DEFAULT '0',
- `score_min` float unsigned NOT NULL DEFAULT '0',
- `status` char(32) NOT NULL DEFAULT 'not attempted',
- PRIMARY KEY (`id`),
- KEY `lp_iv_id` (`lp_iv_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `lp_view`
---
-
-DROP TABLE IF EXISTS `lp_view`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `lp_view` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `lp_id` int(10) unsigned NOT NULL,
- `user_id` int(10) unsigned NOT NULL,
- `view_count` smallint(5) unsigned NOT NULL DEFAULT '0',
- `last_item` int(10) unsigned NOT NULL DEFAULT '0',
- `progress` int(10) unsigned DEFAULT '0',
- `session_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `lp_id` (`lp_id`),
- KEY `user_id` (`user_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `notebook`
---
-
-DROP TABLE IF EXISTS `notebook`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `notebook` (
- `notebook_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `user_id` int(10) unsigned NOT NULL,
- `course` varchar(40) NOT NULL,
- `session_id` int(11) NOT NULL DEFAULT '0',
- `title` varchar(255) NOT NULL,
- `description` text NOT NULL,
- `creation_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `update_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `status` int(11) DEFAULT NULL,
- PRIMARY KEY (`notebook_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `online_connected`
---
-
-DROP TABLE IF EXISTS `online_connected`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `online_connected` (
- `user_id` int(10) unsigned NOT NULL,
- `last_connection` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `online_link`
---
-
-DROP TABLE IF EXISTS `online_link`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `online_link` (
- `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
- `name` char(50) NOT NULL DEFAULT '',
- `url` char(100) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `permission_group`
---
-
-DROP TABLE IF EXISTS `permission_group`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `permission_group` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `group_id` int(11) NOT NULL DEFAULT '0',
- `tool` varchar(250) NOT NULL DEFAULT '',
- `action` varchar(250) NOT NULL DEFAULT '',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `permission_task`
---
-
-DROP TABLE IF EXISTS `permission_task`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `permission_task` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `task_id` int(11) NOT NULL DEFAULT '0',
- `tool` varchar(250) NOT NULL DEFAULT '',
- `action` varchar(250) NOT NULL DEFAULT '',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `permission_user`
---
-
-DROP TABLE IF EXISTS `permission_user`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `permission_user` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `user_id` int(11) NOT NULL DEFAULT '0',
- `tool` varchar(250) NOT NULL DEFAULT '',
- `action` varchar(250) NOT NULL DEFAULT '',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `quiz`
---
-
-DROP TABLE IF EXISTS `quiz`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `quiz` (
- `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
- `title` varchar(255) NOT NULL,
- `description` text,
- `sound` varchar(255) DEFAULT NULL,
- `type` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `random` smallint(6) NOT NULL DEFAULT '0',
- `random_answers` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `active` tinyint(4) NOT NULL DEFAULT '0',
- `results_disabled` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `access_condition` text,
- `max_attempt` int(11) NOT NULL DEFAULT '0',
- `start_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `end_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `feedback_type` int(11) NOT NULL DEFAULT '0',
- `expired_time` int(11) NOT NULL DEFAULT '0',
- `session_id` smallint(6) DEFAULT '0',
- `propagate_neg` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `quiz_answer`
---
-
-DROP TABLE IF EXISTS `quiz_answer`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `quiz_answer` (
- `id` mediumint(8) unsigned NOT NULL,
- `question_id` mediumint(8) unsigned NOT NULL,
- `answer` text NOT NULL,
- `correct` mediumint(8) unsigned DEFAULT NULL,
- `comment` text,
- `ponderation` float(6,2) NOT NULL DEFAULT '0.00',
- `position` mediumint(8) unsigned NOT NULL DEFAULT '1',
- `hotspot_coordinates` text,
- `hotspot_type` enum('square','circle','poly','delineation','oar') DEFAULT NULL,
- `destination` text NOT NULL,
- `id_auto` int(11) NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`id`,`question_id`),
- UNIQUE KEY `id_auto` (`id_auto`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `quiz_question`
---
-
-DROP TABLE IF EXISTS `quiz_question`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `quiz_question` (
- `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
- `question` text NOT NULL,
- `description` text,
- `ponderation` float(6,2) NOT NULL DEFAULT '0.00',
- `position` mediumint(8) unsigned NOT NULL DEFAULT '1',
- `type` tinyint(3) unsigned NOT NULL DEFAULT '2',
- `picture` varchar(50) DEFAULT NULL,
- `level` int(10) unsigned NOT NULL DEFAULT '0',
- `extra` varchar(255) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `position` (`position`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `quiz_question_option`
---
-
-DROP TABLE IF EXISTS `quiz_question_option`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `quiz_question_option` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `question_id` int(11) NOT NULL,
- `name` varchar(255) DEFAULT NULL,
- `position` int(10) unsigned NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `quiz_rel_question`
---
-
-DROP TABLE IF EXISTS `quiz_rel_question`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `quiz_rel_question` (
- `question_id` mediumint(8) unsigned NOT NULL,
- `exercice_id` mediumint(8) unsigned NOT NULL,
- `question_order` mediumint(8) unsigned NOT NULL DEFAULT '1',
- PRIMARY KEY (`question_id`,`exercice_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `resource`
---
-
-DROP TABLE IF EXISTS `resource`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `resource` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `source_type` varchar(50) DEFAULT NULL,
- `source_id` int(10) unsigned DEFAULT NULL,
- `resource_type` varchar(50) DEFAULT NULL,
- `resource_id` int(10) unsigned DEFAULT NULL,
- UNIQUE KEY `id` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `role`
---
-
-DROP TABLE IF EXISTS `role`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `role` (
- `role_id` int(11) NOT NULL AUTO_INCREMENT,
- `role_name` varchar(250) NOT NULL DEFAULT '',
- `role_comment` text,
- `default_role` tinyint(4) DEFAULT '0',
- PRIMARY KEY (`role_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `role_group`
---
-
-DROP TABLE IF EXISTS `role_group`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `role_group` (
- `role_id` int(11) NOT NULL DEFAULT '0',
- `scope` varchar(20) NOT NULL DEFAULT 'course',
- `group_id` int(11) NOT NULL DEFAULT '0'
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `role_permissions`
---
-
-DROP TABLE IF EXISTS `role_permissions`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `role_permissions` (
- `role_id` int(11) NOT NULL DEFAULT '0',
- `tool` varchar(250) NOT NULL DEFAULT '',
- `action` varchar(50) NOT NULL DEFAULT '',
- `default_perm` tinyint(4) NOT NULL DEFAULT '0'
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `role_user`
---
-
-DROP TABLE IF EXISTS `role_user`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `role_user` (
- `role_id` int(11) NOT NULL DEFAULT '0',
- `scope` varchar(20) NOT NULL DEFAULT 'course',
- `user_id` int(11) NOT NULL DEFAULT '0'
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `student_publication`
---
-
-DROP TABLE IF EXISTS `student_publication`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `student_publication` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `url` varchar(255) DEFAULT NULL,
- `title` varchar(255) DEFAULT NULL,
- `description` text,
- `author` varchar(255) DEFAULT NULL,
- `active` tinyint(4) DEFAULT NULL,
- `accepted` tinyint(4) DEFAULT '0',
- `post_group_id` int(11) NOT NULL DEFAULT '0',
- `sent_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `filetype` set('file','folder') NOT NULL DEFAULT 'file',
- `has_properties` int(10) unsigned NOT NULL DEFAULT '0',
- `view_properties` tinyint(4) DEFAULT NULL,
- `qualification` float(6,2) unsigned NOT NULL DEFAULT '0.00',
- `date_of_qualification` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `parent_id` int(10) unsigned NOT NULL DEFAULT '0',
- `qualificator_id` int(10) unsigned NOT NULL DEFAULT '0',
- `weight` float(6,2) unsigned NOT NULL DEFAULT '0.00',
- `session_id` int(10) unsigned NOT NULL DEFAULT '0',
- `user_id` int(11) NOT NULL,
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `student_publication_assignment`
---
-
-DROP TABLE IF EXISTS `student_publication_assignment`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `student_publication_assignment` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `expires_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `ends_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `add_to_calendar` tinyint(4) NOT NULL,
- `enable_qualification` tinyint(4) NOT NULL,
- `publication_id` int(11) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `survey`
---
-
-DROP TABLE IF EXISTS `survey`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `survey` (
- `survey_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `code` varchar(20) DEFAULT NULL,
- `title` text,
- `subtitle` text,
- `author` varchar(20) DEFAULT NULL,
- `lang` varchar(20) DEFAULT NULL,
- `avail_from` date DEFAULT NULL,
- `avail_till` date DEFAULT NULL,
- `is_shared` char(1) DEFAULT '1',
- `template` varchar(20) DEFAULT NULL,
- `intro` text,
- `surveythanks` text,
- `creation_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `invited` int(11) NOT NULL,
- `answered` int(11) NOT NULL,
- `invite_mail` text NOT NULL,
- `reminder_mail` text NOT NULL,
- `mail_subject` varchar(255) NOT NULL,
- `anonymous` enum('0','1') NOT NULL DEFAULT '0',
- `access_condition` text,
- `shuffle` tinyint(1) NOT NULL DEFAULT '0',
- `one_question_per_page` tinyint(1) NOT NULL DEFAULT '0',
- `survey_version` varchar(255) NOT NULL DEFAULT '',
- `parent_id` int(10) unsigned NOT NULL,
- `survey_type` int(11) NOT NULL DEFAULT '0',
- `show_form_profile` int(11) NOT NULL DEFAULT '0',
- `form_fields` text NOT NULL,
- `session_id` smallint(5) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`survey_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `survey_answer`
---
-
-DROP TABLE IF EXISTS `survey_answer`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `survey_answer` (
- `answer_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `survey_id` int(10) unsigned NOT NULL,
- `question_id` int(10) unsigned NOT NULL,
- `option_id` text NOT NULL,
- `value` int(10) unsigned NOT NULL,
- `user` varchar(250) NOT NULL,
- PRIMARY KEY (`answer_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `survey_group`
---
-
-DROP TABLE IF EXISTS `survey_group`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `survey_group` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `name` varchar(20) NOT NULL,
- `description` varchar(255) NOT NULL,
- `survey_id` int(10) unsigned NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `survey_invitation`
---
-
-DROP TABLE IF EXISTS `survey_invitation`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `survey_invitation` (
- `survey_invitation_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `survey_code` varchar(20) NOT NULL,
- `user` varchar(250) NOT NULL,
- `invitation_code` varchar(250) NOT NULL,
- `invitation_date` datetime NOT NULL,
- `reminder_date` datetime NOT NULL,
- `answered` int(11) NOT NULL DEFAULT '0',
- `session_id` smallint(5) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`survey_invitation_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `survey_question`
---
-
-DROP TABLE IF EXISTS `survey_question`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `survey_question` (
- `question_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `survey_id` int(10) unsigned NOT NULL,
- `survey_question` text NOT NULL,
- `survey_question_comment` text NOT NULL,
- `type` varchar(250) NOT NULL,
- `display` varchar(10) NOT NULL,
- `sort` int(11) NOT NULL,
- `shared_question_id` int(11) DEFAULT NULL,
- `max_value` int(11) DEFAULT NULL,
- `survey_group_pri` int(10) unsigned NOT NULL DEFAULT '0',
- `survey_group_sec1` int(10) unsigned NOT NULL DEFAULT '0',
- `survey_group_sec2` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`question_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `survey_question_option`
---
-
-DROP TABLE IF EXISTS `survey_question_option`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `survey_question_option` (
- `question_option_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `question_id` int(10) unsigned NOT NULL,
- `survey_id` int(10) unsigned NOT NULL,
- `option_text` text NOT NULL,
- `sort` int(11) NOT NULL,
- `value` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`question_option_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `thematic`
---
-
-DROP TABLE IF EXISTS `thematic`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `thematic` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `title` varchar(255) NOT NULL,
- `content` text,
- `display_order` int(10) unsigned NOT NULL DEFAULT '0',
- `active` tinyint(4) NOT NULL DEFAULT '0',
- `session_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `active` (`active`,`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `thematic_advance`
---
-
-DROP TABLE IF EXISTS `thematic_advance`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `thematic_advance` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `thematic_id` int(11) NOT NULL,
- `attendance_id` int(11) NOT NULL DEFAULT '0',
- `content` text,
- `start_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `duration` int(11) NOT NULL DEFAULT '0',
- `done_advance` tinyint(4) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `thematic_id` (`thematic_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `thematic_plan`
---
-
-DROP TABLE IF EXISTS `thematic_plan`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `thematic_plan` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `thematic_id` int(11) NOT NULL,
- `title` varchar(255) NOT NULL,
- `description` text,
- `description_type` int(11) NOT NULL,
- PRIMARY KEY (`id`),
- KEY `thematic_id` (`thematic_id`,`description_type`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `tool`
---
-
-DROP TABLE IF EXISTS `tool`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `tool` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `name` varchar(255) NOT NULL,
- `link` varchar(255) NOT NULL,
- `image` varchar(255) DEFAULT NULL,
- `visibility` tinyint(3) unsigned DEFAULT '0',
- `admin` varchar(255) DEFAULT NULL,
- `address` varchar(255) DEFAULT NULL,
- `added_tool` tinyint(3) unsigned DEFAULT '1',
- `target` enum('_self','_blank') NOT NULL DEFAULT '_self',
- `category` varchar(20) NOT NULL DEFAULT 'authoring',
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `tool_intro`
---
-
-DROP TABLE IF EXISTS `tool_intro`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `tool_intro` (
- `id` varchar(50) NOT NULL,
- `intro_text` text NOT NULL,
- `session_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`,`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `userinfo_content`
---
-
-DROP TABLE IF EXISTS `userinfo_content`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `userinfo_content` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `user_id` int(10) unsigned NOT NULL,
- `definition_id` int(10) unsigned NOT NULL,
- `editor_ip` varchar(39) DEFAULT NULL,
- `edition_time` datetime DEFAULT NULL,
- `content` text NOT NULL,
- PRIMARY KEY (`id`),
- KEY `user_id` (`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `userinfo_def`
---
-
-DROP TABLE IF EXISTS `userinfo_def`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `userinfo_def` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `title` varchar(80) NOT NULL DEFAULT '',
- `comment` text,
- `line_count` tinyint(3) unsigned NOT NULL DEFAULT '5',
- `rank` tinyint(3) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `wiki`
---
-
-DROP TABLE IF EXISTS `wiki`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `wiki` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `page_id` int(11) NOT NULL DEFAULT '0',
- `reflink` varchar(255) NOT NULL DEFAULT 'index',
- `title` varchar(255) NOT NULL,
- `content` mediumtext NOT NULL,
- `user_id` int(11) NOT NULL DEFAULT '0',
- `group_id` int(11) DEFAULT NULL,
- `dtime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `addlock` int(11) NOT NULL DEFAULT '1',
- `editlock` int(11) NOT NULL DEFAULT '0',
- `visibility` int(11) NOT NULL DEFAULT '1',
- `addlock_disc` int(11) NOT NULL DEFAULT '1',
- `visibility_disc` int(11) NOT NULL DEFAULT '1',
- `ratinglock_disc` int(11) NOT NULL DEFAULT '1',
- `assignment` int(11) NOT NULL DEFAULT '0',
- `comment` text NOT NULL,
- `progress` text NOT NULL,
- `score` int(11) DEFAULT '0',
- `version` int(11) DEFAULT NULL,
- `is_editing` int(11) NOT NULL DEFAULT '0',
- `time_edit` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `hits` int(11) DEFAULT '0',
- `linksto` text NOT NULL,
- `tag` text NOT NULL,
- `user_ip` varchar(39) NOT NULL,
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `reflink` (`reflink`),
- KEY `group_id` (`group_id`),
- KEY `page_id` (`page_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `wiki_conf`
---
-
-DROP TABLE IF EXISTS `wiki_conf`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `wiki_conf` (
- `page_id` int(11) NOT NULL DEFAULT '0',
- `task` text NOT NULL,
- `feedback1` text NOT NULL,
- `feedback2` text NOT NULL,
- `feedback3` text NOT NULL,
- `fprogress1` varchar(3) NOT NULL,
- `fprogress2` varchar(3) NOT NULL,
- `fprogress3` varchar(3) NOT NULL,
- `max_size` int(11) DEFAULT NULL,
- `max_text` int(11) DEFAULT NULL,
- `max_version` int(11) DEFAULT NULL,
- `startdate_assig` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `enddate_assig` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `delayedsubmit` int(11) NOT NULL DEFAULT '0',
- KEY `page_id` (`page_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `wiki_discuss`
---
-
-DROP TABLE IF EXISTS `wiki_discuss`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `wiki_discuss` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `publication_id` int(11) NOT NULL DEFAULT '0',
- `userc_id` int(11) NOT NULL DEFAULT '0',
- `comment` text NOT NULL,
- `p_score` varchar(255) DEFAULT NULL,
- `dtime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `wiki_mailcue`
---
-
-DROP TABLE IF EXISTS `wiki_mailcue`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `wiki_mailcue` (
- `id` int(11) NOT NULL,
- `user_id` int(11) NOT NULL,
- `type` text NOT NULL,
- `group_id` int(11) DEFAULT NULL,
- `session_id` smallint(6) DEFAULT '0',
- KEY `id` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
--- Dump completed on 2013-03-27 11:48:18
diff --git a/main/install/1.8.8/db_course2.sql b/main/install/1.8.8/db_course2.sql
deleted file mode 100644
index a4c69ea98c..0000000000
--- a/main/install/1.8.8/db_course2.sql
+++ /dev/null
@@ -1,1782 +0,0 @@
--- MySQL dump 10.13 Distrib 5.5.29, for debian-linux-gnu (i686)
---
--- Host: localhost Database: chamilo1884
--- ------------------------------------------------------
--- Server version 5.5.29-0ubuntu0.12.10.1
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
---
--- Table structure for table `announcement`
---
-
-DROP TABLE IF EXISTS `announcement`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `announcement` (
- `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
- `title` text,
- `content` mediumtext,
- `end_date` date DEFAULT NULL,
- `display_order` mediumint(9) NOT NULL DEFAULT '0',
- `email_sent` tinyint(4) DEFAULT '0',
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `announcement_attachment`
---
-
-DROP TABLE IF EXISTS `announcement_attachment`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `announcement_attachment` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `path` varchar(255) NOT NULL,
- `comment` text,
- `size` int(11) NOT NULL DEFAULT '0',
- `announcement_id` int(11) NOT NULL,
- `filename` varchar(255) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `attendance`
---
-
-DROP TABLE IF EXISTS `attendance`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `attendance` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `name` text NOT NULL,
- `description` text,
- `active` tinyint(4) NOT NULL DEFAULT '1',
- `attendance_qualify_title` varchar(255) DEFAULT NULL,
- `attendance_qualify_max` int(11) NOT NULL DEFAULT '0',
- `attendance_weight` float(6,2) NOT NULL DEFAULT '0.00',
- `session_id` int(11) NOT NULL DEFAULT '0',
- `locked` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`),
- KEY `active` (`active`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `attendance_calendar`
---
-
-DROP TABLE IF EXISTS `attendance_calendar`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `attendance_calendar` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `attendance_id` int(11) NOT NULL,
- `date_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `done_attendance` tinyint(4) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `attendance_id` (`attendance_id`),
- KEY `done_attendance` (`done_attendance`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `attendance_result`
---
-
-DROP TABLE IF EXISTS `attendance_result`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `attendance_result` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `user_id` int(11) NOT NULL,
- `attendance_id` int(11) NOT NULL,
- `score` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `attendance_id` (`attendance_id`),
- KEY `user_id` (`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `attendance_sheet`
---
-
-DROP TABLE IF EXISTS `attendance_sheet`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `attendance_sheet` (
- `user_id` int(11) NOT NULL,
- `attendance_calendar_id` int(11) NOT NULL,
- `presence` tinyint(4) NOT NULL DEFAULT '0',
- PRIMARY KEY (`user_id`,`attendance_calendar_id`),
- KEY `presence` (`presence`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `attendance_sheet_log`
---
-
-DROP TABLE IF EXISTS `attendance_sheet_log`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `attendance_sheet_log` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `attendance_id` int(11) NOT NULL DEFAULT '0',
- `lastedit_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `lastedit_type` varchar(200) NOT NULL,
- `lastedit_user_id` int(11) NOT NULL DEFAULT '0',
- `calendar_date_value` datetime DEFAULT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog`
---
-
-DROP TABLE IF EXISTS `blog`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog` (
- `blog_id` smallint(6) NOT NULL AUTO_INCREMENT,
- `blog_name` varchar(250) NOT NULL DEFAULT '',
- `blog_subtitle` varchar(250) DEFAULT NULL,
- `date_creation` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `visibility` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`blog_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table with blogs in this course';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_attachment`
---
-
-DROP TABLE IF EXISTS `blog_attachment`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_attachment` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `path` varchar(255) NOT NULL COMMENT 'the real filename',
- `comment` text,
- `size` int(11) NOT NULL DEFAULT '0',
- `post_id` int(11) NOT NULL,
- `filename` varchar(255) NOT NULL COMMENT 'the user s file name',
- `blog_id` int(11) NOT NULL,
- `comment_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_comment`
---
-
-DROP TABLE IF EXISTS `blog_comment`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_comment` (
- `comment_id` int(11) NOT NULL AUTO_INCREMENT,
- `title` varchar(250) NOT NULL DEFAULT '',
- `comment` longtext NOT NULL,
- `author_id` int(11) NOT NULL DEFAULT '0',
- `date_creation` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `blog_id` mediumint(9) NOT NULL DEFAULT '0',
- `post_id` int(11) NOT NULL DEFAULT '0',
- `task_id` int(11) DEFAULT NULL,
- `parent_comment_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`comment_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table with comments on posts in a blog';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_post`
---
-
-DROP TABLE IF EXISTS `blog_post`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_post` (
- `post_id` int(11) NOT NULL AUTO_INCREMENT,
- `title` varchar(250) NOT NULL DEFAULT '',
- `full_text` longtext NOT NULL,
- `date_creation` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `blog_id` mediumint(9) NOT NULL DEFAULT '0',
- `author_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`post_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table with posts / blog.';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_rating`
---
-
-DROP TABLE IF EXISTS `blog_rating`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_rating` (
- `rating_id` int(11) NOT NULL AUTO_INCREMENT,
- `blog_id` int(11) NOT NULL DEFAULT '0',
- `rating_type` enum('post','comment') NOT NULL DEFAULT 'post',
- `item_id` int(11) NOT NULL DEFAULT '0',
- `user_id` int(11) NOT NULL DEFAULT '0',
- `rating` mediumint(9) NOT NULL DEFAULT '0',
- PRIMARY KEY (`rating_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table with ratings for post/comments in a certain blog';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_rel_user`
---
-
-DROP TABLE IF EXISTS `blog_rel_user`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_rel_user` (
- `blog_id` int(11) NOT NULL DEFAULT '0',
- `user_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`blog_id`,`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table representing users subscribed to a blog';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_task`
---
-
-DROP TABLE IF EXISTS `blog_task`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_task` (
- `task_id` mediumint(9) NOT NULL AUTO_INCREMENT,
- `blog_id` mediumint(9) NOT NULL DEFAULT '0',
- `title` varchar(250) NOT NULL DEFAULT '',
- `description` text NOT NULL,
- `color` varchar(10) NOT NULL DEFAULT '',
- `system_task` tinyint(3) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`task_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table with tasks for a blog';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `blog_task_rel_user`
---
-
-DROP TABLE IF EXISTS `blog_task_rel_user`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `blog_task_rel_user` (
- `blog_id` mediumint(9) NOT NULL DEFAULT '0',
- `user_id` int(11) NOT NULL DEFAULT '0',
- `task_id` mediumint(9) NOT NULL DEFAULT '0',
- `target_date` date NOT NULL DEFAULT '0000-00-00',
- PRIMARY KEY (`blog_id`,`user_id`,`task_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Table with tasks assigned to a user in a blog';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `calendar_event`
---
-
-DROP TABLE IF EXISTS `calendar_event`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `calendar_event` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `title` varchar(255) NOT NULL,
- `content` text,
- `start_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `end_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `parent_event_id` int(11) DEFAULT NULL,
- `session_id` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `calendar_event_attachment`
---
-
-DROP TABLE IF EXISTS `calendar_event_attachment`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `calendar_event_attachment` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `path` varchar(255) NOT NULL,
- `comment` text,
- `size` int(11) NOT NULL DEFAULT '0',
- `agenda_id` int(11) NOT NULL,
- `filename` varchar(255) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `calendar_event_repeat`
---
-
-DROP TABLE IF EXISTS `calendar_event_repeat`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `calendar_event_repeat` (
- `cal_id` int(11) NOT NULL DEFAULT '0',
- `cal_type` varchar(20) DEFAULT NULL,
- `cal_end` int(11) DEFAULT NULL,
- `cal_frequency` int(11) DEFAULT '1',
- `cal_days` char(7) DEFAULT NULL,
- PRIMARY KEY (`cal_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `calendar_event_repeat_not`
---
-
-DROP TABLE IF EXISTS `calendar_event_repeat_not`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `calendar_event_repeat_not` (
- `cal_id` int(11) NOT NULL,
- `cal_date` int(11) NOT NULL,
- PRIMARY KEY (`cal_id`,`cal_date`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `chat_connected`
---
-
-DROP TABLE IF EXISTS `chat_connected`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `chat_connected` (
- `user_id` int(10) unsigned NOT NULL DEFAULT '0',
- `last_connection` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `session_id` int(11) NOT NULL DEFAULT '0',
- `to_group_id` int(11) NOT NULL DEFAULT '0',
- KEY `char_connected_index` (`user_id`,`session_id`,`to_group_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `course_description`
---
-
-DROP TABLE IF EXISTS `course_description`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `course_description` (
- `id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
- `title` varchar(255) DEFAULT NULL,
- `content` text,
- `session_id` smallint(6) DEFAULT '0',
- `description_type` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `progress` int(11) NOT NULL DEFAULT '0',
- UNIQUE KEY `id` (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `course_setting`
---
-
-DROP TABLE IF EXISTS `course_setting`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `course_setting` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `variable` varchar(255) NOT NULL DEFAULT '',
- `subkey` varchar(255) DEFAULT NULL,
- `type` varchar(255) DEFAULT NULL,
- `category` varchar(255) DEFAULT NULL,
- `value` varchar(255) NOT NULL DEFAULT '',
- `title` varchar(255) NOT NULL DEFAULT '',
- `comment` varchar(255) DEFAULT NULL,
- `subkeytext` varchar(255) DEFAULT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `document`
---
-
-DROP TABLE IF EXISTS `document`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `document` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `path` varchar(255) NOT NULL DEFAULT '',
- `comment` text,
- `title` varchar(255) DEFAULT NULL,
- `filetype` set('file','folder') NOT NULL DEFAULT 'file',
- `size` int(11) NOT NULL DEFAULT '0',
- `readonly` tinyint(3) unsigned NOT NULL,
- `session_id` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `dropbox_category`
---
-
-DROP TABLE IF EXISTS `dropbox_category`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `dropbox_category` (
- `cat_id` int(11) NOT NULL AUTO_INCREMENT,
- `cat_name` text NOT NULL,
- `received` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `sent` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `user_id` int(11) NOT NULL DEFAULT '0',
- `session_id` smallint(6) NOT NULL DEFAULT '0',
- PRIMARY KEY (`cat_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `dropbox_feedback`
---
-
-DROP TABLE IF EXISTS `dropbox_feedback`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `dropbox_feedback` (
- `feedback_id` int(11) NOT NULL AUTO_INCREMENT,
- `file_id` int(11) NOT NULL DEFAULT '0',
- `author_user_id` int(11) NOT NULL DEFAULT '0',
- `feedback` text NOT NULL,
- `feedback_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`feedback_id`),
- KEY `file_id` (`file_id`),
- KEY `author_user_id` (`author_user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `dropbox_file`
---
-
-DROP TABLE IF EXISTS `dropbox_file`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `dropbox_file` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `uploader_id` int(10) unsigned NOT NULL DEFAULT '0',
- `filename` varchar(250) NOT NULL DEFAULT '',
- `filesize` int(10) unsigned NOT NULL,
- `title` varchar(250) DEFAULT '',
- `description` varchar(250) DEFAULT '',
- `author` varchar(250) DEFAULT '',
- `upload_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `last_upload_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `cat_id` int(11) NOT NULL DEFAULT '0',
- `session_id` smallint(5) unsigned NOT NULL,
- PRIMARY KEY (`id`),
- UNIQUE KEY `UN_filename` (`filename`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `dropbox_person`
---
-
-DROP TABLE IF EXISTS `dropbox_person`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `dropbox_person` (
- `file_id` int(10) unsigned NOT NULL,
- `user_id` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`file_id`,`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `dropbox_post`
---
-
-DROP TABLE IF EXISTS `dropbox_post`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `dropbox_post` (
- `file_id` int(10) unsigned NOT NULL,
- `dest_user_id` int(10) unsigned NOT NULL DEFAULT '0',
- `feedback_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `feedback` text,
- `cat_id` int(11) NOT NULL DEFAULT '0',
- `session_id` smallint(5) unsigned NOT NULL,
- PRIMARY KEY (`file_id`,`dest_user_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_attachment`
---
-
-DROP TABLE IF EXISTS `forum_attachment`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_attachment` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `path` varchar(255) NOT NULL,
- `comment` text,
- `size` int(11) NOT NULL DEFAULT '0',
- `post_id` int(11) NOT NULL,
- `filename` varchar(255) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_category`
---
-
-DROP TABLE IF EXISTS `forum_category`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_category` (
- `cat_id` int(11) NOT NULL AUTO_INCREMENT,
- `cat_title` varchar(255) NOT NULL DEFAULT '',
- `cat_comment` text,
- `cat_order` int(11) NOT NULL DEFAULT '0',
- `locked` int(11) NOT NULL DEFAULT '0',
- `session_id` smallint(5) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`cat_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_forum`
---
-
-DROP TABLE IF EXISTS `forum_forum`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_forum` (
- `forum_id` int(11) NOT NULL AUTO_INCREMENT,
- `forum_title` varchar(255) NOT NULL DEFAULT '',
- `forum_comment` text,
- `forum_threads` int(11) DEFAULT '0',
- `forum_posts` int(11) DEFAULT '0',
- `forum_last_post` int(11) DEFAULT '0',
- `forum_category` int(11) DEFAULT NULL,
- `allow_anonymous` int(11) DEFAULT NULL,
- `allow_edit` int(11) DEFAULT NULL,
- `approval_direct_post` varchar(20) DEFAULT NULL,
- `allow_attachments` int(11) DEFAULT NULL,
- `allow_new_threads` int(11) DEFAULT NULL,
- `default_view` varchar(20) DEFAULT NULL,
- `forum_of_group` varchar(20) DEFAULT NULL,
- `forum_group_public_private` varchar(20) DEFAULT 'public',
- `forum_order` int(11) DEFAULT NULL,
- `locked` int(11) NOT NULL DEFAULT '0',
- `session_id` int(11) NOT NULL DEFAULT '0',
- `forum_image` varchar(255) NOT NULL DEFAULT '',
- `start_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `end_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`forum_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_mailcue`
---
-
-DROP TABLE IF EXISTS `forum_mailcue`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_mailcue` (
- `thread_id` int(11) DEFAULT NULL,
- `user_id` int(11) DEFAULT NULL,
- `post_id` int(11) DEFAULT NULL
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_notification`
---
-
-DROP TABLE IF EXISTS `forum_notification`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_notification` (
- `user_id` int(11) DEFAULT NULL,
- `forum_id` int(11) DEFAULT NULL,
- `thread_id` int(11) DEFAULT NULL,
- `post_id` int(11) DEFAULT NULL,
- KEY `user_id` (`user_id`),
- KEY `forum_id` (`forum_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_post`
---
-
-DROP TABLE IF EXISTS `forum_post`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_post` (
- `post_id` int(11) NOT NULL AUTO_INCREMENT,
- `post_title` varchar(250) DEFAULT NULL,
- `post_text` text,
- `thread_id` int(11) DEFAULT '0',
- `forum_id` int(11) DEFAULT '0',
- `poster_id` int(11) DEFAULT '0',
- `poster_name` varchar(100) DEFAULT '',
- `post_date` datetime DEFAULT '0000-00-00 00:00:00',
- `post_notification` tinyint(4) DEFAULT '0',
- `post_parent_id` int(11) DEFAULT '0',
- `visible` tinyint(4) DEFAULT '1',
- PRIMARY KEY (`post_id`),
- KEY `poster_id` (`poster_id`),
- KEY `forum_id` (`forum_id`),
- KEY `idx_forum_post_thread_id` (`thread_id`),
- KEY `idx_forum_post_visible` (`visible`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_thread`
---
-
-DROP TABLE IF EXISTS `forum_thread`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_thread` (
- `thread_id` int(11) NOT NULL AUTO_INCREMENT,
- `thread_title` varchar(255) DEFAULT NULL,
- `forum_id` int(11) DEFAULT NULL,
- `thread_replies` int(11) DEFAULT '0',
- `thread_poster_id` int(11) DEFAULT NULL,
- `thread_poster_name` varchar(100) DEFAULT '',
- `thread_views` int(11) DEFAULT '0',
- `thread_last_post` int(11) DEFAULT NULL,
- `thread_date` datetime DEFAULT '0000-00-00 00:00:00',
- `thread_sticky` tinyint(3) unsigned DEFAULT '0',
- `locked` int(11) NOT NULL DEFAULT '0',
- `session_id` int(10) unsigned DEFAULT NULL,
- `thread_title_qualify` varchar(255) DEFAULT '',
- `thread_qualify_max` float(6,2) unsigned NOT NULL DEFAULT '0.00',
- `thread_close_date` datetime DEFAULT '0000-00-00 00:00:00',
- `thread_weight` float(6,2) unsigned NOT NULL DEFAULT '0.00',
- PRIMARY KEY (`thread_id`),
- KEY `idx_forum_thread_forum_id` (`forum_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_thread_qualify`
---
-
-DROP TABLE IF EXISTS `forum_thread_qualify`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_thread_qualify` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `user_id` int(10) unsigned NOT NULL,
- `thread_id` int(11) NOT NULL,
- `qualify` float(6,2) NOT NULL DEFAULT '0.00',
- `qualify_user_id` int(11) DEFAULT NULL,
- `qualify_time` datetime DEFAULT '0000-00-00 00:00:00',
- `session_id` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `user_id` (`user_id`,`thread_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `forum_thread_qualify_log`
---
-
-DROP TABLE IF EXISTS `forum_thread_qualify_log`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `forum_thread_qualify_log` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `user_id` int(10) unsigned NOT NULL,
- `thread_id` int(11) NOT NULL,
- `qualify` float(6,2) NOT NULL DEFAULT '0.00',
- `qualify_user_id` int(11) DEFAULT NULL,
- `qualify_time` datetime DEFAULT '0000-00-00 00:00:00',
- `session_id` int(11) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `user_id` (`user_id`,`thread_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `glossary`
---
-
-DROP TABLE IF EXISTS `glossary`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `glossary` (
- `glossary_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `name` varchar(255) NOT NULL,
- `description` text NOT NULL,
- `display_order` int(11) DEFAULT NULL,
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`glossary_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `group_category`
---
-
-DROP TABLE IF EXISTS `group_category`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `group_category` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `title` varchar(255) NOT NULL DEFAULT '',
- `description` text NOT NULL,
- `doc_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `calendar_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `work_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `announcements_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `forum_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `wiki_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `chat_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `max_student` smallint(5) unsigned NOT NULL DEFAULT '8',
- `self_reg_allowed` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `self_unreg_allowed` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `groups_per_user` smallint(5) unsigned NOT NULL DEFAULT '0',
- `display_order` smallint(5) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `group_info`
---
-
-DROP TABLE IF EXISTS `group_info`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `group_info` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `name` varchar(100) DEFAULT NULL,
- `category_id` int(10) unsigned NOT NULL DEFAULT '0',
- `description` text,
- `max_student` smallint(5) unsigned NOT NULL DEFAULT '8',
- `doc_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `calendar_state` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `work_state` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `announcements_state` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `forum_state` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `wiki_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `chat_state` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `secret_directory` varchar(255) DEFAULT NULL,
- `self_registration_allowed` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `self_unregistration_allowed` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `session_id` smallint(5) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `group_rel_tutor`
---
-
-DROP TABLE IF EXISTS `group_rel_tutor`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `group_rel_tutor` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `user_id` int(11) NOT NULL,
- `group_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `group_rel_user`
---
-
-DROP TABLE IF EXISTS `group_rel_user`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `group_rel_user` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `user_id` int(10) unsigned NOT NULL,
- `group_id` int(10) unsigned NOT NULL DEFAULT '0',
- `status` int(11) NOT NULL DEFAULT '0',
- `role` char(50) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `item_property`
---
-
-DROP TABLE IF EXISTS `item_property`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `item_property` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `tool` varchar(100) NOT NULL DEFAULT '',
- `insert_user_id` int(10) unsigned NOT NULL DEFAULT '0',
- `insert_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `lastedit_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `ref` int(11) NOT NULL DEFAULT '0',
- `lastedit_type` varchar(100) NOT NULL DEFAULT '',
- `lastedit_user_id` int(10) unsigned NOT NULL DEFAULT '0',
- `to_group_id` int(10) unsigned DEFAULT NULL,
- `to_user_id` int(10) unsigned DEFAULT NULL,
- `visibility` tinyint(4) NOT NULL DEFAULT '1',
- `start_visible` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `end_visible` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `id_session` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `idx_item_property_toolref` (`tool`,`ref`)
-) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `link`
---
-
-DROP TABLE IF EXISTS `link`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `link` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `url` text NOT NULL,
- `title` varchar(150) DEFAULT NULL,
- `description` text,
- `category_id` smallint(5) unsigned DEFAULT NULL,
- `display_order` smallint(5) unsigned NOT NULL DEFAULT '0',
- `on_homepage` enum('0','1') NOT NULL DEFAULT '0',
- `target` char(10) DEFAULT '_self',
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `link_category`
---
-
-DROP TABLE IF EXISTS `link_category`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `link_category` (
- `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
- `category_title` varchar(255) NOT NULL,
- `description` text,
- `display_order` mediumint(8) unsigned NOT NULL DEFAULT '0',
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `lp`
---
-
-DROP TABLE IF EXISTS `lp`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `lp` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `lp_type` smallint(5) unsigned NOT NULL,
- `name` varchar(255) NOT NULL,
- `ref` tinytext,
- `description` text,
- `path` text NOT NULL,
- `force_commit` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `default_view_mod` char(32) NOT NULL DEFAULT 'embedded',
- `default_encoding` char(32) NOT NULL DEFAULT 'UTF-8',
- `display_order` int(10) unsigned NOT NULL DEFAULT '0',
- `content_maker` tinytext NOT NULL,
- `content_local` varchar(32) NOT NULL DEFAULT 'local',
- `content_license` text NOT NULL,
- `prevent_reinit` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `js_lib` tinytext NOT NULL,
- `debug` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `theme` varchar(255) NOT NULL DEFAULT '',
- `preview_image` varchar(255) NOT NULL DEFAULT '',
- `author` varchar(255) NOT NULL DEFAULT '',
- `session_id` int(10) unsigned NOT NULL DEFAULT '0',
- `prerequisite` int(10) unsigned NOT NULL DEFAULT '0',
- `use_max_score` int(10) unsigned NOT NULL DEFAULT '1',
- `autolunch` int(10) unsigned NOT NULL DEFAULT '0',
- `created_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `modified_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `publicated_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `expired_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `lp_item`
---
-
-DROP TABLE IF EXISTS `lp_item`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `lp_item` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `lp_id` int(10) unsigned NOT NULL,
- `item_type` char(32) NOT NULL DEFAULT 'dokeos_document',
- `ref` tinytext NOT NULL,
- `title` varchar(511) NOT NULL,
- `description` varchar(511) NOT NULL DEFAULT '',
- `path` text NOT NULL,
- `min_score` float unsigned NOT NULL DEFAULT '0',
- `max_score` float unsigned DEFAULT '100',
- `mastery_score` float unsigned DEFAULT NULL,
- `parent_item_id` int(10) unsigned NOT NULL DEFAULT '0',
- `previous_item_id` int(10) unsigned NOT NULL DEFAULT '0',
- `next_item_id` int(10) unsigned NOT NULL DEFAULT '0',
- `display_order` int(10) unsigned NOT NULL DEFAULT '0',
- `prerequisite` text,
- `parameters` text,
- `launch_data` text NOT NULL,
- `max_time_allowed` char(13) DEFAULT '',
- `terms` text,
- `search_did` int(11) DEFAULT NULL,
- `audio` varchar(250) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `lp_id` (`lp_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `lp_item_view`
---
-
-DROP TABLE IF EXISTS `lp_item_view`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `lp_item_view` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `lp_item_id` int(10) unsigned NOT NULL,
- `lp_view_id` int(10) unsigned NOT NULL,
- `view_count` int(10) unsigned NOT NULL DEFAULT '0',
- `start_time` int(10) unsigned NOT NULL,
- `total_time` int(10) unsigned NOT NULL DEFAULT '0',
- `score` float unsigned NOT NULL DEFAULT '0',
- `status` char(32) NOT NULL DEFAULT 'not attempted',
- `suspend_data` text,
- `lesson_location` text,
- `core_exit` varchar(32) NOT NULL DEFAULT 'none',
- `max_score` varchar(8) DEFAULT '',
- PRIMARY KEY (`id`),
- KEY `lp_item_id` (`lp_item_id`),
- KEY `lp_view_id` (`lp_view_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `lp_iv_interaction`
---
-
-DROP TABLE IF EXISTS `lp_iv_interaction`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `lp_iv_interaction` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `order_id` smallint(5) unsigned NOT NULL DEFAULT '0',
- `lp_iv_id` bigint(20) unsigned NOT NULL,
- `interaction_id` varchar(255) NOT NULL DEFAULT '',
- `interaction_type` varchar(255) NOT NULL DEFAULT '',
- `weighting` double NOT NULL DEFAULT '0',
- `completion_time` varchar(16) NOT NULL DEFAULT '',
- `correct_responses` text NOT NULL,
- `student_response` text NOT NULL,
- `result` varchar(255) NOT NULL DEFAULT '',
- `latency` varchar(16) NOT NULL DEFAULT '',
- PRIMARY KEY (`id`),
- KEY `lp_iv_id` (`lp_iv_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `lp_iv_objective`
---
-
-DROP TABLE IF EXISTS `lp_iv_objective`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `lp_iv_objective` (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- `lp_iv_id` bigint(20) unsigned NOT NULL,
- `order_id` smallint(5) unsigned NOT NULL DEFAULT '0',
- `objective_id` varchar(255) NOT NULL DEFAULT '',
- `score_raw` float unsigned NOT NULL DEFAULT '0',
- `score_max` float unsigned NOT NULL DEFAULT '0',
- `score_min` float unsigned NOT NULL DEFAULT '0',
- `status` char(32) NOT NULL DEFAULT 'not attempted',
- PRIMARY KEY (`id`),
- KEY `lp_iv_id` (`lp_iv_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `lp_view`
---
-
-DROP TABLE IF EXISTS `lp_view`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `lp_view` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `lp_id` int(10) unsigned NOT NULL,
- `user_id` int(10) unsigned NOT NULL,
- `view_count` smallint(5) unsigned NOT NULL DEFAULT '0',
- `last_item` int(10) unsigned NOT NULL DEFAULT '0',
- `progress` int(10) unsigned DEFAULT '0',
- `session_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `lp_id` (`lp_id`),
- KEY `user_id` (`user_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `notebook`
---
-
-DROP TABLE IF EXISTS `notebook`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `notebook` (
- `notebook_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `user_id` int(10) unsigned NOT NULL,
- `course` varchar(40) NOT NULL,
- `session_id` int(11) NOT NULL DEFAULT '0',
- `title` varchar(255) NOT NULL,
- `description` text NOT NULL,
- `creation_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `update_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `status` int(11) DEFAULT NULL,
- PRIMARY KEY (`notebook_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `online_connected`
---
-
-DROP TABLE IF EXISTS `online_connected`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `online_connected` (
- `user_id` int(10) unsigned NOT NULL,
- `last_connection` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `online_link`
---
-
-DROP TABLE IF EXISTS `online_link`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `online_link` (
- `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
- `name` char(50) NOT NULL DEFAULT '',
- `url` char(100) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `permission_group`
---
-
-DROP TABLE IF EXISTS `permission_group`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `permission_group` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `group_id` int(11) NOT NULL DEFAULT '0',
- `tool` varchar(250) NOT NULL DEFAULT '',
- `action` varchar(250) NOT NULL DEFAULT '',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `permission_task`
---
-
-DROP TABLE IF EXISTS `permission_task`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `permission_task` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `task_id` int(11) NOT NULL DEFAULT '0',
- `tool` varchar(250) NOT NULL DEFAULT '',
- `action` varchar(250) NOT NULL DEFAULT '',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `permission_user`
---
-
-DROP TABLE IF EXISTS `permission_user`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `permission_user` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `user_id` int(11) NOT NULL DEFAULT '0',
- `tool` varchar(250) NOT NULL DEFAULT '',
- `action` varchar(250) NOT NULL DEFAULT '',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `quiz`
---
-
-DROP TABLE IF EXISTS `quiz`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `quiz` (
- `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
- `title` varchar(255) NOT NULL,
- `description` text,
- `sound` varchar(255) DEFAULT NULL,
- `type` tinyint(3) unsigned NOT NULL DEFAULT '1',
- `random` smallint(6) NOT NULL DEFAULT '0',
- `random_answers` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `active` tinyint(4) NOT NULL DEFAULT '0',
- `results_disabled` tinyint(3) unsigned NOT NULL DEFAULT '0',
- `access_condition` text,
- `max_attempt` int(11) NOT NULL DEFAULT '0',
- `start_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `end_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `feedback_type` int(11) NOT NULL DEFAULT '0',
- `expired_time` int(11) NOT NULL DEFAULT '0',
- `session_id` smallint(6) DEFAULT '0',
- `propagate_neg` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `quiz_answer`
---
-
-DROP TABLE IF EXISTS `quiz_answer`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `quiz_answer` (
- `id` mediumint(8) unsigned NOT NULL,
- `question_id` mediumint(8) unsigned NOT NULL,
- `answer` text NOT NULL,
- `correct` mediumint(8) unsigned DEFAULT NULL,
- `comment` text,
- `ponderation` float(6,2) NOT NULL DEFAULT '0.00',
- `position` mediumint(8) unsigned NOT NULL DEFAULT '1',
- `hotspot_coordinates` text,
- `hotspot_type` enum('square','circle','poly','delineation','oar') DEFAULT NULL,
- `destination` text NOT NULL,
- `id_auto` int(11) NOT NULL AUTO_INCREMENT,
- PRIMARY KEY (`id`,`question_id`),
- UNIQUE KEY `id_auto` (`id_auto`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `quiz_question`
---
-
-DROP TABLE IF EXISTS `quiz_question`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `quiz_question` (
- `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
- `question` text NOT NULL,
- `description` text,
- `ponderation` float(6,2) NOT NULL DEFAULT '0.00',
- `position` mediumint(8) unsigned NOT NULL DEFAULT '1',
- `type` tinyint(3) unsigned NOT NULL DEFAULT '2',
- `picture` varchar(50) DEFAULT NULL,
- `level` int(10) unsigned NOT NULL DEFAULT '0',
- `extra` varchar(255) DEFAULT NULL,
- PRIMARY KEY (`id`),
- KEY `position` (`position`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `quiz_question_option`
---
-
-DROP TABLE IF EXISTS `quiz_question_option`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `quiz_question_option` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `question_id` int(11) NOT NULL,
- `name` varchar(255) DEFAULT NULL,
- `position` int(10) unsigned NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `quiz_rel_question`
---
-
-DROP TABLE IF EXISTS `quiz_rel_question`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `quiz_rel_question` (
- `question_id` mediumint(8) unsigned NOT NULL,
- `exercice_id` mediumint(8) unsigned NOT NULL,
- `question_order` mediumint(8) unsigned NOT NULL DEFAULT '1',
- PRIMARY KEY (`question_id`,`exercice_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `resource`
---
-
-DROP TABLE IF EXISTS `resource`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `resource` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `source_type` varchar(50) DEFAULT NULL,
- `source_id` int(10) unsigned DEFAULT NULL,
- `resource_type` varchar(50) DEFAULT NULL,
- `resource_id` int(10) unsigned DEFAULT NULL,
- UNIQUE KEY `id` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `role`
---
-
-DROP TABLE IF EXISTS `role`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `role` (
- `role_id` int(11) NOT NULL AUTO_INCREMENT,
- `role_name` varchar(250) NOT NULL DEFAULT '',
- `role_comment` text,
- `default_role` tinyint(4) DEFAULT '0',
- PRIMARY KEY (`role_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `role_group`
---
-
-DROP TABLE IF EXISTS `role_group`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `role_group` (
- `role_id` int(11) NOT NULL DEFAULT '0',
- `scope` varchar(20) NOT NULL DEFAULT 'course',
- `group_id` int(11) NOT NULL DEFAULT '0'
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `role_permissions`
---
-
-DROP TABLE IF EXISTS `role_permissions`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `role_permissions` (
- `role_id` int(11) NOT NULL DEFAULT '0',
- `tool` varchar(250) NOT NULL DEFAULT '',
- `action` varchar(50) NOT NULL DEFAULT '',
- `default_perm` tinyint(4) NOT NULL DEFAULT '0'
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `role_user`
---
-
-DROP TABLE IF EXISTS `role_user`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `role_user` (
- `role_id` int(11) NOT NULL DEFAULT '0',
- `scope` varchar(20) NOT NULL DEFAULT 'course',
- `user_id` int(11) NOT NULL DEFAULT '0'
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `student_publication`
---
-
-DROP TABLE IF EXISTS `student_publication`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `student_publication` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `url` varchar(255) DEFAULT NULL,
- `title` varchar(255) DEFAULT NULL,
- `description` text,
- `author` varchar(255) DEFAULT NULL,
- `active` tinyint(4) DEFAULT NULL,
- `accepted` tinyint(4) DEFAULT '0',
- `post_group_id` int(11) NOT NULL DEFAULT '0',
- `sent_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `filetype` set('file','folder') NOT NULL DEFAULT 'file',
- `has_properties` int(10) unsigned NOT NULL DEFAULT '0',
- `view_properties` tinyint(4) DEFAULT NULL,
- `qualification` float(6,2) unsigned NOT NULL DEFAULT '0.00',
- `date_of_qualification` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `parent_id` int(10) unsigned NOT NULL DEFAULT '0',
- `qualificator_id` int(10) unsigned NOT NULL DEFAULT '0',
- `weight` float(6,2) unsigned NOT NULL DEFAULT '0.00',
- `session_id` int(10) unsigned NOT NULL DEFAULT '0',
- `user_id` int(11) NOT NULL,
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `student_publication_assignment`
---
-
-DROP TABLE IF EXISTS `student_publication_assignment`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `student_publication_assignment` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `expires_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `ends_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `add_to_calendar` tinyint(4) NOT NULL,
- `enable_qualification` tinyint(4) NOT NULL,
- `publication_id` int(11) NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `survey`
---
-
-DROP TABLE IF EXISTS `survey`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `survey` (
- `survey_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `code` varchar(20) DEFAULT NULL,
- `title` text,
- `subtitle` text,
- `author` varchar(20) DEFAULT NULL,
- `lang` varchar(20) DEFAULT NULL,
- `avail_from` date DEFAULT NULL,
- `avail_till` date DEFAULT NULL,
- `is_shared` char(1) DEFAULT '1',
- `template` varchar(20) DEFAULT NULL,
- `intro` text,
- `surveythanks` text,
- `creation_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `invited` int(11) NOT NULL,
- `answered` int(11) NOT NULL,
- `invite_mail` text NOT NULL,
- `reminder_mail` text NOT NULL,
- `mail_subject` varchar(255) NOT NULL,
- `anonymous` enum('0','1') NOT NULL DEFAULT '0',
- `access_condition` text,
- `shuffle` tinyint(1) NOT NULL DEFAULT '0',
- `one_question_per_page` tinyint(1) NOT NULL DEFAULT '0',
- `survey_version` varchar(255) NOT NULL DEFAULT '',
- `parent_id` int(10) unsigned NOT NULL,
- `survey_type` int(11) NOT NULL DEFAULT '0',
- `show_form_profile` int(11) NOT NULL DEFAULT '0',
- `form_fields` text NOT NULL,
- `session_id` smallint(5) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`survey_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `survey_answer`
---
-
-DROP TABLE IF EXISTS `survey_answer`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `survey_answer` (
- `answer_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `survey_id` int(10) unsigned NOT NULL,
- `question_id` int(10) unsigned NOT NULL,
- `option_id` text NOT NULL,
- `value` int(10) unsigned NOT NULL,
- `user` varchar(250) NOT NULL,
- PRIMARY KEY (`answer_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `survey_group`
---
-
-DROP TABLE IF EXISTS `survey_group`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `survey_group` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `name` varchar(20) NOT NULL,
- `description` varchar(255) NOT NULL,
- `survey_id` int(10) unsigned NOT NULL,
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `survey_invitation`
---
-
-DROP TABLE IF EXISTS `survey_invitation`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `survey_invitation` (
- `survey_invitation_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `survey_code` varchar(20) NOT NULL,
- `user` varchar(250) NOT NULL,
- `invitation_code` varchar(250) NOT NULL,
- `invitation_date` datetime NOT NULL,
- `reminder_date` datetime NOT NULL,
- `answered` int(11) NOT NULL DEFAULT '0',
- `session_id` smallint(5) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`survey_invitation_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `survey_question`
---
-
-DROP TABLE IF EXISTS `survey_question`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `survey_question` (
- `question_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `survey_id` int(10) unsigned NOT NULL,
- `survey_question` text NOT NULL,
- `survey_question_comment` text NOT NULL,
- `type` varchar(250) NOT NULL,
- `display` varchar(10) NOT NULL,
- `sort` int(11) NOT NULL,
- `shared_question_id` int(11) DEFAULT NULL,
- `max_value` int(11) DEFAULT NULL,
- `survey_group_pri` int(10) unsigned NOT NULL DEFAULT '0',
- `survey_group_sec1` int(10) unsigned NOT NULL DEFAULT '0',
- `survey_group_sec2` int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`question_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `survey_question_option`
---
-
-DROP TABLE IF EXISTS `survey_question_option`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `survey_question_option` (
- `question_option_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `question_id` int(10) unsigned NOT NULL,
- `survey_id` int(10) unsigned NOT NULL,
- `option_text` text NOT NULL,
- `sort` int(11) NOT NULL,
- `value` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`question_option_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `thematic`
---
-
-DROP TABLE IF EXISTS `thematic`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `thematic` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `title` varchar(255) NOT NULL,
- `content` text,
- `display_order` int(10) unsigned NOT NULL DEFAULT '0',
- `active` tinyint(4) NOT NULL DEFAULT '0',
- `session_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `active` (`active`,`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `thematic_advance`
---
-
-DROP TABLE IF EXISTS `thematic_advance`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `thematic_advance` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `thematic_id` int(11) NOT NULL,
- `attendance_id` int(11) NOT NULL DEFAULT '0',
- `content` text,
- `start_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `duration` int(11) NOT NULL DEFAULT '0',
- `done_advance` tinyint(4) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `thematic_id` (`thematic_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `thematic_plan`
---
-
-DROP TABLE IF EXISTS `thematic_plan`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `thematic_plan` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `thematic_id` int(11) NOT NULL,
- `title` varchar(255) NOT NULL,
- `description` text,
- `description_type` int(11) NOT NULL,
- PRIMARY KEY (`id`),
- KEY `thematic_id` (`thematic_id`,`description_type`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `tool`
---
-
-DROP TABLE IF EXISTS `tool`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `tool` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `name` varchar(255) NOT NULL,
- `link` varchar(255) NOT NULL,
- `image` varchar(255) DEFAULT NULL,
- `visibility` tinyint(3) unsigned DEFAULT '0',
- `admin` varchar(255) DEFAULT NULL,
- `address` varchar(255) DEFAULT NULL,
- `added_tool` tinyint(3) unsigned DEFAULT '1',
- `target` enum('_self','_blank') NOT NULL DEFAULT '_self',
- `category` varchar(20) NOT NULL DEFAULT 'authoring',
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `tool_intro`
---
-
-DROP TABLE IF EXISTS `tool_intro`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `tool_intro` (
- `id` varchar(50) NOT NULL,
- `intro_text` text NOT NULL,
- `session_id` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`,`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `userinfo_content`
---
-
-DROP TABLE IF EXISTS `userinfo_content`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `userinfo_content` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `user_id` int(10) unsigned NOT NULL,
- `definition_id` int(10) unsigned NOT NULL,
- `editor_ip` varchar(39) DEFAULT NULL,
- `edition_time` datetime DEFAULT NULL,
- `content` text NOT NULL,
- PRIMARY KEY (`id`),
- KEY `user_id` (`user_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `userinfo_def`
---
-
-DROP TABLE IF EXISTS `userinfo_def`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `userinfo_def` (
- `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `title` varchar(80) NOT NULL DEFAULT '',
- `comment` text,
- `line_count` tinyint(3) unsigned NOT NULL DEFAULT '5',
- `rank` tinyint(3) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `wiki`
---
-
-DROP TABLE IF EXISTS `wiki`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `wiki` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `page_id` int(11) NOT NULL DEFAULT '0',
- `reflink` varchar(255) NOT NULL DEFAULT 'index',
- `title` varchar(255) NOT NULL,
- `content` mediumtext NOT NULL,
- `user_id` int(11) NOT NULL DEFAULT '0',
- `group_id` int(11) DEFAULT NULL,
- `dtime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `addlock` int(11) NOT NULL DEFAULT '1',
- `editlock` int(11) NOT NULL DEFAULT '0',
- `visibility` int(11) NOT NULL DEFAULT '1',
- `addlock_disc` int(11) NOT NULL DEFAULT '1',
- `visibility_disc` int(11) NOT NULL DEFAULT '1',
- `ratinglock_disc` int(11) NOT NULL DEFAULT '1',
- `assignment` int(11) NOT NULL DEFAULT '0',
- `comment` text NOT NULL,
- `progress` text NOT NULL,
- `score` int(11) DEFAULT '0',
- `version` int(11) DEFAULT NULL,
- `is_editing` int(11) NOT NULL DEFAULT '0',
- `time_edit` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `hits` int(11) DEFAULT '0',
- `linksto` text NOT NULL,
- `tag` text NOT NULL,
- `user_ip` varchar(39) NOT NULL,
- `session_id` smallint(6) DEFAULT '0',
- PRIMARY KEY (`id`),
- KEY `reflink` (`reflink`),
- KEY `group_id` (`group_id`),
- KEY `page_id` (`page_id`),
- KEY `session_id` (`session_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `wiki_conf`
---
-
-DROP TABLE IF EXISTS `wiki_conf`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `wiki_conf` (
- `page_id` int(11) NOT NULL DEFAULT '0',
- `task` text NOT NULL,
- `feedback1` text NOT NULL,
- `feedback2` text NOT NULL,
- `feedback3` text NOT NULL,
- `fprogress1` varchar(3) NOT NULL,
- `fprogress2` varchar(3) NOT NULL,
- `fprogress3` varchar(3) NOT NULL,
- `max_size` int(11) DEFAULT NULL,
- `max_text` int(11) DEFAULT NULL,
- `max_version` int(11) DEFAULT NULL,
- `startdate_assig` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `enddate_assig` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `delayedsubmit` int(11) NOT NULL DEFAULT '0',
- KEY `page_id` (`page_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `wiki_discuss`
---
-
-DROP TABLE IF EXISTS `wiki_discuss`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `wiki_discuss` (
- `id` int(11) NOT NULL AUTO_INCREMENT,
- `publication_id` int(11) NOT NULL DEFAULT '0',
- `userc_id` int(11) NOT NULL DEFAULT '0',
- `comment` text NOT NULL,
- `p_score` varchar(255) DEFAULT NULL,
- `dtime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `wiki_mailcue`
---
-
-DROP TABLE IF EXISTS `wiki_mailcue`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `wiki_mailcue` (
- `id` int(11) NOT NULL,
- `user_id` int(11) NOT NULL,
- `type` text NOT NULL,
- `group_id` int(11) DEFAULT NULL,
- `session_id` smallint(6) DEFAULT '0',
- KEY `id` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
--- Dump completed on 2013-03-27 11:48:31
diff --git a/main/install/1.8.8/db_main.sql b/main/install/1.8.8/db_main.sql
deleted file mode 100755
index 156361b48b..0000000000
--- a/main/install/1.8.8/db_main.sql
+++ /dev/null
@@ -1,2648 +0,0 @@
--- MySQL dump 10.9
---
--- Host: localhost Database: chamilo_main
--- ------------------------------------------------------
--- Server version 4.1.14
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
-
---
--- Table structure for table user
---
-
-DROP TABLE IF EXISTS user;
-CREATE TABLE user (
- user_id int unsigned NOT NULL auto_increment,
- lastname varchar(60) default NULL,
- firstname varchar(60) default NULL,
- username varchar(40) NOT NULL default '',
- password varchar(50) NOT NULL default '',
- auth_source varchar(50) default 'platform',
- email varchar(100) default NULL,
- status tinyint NOT NULL default '5',
- official_code varchar(40) default NULL,
- phone varchar(30) default NULL,
- picture_uri varchar(250) default NULL,
- creator_id int unsigned default NULL,
- competences text,
- diplomas text,
- openarea text,
- teach text,
- productions varchar(250) default NULL,
- chatcall_user_id int unsigned NOT NULL default '0',
- chatcall_date datetime NOT NULL default '0000-00-00 00:00:00',
- chatcall_text varchar(50) NOT NULL default '',
- language varchar(40) default NULL,
- registration_date datetime NOT NULL default '0000-00-00 00:00:00',
- expiration_date datetime NOT NULL default '0000-00-00 00:00:00',
- active tinyint unsigned NOT NULL default 1,
- openid varchar(255) DEFAULT NULL,
- theme varchar(255) DEFAULT NULL,
- hr_dept_id smallint unsigned NOT NULL default 0,
- PRIMARY KEY (user_id),
- UNIQUE KEY username (username)
-);
-ALTER TABLE user ADD INDEX (status);
-
---
--- Dumping data for table user
---
-
-/*!40000 ALTER TABLE user DISABLE KEYS */;
-LOCK TABLES user WRITE;
-INSERT INTO user (lastname, firstname, username, password, auth_source, email, status, official_code,phone, creator_id, registration_date, expiration_date,active,openid,language) VALUES ('{ADMINLASTNAME}','{ADMINFIRSTNAME}','{ADMINLOGIN}','{ADMINPASSWORD}','{PLATFORM_AUTH_SOURCE}','{ADMINEMAIL}',1,'ADMIN','{ADMINPHONE}',1,NOW(),'0000-00-00 00:00:00','1',NULL,'{ADMINLANGUAGE}');
--- Insert anonymous user
-INSERT INTO user (lastname, firstname, username, password, auth_source, email, status, official_code, creator_id, registration_date, expiration_date,active,openid,language) VALUES ('Anonymous', 'Joe', '', '', 'platform', 'anonymous@localhost', 6, 'anonymous', 1, NOW(), '0000-00-00 00:00:00', 1,NULL,'{ADMINLANGUAGE}');
-UNLOCK TABLES;
-/*!40000 ALTER TABLE user ENABLE KEYS */;
-
---
--- Table structure for table admin
---
-
-DROP TABLE IF EXISTS admin;
-CREATE TABLE admin (
- user_id int unsigned NOT NULL default '0',
- UNIQUE KEY user_id (user_id)
-);
-
---
--- Dumping data for table admin
---
-
-
-/*!40000 ALTER TABLE admin DISABLE KEYS */;
-LOCK TABLES admin WRITE;
-INSERT INTO admin VALUES (1);
-UNLOCK TABLES;
-/*!40000 ALTER TABLE admin ENABLE KEYS */;
-
---
--- Table structure for table class
---
-
-DROP TABLE IF EXISTS class;
-CREATE TABLE class (
- id mediumint unsigned NOT NULL auto_increment,
- code varchar(40) default '',
- name text NOT NULL,
- PRIMARY KEY (id)
-);
-
---
--- Dumping data for table class
---
-
-
-/*!40000 ALTER TABLE class DISABLE KEYS */;
-LOCK TABLES class WRITE;
-UNLOCK TABLES;
-/*!40000 ALTER TABLE class ENABLE KEYS */;
-
---
--- Table structure for table class_user
---
-
-DROP TABLE IF EXISTS class_user;
-CREATE TABLE class_user (
- class_id mediumint unsigned NOT NULL default '0',
- user_id int unsigned NOT NULL default '0',
- PRIMARY KEY (class_id,user_id)
-);
-
---
--- Dumping data for table class_user
---
-
-
-/*!40000 ALTER TABLE class_user DISABLE KEYS */;
-LOCK TABLES class_user WRITE;
-UNLOCK TABLES;
-/*!40000 ALTER TABLE class_user ENABLE KEYS */;
-
---
--- Table structure for table course
---
-
-DROP TABLE IF EXISTS course;
-CREATE TABLE course (
- id int auto_increment,
- code varchar(40) NOT NULL,
- directory varchar(40) default NULL,
- db_name varchar(40) default NULL,
- course_language varchar(20) default NULL,
- title varchar(250) default NULL,
- description text,
- category_code varchar(40) default NULL,
- visibility tinyint default '0',
- show_score int NOT NULL default '1',
- tutor_name varchar(200) default NULL,
- visual_code varchar(40) default NULL,
- department_name varchar(30) default NULL,
- department_url varchar(180) default NULL,
- disk_quota int unsigned default NULL,
- last_visit datetime default NULL,
- last_edit datetime default NULL,
- creation_date datetime default NULL,
- expiration_date datetime default NULL,
- target_course_code varchar(40) default NULL,
- subscribe tinyint NOT NULL default '1',
- unsubscribe tinyint NOT NULL default '1',
- registration_code varchar(255) NOT NULL default '',
- PRIMARY KEY (id),
- UNIQUE KEY code (code)
-);
-ALTER TABLE course ADD INDEX idx_course_category_code (category_code);
-ALTER TABLE course ADD INDEX idx_course_directory (directory(10));
---
--- Dumping data for table course
---
-
-
-/*!40000 ALTER TABLE course DISABLE KEYS */;
-LOCK TABLES course WRITE;
-UNLOCK TABLES;
-/*!40000 ALTER TABLE course ENABLE KEYS */;
-
---
--- Table structure for table course_category
---
-
-DROP TABLE IF EXISTS course_category;
-CREATE TABLE course_category (
- id int unsigned NOT NULL auto_increment,
- name varchar(100) NOT NULL default '',
- code varchar(40) NOT NULL default '',
- parent_id varchar(40) default NULL,
- tree_pos int unsigned default NULL,
- children_count smallint default NULL,
- auth_course_child enum('TRUE','FALSE') default 'TRUE',
- auth_cat_child enum('TRUE','FALSE') default 'TRUE',
- PRIMARY KEY (id),
- UNIQUE KEY code (code),
- KEY parent_id (parent_id),
- KEY tree_pos (tree_pos)
-);
-
---
--- Dumping data for table course_category
---
-
-
-/*!40000 ALTER TABLE course_category DISABLE KEYS */;
-LOCK TABLES course_category WRITE;
-INSERT INTO course_category VALUES (1,'Language skills','LANG',NULL,1,0,'TRUE','TRUE'),(2,'PC Skills','PC',NULL,2,0,'TRUE','TRUE'),(3,'Projects','PROJ',NULL,3,0,'TRUE','TRUE');
-UNLOCK TABLES;
-/*!40000 ALTER TABLE course_category ENABLE KEYS */;
-
---
--- Table structure for table course_field
---
-
-DROP TABLE IF EXISTS course_field;
-CREATE TABLE course_field (
- id int NOT NULL auto_increment,
- field_type int NOT NULL default 1,
- field_variable varchar(64) NOT NULL,
- field_display_text varchar(64),
- field_default_value text,
- field_order int,
- field_visible tinyint default 0,
- field_changeable tinyint default 0,
- field_filter tinyint default 0,
- tms DATETIME NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY(id)
-);
-
---
--- Table structure for table course_field_values
---
-
-DROP TABLE IF EXISTS course_field_values;
-CREATE TABLE course_field_values(
- id int NOT NULL auto_increment,
- course_code varchar(40) NOT NULL,
- field_id int NOT NULL,
- field_value text,
- tms DATETIME NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY(id)
-);
-
-
---
--- Table structure for table course_module
---
-
-DROP TABLE IF EXISTS course_module;
-CREATE TABLE course_module (
- id int unsigned NOT NULL auto_increment,
- name varchar(255) NOT NULL,
- link varchar(255) NOT NULL,
- image varchar(100) default NULL,
- `row` int unsigned NOT NULL default '0',
- `column` int unsigned NOT NULL default '0',
- position varchar(20) NOT NULL default 'basic',
- PRIMARY KEY (id)
-);
-
---
--- Dumping data for table course_module
---
-
-
-/*!40000 ALTER TABLE course_module DISABLE KEYS */;
-LOCK TABLES course_module WRITE;
-INSERT INTO course_module VALUES
-(1,'calendar_event','calendar/agenda.php','agenda.gif',1,1,'basic'),
-(2,'link','link/link.php','links.gif',4,1,'basic'),
-(3,'document','document/document.php','documents.gif',3,1,'basic'),
-(4,'student_publication','work/work.php','works.gif',3,2,'basic'),
-(5,'announcement','announcements/announcements.php','valves.gif',2,1,'basic'),
-(6,'user','user/user.php','members.gif',2,3,'basic'),
-(7,'forum','forum/index.php','forum.gif',1,2,'basic'),
-(8,'quiz','exercice/exercice.php','quiz.gif',2,2,'basic'),
-(9,'group','group/group.php','group.gif',3,3,'basic'),
-(10,'course_description','course_description/','info.gif',1,3,'basic'),
-(11,'chat','chat/chat.php','chat.gif',0,0,'external'),
-(12,'dropbox','dropbox/index.php','dropbox.gif',4,2,'basic'),
-(13,'tracking','tracking/courseLog.php','statistics.gif',1,3,'courseadmin'),
-(14,'homepage_link','link/link.php?action=addlink','npage.gif',1,1,'courseadmin'),
-(15,'course_setting','course_info/infocours.php','reference.gif',1,1,'courseadmin'),
-(16,'External','','external.gif',0,0,'external'),
-(17,'AddedLearnpath','','scormbuilder.gif',0,0,'external'),
-(18,'conference','conference/index.php?type=conference','conf.gif',0,0,'external'),
-(19,'conference','conference/index.php?type=classroom','conf.gif',0,0,'external'),
-(20,'learnpath','newscorm/lp_controller.php','scorms.gif',5,1,'basic'),
-(21,'blog','blog/blog.php','blog.gif',1,2,'basic'),
-(22,'blog_management','blog/blog_admin.php','blog_admin.gif',1,2,'courseadmin'),
-(23,'course_maintenance','course_info/maintenance.php','backup.gif',2,3,'courseadmin'),
-(24,'survey','survey/survey_list.php','survey.gif',2,1,'basic'),
-(25,'wiki','wiki/index.php','wiki.gif',2,3,'basic'),
-(26,'gradebook','gradebook/index.php','gradebook.gif',2,2,'basic'),
-(27,'glossary','glossary/index.php','glossary.gif',2,1,'basic'),
-(28,'notebook','notebook/index.php','notebook.gif',2,1,'basic'),
-(29,'attendance','attendance/index.php','attendance.gif',2,1,'basic'),
-(30,'course_progress','course_progress/index.php','course_progress.gif',2,1,'basic');
-UNLOCK TABLES;
-/*!40000 ALTER TABLE course_module ENABLE KEYS */;
-
---
--- Table structure for table course_rel_class
---
-
-DROP TABLE IF EXISTS course_rel_class;
-CREATE TABLE course_rel_class (
- course_code char(40) NOT NULL,
- class_id mediumint unsigned NOT NULL,
- PRIMARY KEY (course_code,class_id)
-);
-
---
--- Dumping data for table course_rel_class
---
-
-
-/*!40000 ALTER TABLE course_rel_class DISABLE KEYS */;
-LOCK TABLES course_rel_class WRITE;
-UNLOCK TABLES;
-/*!40000 ALTER TABLE course_rel_class ENABLE KEYS */;
-
---
--- Table structure for table course_rel_user
---
-
-DROP TABLE IF EXISTS course_rel_user;
-CREATE TABLE course_rel_user (
- course_code varchar(40) NOT NULL,
- user_id int unsigned NOT NULL default '0',
- status tinyint NOT NULL default '5',
- role varchar(60) default NULL,
- group_id int NOT NULL default '0',
- tutor_id int unsigned NOT NULL default '0',
- sort int default NULL,
- user_course_cat int default '0',
- relation_type int default 0,
- PRIMARY KEY (course_code,user_id,relation_type)
-);
-ALTER TABLE course_rel_user ADD INDEX (user_id);
-
---
--- Dumping data for table course_rel_user
---
-
-
-/*!40000 ALTER TABLE course_rel_user DISABLE KEYS */;
-LOCK TABLES course_rel_user WRITE;
-UNLOCK TABLES;
-/*!40000 ALTER TABLE course_rel_user ENABLE KEYS */;
-
---
--- Table structure for table language
---
-
-DROP TABLE IF EXISTS language;
-CREATE TABLE language (
- id tinyint unsigned NOT NULL auto_increment,
- original_name varchar(255) default NULL,
- english_name varchar(255) default NULL,
- isocode varchar(10) default NULL,
- dokeos_folder varchar(250) default NULL,
- available tinyint NOT NULL default 1,
- parent_id tinyint unsigned,
- PRIMARY KEY (id)
-);
-ALTER TABLE language ADD INDEX idx_language_dokeos_folder(dokeos_folder);
-
---
--- Dumping data for table language
---
-
-
-/*!40000 ALTER TABLE language DISABLE KEYS */;
-LOCK TABLES language WRITE;
-INSERT INTO language (original_name, english_name, isocode, dokeos_folder, available) VALUES
-('العربية','arabic','ar','arabic',0),
-('Asturianu','asturian','ast','asturian',0),
-('Български','bulgarian','bg','bulgarian',1),
-('Bosanski','bosnian','bs','bosnian',1),
-('Català','catalan','ca','catalan',0),
-('中文(简体)','simpl_chinese','zh','simpl_chinese',0),
-('繁體中文','trad_chinese','zh-TW','trad_chinese',0),
-('Česky','czech','cs','czech',0),
-('Dansk','danish','da','danish',0),
-('دری','dari','prs','dari',0),
-('Deutsch','german','de','german',1),
-('Ελληνικά','greek','el','greek',0),
-('English','english','en','english',1),
-('Español','spanish','es','spanish',1),
-('Esperanto','esperanto','eo','esperanto',0),
-('Euskara','euskera','eu','euskera',0),
-('فارسی','persian','fa','persian',0),
-('Français','french','fr','french',1),
-('Furlan','friulian','fur','friulian',0),
-('Galego','galician','gl','galician',0),
-('ქართული','georgian','ka','georgian',0),
-('Hrvatski','croatian','hr','croatian',0),
-('עברית','hebrew','he','hebrew',0),
-('हिन्दी','hindi','hi','hindi',0),
-('Bahasa Indonesia','indonesian','id','indonesian',1),
-('Italiano','italian','it','italian',1),
-('한국어','korean','ko','korean',0),
-('Latviešu','latvian','lv','latvian',0),
-('Lietuvių','lithuanian','lt','lithuanian',0),
-('Македонски','macedonian','mk','macedonian',0),
-('Magyar','hungarian','hu','hungarian',1),
-('Bahasa Melayu','malay','ms','malay',0),
-('Nederlands','dutch','nl','dutch',1),
-('日本語','japanese','ja','japanese',0),
-('Norsk','norwegian','no','norwegian',0),
-('Occitan','occitan','oc','occitan',0),
-('پښتو','pashto','ps','pashto',0),
-('Polski','polish','pl','polish',0),
-('Português europeu','portuguese','pt','portuguese',1),
-('Português do Brasil','brazilian','pt-BR','brazilian',1),
-('Română','romanian','ro','romanian',0),
-('Runasimi','quechua_cusco','qu','quechua_cusco',0),
-('Русский','russian','ru','russian',0),
-('Slovenčina','slovak','sk','slovak',0),
-('Slovenščina','slovenian','sl','slovenian',1),
-('Srpski','serbian','sr','serbian',0),
-('Suomi','finnish','fi','finnish',0),
-('Svenska','swedish','sv','swedish',0),
-('ไทย','thai','th','thai',0),
-('Türkçe','turkce','tr','turkce',0),
-('Українська','ukrainian','uk','ukrainian',0),
-('Tiếng Việt','vietnamese','vi','vietnamese',0),
-('Kiswahili','swahili','sw','swahili',0),
-('Yorùbá','yoruba','yo','yoruba',0);
-
--- The chosen during the installation platform language should be enabled.
-UPDATE language SET available=1 WHERE dokeos_folder = '{PLATFORMLANGUAGE}';
-
-UNLOCK TABLES;
-/*!40000 ALTER TABLE language ENABLE KEYS */;
-
---
--- Table structure for table php_session
---
-
-DROP TABLE IF EXISTS php_session;
-CREATE TABLE php_session (
- session_id varchar(32) NOT NULL default '',
- session_name varchar(10) NOT NULL default '',
- session_time int NOT NULL default '0',
- session_start int NOT NULL default '0',
- session_value mediumtext NOT NULL,
- PRIMARY KEY (session_id)
-);
-
---
--- Table structure for table session
---
-DROP TABLE IF EXISTS session;
-CREATE TABLE session (
- id smallint unsigned NOT NULL auto_increment,
- id_coach int unsigned NOT NULL default '0',
- name char(50) NOT NULL default '',
- nbr_courses smallint unsigned NOT NULL default '0',
- nbr_users mediumint unsigned NOT NULL default '0',
- nbr_classes mediumint unsigned NOT NULL default '0',
- date_start date NOT NULL default '0000-00-00',
- date_end date NOT NULL default '0000-00-00',
- nb_days_access_before_beginning TINYINT UNSIGNED NULL default '0',
- nb_days_access_after_end TINYINT UNSIGNED NULL default '0',
- session_admin_id INT UNSIGNED NOT NULL,
- visibility int NOT NULL default 1,
- session_category_id int NOT NULL,
- promotion_id INT NOT NULL,
- PRIMARY KEY (id),
- INDEX (session_admin_id),
- UNIQUE KEY name (name)
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for table session_rel_course
---
-DROP TABLE IF EXISTS session_rel_course;
-CREATE TABLE session_rel_course (
- id_session smallint unsigned NOT NULL default '0',
- course_code char(40) NOT NULL default '',
- nbr_users smallint unsigned NOT NULL default '0',
- PRIMARY KEY (id_session,course_code),
- KEY course_code (course_code)
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for table session_rel_course_rel_user
---
-DROP TABLE IF EXISTS session_rel_course_rel_user;
-CREATE TABLE session_rel_course_rel_user (
- id_session smallint unsigned NOT NULL default '0',
- course_code char(40) NOT NULL default '',
- id_user int unsigned NOT NULL default '0',
- visibility int NOT NULL default 1,
- status int NOT NULL default 0,
- PRIMARY KEY (id_session,course_code,id_user),
- KEY id_user (id_user),
- KEY course_code (course_code)
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for table session_rel_user
---
-DROP TABLE IF EXISTS session_rel_user;
-CREATE TABLE session_rel_user (
- id_session mediumint unsigned NOT NULL default '0',
- id_user mediumint unsigned NOT NULL default '0',
- relation_type int default 0,
- PRIMARY KEY (id_session, id_user, relation_type)
-);
-
-
-DROP TABLE IF EXISTS session_field;
-CREATE TABLE session_field (
- id int NOT NULL auto_increment,
- field_type int NOT NULL default 1,
- field_variable varchar(64) NOT NULL,
- field_display_text varchar(64),
- field_default_value text,
- field_order int,
- field_visible tinyint default 0,
- field_changeable tinyint default 0,
- field_filter tinyint default 0,
- tms DATETIME NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY(id)
-);
-
-DROP TABLE IF EXISTS session_field_values;
-CREATE TABLE session_field_values(
- id int NOT NULL auto_increment,
- session_id int NOT NULL,
- field_id int NOT NULL,
- field_value text,
- tms DATETIME NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY(id)
-);
-
---
--- Table structure for table settings_current
---
-
-DROP TABLE IF EXISTS settings_current;
-CREATE TABLE settings_current (
- id int unsigned NOT NULL auto_increment,
- variable varchar(255) default NULL,
- subkey varchar(255) default NULL,
- type varchar(255) default NULL,
- category varchar(255) default NULL,
- selected_value varchar(255) default NULL,
- title varchar(255) NOT NULL default '',
- comment varchar(255) default NULL,
- scope varchar(50) default NULL,
- subkeytext varchar(255) default NULL,
- access_url int unsigned not null default 1,
- access_url_changeable int unsigned not null default 0,
- PRIMARY KEY id (id),
- INDEX (access_url)
-);
-
-ALTER TABLE settings_current ADD UNIQUE unique_setting (variable(110), subkey(110), category(110), access_url);
-
---
--- Dumping data for table settings_current
---
-
-/*!40000 ALTER TABLE settings_current DISABLE KEYS */;
-LOCK TABLES settings_current WRITE;
-INSERT INTO settings_current
-(variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable)
-VALUES
-('Institution',NULL,'textfield','Platform','{ORGANISATIONNAME}','InstitutionTitle','InstitutionComment','platform',NULL, 1),
-('InstitutionUrl',NULL,'textfield','Platform','{ORGANISATIONURL}','InstitutionUrlTitle','InstitutionUrlComment',NULL,NULL, 1),
-('siteName',NULL,'textfield','Platform','{CAMPUSNAME}','SiteNameTitle','SiteNameComment',NULL,NULL, 1),
-('emailAdministrator',NULL,'textfield','Platform','{ADMINEMAIL}','emailAdministratorTitle','emailAdministratorComment',NULL,NULL, 1),
-('administratorSurname',NULL,'textfield','Platform','{ADMINLASTNAME}','administratorSurnameTitle','administratorSurnameComment',NULL,NULL, 1),
-('administratorName',NULL,'textfield','Platform','{ADMINFIRSTNAME}','administratorNameTitle','administratorNameComment',NULL,NULL, 1),
-('show_administrator_data',NULL,'radio','Platform','true','ShowAdministratorDataTitle','ShowAdministratorDataComment',NULL,NULL, 1),
-('show_tutor_data',NULL,'radio','Platform','true','ShowTutorDataTitle','ShowTutorDataComment',NULL,NULL, 1),
-('show_teacher_data',NULL,'radio','Platform','true','ShowTeacherDataTitle','ShowTeacherDataComment',NULL,NULL, 1),
-('homepage_view',NULL,'radio','Course','activity','HomepageViewTitle','HomepageViewComment',NULL,NULL, 0),
-('show_toolshortcuts',NULL,'radio','Course','false','ShowToolShortcutsTitle','ShowToolShortcutsComment',NULL,NULL, 0),
-('allow_group_categories',NULL,'radio','Course','false','AllowGroupCategories','AllowGroupCategoriesComment',NULL,NULL, 0),
-('server_type',NULL,'radio','Platform','production','ServerStatusTitle','ServerStatusComment',NULL,NULL, 0),
-('platformLanguage',NULL,'link','Languages','{PLATFORMLANGUAGE}','PlatformLanguageTitle','PlatformLanguageComment',NULL,NULL, 0),
-('showonline','world','checkbox','Platform','true','ShowOnlineTitle','ShowOnlineComment',NULL,'ShowOnlineWorld', 0),
-('showonline','users','checkbox','Platform','true','ShowOnlineTitle','ShowOnlineComment',NULL,'ShowOnlineUsers', 0),
-('showonline','course','checkbox','Platform','true','ShowOnlineTitle','ShowOnlineComment',NULL,'ShowOnlineCourse', 0),
-('profile','name','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'name', 0),
-('profile','officialcode','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'officialcode', 0),
-('profile','email','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'Email', 0),
-('profile','picture','checkbox','User','true','ProfileChangesTitle','ProfileChangesComment',NULL,'UserPicture', 0),
-('profile','login','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'Login', 0),
-('profile','password','checkbox','User','true','ProfileChangesTitle','ProfileChangesComment',NULL,'UserPassword', 0),
-('profile','language','checkbox','User','true','ProfileChangesTitle','ProfileChangesComment',NULL,'Language', 0),
-('default_document_quotum',NULL,'textfield','Course','100000000','DefaultDocumentQuotumTitle','DefaultDocumentQuotumComment',NULL,NULL, 0),
-('registration','officialcode','checkbox','User','false','RegistrationRequiredFormsTitle','RegistrationRequiredFormsComment',NULL,'OfficialCode', 0),
-('registration','email','checkbox','User','true','RegistrationRequiredFormsTitle','RegistrationRequiredFormsComment',NULL,'Email', 0),
-('registration','language','checkbox','User','true','RegistrationRequiredFormsTitle','RegistrationRequiredFormsComment',NULL,'Language', 0),
-('default_group_quotum',NULL,'textfield','Course','5000000','DefaultGroupQuotumTitle','DefaultGroupQuotumComment',NULL,NULL, 0),
-('allow_registration',NULL,'radio','Platform','{ALLOWSELFREGISTRATION}','AllowRegistrationTitle','AllowRegistrationComment',NULL,NULL, 0),
-('allow_registration_as_teacher',NULL,'radio','Platform','{ALLOWTEACHERSELFREGISTRATION}','AllowRegistrationAsTeacherTitle','AllowRegistrationAsTeacherComment',NULL,NULL, 0),
-('allow_lostpassword',NULL,'radio','Platform','true','AllowLostPasswordTitle','AllowLostPasswordComment',NULL,NULL, 0),
-('allow_user_headings',NULL,'radio','Course','false','AllowUserHeadings','AllowUserHeadingsComment',NULL,NULL, 0),
-('course_create_active_tools','course_description','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'CourseDescription', 0),
-('course_create_active_tools','agenda','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Agenda', 0),
-('course_create_active_tools','documents','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Documents', 0),
-('course_create_active_tools','learning_path','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'LearningPath', 0),
-('course_create_active_tools','links','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Links', 0),
-('course_create_active_tools','announcements','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Announcements', 0),
-('course_create_active_tools','forums','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Forums', 0),
-('course_create_active_tools','dropbox','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Dropbox', 0),
-('course_create_active_tools','quiz','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Quiz', 0),
-('course_create_active_tools','users','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Users', 0),
-('course_create_active_tools','groups','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Groups', 0),
-('course_create_active_tools','chat','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Chat', 0),
-('course_create_active_tools','online_conference','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'OnlineConference', 0),
-('course_create_active_tools','student_publications','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'StudentPublications', 0),
-('allow_personal_agenda',NULL,'radio','User','false','AllowPersonalAgendaTitle','AllowPersonalAgendaComment',NULL,NULL, 0),
-('display_coursecode_in_courselist',NULL,'radio','Platform','false','DisplayCourseCodeInCourselistTitle','DisplayCourseCodeInCourselistComment',NULL,NULL, 0),
-('display_teacher_in_courselist',NULL,'radio','Platform','true','DisplayTeacherInCourselistTitle','DisplayTeacherInCourselistComment',NULL,NULL, 0),
-('use_document_title',NULL,'radio','Tools','true','UseDocumentTitleTitle','UseDocumentTitleComment',NULL,NULL, 0),
-('permanently_remove_deleted_files',NULL,'radio','Tools','false','PermanentlyRemoveFilesTitle','PermanentlyRemoveFilesComment',NULL,NULL, 0),
-('dropbox_allow_overwrite',NULL,'radio','Tools','true','DropboxAllowOverwriteTitle','DropboxAllowOverwriteComment',NULL,NULL, 0),
-('dropbox_max_filesize',NULL,'textfield','Tools','100000000','DropboxMaxFilesizeTitle','DropboxMaxFilesizeComment',NULL,NULL, 0),
-('dropbox_allow_just_upload',NULL,'radio','Tools','true','DropboxAllowJustUploadTitle','DropboxAllowJustUploadComment',NULL,NULL, 0),
-('dropbox_allow_student_to_student',NULL,'radio','Tools','true','DropboxAllowStudentToStudentTitle','DropboxAllowStudentToStudentComment',NULL,NULL, 0),
-('dropbox_allow_group',NULL,'radio','Tools','true','DropboxAllowGroupTitle','DropboxAllowGroupComment',NULL,NULL, 0),
-('dropbox_allow_mailing',NULL,'radio','Tools','false','DropboxAllowMailingTitle','DropboxAllowMailingComment',NULL,NULL, 0),
-('administratorTelephone',NULL,'textfield','Platform','(000) 001 02 03','administratorTelephoneTitle','administratorTelephoneComment',NULL,NULL, 1),
-('extended_profile',NULL,'radio','User','true','ExtendedProfileTitle','ExtendedProfileComment',NULL,NULL, 0),
-('student_view_enabled',NULL,'radio','Platform','true','StudentViewEnabledTitle','StudentViewEnabledComment',NULL,NULL, 0),
-('show_navigation_menu',NULL,'radio','Course','false','ShowNavigationMenuTitle','ShowNavigationMenuComment',NULL,NULL, 0),
-('enable_tool_introduction',NULL,'radio','course','false','EnableToolIntroductionTitle','EnableToolIntroductionComment',NULL,NULL, 0),
-('page_after_login', NULL, 'radio','Platform','user_portal.php', 'PageAfterLoginTitle','PageAfterLoginComment', NULL, NULL, 0),
-('time_limit_whosonline', NULL, 'textfield','Platform','30', 'TimeLimitWhosonlineTitle','TimeLimitWhosonlineComment', NULL, NULL, 0),
-('breadcrumbs_course_homepage', NULL, 'radio','Course','course_title', 'BreadCrumbsCourseHomepageTitle','BreadCrumbsCourseHomepageComment', NULL, NULL, 0),
-('example_material_course_creation', NULL, 'radio','Platform','true', 'ExampleMaterialCourseCreationTitle','ExampleMaterialCourseCreationComment', NULL, NULL, 0),
-('account_valid_duration',NULL, 'textfield','Platform','3660', 'AccountValidDurationTitle','AccountValidDurationComment', NULL, NULL, 0),
-('use_session_mode', NULL, 'radio','Platform','true', 'UseSessionModeTitle','UseSessionModeComment', NULL, NULL, 0),
-('allow_email_editor', NULL, 'radio', 'Tools', 'false', 'AllowEmailEditorTitle', 'AllowEmailEditorComment', NULL, NULL, 0),
-('registered', NULL, 'textfield', NULL, 'false', NULL, NULL, NULL, NULL, 0),
-('donotlistcampus', NULL, 'textfield', NULL, 'false', NULL, NULL, NULL, NULL,0 ),
-('show_email_addresses', NULL,'radio','Platform','false','ShowEmailAddresses','ShowEmailAddressesComment',NULL,NULL, 1),
-('profile','phone','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'phone', 0),
-('service_visio', 'active', 'radio',NULL,'false', 'VisioEnable','', NULL, NULL, 0),
-('service_visio', 'visio_host', 'textfield',NULL,'', 'VisioHost','', NULL, NULL, 0),
-('service_visio', 'visio_port', 'textfield',NULL,'1935', 'VisioPort','', NULL, NULL, 0),
-('service_visio', 'visio_pass', 'textfield',NULL,'', 'VisioPassword','', NULL, NULL, 0),
-('service_ppt2lp', 'active', 'radio',NULL,'false', 'ppt2lp_actived','', NULL, NULL, 0),
-('service_ppt2lp', 'host', 'textfield', NULL, NULL, 'Host', NULL, NULL, NULL, 0),
-('service_ppt2lp', 'port', 'textfield', NULL, 2002, 'Port', NULL, NULL, NULL, 0),
-('service_ppt2lp', 'user', 'textfield', NULL, NULL, 'UserOnHost', NULL, NULL, NULL, 0),
-('service_ppt2lp', 'ftp_password', 'textfield', NULL, NULL, 'FtpPassword', NULL, NULL, NULL, 0),
-('service_ppt2lp', 'path_to_lzx', 'textfield', NULL, NULL, '', NULL, NULL, NULL, 0),
-('service_ppt2lp', 'size', 'radio', NULL, '720x540', '', NULL, NULL, NULL, 0),
-('wcag_anysurfer_public_pages', NULL, 'radio','Editor','false','PublicPagesComplyToWAITitle','PublicPagesComplyToWAIComment', NULL, NULL, 0),
-('stylesheets', NULL, 'textfield','stylesheets','chamilo','',NULL, NULL, NULL, 1),
-('upload_extensions_list_type', NULL, 'radio', 'Security', 'blacklist', 'UploadExtensionsListType', 'UploadExtensionsListTypeComment', NULL, NULL, 0),
-('upload_extensions_blacklist', NULL, 'textfield', 'Security', '', 'UploadExtensionsBlacklist', 'UploadExtensionsBlacklistComment', NULL, NULL, 0),
-('upload_extensions_whitelist', NULL, 'textfield', 'Security', 'htm;html;jpg;jpeg;gif;png;swf;avi;mpg;mpeg;mov;flv;doc;docx;xls;xlsx;ppt;pptx;odt;odp;ods;pdf', 'UploadExtensionsWhitelist', 'UploadExtensionsWhitelistComment', NULL, NULL, 0),
-('upload_extensions_skip', NULL, 'radio', 'Security', 'true', 'UploadExtensionsSkip', 'UploadExtensionsSkipComment', NULL, NULL, 0),
-('upload_extensions_replace_by', NULL, 'textfield', 'Security', 'dangerous', 'UploadExtensionsReplaceBy', 'UploadExtensionsReplaceByComment', NULL, NULL, 0),
-('show_number_of_courses', NULL, 'radio','Platform','false', 'ShowNumberOfCourses','ShowNumberOfCoursesComment', NULL, NULL, 0),
-('show_empty_course_categories', NULL, 'radio','Platform','true', 'ShowEmptyCourseCategories','ShowEmptyCourseCategoriesComment', NULL, NULL, 0),
-('show_back_link_on_top_of_tree', NULL, 'radio','Platform','false', 'ShowBackLinkOnTopOfCourseTree','ShowBackLinkOnTopOfCourseTreeComment', NULL, NULL, 0),
-('show_different_course_language', NULL, 'radio','Platform','true', 'ShowDifferentCourseLanguage','ShowDifferentCourseLanguageComment', NULL, NULL, 1),
-('split_users_upload_directory', NULL, 'radio','Tuning','false', 'SplitUsersUploadDirectory','SplitUsersUploadDirectoryComment', NULL, NULL, 0),
-('hide_dltt_markup', NULL, 'radio','Languages','true', 'HideDLTTMarkup','HideDLTTMarkupComment', NULL, NULL, 0),
-('display_categories_on_homepage',NULL,'radio','Platform','false','DisplayCategoriesOnHomepageTitle','DisplayCategoriesOnHomepageComment',NULL,NULL, 1),
-('permissions_for_new_directories', NULL, 'textfield', 'Security', '0777', 'PermissionsForNewDirs', 'PermissionsForNewDirsComment', NULL, NULL, 0),
-('permissions_for_new_files', NULL, 'textfield', 'Security', '0666', 'PermissionsForNewFiles', 'PermissionsForNewFilesComment', NULL, NULL, 0),
-('show_tabs', 'campus_homepage', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsCampusHomepage', 1),
-('show_tabs', 'my_courses', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsMyCourses', 1),
-('show_tabs', 'reporting', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsReporting', 1),
-('show_tabs', 'platform_administration', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsPlatformAdministration', 1),
-('show_tabs', 'my_agenda', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsMyAgenda', 1),
-('show_tabs', 'my_profile', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsMyProfile', 1),
-('default_forum_view', NULL, 'radio', 'Course', 'flat', 'DefaultForumViewTitle','DefaultForumViewComment',NULL,NULL, 0),
-('platform_charset',NULL,'textfield','Languages','UTF-8','PlatformCharsetTitle','PlatformCharsetComment','platform',NULL, 0),
-('noreply_email_address', '', 'textfield', 'Platform', '', 'NoReplyEmailAddress', 'NoReplyEmailAddressComment', NULL, NULL, 0),
-('survey_email_sender_noreply', '', 'radio', 'Course', 'coach', 'SurveyEmailSenderNoReply', 'SurveyEmailSenderNoReplyComment', NULL, NULL, 0),
-('openid_authentication',NULL,'radio','Security','false','OpenIdAuthentication','OpenIdAuthenticationComment',NULL,NULL, 0),
-('profile','openid','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'OpenIDURL', 0),
-('gradebook_enable',NULL,'radio','Gradebook','false','GradebookActivation','GradebookActivationComment',NULL,NULL, 0),
-('show_tabs','my_gradebook','checkbox','Platform','true','ShowTabsTitle','ShowTabsComment',NULL,'TabsMyGradebook', 1),
-('gradebook_score_display_coloring','my_display_coloring','checkbox','Gradebook','false','GradebookScoreDisplayColoring','GradebookScoreDisplayColoringComment',NULL,'TabsGradebookEnableColoring', 0),
-('gradebook_score_display_custom','my_display_custom','checkbox','Gradebook','false','GradebookScoreDisplayCustom','GradebookScoreDisplayCustomComment',NULL,'TabsGradebookEnableCustom', 0),
-('gradebook_score_display_colorsplit',NULL,'textfield','Gradebook','50','GradebookScoreDisplayColorSplit','GradebookScoreDisplayColorSplitComment',NULL,NULL, 0),
-('gradebook_score_display_upperlimit','my_display_upperlimit','checkbox','Gradebook','false','GradebookScoreDisplayUpperLimit','GradebookScoreDisplayUpperLimitComment',NULL,'TabsGradebookEnableUpperLimit', 0),
-('gradebook_number_decimals', NULL, 'select', 'Gradebook', '0', 'GradebookNumberDecimals', 'GradebookNumberDecimalsComment', NULL, NULL, 0),
-('user_selected_theme',NULL,'radio','Platform','false','UserThemeSelection','UserThemeSelectionComment',NULL,NULL, 0),
-('profile','theme','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'UserTheme', 0),
-('allow_course_theme',NULL,'radio','Course','true','AllowCourseThemeTitle','AllowCourseThemeComment',NULL,NULL, 0),
-('display_mini_month_calendar',NULL,'radio','Tools', 'true', 'DisplayMiniMonthCalendarTitle', 'DisplayMiniMonthCalendarComment', NULL, NULL, 0),
-('display_upcoming_events',NULL,'radio','Tools','true','DisplayUpcomingEventsTitle','DisplayUpcomingEventsComment',NULL,NULL, 0),
-('number_of_upcoming_events',NULL,'textfield','Tools','1','NumberOfUpcomingEventsTitle','NumberOfUpcomingEventsComment',NULL,NULL, 0),
-('show_closed_courses',NULL,'radio','Platform','false','ShowClosedCoursesTitle','ShowClosedCoursesComment',NULL,NULL, 0),
-('ldap_main_server_address', NULL, 'textfield', 'LDAP', 'localhost', 'LDAPMainServerAddressTitle', 'LDAPMainServerAddressComment', NULL, NULL, 0),
-('ldap_main_server_port', NULL, 'textfield', 'LDAP', '389', 'LDAPMainServerPortTitle', 'LDAPMainServerPortComment', NULL, NULL, 0),
-('ldap_domain', NULL, 'textfield', 'LDAP', 'dc=nodomain', 'LDAPDomainTitle', 'LDAPDomainComment', NULL, NULL, 0),
-('ldap_replicate_server_address', NULL, 'textfield', 'LDAP', 'localhost', 'LDAPReplicateServerAddressTitle', 'LDAPReplicateServerAddressComment', NULL, NULL, 0),
-('ldap_replicate_server_port', NULL, 'textfield', 'LDAP', '389', 'LDAPReplicateServerPortTitle', 'LDAPReplicateServerPortComment', NULL, NULL, 0),
-('ldap_search_term', NULL, 'textfield', 'LDAP', '', 'LDAPSearchTermTitle', 'LDAPSearchTermComment', NULL, NULL, 0),
-('ldap_version', NULL, 'radio', 'LDAP', '3', 'LDAPVersionTitle', 'LDAPVersionComment', NULL, '', 0),
-('ldap_filled_tutor_field', NULL, 'textfield', 'LDAP', 'employeenumber', 'LDAPFilledTutorFieldTitle', 'LDAPFilledTutorFieldComment', NULL, '', 0),
-('ldap_authentication_login', NULL, 'textfield', 'LDAP', '', 'LDAPAuthenticationLoginTitle', 'LDAPAuthenticationLoginComment', NULL, '', 0),
-('ldap_authentication_password', NULL, 'textfield', 'LDAP', '', 'LDAPAuthenticationPasswordTitle', 'LDAPAuthenticationPasswordComment', NULL, '', 0),
-('service_visio', 'visio_use_rtmpt', 'radio',null,'false', 'VisioUseRtmptTitle','VisioUseRtmptComment', NULL, NULL, 0),
-('extendedprofile_registration', 'mycomptetences', 'checkbox','User','false', 'ExtendedProfileRegistrationTitle','ExtendedProfileRegistrationComment', NULL, 'MyCompetences', 0),
-('extendedprofile_registration', 'mydiplomas', 'checkbox','User','false', 'ExtendedProfileRegistrationTitle','ExtendedProfileRegistrationComment', NULL, 'MyDiplomas', 0),
-('extendedprofile_registration', 'myteach', 'checkbox','User','false', 'ExtendedProfileRegistrationTitle','ExtendedProfileRegistrationComment', NULL, 'MyTeach', 0),
-('extendedprofile_registration', 'mypersonalopenarea', 'checkbox','User','false', 'ExtendedProfileRegistrationTitle','ExtendedProfileRegistrationComment', NULL, 'MyPersonalOpenArea', 0),
-('extendedprofile_registrationrequired', 'mycomptetences', 'checkbox','User','false', 'ExtendedProfileRegistrationRequiredTitle','ExtendedProfileRegistrationRequiredComment', NULL, 'MyCompetences', 0),
-('extendedprofile_registrationrequired', 'mydiplomas', 'checkbox','User','false', 'ExtendedProfileRegistrationRequiredTitle','ExtendedProfileRegistrationRequiredComment', NULL, 'MyDiplomas', 0),
-('extendedprofile_registrationrequired', 'myteach', 'checkbox','User','false', 'ExtendedProfileRegistrationRequiredTitle','ExtendedProfileRegistrationRequiredComment', NULL, 'MyTeach', 0),
-('extendedprofile_registrationrequired', 'mypersonalopenarea', 'checkbox','User','false', 'ExtendedProfileRegistrationRequiredTitle','ExtendedProfileRegistrationRequiredComment', NULL, 'MyPersonalOpenArea', 0),
-('ldap_filled_tutor_field_value', NULL, 'textfield', 'LDAP', '', 'LDAPFilledTutorFieldValueTitle', 'LDAPFilledTutorFieldValueComment', NULL, '', 0),
-('registration','phone','textfield','User','false','RegistrationRequiredFormsTitle','RegistrationRequiredFormsComment',NULL,'Phone', 0),
-('add_users_by_coach',NULL,'radio','Security','false','AddUsersByCoachTitle','AddUsersByCoachComment',NULL,NULL, 0),
-('extend_rights_for_coach',NULL,'radio','Security','false','ExtendRightsForCoachTitle','ExtendRightsForCoachComment',NULL,NULL, 0),
-('extend_rights_for_coach_on_survey',NULL,'radio','Security','true','ExtendRightsForCoachOnSurveyTitle','ExtendRightsForCoachOnSurveyComment',NULL,NULL, 0),
-('course_create_active_tools','wiki','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Wiki', 0),
-('show_session_coach', NULL, 'radio','Platform','false', 'ShowSessionCoachTitle','ShowSessionCoachComment', NULL, NULL, 0),
-('course_create_active_tools','gradebook','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Gradebook', 0),
-('allow_users_to_create_courses',NULL,'radio','Platform','true','AllowUsersToCreateCoursesTitle','AllowUsersToCreateCoursesComment',NULL,NULL, 0),
-('course_create_active_tools','survey','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Survey', 0),
-('course_create_active_tools','glossary','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Glossary', 0),
-('course_create_active_tools','notebook','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Notebook', 0),
-('course_create_active_tools','attendances','checkbox','Tools','false','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Attendances', 0),
-('course_create_active_tools','course_progress','checkbox','Tools','false','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'CourseProgress', 0),
-('advanced_filemanager',NULL,'radio','Editor','true','AdvancedFileManagerTitle','AdvancedFileManagerComment',NULL,NULL, 1),
-('allow_reservation', NULL, 'radio', 'Tools', 'false', 'AllowReservationTitle', 'AllowReservationComment', NULL, NULL, 0),
-('profile','apikeys','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'ApiKeys', 0),
-('allow_message_tool', NULL, 'radio', 'Tools', 'true', 'AllowMessageToolTitle', 'AllowMessageToolComment', NULL, NULL,1),
-('allow_social_tool', NULL, 'radio', 'Tools', 'true', 'AllowSocialToolTitle', 'AllowSocialToolComment', NULL, NULL,1),
-('allow_students_to_browse_courses',NULL,'radio','Platform','true','AllowStudentsToBrowseCoursesTitle','AllowStudentsToBrowseCoursesComment',NULL,NULL, 1),
-('show_session_data', NULL, 'radio', 'Course', 'false', 'ShowSessionDataTitle', 'ShowSessionDataComment', NULL, NULL, 1),
-('allow_use_sub_language', NULL, 'radio', 'Languages', 'false', 'AllowUseSubLanguageTitle', 'AllowUseSubLanguageComment', NULL, NULL,0),
-('show_glossary_in_documents', NULL, 'radio', 'Course', 'none', 'ShowGlossaryInDocumentsTitle', 'ShowGlossaryInDocumentsComment', NULL, NULL,1),
-('allow_terms_conditions', NULL, 'radio', 'Platform', 'false', 'AllowTermsAndConditionsTitle', 'AllowTermsAndConditionsComment', NULL, NULL,0),
-('course_create_active_tools','enable_search','checkbox','Tools','false','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Search',0),
-('search_enabled',NULL,'radio','Search','false','EnableSearchTitle','EnableSearchComment',NULL,NULL,1),
-('search_prefilter_prefix',NULL, NULL,'Search','','SearchPrefilterPrefix','SearchPrefilterPrefixComment',NULL,NULL,0),
-('search_show_unlinked_results',NULL,'radio','Search','true','SearchShowUnlinkedResultsTitle','SearchShowUnlinkedResultsComment',NULL,NULL,1),
-('show_courses_descriptions_in_catalog', NULL, 'radio', 'Course', 'true', 'ShowCoursesDescriptionsInCatalogTitle', 'ShowCoursesDescriptionsInCatalogComment', NULL, NULL, 1),
-('allow_coach_to_edit_course_session',NULL,'radio','Course','true','AllowCoachsToEditInsideTrainingSessions','AllowCoachsToEditInsideTrainingSessionsComment',NULL,NULL, 0),
-('show_glossary_in_extra_tools', NULL, 'radio', 'Course', 'false', 'ShowGlossaryInExtraToolsTitle', 'ShowGlossaryInExtraToolsComment', NULL, NULL,1),
-('send_email_to_admin_when_create_course',NULL,'radio','Platform','false','SendEmailToAdminTitle','SendEmailToAdminComment',NULL,NULL, 1),
-('go_to_course_after_login',NULL,'radio','Course','false','GoToCourseAfterLoginTitle','GoToCourseAfterLoginComment',NULL,NULL, 0),
-('math_mimetex',NULL,'radio','Editor','false','MathMimetexTitle','MathMimetexComment',NULL,NULL, 0),
-('math_asciimathML',NULL,'radio','Editor','false','MathASCIImathMLTitle','MathASCIImathMLComment',NULL,NULL, 0),
-('enabled_asciisvg',NULL,'radio','Editor','false','AsciiSvgTitle','AsciiSvgComment',NULL,NULL, 0),
-('include_asciimathml_script',NULL,'radio','Editor','false','IncludeAsciiMathMlTitle','IncludeAsciiMathMlComment',NULL,NULL, 0),
-('youtube_for_students',NULL,'radio','Editor','true','YoutubeForStudentsTitle','YoutubeForStudentsComment',NULL,NULL, 0),
-('block_copy_paste_for_students',NULL,'radio','Editor','false','BlockCopyPasteForStudentsTitle','BlockCopyPasteForStudentsComment',NULL,NULL, 0),
-('more_buttons_maximized_mode',NULL,'radio','Editor','true','MoreButtonsForMaximizedModeTitle','MoreButtonsForMaximizedModeComment',NULL,NULL, 0),
-('students_download_folders',NULL,'radio','Tools','true','AllowStudentsDownloadFoldersTitle','AllowStudentsDownloadFoldersComment',NULL,NULL, 0),
-('users_copy_files',NULL,'radio','Tools','true','AllowUsersCopyFilesTitle','AllowUsersCopyFilesComment',NULL,NULL, 1),
-('show_tabs', 'social', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsSocial', 0),
-('allow_students_to_create_groups_in_social',NULL,'radio','Tools','false','AllowStudentsToCreateGroupsInSocialTitle','AllowStudentsToCreateGroupsInSocialComment',NULL,NULL, 0),
-('allow_send_message_to_all_platform_users',NULL,'radio','Tools','false','AllowSendMessageToAllPlatformUsersTitle','AllowSendMessageToAllPlatformUsersComment',NULL,NULL, 0),
-('message_max_upload_filesize',NULL,'textfield','Tools','20971520','MessageMaxUploadFilesizeTitle','MessageMaxUploadFilesizeComment',NULL,NULL, 0),
-('show_tabs', 'dashboard', 'checkbox', 'Platform', 'true', 'ShowTabsTitle', 'ShowTabsComment', NULL, 'TabsDashboard', 1),
-('use_users_timezone', 'timezones', 'radio', 'Timezones', 'true', 'UseUsersTimezoneTitle','UseUsersTimezoneComment',NULL,'Timezones', 1),
-('timezone_value', 'timezones', 'select', 'Timezones', '', 'TimezoneValueTitle','TimezoneValueComment',NULL,'Timezones', 1),
-('allow_user_course_subscription_by_course_admin', NULL, 'radio', 'Security', 'true', 'AllowUserCourseSubscriptionByCourseAdminTitle', 'AllowUserCourseSubscriptionByCourseAdminComment', NULL, NULL, 1),
-('show_link_bug_notification', NULL, 'radio', 'Platform', 'true', 'ShowLinkBugNotificationTitle', 'ShowLinkBugNotificationComment', NULL, NULL, 0),
-('course_validation', NULL, 'radio', 'Platform', 'false', 'EnableCourseValidation', 'EnableCourseValidationComment', NULL, NULL, 1),
-('course_validation_terms_and_conditions_url', NULL, 'textfield', 'Platform', '', 'CourseValidationTermsAndConditionsLink', 'CourseValidationTermsAndConditionsLinkComment', NULL, NULL, 1),
-('sso_authentication',NULL,'radio','Security','false','EnableSSOTitle','EnableSSOComment',NULL,NULL,1),
-('sso_authentication_domain',NULL,'textfield','Security','','SSOServerDomainTitle','SSOServerDomainComment',NULL,NULL,1),
-('sso_authentication_auth_uri',NULL,'textfield','Security','/?q=user','SSOServerAuthURITitle','SSOServerAuthURIComment',NULL,NULL,1),
-('sso_authentication_unauth_uri',NULL,'textfield','Security','/?q=logout','SSOServerUnAuthURITitle','SSOServerUnAuthURIComment',NULL,NULL,1),
-('sso_authentication_protocol',NULL,'radio','Security','http://','SSOServerProtocolTitle','SSOServerProtocolComment',NULL,NULL,1),
-('enabled_wiris',NULL,'radio','Editor','false','EnabledWirisTitle','EnabledWirisComment',NULL,NULL, 0),
-('allow_spellcheck',NULL,'radio','Editor','false','AllowSpellCheckTitle','AllowSpellCheckComment',NULL,NULL, 0),
-('force_wiki_paste_as_plain_text',NULL,'radio','Editor','false','ForceWikiPasteAsPlainTextTitle','ForceWikiPasteAsPlainTextComment',NULL,NULL, 0),
-('enabled_googlemaps',NULL,'radio','Editor','false','EnabledGooglemapsTitle','EnabledGooglemapsComment',NULL,NULL, 0),
-('enabled_imgmap',NULL,'radio','Editor','true','EnabledImageMapsTitle','EnabledImageMapsComment',NULL,NULL, 0),
-('enabled_support_svg', NULL,'radio', 'Tools', 'true', 'EnabledSVGTitle','EnabledSVGComment',NULL,NULL, 0),
-('pdf_export_watermark_enable', NULL,'radio', 'Platform', 'false','PDFExportWatermarkEnableTitle', 'PDFExportWatermarkEnableComment', 'platform',NULL, 1),
-('pdf_export_watermark_by_course', NULL,'radio', 'Platform', 'false','PDFExportWatermarkByCourseTitle', 'PDFExportWatermarkByCourseComment','platform',NULL, 1),
-('pdf_export_watermark_text', NULL,'textfield', 'Platform', '', 'PDFExportWatermarkTextTitle', 'PDFExportWatermarkTextComment', 'platform',NULL, 1),
-('enabled_insertHtml', NULL,'radio', 'Editor', 'true','EnabledInsertHtmlTitle', 'EnabledInsertHtmlComment',NULL,NULL, 0),
-('students_export2pdf', NULL,'radio', 'Tools', 'true', 'EnabledStudentExport2PDFTitle', 'EnabledStudentExport2PDFComment',NULL,NULL, 0),
-('exercise_min_score', NULL,'textfield', 'Course', '', 'ExerciseMinScoreTitle', 'ExerciseMinScoreComment','platform',NULL, 1),
-('exercise_max_score', NULL,'textfield', 'Course', '', 'ExerciseMaxScoreTitle', 'ExerciseMaxScoreComment','platform',NULL, 1),
-('show_users_folders', NULL,'radio', 'Tools', 'true', 'ShowUsersFoldersTitle','ShowUsersFoldersComment',NULL,NULL, 0),
-('show_default_folders', NULL,'radio', 'Tools', 'true', 'ShowDefaultFoldersTitle','ShowDefaultFoldersComment',NULL,NULL, 0),
-('show_chat_folder', NULL,'radio', 'Tools', 'true', 'ShowChatFolderTitle','ShowChatFolderComment',NULL,NULL, 0),
-('enabled_text2audio', NULL,'radio', 'Tools', 'false', 'Text2AudioTitle','Text2AudioComment',NULL,NULL, 0),
-('course_hide_tools','course_description','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'CourseDescription', 1),
-('course_hide_tools','calendar_event','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Agenda', 1),
-('course_hide_tools','document','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Documents', 1),
-('course_hide_tools','learnpath','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'LearningPath', 1),
-('course_hide_tools','link','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Links', 1),
-('course_hide_tools','announcement','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Announcements', 1),
-('course_hide_tools','forum','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Forums', 1),
-('course_hide_tools','dropbox','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Dropbox', 1),
-('course_hide_tools','quiz','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Quiz', 1),
-('course_hide_tools','user','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Users', 1),
-('course_hide_tools','group','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Groups', 1),
-('course_hide_tools','chat','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Chat', 1),
-('course_hide_tools','student_publication','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'StudentPublications', 1),
-('course_hide_tools','wiki','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Wiki', 1),
-('course_hide_tools','gradebook','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Gradebook', 1),
-('course_hide_tools','survey','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Survey', 1),
-('course_hide_tools','glossary','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Glossary', 1),
-('course_hide_tools','notebook','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Notebook', 1),
-('course_hide_tools','attendance','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Attendances', 1),
-('course_hide_tools','course_progress','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'CourseProgress', 1),
-('course_hide_tools','blog_management','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Blog',1),
-('course_hide_tools','tracking','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Stats',1),
-('course_hide_tools','course_maintenance','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Maintenance',1),
-('course_hide_tools','course_setting','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'CourseSettings',1),
-('enabled_support_pixlr',NULL,'radio','Tools','false','EnabledPixlrTitle','EnabledPixlrComment',NULL,NULL, 0),
-('show_groups_to_users',NULL,'radio','Platform','false','ShowGroupsToUsersTitle','ShowGroupsToUsersComment',NULL,NULL, 0),
-('accessibility_font_resize',NULL,'radio','Platform','false','EnableAccessibilityFontResizeTitle','EnableAccessibilityFontResizeComment',NULL,NULL, 1),
-('hide_courses_in_sessions',NULL,'radio', 'Platform','false','HideCoursesInSessionsTitle', 'HideCoursesInSessionsComment','platform',NULL, 1),
-('enable_quiz_scenario', NULL,'radio','Course','false','EnableQuizScenarioTitle','EnableQuizScenarioComment',NULL,NULL, 1),
-('enable_nanogong',NULL,'radio','Tools','false','EnableNanogongTitle','EnableNanogongComment',NULL,NULL, 0),
-('chamilo_database_version',NULL,'textfield',NULL, '1.8.8.14911','DokeosDatabaseVersion','', NULL, NULL, 0);
-
-UNLOCK TABLES;
-/*!40000 ALTER TABLE settings_current ENABLE KEYS */;
-
---
--- Table structure for table settings_options
---
-
-DROP TABLE IF EXISTS settings_options;
-CREATE TABLE settings_options (
- id int unsigned NOT NULL auto_increment,
- variable varchar(255) default NULL,
- value varchar(255) default NULL,
- display_text varchar(255) NOT NULL default '',
- PRIMARY KEY (id),
- UNIQUE KEY id (id)
-);
-
-ALTER TABLE settings_options ADD UNIQUE unique_setting_option (variable(165), value(165));
-
---
--- Dumping data for table settings_options
---
-
-
-/*!40000 ALTER TABLE settings_options DISABLE KEYS */;
-LOCK TABLES settings_options WRITE;
-INSERT INTO settings_options
-(variable, value, display_text)
-VALUES
-('show_administrator_data','true','Yes'),
-('show_administrator_data','false','No'),
-('show_tutor_data','true','Yes'),
-('show_tutor_data','false','No'),
-('show_teacher_data','true','Yes'),
-('show_teacher_data','false','No'),
-('homepage_view','activity','HomepageViewActivity'),
-('homepage_view','2column','HomepageView2column'),
-('homepage_view','3column','HomepageView3column'),
-('homepage_view','vertical_activity','HomepageViewVerticalActivity'),
-('homepage_view','activity_big','HomepageViewActivityBig'),
-('show_toolshortcuts','true','Yes'),
-('show_toolshortcuts','false','No'),
-('allow_group_categories','true','Yes'),
-('allow_group_categories','false','No'),
-('server_type','production','ProductionServer'),
-('server_type','test','TestServer'),
-('allow_name_change','true','Yes'),
-('allow_name_change','false','No'),
-('allow_officialcode_change','true','Yes'),
-('allow_officialcode_change','false','No'),
-('allow_registration','true','Yes'),
-('allow_registration','false','No'),
-('allow_registration','approval','AfterApproval'),
-('allow_registration_as_teacher','true','Yes'),
-('allow_registration_as_teacher','false','No'),
-('allow_lostpassword','true','Yes'),
-('allow_lostpassword','false','No'),
-('allow_user_headings','true','Yes'),
-('allow_user_headings','false','No'),
-('allow_personal_agenda','true','Yes'),
-('allow_personal_agenda','false','No'),
-('display_coursecode_in_courselist','true','Yes'),
-('display_coursecode_in_courselist','false','No'),
-('display_teacher_in_courselist','true','Yes'),
-('display_teacher_in_courselist','false','No'),
-('use_document_title','true','Yes'),
-('use_document_title','false','No'),
-('permanently_remove_deleted_files','true','YesWillDeletePermanently'),
-('permanently_remove_deleted_files','false','NoWillDeletePermanently'),
-('dropbox_allow_overwrite','true','Yes'),
-('dropbox_allow_overwrite','false','No'),
-('dropbox_allow_just_upload','true','Yes'),
-('dropbox_allow_just_upload','false','No'),
-('dropbox_allow_student_to_student','true','Yes'),
-('dropbox_allow_student_to_student','false','No'),
-('dropbox_allow_group','true','Yes'),
-('dropbox_allow_group','false','No'),
-('dropbox_allow_mailing','true','Yes'),
-('dropbox_allow_mailing','false','No'),
-('extended_profile','true','Yes'),
-('extended_profile','false','No'),
-('student_view_enabled','true','Yes'),
-('student_view_enabled','false','No'),
-('show_navigation_menu','false','No'),
-('show_navigation_menu','icons','IconsOnly'),
-('show_navigation_menu','text','TextOnly'),
-('show_navigation_menu','iconstext','IconsText'),
-('enable_tool_introduction','true','Yes'),
-('enable_tool_introduction','false','No'),
-('page_after_login', 'index.php', 'CampusHomepage'),
-('page_after_login', 'user_portal.php', 'MyCourses'),
-('breadcrumbs_course_homepage', 'get_lang', 'CourseHomepage'),
-('breadcrumbs_course_homepage', 'course_code', 'CourseCode'),
-('breadcrumbs_course_homepage', 'course_title', 'CourseTitle'),
-('example_material_course_creation', 'true', 'Yes'),
-('example_material_course_creation', 'false', 'No'),
-('use_session_mode', 'true', 'Yes'),
-('use_session_mode', 'false', 'No'),
-('allow_email_editor', 'true' ,'Yes'),
-('allow_email_editor', 'false', 'No'),
-('show_email_addresses','true','Yes'),
-('show_email_addresses','false','No'),
-('wcag_anysurfer_public_pages', 'true', 'Yes'),
-('wcag_anysurfer_public_pages', 'false', 'No'),
-('upload_extensions_list_type', 'blacklist', 'Blacklist'),
-('upload_extensions_list_type', 'whitelist', 'Whitelist'),
-('upload_extensions_skip', 'true', 'Remove'),
-('upload_extensions_skip', 'false', 'Rename'),
-('show_number_of_courses', 'true', 'Yes'),
-('show_number_of_courses', 'false', 'No'),
-('show_empty_course_categories', 'true', 'Yes'),
-('show_empty_course_categories', 'false', 'No'),
-('show_back_link_on_top_of_tree', 'true', 'Yes'),
-('show_back_link_on_top_of_tree', 'false', 'No'),
-('show_different_course_language', 'true', 'Yes'),
-('show_different_course_language', 'false', 'No'),
-('split_users_upload_directory', 'true', 'Yes'),
-('split_users_upload_directory', 'false', 'No'),
-('hide_dltt_markup', 'false', 'No'),
-('hide_dltt_markup', 'true', 'Yes'),
-('display_categories_on_homepage','true','Yes'),
-('display_categories_on_homepage','false','No'),
-('default_forum_view', 'flat', 'Flat'),
-('default_forum_view', 'threaded', 'Threaded'),
-('default_forum_view', 'nested', 'Nested'),
-('survey_email_sender_noreply', 'coach', 'CourseCoachEmailSender'),
-('survey_email_sender_noreply', 'noreply', 'NoReplyEmailSender'),
-('openid_authentication','true','Yes'),
-('openid_authentication','false','No'),
-('gradebook_enable','true','Yes'),
-('gradebook_enable','false','No'),
-('user_selected_theme','true','Yes'),
-('user_selected_theme','false','No'),
-('allow_course_theme','true','Yes'),
-('allow_course_theme','false','No'),
-('display_mini_month_calendar', 'true', 'Yes'),
-('display_mini_month_calendar', 'false', 'No'),
-('display_upcoming_events', 'true', 'Yes'),
-('display_upcoming_events', 'false', 'No'),
-('show_closed_courses', 'true', 'Yes'),
-('show_closed_courses', 'false', 'No'),
-('ldap_version', '2', 'LDAPVersion2'),
-('ldap_version', '3', 'LDAPVersion3'),
-('visio_use_rtmpt','true','Yes'),
-('visio_use_rtmpt','false','No'),
-('add_users_by_coach', 'true', 'Yes'),
-('add_users_by_coach', 'false', 'No'),
-('extend_rights_for_coach', 'true', 'Yes'),
-('extend_rights_for_coach', 'false', 'No'),
-('extend_rights_for_coach_on_survey', 'true', 'Yes'),
-('extend_rights_for_coach_on_survey', 'false', 'No'),
-('show_session_coach', 'true', 'Yes'),
-('show_session_coach', 'false', 'No'),
-('allow_users_to_create_courses','true','Yes'),
-('allow_users_to_create_courses','false','No'),
-('breadcrumbs_course_homepage', 'session_name_and_course_title', 'SessionNameAndCourseTitle'),
-('advanced_filemanager','true','Yes'),
-('advanced_filemanager','false','No'),
-('allow_reservation', 'true', 'Yes'),
-('allow_reservation', 'false', 'No'),
-('allow_message_tool', 'true', 'Yes'),
-('allow_message_tool', 'false', 'No'),
-('allow_social_tool', 'true', 'Yes'),
-('allow_social_tool', 'false', 'No'),
-('allow_students_to_browse_courses','true','Yes'),
-('allow_students_to_browse_courses','false','No'),
-('show_email_of_teacher_or_tutor ', 'true', 'Yes'),
-('show_email_of_teacher_or_tutor ', 'false', 'No'),
-('show_session_data ', 'true', 'Yes'),
-('show_session_data ', 'false', 'No'),
-('allow_use_sub_language', 'true', 'Yes'),
-('allow_use_sub_language', 'false', 'No'),
-('show_glossary_in_documents', 'none', 'ShowGlossaryInDocumentsIsNone'),
-('show_glossary_in_documents', 'ismanual', 'ShowGlossaryInDocumentsIsManual'),
-('show_glossary_in_documents', 'isautomatic', 'ShowGlossaryInDocumentsIsAutomatic'),
-('allow_terms_conditions', 'true', 'Yes'),
-('allow_terms_conditions', 'false', 'No'),
-('search_enabled', 'true', 'Yes'),
-('search_enabled', 'false', 'No'),
-('search_show_unlinked_results', 'true', 'SearchShowUnlinkedResults'),
-('search_show_unlinked_results', 'false', 'SearchHideUnlinkedResults'),
-('show_courses_descriptions_in_catalog', 'true', 'Yes'),
-('show_courses_descriptions_in_catalog', 'false', 'No'),
-('allow_coach_to_edit_course_session','true','Yes'),
-('allow_coach_to_edit_course_session','false','No'),
-('show_glossary_in_extra_tools', 'true', 'Yes'),
-('show_glossary_in_extra_tools', 'false', 'No'),
-('send_email_to_admin_when_create_course','true','Yes'),
-('send_email_to_admin_when_create_course','false','No'),
-('go_to_course_after_login','true','Yes'),
-('go_to_course_after_login','false','No'),
-('math_mimetex','true','Yes'),
-('math_mimetex','false','No'),
-('math_asciimathML','true','Yes'),
-('math_asciimathML','false','No'),
-('enabled_asciisvg','true','Yes'),
-('enabled_asciisvg','false','No'),
-('include_asciimathml_script','true','Yes'),
-('include_asciimathml_script','false','No'),
-('youtube_for_students','true','Yes'),
-('youtube_for_students','false','No'),
-('block_copy_paste_for_students','true','Yes'),
-('block_copy_paste_for_students','false','No'),
-('more_buttons_maximized_mode','true','Yes'),
-('more_buttons_maximized_mode','false','No'),
-('students_download_folders','true','Yes'),
-('students_download_folders','false','No'),
-('users_copy_files','true','Yes'),
-('users_copy_files','false','No'),
-('allow_students_to_create_groups_in_social','true','Yes'),
-('allow_students_to_create_groups_in_social','false','No'),
-('allow_send_message_to_all_platform_users','true','Yes'),
-('allow_send_message_to_all_platform_users','false','No'),
-('use_users_timezone', 'true', 'Yes'),
-('use_users_timezone', 'false', 'No'),
-('allow_user_course_subscription_by_course_admin', 'true', 'Yes'),
-('allow_user_course_subscription_by_course_admin', 'false', 'No'),
-('show_link_bug_notification', 'true', 'Yes'),
-('show_link_bug_notification', 'false', 'No'),
-('course_validation', 'true', 'Yes'),
-('course_validation', 'false', 'No'),
-('sso_authentication', 'true', 'Yes'),
-('sso_authentication', 'false', 'No'),
-('sso_authentication_protocol', 'http://', 'http://'),
-('sso_authentication_protocol', 'https://', 'https://'),
-('enabled_wiris','true','Yes'),
-('enabled_wiris','false','No'),
-('allow_spellcheck','true','Yes'),
-('allow_spellcheck','false','No'),
-('force_wiki_paste_as_plain_text','true','Yes'),
-('force_wiki_paste_as_plain_text','false','No'),
-('enabled_googlemaps','true','Yes'),
-('enabled_googlemaps','false','No'),
-('enabled_imgmap','true','Yes'),
-('enabled_imgmap','false','No'),
-('enabled_support_svg','true','Yes'),
-('enabled_support_svg','false','No'),
-('pdf_export_watermark_enable','true','Yes'),
-('pdf_export_watermark_enable','false','No'),
-('pdf_export_watermark_by_course','true','Yes'),
-('pdf_export_watermark_by_course','false','No'),
-('enabled_insertHtml','true','Yes'),
-('enabled_insertHtml','false','No'),
-('students_export2pdf','true','Yes'),
-('students_export2pdf','false','No'),
-('show_users_folders','true','Yes'),
-('show_users_folders','false','No'),
-('show_default_folders','true','Yes'),
-('show_default_folders','false','No'),
-('show_chat_folder','true','Yes'),
-('show_chat_folder','false','No'),
-('enabled_text2audio','true','Yes'),
-('enabled_text2audio','false','No'),
-('enabled_support_pixlr','true','Yes'),
-('enabled_support_pixlr','false','No'),
-('show_groups_to_users','true','Yes'),
-('show_groups_to_users','false','No'),
-('accessibility_font_resize', 'true', 'Yes'),
-('accessibility_font_resize', 'false', 'No'),
-('hide_courses_in_sessions','true','Yes'),
-('hide_courses_in_sessions','false','No'),
-('enable_quiz_scenario', 'true', 'Yes'),
-('enable_quiz_scenario', 'false', 'No'),
-('enable_nanogong','true','Yes'),
-('enable_nanogong','false','No');
-
-UNLOCK TABLES;
-
-/*!40000 ALTER TABLE settings_options ENABLE KEYS */;
-
---
--- Table structure for table sys_announcement
---
-
-DROP TABLE IF EXISTS sys_announcement;
-CREATE TABLE sys_announcement (
- id int unsigned NOT NULL auto_increment,
- date_start datetime NOT NULL default '0000-00-00 00:00:00',
- date_end datetime NOT NULL default '0000-00-00 00:00:00',
- visible_teacher tinyint NOT NULL default 0,
- visible_student tinyint NOT NULL default 0,
- visible_guest tinyint NOT NULL default 0,
- title varchar(250) NOT NULL default '',
- content text NOT NULL,
- lang varchar(70) NULL default NULL,
- access_url_id INT NOT NULL default 1,
- PRIMARY KEY (id)
-);
-
---
--- Dumping data for table sys_announcement
---
-
-
-/*!40000 ALTER TABLE sys_announcement DISABLE KEYS */;
-LOCK TABLES sys_announcement WRITE;
-UNLOCK TABLES;
-/*!40000 ALTER TABLE sys_announcement ENABLE KEYS */;
-
---
--- Table structure for shared_survey
---
-
-DROP TABLE IF EXISTS shared_survey;
-CREATE TABLE shared_survey (
- survey_id int unsigned NOT NULL auto_increment,
- code varchar(20) default NULL,
- title text default NULL,
- subtitle text default NULL,
- author varchar(250) default NULL,
- lang varchar(20) default NULL,
- template varchar(20) default NULL,
- intro text,
- surveythanks text,
- creation_date datetime NOT NULL default '0000-00-00 00:00:00',
- course_code varchar(40) NOT NULL default '',
- PRIMARY KEY (survey_id),
- UNIQUE KEY id (survey_id)
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for shared_survey_question
---
-
-DROP TABLE IF EXISTS shared_survey_question;
-CREATE TABLE shared_survey_question (
- question_id int NOT NULL auto_increment,
- survey_id int NOT NULL default '0',
- survey_question text NOT NULL,
- survey_question_comment text NOT NULL,
- type varchar(250) NOT NULL default '',
- display varchar(10) NOT NULL default '',
- sort int NOT NULL default '0',
- code varchar(40) NOT NULL default '',
- max_value int NOT NULL,
- PRIMARY KEY (question_id)
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for shared_survey_question_option
---
-
-DROP TABLE IF EXISTS shared_survey_question_option;
-CREATE TABLE shared_survey_question_option (
- question_option_id int NOT NULL auto_increment,
- question_id int NOT NULL default '0',
- survey_id int NOT NULL default '0',
- option_text text NOT NULL,
- sort int NOT NULL default '0',
- PRIMARY KEY (question_option_id)
-);
-
-
--- --------------------------------------------------------
-
---
--- Table structure for templates (User's FCKEditor templates)
---
-
-DROP TABLE IF EXISTS templates;
-CREATE TABLE templates (
- id int NOT NULL auto_increment,
- title varchar(100) NOT NULL,
- description varchar(250) NOT NULL,
- course_code varchar(40) NOT NULL,
- user_id int NOT NULL,
- ref_doc int NOT NULL,
- image varchar(250) NOT NULL,
- PRIMARY KEY (id)
-);
-
-
-
---
-
--- --------------------------------------------------------
-
---
--- Table structure of openid_association (keep info on openid servers)
---
-
-DROP TABLE IF EXISTS openid_association;
-CREATE TABLE IF NOT EXISTS openid_association (
- id int NOT NULL auto_increment,
- idp_endpoint_uri text NOT NULL,
- session_type varchar(30) NOT NULL,
- assoc_handle text NOT NULL,
- assoc_type text NOT NULL,
- expires_in bigint NOT NULL,
- mac_key text NOT NULL,
- created bigint NOT NULL,
- PRIMARY KEY (id)
-);
---
--- --------------------------------------------------------
---
--- Tables for gradebook
---
-DROP TABLE IF EXISTS gradebook_category;
-CREATE TABLE gradebook_category (
- id int NOT NULL auto_increment,
- name text NOT NULL,
- description text,
- user_id int NOT NULL,
- course_code varchar(40) default NULL,
- parent_id int default NULL,
- weight smallint NOT NULL,
- visible tinyint NOT NULL,
- certif_min_score int DEFAULT NULL,
- session_id int DEFAULT NULL,
- document_id int unsigned DEFAULT NULL,
- PRIMARY KEY (id)
-);
-DROP TABLE IF EXISTS gradebook_evaluation;
-CREATE TABLE gradebook_evaluation (
- id int unsigned NOT NULL auto_increment,
- name text NOT NULL,
- description text,
- user_id int NOT NULL,
- course_code varchar(40) default NULL,
- category_id int default NULL,
- created_at DATETIME NOT NULL default '0000-00-00 00:00:00',
- weight smallint NOT NULL,
- max float unsigned NOT NULL,
- visible tinyint NOT NULL,
- type varchar(40) NOT NULL default 'evaluation',
- locked int NOT NULL DEFAULT 0,
- PRIMARY KEY (id)
-);
-DROP TABLE IF EXISTS gradebook_link;
-CREATE TABLE gradebook_link (
- id int NOT NULL auto_increment,
- type int NOT NULL,
- ref_id int NOT NULL,
- user_id int NOT NULL,
- course_code varchar(40) NOT NULL,
- category_id int NOT NULL,
- created_at DATETIME NOT NULL default '0000-00-00 00:00:00',
- weight smallint NOT NULL,
- visible tinyint NOT NULL,
- PRIMARY KEY (id)
-);
-DROP TABLE IF EXISTS gradebook_result;
-CREATE TABLE gradebook_result (
- id int NOT NULL auto_increment,
- user_id int NOT NULL,
- evaluation_id int NOT NULL,
- created_at DATETIME NOT NULL default '0000-00-00 00:00:00',
- score float unsigned default NULL,
- PRIMARY KEY (id)
-);
-DROP TABLE IF EXISTS gradebook_score_display;
-CREATE TABLE gradebook_score_display (
- id int NOT NULL auto_increment,
- score float unsigned NOT NULL,
- display varchar(40) NOT NULL,
- category_id int NOT NULL default 0,
- score_color_percent float unsigned NOT NULL default 0,
- PRIMARY KEY (id)
-);
-ALTER TABLE gradebook_score_display ADD INDEX(category_id);
-
-DROP TABLE IF EXISTS user_field;
-CREATE TABLE user_field (
- id INT NOT NULL auto_increment,
- field_type int NOT NULL DEFAULT 1,
- field_variable varchar(64) NOT NULL,
- field_display_text varchar(64),
- field_default_value text,
- field_order int,
- field_visible tinyint default 0,
- field_changeable tinyint default 0,
- field_filter tinyint default 0,
- tms DATETIME NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY(id)
-);
-DROP TABLE IF EXISTS user_field_options;
-CREATE TABLE user_field_options (
- id int NOT NULL auto_increment,
- field_id int NOT NULL,
- option_value text,
- option_display_text varchar(64),
- option_order int,
- tms DATETIME NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY (id)
-);
-DROP TABLE IF EXISTS user_field_values;
-CREATE TABLE user_field_values(
- id bigint NOT NULL auto_increment,
- user_id int unsigned NOT NULL,
- field_id int NOT NULL,
- field_value text,
- tms DATETIME NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY(id)
-);
-
-ALTER TABLE user_field_values ADD INDEX (user_id, field_id);
-
-DROP TABLE IF EXISTS gradebook_result_log;
-CREATE TABLE gradebook_result_log (
- id int NOT NULL auto_increment,
- id_result int NOT NULL,
- user_id int NOT NULL,
- evaluation_id int NOT NULL,
- created_at DATETIME NOT NULL default '0000-00-00 00:00:00',
- score float unsigned default NULL,
- PRIMARY KEY(id)
-);
-
-DROP TABLE IF EXISTS gradebook_linkeval_log;
-CREATE TABLE gradebook_linkeval_log (
- id int NOT NULL auto_increment,
- id_linkeval_log int NOT NULL,
- name text,
- description text,
- created_at DATETIME NOT NULL default '0000-00-00 00:00:00',
- weight smallint default NULL,
- visible tinyint default NULL,
- type varchar(20) NOT NULL,
- user_id_log int NOT NULL,
- PRIMARY KEY (id)
-);
-
---
--- --------------------------------------------------------
---
--- Tables for the access URL feature
---
-
-DROP TABLE IF EXISTS access_url;
-CREATE TABLE access_url(
- id int unsigned NOT NULL auto_increment,
- url varchar(255) NOT NULL,
- description text,
- active int unsigned not null default 0,
- created_by int not null,
- tms DATETIME NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY (id)
-);
-
-INSERT INTO access_url(url, description, active, created_by) VALUES ('http://localhost/',' ',1,1);
-
-DROP TABLE IF EXISTS access_url_rel_user;
-CREATE TABLE access_url_rel_user (
- access_url_id int unsigned NOT NULL,
- user_id int unsigned NOT NULL,
- PRIMARY KEY (access_url_id, user_id)
-);
-
-ALTER TABLE access_url_rel_user ADD INDEX idx_access_url_rel_user_user (user_id);
-ALTER TABLE access_url_rel_user ADD INDEX idx_access_url_rel_user_access_url(access_url_id);
-ALTER TABLE access_url_rel_user ADD INDEX idx_access_url_rel_user_access_url_user (user_id,access_url_id);
-
-DROP TABLE IF EXISTS access_url_rel_course;
-CREATE TABLE access_url_rel_course (
- access_url_id int unsigned NOT NULL,
- course_code char(40) NOT NULL,
- PRIMARY KEY (access_url_id, course_code)
-);
-
-
-DROP TABLE IF EXISTS access_url_rel_session;
-CREATE TABLE access_url_rel_session (
- access_url_id int unsigned NOT NULL,
- session_id int unsigned NOT NULL,
- PRIMARY KEY (access_url_id, session_id)
-);
-
---
--- Table structure for table sys_calendar
---
-CREATE TABLE IF NOT EXISTS sys_calendar (
- id int unsigned NOT NULL auto_increment,
- title varchar(255) NOT NULL,
- content text,
- start_date datetime NOT NULL default '0000-00-00 00:00:00',
- end_date datetime NOT NULL default '0000-00-00 00:00:00',
- access_url_id INT NOT NULL default 1,
- PRIMARY KEY (id)
-);
-
-CREATE TABLE IF NOT EXISTS system_template (
- id int UNSIGNED NOT NULL auto_increment,
- title varchar(250) NOT NULL,
- comment text NOT NULL,
- image varchar(250) NOT NULL,
- content text NOT NULL,
- PRIMARY KEY (id)
-);
-
--- Adding the platform templates
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleCourseTitle', 'TemplateTitleCourseTitleDescription', 'coursetitle.gif', '
-
- {CSS}
-
-
-
-
-
-
-
-
- TITULUS 1
- TITULUS 2
-
- |
-
-  |
-
-
-
-
-
-
-
-');
-
-/*
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleCheckList', 'TemplateTitleCheckListDescription', 'checklist.gif', '
-
- {CSS}
-
-
-
-
-
-
- Lorem ipsum dolor sit amet
-
- - consectetur adipisicing elit
- - sed do eiusmod tempor incididunt
- - ut labore et dolore magna aliqua
-
-
- Ut enim ad minim veniam
-
- - quis nostrud exercitation ullamco
- - laboris nisi ut aliquip ex ea commodo consequat
- - Excepteur sint occaecat cupidatat non proident
-
-
- Sed ut perspiciatis unde omnis
-
- - iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam
- - eaque ipsa quae ab illo inventore veritatis
- - et quasi architecto beatae vitae dicta sunt explicabo.
-
-
- |
-
- Ut enim ad minima
- Veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur.
-
- 
- |
-
-
-
-
-
-
-
-');
-*/
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleTeacher', 'TemplateTitleTeacherDescription', 'yourinstructor.gif', '
-
- {CSS}
-
-
-
-
-
-
- |
- |
- |
-
-
- |
-
-
-
- Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis pellentesque.
- |
-
-  |
-
-
-
-
-
-
-
-');
-
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleLeftList', 'TemplateTitleListLeftListDescription', 'leftlist.gif', '
-
- {CSS}
-
-
-
-
-
- |
- 
- |
-
-
- | Lorem
- ipsum dolor sit amet.
- |
-
-
-
- Vivamus
- a quam.
- |
-
-
- |
- Proin
- a est stibulum ante ipsum. |
-
-
-
-
-
-
-
-');
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleLeftRightList', 'TemplateTitleLeftRightListDescription', 'leftrightlist.gif', '
-
-
- {CSS}
-
-
-
-
-
- |
- 
- |
- |
-
-
- | Lorem
- ipsum dolor sit amet.
- |
-
- Convallis
- ut. Cras dui magna. |
-
-
-
- Vivamus
- a quam.
- |
-
- Etiam
- lacinia stibulum ante.
- |
-
-
- |
- Proin
- a est stibulum ante ipsum. |
-
- Consectetuer
- adipiscing elit.
- |
-
-
-
-
-
-
-
-
-');
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleRightList', 'TemplateTitleRightListDescription', 'rightlist.gif', '
-
- {CSS}
-
-
-
-
-
- 
- |
- |
-
-
- |
- Convallis
- ut. Cras dui magna. |
-
-
-
- Etiam
- lacinia.
- |
-
-
-
- Consectetuer
- adipiscing elit.
- |
-
-
-
-
-
-
-
-');
-
-/*
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleComparison', 'TemplateTitleComparisonDescription', 'compare.gif', '
-
- {CSS}
-
-
-
-
-
- |
- 
- |
- |
-
-
- |
- Lorem ipsum dolor sit amet.
- |
-
- Convallis
- ut. Cras dui magna. |
-
-
-');
-*/
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleDiagram', 'TemplateTitleDiagramDescription', 'diagram.gif', '
-
- {CSS}
-
-
-
-
-
-
-
-
- Etiam
- lacinia stibulum ante.
- Convallis
- ut. Cras dui magna. |
-
-  |
-
-
-
-  |
-
-
-
-
-
-
-
-
-
-');
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleDesc', 'TemplateTitleCheckListDescription', 'description.gif', '
-
- {CSS}
-
-
-
-
-
-
-  Lorem ipsum dolor sit amet
-
- Ut enim ad minim veniam
- Duis aute irure dolor in reprehenderit
- Neque porro quisquam est |
-
-
- 
|
-
-
-
-
-
-
-
-');
-
-/*
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleObjectives', 'TemplateTitleObjectivesDescription', 'courseobjectives.gif', '
-
- {CSS}
-
-
-
-
-
-
-
- 
- |
- |
-
-
-
- Lorem ipsum dolor sit amet
-
- - consectetur adipisicing elit
- - sed do eiusmod tempor incididunt
- - ut labore et dolore magna aliqua
-
- Ut enim ad minim veniam
-
- - quis nostrud exercitation ullamco
- - laboris nisi ut aliquip ex ea commodo consequat
- - Excepteur sint occaecat cupidatat non proident
-
- |
-
-
-
-
-
-
-
-');
-*/
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleCycle', 'TemplateTitleCycleDescription', 'cyclechart.gif', '
-
- {CSS}
-
-
-
-
-
-
-
-
-
-
- |
-
-
- |
- Lorem ipsum
- |
-
- |
-
- Sed ut perspiciatis
- |
-
-
-
-
- - dolor sit amet
- - consectetur adipisicing elit
- - sed do eiusmod tempor
- - adipisci velit, sed quia non numquam
- - eius modi tempora incidunt ut labore et dolore magnam
-
- |
- |
-
-
- - ut enim ad minim veniam
- - quis nostrud exercitation
- ullamco laboris nisi ut
- - Quis autem vel eum iure reprehenderit qui in ea
- - voluptate velit esse quam nihil molestiae consequatur,
-
- |
-
-
-
-
- |
-
-
-
-
-
-
-
-');
-
-/*
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleLearnerWonder', 'TemplateTitleLearnerWonderDescription', 'learnerwonder.gif', '
-
- {CSS}
-
-
-
-
-
-
-
- 
- |
- |
-
-
- |
- Convallis
- ut. Cras dui magna. |
-
-
-
- Etiam
- lacinia stibulum ante.
- |
-
-
-
- Consectetuer
- adipiscing elit.
- |
-
-
-
-
-
-
-
-');
-*/
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleTimeline', 'TemplateTitleTimelineDescription', 'phasetimeline.gif', '
-
- {CSS}
-
-
-
-
-
-
-
- | Lorem ipsum |
- |
- Perspiciatis |
- |
- Nemo enim |
-
-
-
-
-
- - dolor sit amet
- - consectetur
- - adipisicing elit
-
-
- |
-
-
- |
-
-
-
- - ut labore
- - et dolore
- - magni dolores
-
- |
-
-
- |
-
-
-
- - neque porro
- - quisquam est
- - qui dolorem
-
-
- |
-
-
-
-
-
-
-
-');
-
-/*
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleStopAndThink', 'TemplateTitleStopAndThinkDescription', 'stopthink.gif', '
-
- {CSS}
-
-
-
-
-
-
-
-
- |
- |
-
-
-
- Attentio sectetur adipisicing elit
-
- - sed do eiusmod tempor incididunt
- - ut labore et dolore magna aliqua
- - quis nostrud exercitation ullamco
-
|
-
-
-
-
-
-
-
-');
-*/
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleTable', 'TemplateTitleCheckListDescription', 'table.gif', '
-
- {CSS}
-
-
-
-
-
- A table
-
-
-
- | City |
- 2005 |
- 2006 |
- 2007 |
- 2008 |
-
-
- | Lima |
- 10,40 |
- 8,95 |
- 9,19 |
- 9,76 |
-
-
- | New York |
- 18,39 |
- 17,52 |
- 16,57 |
- 16,60 |
-
-
- | Barcelona |
- 0,10 |
- 0,10 |
- 0,05 |
- 0,05 |
-
-
- | Paris |
- 3,38 |
- 3,63 |
- 3,63 |
- 3,54 |
-
-
-
-
-
-');
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleAudio', 'TemplateTitleAudioDescription', 'audiocomment.gif', '
-
- {CSS}
-
-
-
-
-
-
-
-');
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleVideo', 'TemplateTitleVideoDescription', 'video.gif', '
-
- {CSS}
-
-
-
-
-
-
-
-
-
-
-
-
- url={REL_PATH}main/default_course_document/video/flv/example.flv width=320 height=240 loop=false play=false downloadable=false fullscreen=true displayNavigation=true displayDigits=true align=left dispPlaylist=none playlistThumbs=false
-
-
-
-
-
-
-
- |
-
-
-
- Lorem ipsum dolor sit amet
-
- - consectetur adipisicing elit
- - sed do eiusmod tempor incididunt
- - ut labore et dolore magna aliqua
-
- Ut enim ad minim veniam
-
- - quis nostrud exercitation ullamco
- - laboris nisi ut aliquip ex ea commodo consequat
- - Excepteur sint occaecat cupidatat non proident
-
- |
-
-
-
-
-
-
-
-
-');
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleFlash', 'TemplateTitleFlashDescription', 'flash.gif', '
-
- {CSS}
-
-
-
-
-
-
-
-
-
-');
-
-
---
--- --------------------------------------------------------
---
--- Tables for reservation
---
-
-
---
--- Table structure for table reservation category
---
-
-CREATE TABLE reservation_category (
- id int unsigned NOT NULL auto_increment,
- parent_id int NOT NULL default 0,
- name varchar(128) NOT NULL default '',
- PRIMARY KEY ( id )
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for table reservation category_rights
---
-
-CREATE TABLE reservation_category_rights (
- category_id int NOT NULL default 0,
- class_id int NOT NULL default 0,
- m_items tinyint NOT NULL default 0
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for table item reservation
---
-
-CREATE TABLE reservation_item (
- id int unsigned NOT NULL auto_increment,
- category_id int unsigned NOT NULL default 0,
- course_code varchar(40) NOT NULL default '',
- name varchar(128) NOT NULL default '',
- description text NOT NULL,
- blackout tinyint NOT NULL default 0,
- creator int unsigned NOT NULL default 0,
- always_available TINYINT NOT NULL default 0,
- PRIMARY KEY ( id )
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for table reservation item_rights
---
-
-CREATE TABLE reservation_item_rights (
- item_id int unsigned NOT NULL default 0,
- class_id int unsigned NOT NULL default 0,
- edit_right tinyint unsigned NOT NULL default 0,
- delete_right tinyint unsigned NOT NULL default 0,
- m_reservation tinyint unsigned NOT NULL default 0,
- view_right tinyint NOT NULL default 0,
- PRIMARY KEY ( item_id , class_id )
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for main reservation table
---
-
-CREATE TABLE reservation_main (
- id int unsigned NOT NULL auto_increment,
- subid int unsigned NOT NULL default 0,
- item_id int unsigned NOT NULL default 0,
- auto_accept tinyint unsigned NOT NULL default 0,
- max_users int unsigned NOT NULL default 1,
- start_at datetime NOT NULL default '0000-00-00 00:00:00',
- end_at datetime NOT NULL default '0000-00-00 00:00:00',
- subscribe_from datetime NOT NULL default '0000-00-00 00:00:00',
- subscribe_until datetime NOT NULL default '0000-00-00 00:00:00',
- subscribers int unsigned NOT NULL default 0,
- notes text NOT NULL,
- timepicker tinyint NOT NULL default 0,
- timepicker_min int NOT NULL default 0,
- timepicker_max int NOT NULL default 0,
- PRIMARY KEY ( id )
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for reservation subscription table
---
-
-CREATE TABLE reservation_subscription (
- dummy int unsigned NOT NULL auto_increment,
- user_id int unsigned NOT NULL default 0,
- reservation_id int unsigned NOT NULL default 0,
- accepted tinyint unsigned NOT NULL default 0,
- start_at datetime NOT NULL default '0000-00-00 00:00:00',
- end_at datetime NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY ( dummy )
-);
-
--- ---------------------------------------------------------
-
---
--- Table structure for table user_rel_user
---
-CREATE TABLE user_rel_user (
- id bigint unsigned not null auto_increment,
- user_id int unsigned not null,
- friend_user_id int unsigned not null,
- relation_type int not null default 0,
- last_edit DATETIME,
- PRIMARY KEY(id)
-);
-
--- Commenting by jmontoya produces errors
---ALTER TABLE user_friend ADD INDEX idx_user_friend_user (user_id);
---ALTER TABLE user_friend ADD INDEX idx_user_friend_friend_user(friend_user_id);
---ALTER TABLE user_friend ADD INDEX idx_user_friend_user_friend_user(user_id,friend_user_id);
-
---
--- Table structure for table user_friend_relation_type
---
-CREATE TABLE user_friend_relation_type(
- id int unsigned not null auto_increment,
- title char(20),
- PRIMARY KEY(id)
-);
-
-
---
--- Table structure for MD5 API keys for users
---
-
-CREATE TABLE user_api_key (
- id int unsigned NOT NULL auto_increment,
- user_id int unsigned NOT NULL,
- api_key char(32) NOT NULL,
- api_service char(10) NOT NULL default 'dokeos',
- PRIMARY KEY (id)
-);
-ALTER TABLE user_api_key ADD INDEX idx_user_api_keys_user (user_id);
-
---
--- Table structure for table message
---
-CREATE TABLE message(
- id bigint unsigned not null auto_increment,
- user_sender_id int unsigned not null,
- user_receiver_id int unsigned not null,
- msg_status tinyint unsigned not null default 0, -- 0 read, 1 unread, 3 deleted, 5 pending invitation, 6 accepted invitation, 7 invitation denied
- send_date datetime not null default '0000-00-00 00:00:00',
- title varchar(255) not null,
- content text not null,
- group_id int unsigned not null default 0,
- parent_id int unsigned not null default 0,
- update_date datetime not null default '0000-00-00 00:00:00',
- PRIMARY KEY(id)
-);
-ALTER TABLE message ADD INDEX idx_message_user_sender(user_sender_id);
-ALTER TABLE message ADD INDEX idx_message_user_receiver(user_receiver_id);
-ALTER TABLE message ADD INDEX idx_message_user_sender_user_receiver(user_sender_id,user_receiver_id);
-ALTER TABLE message ADD INDEX idx_message_group(group_id);
-ALTER TABLE message ADD INDEX idx_message_parent(parent_id);
-
-INSERT INTO user_friend_relation_type (id,title)
-VALUES
-(1,'SocialUnknow'),
-(2,'SocialParent'),
-(3,'SocialFriend'),
-(4,'SocialGoodFriend'),
-(5,'SocialEnemy'),
-(6,'SocialDeleted');
-
---
--- Table structure for table legal (Terms & Conditions)
---
-
-CREATE TABLE legal (
- legal_id int NOT NULL auto_increment,
- language_id int NOT NULL,
- date int NOT NULL default 0,
- content text,
- type int NOT NULL,
- changes text NOT NULL,
- version int,
- PRIMARY KEY (legal_id,language_id)
-);
-
-INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable) values (1, 'legal_accept','Legal',0,0);
-
---
--- Table structure for certificate with gradebook
---
-
-CREATE TABLE gradebook_certificate (
- id bigint unsigned not null auto_increment,
- cat_id int unsigned not null,
- user_id int unsigned not null,
- score_certificate float unsigned not null default 0,
- created_at DATETIME NOT NULL default '0000-00-00 00:00:00',
- path_certificate text null,
- PRIMARY KEY(id)
-);
-ALTER TABLE gradebook_certificate ADD INDEX idx_gradebook_certificate_category_id(cat_id);
-ALTER TABLE gradebook_certificate ADD INDEX idx_gradebook_certificate_user_id(user_id);
-ALTER TABLE gradebook_certificate ADD INDEX idx_gradebook_certificate_category_id_user_id(cat_id,user_id);
-
-
-
---
--- Tables structure for search tool
---
-
--- specific fields tables
-CREATE TABLE specific_field (
- id INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
- code char(1) NOT NULL,
- name VARCHAR(200) NOT NULL
-);
-
-CREATE TABLE specific_field_values (
- id INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
- course_code VARCHAR(40) NOT NULL ,
- tool_id VARCHAR(100) NOT NULL ,
- ref_id INT NOT NULL ,
- field_id INT NOT NULL ,
- value VARCHAR(200) NOT NULL
-);
-ALTER TABLE specific_field ADD CONSTRAINT unique_specific_field__code UNIQUE (code);
-
--- search engine references to map dokeos resources
-
-CREATE TABLE search_engine_ref (
- id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
- course_code VARCHAR( 40 ) NOT NULL,
- tool_id VARCHAR( 100 ) NOT NULL,
- ref_id_high_level INT NOT NULL,
- ref_id_second_level INT NULL,
- search_did INT NOT NULL
-);
-
---
--- Table structure for table sessions categories
---
-
-CREATE TABLE session_category (
- id int NOT NULL auto_increment,
- name varchar(100) default NULL,
- date_start date default NULL,
- date_end date default NULL,
- access_url_id INT NOT NULL default 1,
- PRIMARY KEY (id)
-);
-
-
---
--- Table structure for table user tag
---
-
-CREATE TABLE tag (
- id int NOT NULL auto_increment,
- tag char(255) NOT NULL,
- field_id int NOT NULL,
- count int NOT NULL,
- PRIMARY KEY (id)
-);
-
-
-CREATE TABLE user_rel_tag (
- id int NOT NULL auto_increment,
- user_id int NOT NULL,
- tag_id int NOT NULL,
- PRIMARY KEY (id)
-);
-
---
--- Table structure for user platform groups
---
-
-CREATE TABLE groups (
- id int NOT NULL AUTO_INCREMENT,
- name varchar(255) NOT NULL,
- description varchar(255) NOT NULL,
- picture_uri varchar(255) NOT NULL,
- url varchar(255) NOT NULL,
- visibility int NOT NULL,
- updated_on varchar(255) NOT NULL,
- created_on varchar(255) NOT NULL,
- PRIMARY KEY (id)
-);
-
-CREATE TABLE group_rel_tag (
- id int NOT NULL AUTO_INCREMENT,
- tag_id int NOT NULL,
- group_id int NOT NULL,
- PRIMARY KEY (id)
-);
-
-ALTER TABLE group_rel_tag ADD INDEX ( group_id );
-ALTER TABLE group_rel_tag ADD INDEX ( tag_id );
-
-CREATE TABLE group_rel_user (
- id int NOT NULL AUTO_INCREMENT,
- group_id int NOT NULL,
- user_id int NOT NULL,
- relation_type int NOT NULL,
- PRIMARY KEY (id)
-);
-ALTER TABLE group_rel_user ADD INDEX ( group_id );
-ALTER TABLE group_rel_user ADD INDEX ( user_id );
-ALTER TABLE group_rel_user ADD INDEX ( relation_type );
---
--- Table structure for table message attachment
---
-
-CREATE TABLE IF NOT EXISTS message_attachment (
- id int NOT NULL AUTO_INCREMENT,
- path varchar(255) NOT NULL,
- comment text,
- size int NOT NULL default 0,
- message_id int NOT NULL,
- filename varchar(255) NOT NULL,
- PRIMARY KEY (id)
-);
-
-INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable) values (10, 'tags','tags',0,0);
-INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable) values (1, 'rssfeeds','RSS',0,0);
-INSERT INTO course_field (field_type, field_variable, field_display_text, field_default_value, field_visible, field_changeable) values (10, 'special_course','Special course', 'Yes', 1 , 1);
-
---
--- Table structure for table block
---
-
-CREATE TABLE IF NOT EXISTS block (
- id INT NOT NULL AUTO_INCREMENT,
- name VARCHAR(255) NULL,
- description TEXT NULL,
- path VARCHAR(255) NOT NULL,
- controller VARCHAR(100) NOT NULL,
- active TINYINT NOT NULL DEFAULT 1,
- PRIMARY KEY(id)
-);
-ALTER TABLE block ADD UNIQUE(path);
-
-INSERT INTO user_field(field_type, field_variable, field_display_text, field_visible, field_changeable) VALUES(1, 'dashboard', 'Dashboard', 0, 0);
-INSERT INTO user_field(field_type, field_variable, field_display_text, field_visible, field_changeable) VALUES(11, 'timezone', 'Timezone', 0, 0);
-
---
--- Structure for table 'course_request' ("Course validation" feature)
---
-
-DROP TABLE IF EXISTS course_request;
-CREATE TABLE course_request (
- id int NOT NULL AUTO_INCREMENT,
- code varchar(40) NOT NULL,
- user_id int unsigned NOT NULL default '0',
- directory varchar(40) DEFAULT NULL,
- db_name varchar(40) DEFAULT NULL,
- course_language varchar(20) DEFAULT NULL,
- title varchar(250) DEFAULT NULL,
- description text,
- category_code varchar(40) DEFAULT NULL,
- tutor_name varchar(200) DEFAULT NULL,
- visual_code varchar(40) DEFAULT NULL,
- request_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- objetives text,
- target_audience text,
- status int unsigned NOT NULL default '0',
- info int unsigned NOT NULL default '0',
- exemplary_content int unsigned NOT NULL default '0',
- PRIMARY KEY (id),
- UNIQUE KEY code (code)
-);
-
---
--- Structure for Careers, Promotions and Usergroups
---
-
-CREATE TABLE career (
- id INT NOT NULL AUTO_INCREMENT,
- name VARCHAR(255) NOT NULL ,
- description TEXT NOT NULL,
- status INT NOT NULL default '0',
- created_at datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- updated_at datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (id)
-);
-
-CREATE TABLE promotion (
- id INT NOT NULL AUTO_INCREMENT,
- name VARCHAR(255) NOT NULL ,
- description TEXT NOT NULL,
- career_id INT NOT NULL,
- status INT NOT NULL default '0',
- created_at datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- updated_at datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY(id)
-);
-
-
-CREATE TABLE usergroup (
- id INT NOT NULL AUTO_INCREMENT,
- name VARCHAR(255) NOT NULL,
- description TEXT NOT NULL,
- PRIMARY KEY (id)
-);
-
-CREATE TABLE usergroup_rel_user (
- usergroup_id INT NOT NULL,
- user_id INT NOT NULL
-);
-
-CREATE TABLE usergroup_rel_course (
- usergroup_id INT NOT NULL,
- course_id INT NOT NULL
-);
-
-CREATE TABLE usergroup_rel_session (
- usergroup_id INT NOT NULL,
- session_id INT NOT NULL
-);
-
-
---
--- Structure for Mail notifications
---
-
-CREATE TABLE notification (
- id BIGINT PRIMARY KEY NOT NULL AUTO_INCREMENT,
- dest_user_id INT NOT NULL,
- dest_mail CHAR(255),
- title CHAR(255),
- content CHAR(255),
- send_freq SMALLINT DEFAULT 1,
- created_at DATETIME NOT NULL,
- sent_at DATETIME NULL
-);
-
-ALTER TABLE notification ADD index mail_notify_sent_index (sent_at);
-ALTER TABLE notification ADD index mail_notify_freq_index (sent_at, send_freq, created_at);
-
-INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable, field_default_value) values (4, 'mail_notify_invitation', 'MailNotifyInvitation',1,1,'1');
-INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable, field_default_value) values (4, 'mail_notify_message', 'MailNotifyMessage',1,1,'1');
-INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable, field_default_value) values (4, 'mail_notify_group_message','MailNotifyGroupMessage',1,1,'1');
-
-INSERT INTO user_field_options (field_id, option_value, option_display_text, option_order) values (6, '1', 'AtOnce',1);
-INSERT INTO user_field_options (field_id, option_value, option_display_text, option_order) values (6, '8', 'Daily',2);
-INSERT INTO user_field_options (field_id, option_value, option_display_text, option_order) values (6, '0', 'No',3);
-
-INSERT INTO user_field_options (field_id, option_value, option_display_text, option_order) values (7, '1', 'AtOnce',1);
-INSERT INTO user_field_options (field_id, option_value, option_display_text, option_order) values (7, '8', 'Daily',2);
-INSERT INTO user_field_options (field_id, option_value, option_display_text, option_order) values (7, '0', 'No',3);
-
-INSERT INTO user_field_options (field_id, option_value, option_display_text, option_order) values (8, '1', 'AtOnce',1);
-INSERT INTO user_field_options (field_id, option_value, option_display_text, option_order) values (8, '8', 'Daily',2);
-INSERT INTO user_field_options (field_id, option_value, option_display_text, option_order) values (8, '0', 'No',3);
-
-
diff --git a/main/install/1.8.8/db_stats.sql b/main/install/1.8.8/db_stats.sql
deleted file mode 100755
index 34bd169a81..0000000000
--- a/main/install/1.8.8/db_stats.sql
+++ /dev/null
@@ -1,268 +0,0 @@
--- MySQL dump
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
-CREATE TABLE track_c_browsers (
- id int NOT NULL auto_increment,
- browser varchar(255) NOT NULL default '',
- counter int NOT NULL default 0,
- PRIMARY KEY (id)
-);
-
-CREATE TABLE track_c_countries (
- id int NOT NULL auto_increment,
- code varchar(40) NOT NULL default '',
- country varchar(50) NOT NULL default '',
- counter int NOT NULL default 0,
- PRIMARY KEY (id)
-);
-
-CREATE TABLE track_c_os (
- id int NOT NULL auto_increment,
- os varchar(255) NOT NULL default '',
- counter int NOT NULL default 0,
- PRIMARY KEY (id)
-);
-
-CREATE TABLE track_c_providers (
- id int NOT NULL auto_increment,
- provider varchar(255) NOT NULL default '',
- counter int NOT NULL default 0,
- PRIMARY KEY (id)
-);
-
-CREATE TABLE track_c_referers (
- id int NOT NULL auto_increment,
- referer varchar(255) NOT NULL default '',
- counter int NOT NULL default 0,
- PRIMARY KEY (id)
-);
-
-CREATE TABLE track_e_access (
- access_id int NOT NULL auto_increment,
- access_user_id int unsigned default NULL,
- access_date datetime NOT NULL default '0000-00-00 00:00:00',
- access_cours_code varchar(40) NOT NULL default '',
- access_tool varchar(30) default NULL,
- access_session_id int NOT NULL default 0,
- PRIMARY KEY (access_id),
- KEY access_user_id (access_user_id),
- KEY access_cours_code (access_cours_code)
-);
-
-CREATE TABLE track_e_lastaccess (
- access_id bigint NOT NULL auto_increment,
- access_user_id int unsigned default NULL,
- access_date datetime NOT NULL default '0000-00-00 00:00:00',
- access_cours_code varchar(40) NOT NULL,
- access_tool varchar(30) default NULL,
- access_session_id int unsigned default NULL,
- PRIMARY KEY (access_id),
- KEY access_user_id (access_user_id),
- KEY access_cours_code (access_cours_code),
- KEY access_session_id (access_session_id)
-);
-
-
-CREATE TABLE track_e_default (
- default_id int NOT NULL auto_increment,
- default_user_id int unsigned NOT NULL default 0,
- default_cours_code varchar(40) NOT NULL default '',
- default_date datetime NOT NULL default '0000-00-00 00:00:00',
- default_event_type varchar(20) NOT NULL default '',
- default_value_type varchar(20) NOT NULL default '',
- default_value tinytext NOT NULL,
- PRIMARY KEY (default_id)
-);
-
-CREATE TABLE track_e_downloads (
- down_id int NOT NULL auto_increment,
- down_user_id int unsigned default NULL,
- down_date datetime NOT NULL default '0000-00-00 00:00:00',
- down_cours_id varchar(40) NOT NULL default '',
- down_doc_path varchar(255) NOT NULL default '',
- down_session_id INT NOT NULL DEFAULT 0,
- PRIMARY KEY (down_id),
- KEY down_user_id (down_user_id),
- KEY down_cours_id (down_cours_id)
-);
-
-CREATE TABLE track_e_exercices (
- exe_id int NOT NULL auto_increment,
- exe_user_id int unsigned default NULL,
- exe_date datetime NOT NULL default '0000-00-00 00:00:00',
- exe_cours_id varchar(40) NOT NULL default '',
- exe_exo_id mediumint unsigned NOT NULL default 0,
- exe_result float(6,2) NOT NULL default 0,
- exe_weighting float(6,2) NOT NULL default 0,
- PRIMARY KEY (exe_id),
- KEY exe_user_id (exe_user_id),
- KEY exe_cours_id (exe_cours_id)
-);
-
-ALTER TABLE track_e_exercices ADD status varchar(20) NOT NULL default '';
-ALTER TABLE track_e_exercices ADD data_tracking text NOT NULL default '';
-ALTER TABLE track_e_exercices ADD start_date datetime NOT NULL default '0000-00-00 00:00:00';
-ALTER TABLE track_e_exercices ADD steps_counter SMALLINT UNSIGNED NOT NULL default 0;
-ALTER TABLE track_e_exercices ADD session_id SMALLINT UNSIGNED NOT NULL default 0;
-ALTER TABLE track_e_exercices ADD INDEX ( session_id ) ;
-ALTER TABLE track_e_exercices ADD orig_lp_id int NOT NULL default 0;
-ALTER TABLE track_e_exercices ADD orig_lp_item_id int NOT NULL default 0;
-ALTER TABLE track_e_exercices ADD exe_duration int UNSIGNED NOT NULL default 0;
-ALTER TABLE track_e_exercices ADD COLUMN expired_time_control datetime NOT NULL DEFAULT '0000-00-00 00:00:00';
-ALTER TABLE track_e_exercices ADD COLUMN orig_lp_item_view_id INT NOT NULL DEFAULT 0;
-
-CREATE TABLE track_e_attempt (
- exe_id int default NULL,
- user_id int NOT NULL default 0,
- question_id int NOT NULL default 0,
- answer text NOT NULL,
- teacher_comment text NOT NULL,
- marks float(6,2) NOT NULL default 0,
- course_code varchar(40) NOT NULL default '',
- position int default 0,
- tms datetime NOT NULL default '0000-00-00 00:00:00',
- session_id INT NOT NULL DEFAULT 0
-);
-ALTER TABLE track_e_attempt ADD INDEX (exe_id);
-ALTER TABLE track_e_attempt ADD INDEX (user_id);
-ALTER TABLE track_e_attempt ADD INDEX (question_id);
-ALTER TABLE track_e_attempt ADD INDEX (session_id);
-
-CREATE TABLE track_e_attempt_recording (
- exe_id int unsigned NOT NULL,
- question_id int unsigned NOT NULL,
- marks int NOT NULL,
- insert_date datetime NOT NULL default '0000-00-00 00:00:00',
- author int unsigned NOT NULL,
- teacher_comment text NOT NULL,
- session_id INT NOT NULL DEFAULT 0
-);
-ALTER TABLE track_e_attempt_recording ADD INDEX (exe_id);
-ALTER TABLE track_e_attempt_recording ADD INDEX (question_id);
-ALTER TABLE track_e_attempt_recording ADD INDEX (session_id);
-
-CREATE TABLE track_e_hotpotatoes (
- exe_name VARCHAR( 255 ) NOT NULL ,
- exe_user_id int unsigned DEFAULT NULL ,
- exe_date DATETIME DEFAULT '0000-00-00 00:00:00' NOT NULL ,
- exe_cours_id varchar(40) NOT NULL ,
- exe_result smallint default 0 NOT NULL ,
- exe_weighting smallint default 0 NOT NULL,
- KEY exe_user_id (exe_user_id),
- KEY exe_cours_id (exe_cours_id)
-);
-
-CREATE TABLE track_e_links (
- links_id int NOT NULL auto_increment,
- links_user_id int unsigned default NULL,
- links_date datetime NOT NULL default '0000-00-00 00:00:00',
- links_cours_id varchar(40) NOT NULL default '' ,
- links_link_id int NOT NULL default 0,
- links_session_id INT NOT NULL DEFAULT 0,
- PRIMARY KEY (links_id),
- KEY links_cours_id (links_cours_id),
- KEY links_user_id (links_user_id)
-);
-
-CREATE TABLE track_e_login (
- login_id int NOT NULL auto_increment,
- login_user_id int unsigned NOT NULL default 0,
- login_date datetime NOT NULL default '0000-00-00 00:00:00',
- login_ip varchar(39) NOT NULL default '',
- logout_date datetime NULL default NULL,
- PRIMARY KEY (login_id),
- KEY login_user_id (login_user_id)
-);
-
-CREATE TABLE track_e_online (
- login_id int NOT NULL auto_increment,
- login_user_id int unsigned NOT NULL default 0,
- login_date datetime NOT NULL default '0000-00-00 00:00:00',
- login_ip varchar(39) NOT NULL default '',
- course varchar(40) default NULL,
- session_id INT NOT NULL DEFAULT 0,
- access_url_id INT NOT NULL DEFAULT 1,
- PRIMARY KEY (login_id),
- KEY login_user_id (login_user_id)
-);
-
-CREATE TABLE track_e_open (
- open_id int NOT NULL auto_increment,
- open_remote_host tinytext NOT NULL,
- open_agent tinytext NOT NULL,
- open_referer tinytext NOT NULL,
- open_date datetime NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY (open_id)
-);
-
-CREATE TABLE track_e_uploads (
- upload_id int NOT NULL auto_increment,
- upload_user_id int unsigned default NULL,
- upload_date datetime NOT NULL default '0000-00-00 00:00:00',
- upload_cours_id varchar(40) NOT NULL default '',
- upload_work_id int NOT NULL default 0,
- upload_session_id INT NOT NULL DEFAULT 0,
- PRIMARY KEY (upload_id),
- KEY upload_user_id (upload_user_id),
- KEY upload_cours_id (upload_cours_id)
-);
-
-CREATE TABLE track_e_course_access (
- course_access_id int NOT NULL auto_increment,
- course_code varchar(40) NOT NULL,
- user_id int NOT NULL,
- login_course_date datetime NOT NULL default '0000-00-00 00:00:00',
- logout_course_date datetime default NULL,
- counter int NOT NULL,
- session_id int NOT NULL default 0,
- PRIMARY KEY (course_access_id)
-);
-
-CREATE TABLE track_e_hotspot (
- hotspot_id int NOT NULL auto_increment,
- hotspot_user_id int NOT NULL,
- hotspot_course_code varchar(50) NOT NULL,
- hotspot_exe_id int NOT NULL,
- hotspot_question_id int NOT NULL,
- hotspot_answer_id int NOT NULL,
- hotspot_correct tinyint(3) unsigned NOT NULL,
- hotspot_coordinate text NOT NULL,
- PRIMARY KEY (hotspot_id),
- KEY hotspot_course_code (hotspot_course_code),
- KEY hotspot_user_id (hotspot_user_id),
- KEY hotspot_exe_id (hotspot_exe_id),
- KEY hotspot_question_id (hotspot_question_id)
-);
-
-CREATE TABLE track_e_item_property (
- id int NOT NULL auto_increment PRIMARY KEY,
- course_id int NOT NULL,
- item_property_id int NOT NULL,
- title varchar(255),
- content text,
- progress int NOT NULL default 0,
- lastedit_date datetime NOT NULL default '0000-00-00 00:00:00',
- lastedit_user_id int NOT NULL,
- session_id int NOT NULL default 0
-);
-
-ALTER TABLE track_e_course_access ADD INDEX (user_id);
-ALTER TABLE track_e_course_access ADD INDEX (login_course_date);
-ALTER TABLE track_e_course_access ADD INDEX (course_code);
-ALTER TABLE track_e_course_access ADD INDEX (session_id);
-ALTER TABLE track_e_access ADD INDEX (access_session_id);
-
-ALTER TABLE track_e_online ADD INDEX (course);
-ALTER TABLE track_e_online ADD INDEX (session_id);
-
-ALTER TABLE track_e_item_property ADD INDEX (course_id, item_property_id, session_id);
-ALTER TABLE track_e_downloads ADD INDEX (down_session_id);
-ALTER TABLE track_e_links ADD INDEX (links_session_id);
-ALTER TABLE track_e_uploads ADD INDEX (upload_session_id);
diff --git a/main/install/1.8.8/db_user.sql b/main/install/1.8.8/db_user.sql
deleted file mode 100755
index 081a268dd2..0000000000
--- a/main/install/1.8.8/db_user.sql
+++ /dev/null
@@ -1,44 +0,0 @@
--- MySQL dump
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
-CREATE TABLE personal_agenda (
- id int NOT NULL auto_increment,
- user int unsigned,
- title text,
- `text` text,
- `date` datetime default NULL,
- enddate datetime default NULL,
- course varchar(255),
- parent_event_id int null,
- PRIMARY KEY id (id)
-);
-CREATE TABLE personal_agenda_repeat (
- cal_id INT DEFAULT 0 NOT NULL,
- cal_type VARCHAR(20),
- cal_end INT,
- cal_frequency INT DEFAULT 1,
- cal_days CHAR(7),
- PRIMARY KEY (cal_id)
-);
-CREATE TABLE personal_agenda_repeat_not (
- cal_id INT NOT NULL,
- cal_date INT NOT NULL,
- PRIMARY KEY ( cal_id, cal_date )
-);
-CREATE TABLE user_course_category (
- id int unsigned NOT NULL auto_increment,
- user_id int unsigned NOT NULL default 0,
- title text NOT NULL,
- sort int,
- PRIMARY KEY (id)
-);
-ALTER TABLE personal_agenda ADD INDEX idx_personal_agenda_user (user);
-ALTER TABLE personal_agenda ADD INDEX idx_personal_agenda_parent (parent_event_id);
-ALTER TABLE user_course_category ADD INDEX idx_user_c_cat_uid (user_id);
diff --git a/main/install/1.8.8/migrate-db-1.8.7-1.8.8-pre.sql b/main/install/1.8.8/migrate-db-1.8.7-1.8.8-pre.sql
deleted file mode 100644
index 634fc953ef..0000000000
--- a/main/install/1.8.8/migrate-db-1.8.7-1.8.8-pre.sql
+++ /dev/null
@@ -1,231 +0,0 @@
--- This script updates the databases structure before migrating the data from
--- version 1.8.7 (or 1.8.7.1) to version 1.8.8
--- it is intended as a standalone script, however, because of the multiple
--- databases related difficulties, it should be parsed by a PHP script in
--- order to connect to and update the right databases.
--- There is one line per query, allowing the PHP function file() to read
--- all lines separately into an array. The xxMAINxx-type markers are there
--- to tell the PHP script which database we're talking about.
--- By always using the keyword "TABLE" in the queries, we should be able
--- to retrieve and modify the table name from the PHP script if needed, which
--- will allow us to deal with the unique-database-type installations
---
--- This first part is for the main database
-
--- xxMAINxx
-
-DROP PROCEDURE IF EXISTS drop_index;
-CREATE PROCEDURE drop_index(in t_name varchar(128), in i_name varchar(128) ) BEGIN IF ( (SELECT count(*) AS index_exists FROM information_schema.statistics WHERE table_schema = DATABASE( ) AND table_name = t_name AND index_name = i_name ) > 0) THEN SET @s = CONCAT('DROP INDEX ' , i_name , ' ON ' , t_name ); PREPARE stmt FROM @s; EXECUTE stmt; END IF; END;
-
-CREATE TABLE course_request (id int NOT NULL AUTO_INCREMENT, code varchar(40) NOT NULL, user_id int unsigned NOT NULL default '0', directory varchar(40) DEFAULT NULL, db_name varchar(40) DEFAULT NULL, course_language varchar(20) DEFAULT NULL, title varchar(250) DEFAULT NULL, description text, category_code varchar(40) DEFAULT NULL, tutor_name varchar(200) DEFAULT NULL, visual_code varchar(40) DEFAULT NULL, request_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00', objetives text, target_audience text, status int unsigned NOT NULL default '0', info int unsigned NOT NULL default '0', exemplary_content int unsigned NOT NULL default '0', PRIMARY KEY (id), UNIQUE KEY code (code));
-
-CALL drop_index('settings_current', 'unique_setting');
-CALL drop_index('settings_options', 'unique_setting_option');
-
-ALTER TABLE settings_current ADD UNIQUE unique_setting (variable(110), subkey(110), category(110), access_url);
-ALTER TABLE settings_options ADD UNIQUE unique_setting_option (variable(165), value(165));
-ALTER TABLE settings_current CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
-ALTER TABLE settings_options CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
-
-ALTER TABLE user MODIFY COLUMN username VARCHAR(40) NOT NULL;
-
-UPDATE settings_current SET variable='chamilo_database_version' WHERE variable='dokeos_database_version';
-
-ALTER TABLE sys_announcement ADD COLUMN access_url_id INT NOT NULL default 1;
-ALTER TABLE sys_calendar ADD COLUMN access_url_id INT NOT NULL default 1;
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('users_copy_files', NULL, 'radio', 'Tools', 'true', 'AllowUsersCopyFilesTitle','AllowUsersCopyFilesComment', NULL,NULL, 1);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('users_copy_files', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('users_copy_files', 'false', 'No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_validation', NULL, 'radio', 'Platform', 'false', 'EnableCourseValidation', 'EnableCourseValidationComment', NULL, NULL, 1);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('course_validation', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('course_validation', 'false', 'No');
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_validation_terms_and_conditions_url', NULL, 'textfield', 'Platform', '', 'CourseValidationTermsAndConditionsLink', 'CourseValidationTermsAndConditionsLinkComment', NULL, NULL, 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('sso_authentication',NULL,'radio','Security','false','EnableSSOTitle','EnableSSOComment',NULL,NULL,1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('sso_authentication_domain',NULL,'textfield','Security','','SSOServerDomainTitle','SSOServerDomainComment',NULL,NULL,1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('sso_authentication_auth_uri',NULL,'textfield','Security','/?q=user','SSOServerAuthURITitle','SSOServerAuthURIComment',NULL,NULL,1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('sso_authentication_unauth_uri',NULL,'textfield','Security','/?q=logout','SSOServerUnAuthURITitle','SSOServerUnAuthURIComment',NULL,NULL,1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('sso_authentication_protocol',NULL,'radio','Security','http://','SSOServerProtocolTitle','SSOServerProtocolComment',NULL,NULL,1);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('sso_authentication', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('sso_authentication', 'false', 'No');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('sso_authentication_protocol', 'http://', 'http://');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('sso_authentication_protocol', 'https://', 'https://');
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('enabled_asciisvg',NULL,'radio','Editor','false','AsciiSvgTitle','AsciiSvgComment',NULL,NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enabled_asciisvg', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enabled_asciisvg', 'false', 'No');
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('include_asciimathml_script',NULL,'radio','Editor','false','IncludeAsciiMathMlTitle','IncludeAsciiMathMlComment',NULL,NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('include_asciimathml_script', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('include_asciimathml_script', 'false', 'No');
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('enabled_wiris',NULL,'radio','Editor','false','EnabledWirisTitle','EnabledWirisComment',NULL,NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enabled_wiris', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enabled_wiris', 'false', 'No');
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('allow_spellcheck',NULL,'radio','Editor','false','AllowSpellCheckTitle','AllowSpellCheckComment',NULL,NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_spellcheck', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_spellcheck', 'false', 'No');
-ALTER TABLE course ADD INDEX idx_course_category_code (category_code);
-ALTER TABLE course ADD INDEX idx_course_directory (directory(10));
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('force_wiki_paste_as_plain_text',NULL,'radio','Editor','false','ForceWikiPasteAsPlainText','ForceWikiPasteAsPlainTextComment',NULL,NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('force_wiki_paste_as_plain_text', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('force_wiki_paste_as_plain_text', 'false', 'No');
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('enabled_googlemaps',NULL,'radio','Editor','false','EnabledGooglemapsTitle','EnabledGooglemapsComment',NULL,NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enabled_googlemaps', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enabled_googlemaps', 'false', 'No');
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('enabled_imgmap',NULL,'radio','Editor','true','EnabledImageMapsTitle','EnabledImageMapsComment',NULL,NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enabled_imgmap', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enabled_imgmap', 'false', 'No');
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('enabled_support_svg',NULL,'radio','Tools','true','EnabledSVGTitle','EnabledSVGComment',NULL,NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enabled_support_svg', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enabled_support_svg', 'false', 'No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('pdf_export_watermark_enable', NULL,'radio', 'Platform', 'false','PDFExportWatermarkEnableTitle', 'PDFExportWatermarkEnableComment','platform',NULL, 1);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('pdf_export_watermark_enable','true','Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('pdf_export_watermark_enable','false','No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('pdf_export_watermark_by_course', NULL,'radio', 'Platform', 'false','PDFExportWatermarkByCourseTitle', 'PDFExportWatermarkByCourseComment','platform',NULL, 1);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('pdf_export_watermark_by_course','true','Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('pdf_export_watermark_by_course','false','No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('hide_courses_in_sessions', NULL,'radio', 'Platform', 'false','HideCoursesInSessionsTitle', 'HideCoursesInSessionsComment','platform',NULL, 1);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('hide_courses_in_sessions','true','Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('hide_courses_in_sessions','false','No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('pdf_export_watermark_text', NULL,'textfield', 'Platform', '', 'PDFExportWatermarkTextTitle','PDFExportWatermarkTextComment','platform',NULL, 1);
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('enabled_insertHtml',NULL,'radio','Editor','true','EnabledInsertHtmlTitle','EnabledInsertHtmlComment',NULL,NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enabled_insertHtml', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enabled_insertHtml', 'false', 'No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('students_export2pdf',NULL,'radio','Tools','true','EnabledStudentExport2PDFTitle','EnabledStudentExport2PDFComment',NULL,NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('students_export2pdf', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('students_export2pdf', 'false', 'No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('exercise_min_score', NULL,'textfield', 'Course', '', 'ExerciseMinScoreTitle', 'ExerciseMinScoreComment','platform',NULL, 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('exercise_max_score', NULL,'textfield', 'Course', '', 'ExerciseMaxScoreTitle', 'ExerciseMaxScoreComment','platform',NULL, 1);
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('show_users_folders',NULL,'radio','Tools','true','ShowUsersFoldersTitle','ShowUsersFoldersComment',NULL,NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('show_users_folders', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('show_users_folders', 'false', 'No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('show_default_folders',NULL,'radio','Tools','true','ShowDefaultFoldersTitle','ShowDefaultFoldersComment',NULL,NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('show_default_folders', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('show_default_folders', 'false', 'No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('show_chat_folder',NULL,'radio','Tools','true','ShowChatFolderTitle','ShowChatFolderComment',NULL,NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('show_chat_folder', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('show_chat_folder', 'false', 'No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('enabled_text2audio',NULL,'radio','Tools','false','Text2AudioTitle','Text2AudioComment',NULL,NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enabled_text2audio', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enabled_text2audio', 'false', 'No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_hide_tools','course_description','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'CourseDescription', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_hide_tools','calendar_event','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Agenda', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_hide_tools','document','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Documents', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_hide_tools','learnpath','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'LearningPath', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_hide_tools','link','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Links', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_hide_tools','announcement','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Announcements', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_hide_tools','forum','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Forums', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_hide_tools','dropbox','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Dropbox', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_hide_tools','quiz','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Quiz', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_hide_tools','user','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Users', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_hide_tools','group','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Groups', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_hide_tools','chat','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Chat', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_hide_tools','student_publication','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'StudentPublications', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_hide_tools','wiki','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Wiki', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_hide_tools','gradebook','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Gradebook', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_hide_tools','survey','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Survey', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_hide_tools','glossary','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Glossary', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_hide_tools','notebook','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Notebook', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_hide_tools','attendance','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Attendances', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_hide_tools','course_progress','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'CourseProgress', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_hide_tools','blog_management','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Blog',1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_hide_tools','tracking','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Stats',1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_hide_tools','course_maintenance','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Maintenance',1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_hide_tools','course_setting','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'CourseSettings',1);
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('enabled_support_pixlr',NULL,'radio','Tools','false','EnabledPixlrTitle','EnabledPixlrComment',NULL,NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enabled_support_pixlr', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enabled_support_pixlr', 'false', 'No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('show_groups_to_users',NULL,'radio','Platform','false','ShowGroupsToUsersTitle','ShowGroupsToUsersComment',NULL,NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('show_groups_to_users', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('show_groups_to_users', 'false', 'No');
-
-INSERT INTO language (original_name, english_name, isocode, dokeos_folder, available) VALUES ('हिन्दी', 'hindi', 'hi', 'hindi', 0);
-
-ALTER TABLE session ADD COLUMN promotion_id INT NOT NULL;
-
-CREATE TABLE career (id INT NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, description TEXT NOT NULL, status INT NOT NULL default '0', created_at datetime NOT NULL DEFAULT '0000-00-00 00:00:00', updated_at datetime NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (id));
-CREATE TABLE promotion (id INT NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, description TEXT NOT NULL, status INT NOT NULL default '0', career_id INT NOT NULL, created_at datetime NOT NULL DEFAULT '0000-00-00 00:00:00', updated_at datetime NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY(id));
-
-CREATE TABLE usergroup ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, description TEXT NOT NULL,PRIMARY KEY (id));
-CREATE TABLE usergroup_rel_user ( usergroup_id INT NOT NULL, user_id INT NOT NULL );
-CREATE TABLE usergroup_rel_course ( usergroup_id INT NOT NULL, course_id INT NOT NULL );
-CREATE TABLE usergroup_rel_session ( usergroup_id INT NOT NULL, session_id INT NOT NULL );
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('accessibility_font_resize',NULL,'radio','Platform','false','EnableAccessibilityFontResizeTitle','EnableAccessibilityFontResizeComment',NULL,NULL, 1);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('accessibility_font_resize', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('accessibility_font_resize', 'false', 'No');
-
-CREATE TABLE notification (id BIGINT PRIMARY KEY NOT NULL AUTO_INCREMENT,dest_user_id INT NOT NULL, dest_mail CHAR(255),title CHAR(255), content CHAR(255), send_freq SMALLINT DEFAULT 1, created_at DATETIME NOT NULL, sent_at DATETIME NULL);
-
-ALTER TABLE notification ADD index mail_notify_sent_index (sent_at);
-ALTER TABLE notification ADD index mail_notify_freq_index (sent_at, send_freq, created_at);
-
-ALTER TABLE session_category ADD COLUMN access_url_id INT NOT NULL default 1;
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('enable_quiz_scenario', NULL,'radio','Course','false','EnableQuizScenarioTitle','EnableQuizScenarioComment',NULL,NULL, 1);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enable_quiz_scenario', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enable_quiz_scenario', 'false', 'No');
-
-UPDATE settings_current SET category='Search' WHERE variable='search_enable';
-
-INSERT INTO settings_options (variable, value, display_text) VALUES ('homepage_view', 'activity_big', 'HomepageViewActivityBig');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('enable_nanogong',NULL,'radio','Tools','false','EnableNanogongTitle','EnableNanogongComment',NULL,NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enable_nanogong', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enable_nanogong', 'false', 'No');
-
-ALTER TABLE gradebook_evaluation ADD COLUMN locked int NOT NULL DEFAULT 0;
-
-UPDATE settings_current SET selected_value = '1.8.8.14911' WHERE variable = 'chamilo_database_version';
-
--- xxSTATSxx
-ALTER TABLE track_e_exercices ADD COLUMN orig_lp_item_view_id INT NOT NULL DEFAULT 0;
-
--- xxUSERxx
-ALTER TABLE personal_agenda ADD PRIMARY KEY (id);
-ALTER TABLE personal_agenda ADD INDEX idx_personal_agenda_user (user);
-ALTER TABLE personal_agenda ADD INDEX idx_personal_agenda_parent (parent_event_id);
-ALTER TABLE user_course_category ADD INDEX idx_user_c_cat_uid (user_id);
-
--- xxCOURSExx
-ALTER TABLE course_setting CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
-ALTER TABLE forum_forum ADD start_time DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00';
-ALTER TABLE forum_forum ADD end_time DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00';
-ALTER TABLE wiki_mailcue ADD session_id smallint DEFAULT 0;
-
-ALTER TABLE lp ADD COLUMN use_max_score INT DEFAULT 1;
-ALTER TABLE lp_item MODIFY COLUMN max_score FLOAT UNSIGNED DEFAULT 100;
-ALTER TABLE tool MODIFY COLUMN category varchar(20) not null default 'authoring';
-
-ALTER TABLE lp ADD COLUMN autolunch INT DEFAULT 0;
-ALTER TABLE lp ADD COLUMN created_on DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00';
-ALTER TABLE lp ADD COLUMN modified_on DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00';
-ALTER TABLE lp ADD COLUMN expired_on DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00';
-ALTER TABLE lp ADD COLUMN publicated_on DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00';
-
-CREATE TABLE quiz_question_option (id int NOT NULL, name varchar(255), position int unsigned NOT NULL, PRIMARY KEY (id));
-ALTER TABLE quiz_question ADD COLUMN extra varchar(255) DEFAULT NULL;
-ALTER TABLE quiz_question CHANGE question question TEXT NOT NULL;
-
-INSERT INTO course_setting(variable,value,category) VALUES ('enable_lp_auto_launch',0,'learning_path');
-INSERT INTO course_setting(variable,value,category) VALUES ('pdf_export_watermark_text','','course');
-
-ALTER TABLE quiz ADD COLUMN propagate_neg INT NOT NULL DEFAULT 0;
-ALTER TABLE quiz_answer MODIFY COLUMN hotspot_type ENUM('square','circle','poly','delineation','oar');
-
-ALTER TABLE attendance ADD COLUMN locked int NOT NULL default 0;
-CREATE TABLE attendance_sheet_log (id INT NOT NULL AUTO_INCREMENT, attendance_id INT NOT NULL DEFAULT 0, lastedit_date DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', lastedit_type VARCHAR(200) NOT NULL, lastedit_user_id INT NOT NULL DEFAULT 0, calendar_date_value DATETIME NULL, PRIMARY KEY (id));
-
diff --git a/main/install/1.8.8/update-db-1.8.7-1.8.8.inc.php b/main/install/1.8.8/update-db-1.8.7-1.8.8.inc.php
deleted file mode 100644
index 239397e699..0000000000
--- a/main/install/1.8.8/update-db-1.8.7-1.8.8.inc.php
+++ /dev/null
@@ -1,144 +0,0 @@
-beginTransaction();
- $singleDbForm = false;
-
- $dbNameForm = $_configuration['main_database'];
-
- if ($singleDbForm) {
- $dbStatsForm = isset($_configuration['statistics_database']) ? $_configuration['statistics_database'] : $_configuration['main_database'];
- $dbUserForm = isset($_configuration['user_personal_database']) ? $_configuration['user_personal_database'] : $_configuration['main_database'];
- }
-
- $prefix = '';
- if ($singleDbForm) {
- $prefix = $_configuration['table_prefix'];
- }
-
- iDatabase::select_db($dbNameForm);
- $output->writeln('Getting the course list: ');
- $res = iDatabase::query("SELECT code,db_name,directory,course_language FROM course WHERE target_course_code IS NULL ORDER BY code");
-
- if ($res === false) { die('Error while querying the courses list in update_db-1.8.7.1-1.8.8.inc.php'); }
-
- if (iDatabase::num_rows($res) > 0) {
- $i = 0;
- $list = array();
- while ($row = iDatabase::fetch_array($res)) {
- $list[] = $row;
- $i++;
- }
- foreach ($list as $row_course) {
- /**
- * We connect to the right DB first to make sure we can use the queries
- * without a database name
- */
- if (!$singleDbForm) { // otherwise just use the main one
- iDatabase::select_db($row_course['db_name']);
- }
- $output->writeln('Updating course db: ' . $row_course['db_name']);
-
- $table_lp_item_view = $row_course['db_name'].".lp_item_view";
- $table_lp_view = $row_course['db_name'].".lp_view";
- $table_lp_item = $row_course['db_name'].".lp_item";
-
- if ($singleDbForm) {
- $table_lp_item_view = "$prefix{$row_course['db_name']}_lp_item_view";
- $table_lp_view = "$prefix{$row_course['db_name']}_lp_view";
- $table_lp_item = "$prefix{$row_course['db_name']}_lp_item";
- }
-
- // Filling the track_e_exercices.orig_lp_item_view_id field in order to have better traceability in exercises included in a LP see #3188
-
- $query = "SELECT DISTINCT path as exercise_id, lp_item_id, lp_view_id, user_id, v.lp_id
- FROM $table_lp_item_view iv INNER JOIN $table_lp_view v ON v.id = iv.lp_view_id INNER JOIN $table_lp_item i ON i.id = lp_item_id
- WHERE item_type = 'quiz'";
- $result = iDatabase::query($query);
-
- if (iDatabase::num_rows($result) > 0) {
- while ($row = iDatabase::fetch_array($result,'ASSOC')) {
- $sql = "SELECT exe_id FROM $dbStatsForm.track_e_exercices
- WHERE exe_user_id = {$row['user_id']} AND
- exe_cours_id = '{$row_course['code']}' AND
- exe_exo_id = {$row['exercise_id']} AND
- orig_lp_id = {$row['lp_id']} AND
- orig_lp_item_id = {$row['lp_item_id']} ";
- $sub_result = iDatabase::query($sql);
- $exe_list = array();
- while ($sub_row = iDatabase::fetch_array($sub_result,'ASSOC')) {
- $exe_list[] = $sub_row['exe_id'];
- }
-
- $sql = "SELECT iv.id, iv.view_count
- FROM $table_lp_item_view iv INNER JOIN $table_lp_view v ON v.id = iv.lp_view_id INNER JOIN $table_lp_item i ON i.id = lp_item_id
- WHERE item_type = 'quiz' AND user_id = {$row['user_id']} AND path = {$row['exercise_id']} ";
- $sub_result = iDatabase::query($sql);
- $lp_item_view_id_list = array();
- while ($sub_row = iDatabase::fetch_array($sub_result,'ASSOC')) {
- $lp_item_view_id_list[] = $sub_row['id'];
- }
- $i = 0;
- foreach($exe_list as $exe_id) {
- $lp_item_view_id = $lp_item_view_id_list[$i];
- $update = "UPDATE $dbNameForm.track_e_exercices SET orig_lp_item_view_id = '$lp_item_view_id' WHERE exe_id = $exe_id ";
- iDatabase::query($update);
- $i++;
- }
- }
- }
- }
- }
-
- //Adding notifications options
-
- $sql = "INSERT INTO $dbNameForm.user_field (field_type, field_variable, field_display_text, field_visible, field_changeable, field_default_value) values (4, 'mail_notify_invitation', 'MailNotifyInvitation',1,1,'1') ";
- $result = iDatabase::query($sql);
- $id = iDatabase::insert_id();
-
- $sql = "INSERT INTO $dbNameForm.user_field_options (field_id, option_value, option_display_text, option_order) values ($id, '1', 'AtOnce',1) ";
- $result = iDatabase::query($sql);
- $sql = "INSERT INTO $dbNameForm.user_field_options (field_id, option_value, option_display_text, option_order) values ($id, '8', 'Daily',2) ";
- $result = iDatabase::query($sql);
- $sql = "INSERT INTO $dbNameForm.user_field_options (field_id, option_value, option_display_text, option_order) values ($id, '0', 'No',3) ";
- $result = iDatabase::query($sql);
-
- $sql = "INSERT INTO $dbNameForm.user_field (field_type, field_variable, field_display_text, field_visible, field_changeable, field_default_value) values (4, 'mail_notify_message', 'MailNotifyMessage',1,1,'1')";
- $result = iDatabase::query($sql);
- $id = iDatabase::insert_id();
-
- $sql = "INSERT INTO $dbNameForm.user_field_options (field_id, option_value, option_display_text, option_order) values ($id, '1', 'AtOnce',1) ";
- $result = iDatabase::query($sql);
- $sql = "INSERT INTO $dbNameForm.user_field_options (field_id, option_value, option_display_text, option_order) values ($id, '8', 'Daily',2) ";
- $result = iDatabase::query($sql);
- $sql = "INSERT INTO $dbNameForm.user_field_options (field_id, option_value, option_display_text, option_order) values ($id, '0', 'No',3) ";
- $result = iDatabase::query($sql);
-
-
- $sql = "INSERT INTO $dbNameForm.user_field (field_type, field_variable, field_display_text, field_visible, field_changeable, field_default_value) values (4, 'mail_notify_group_message','MailNotifyGroupMessage',1,1,'1') ";
- $result = iDatabase::query($sql);
- $id = iDatabase::insert_id();
-
- $sql = "INSERT INTO $dbNameForm.user_field_options (field_id, option_value, option_display_text, option_order) values ($id, '1', 'AtOnce',1) ";
- $result = iDatabase::query($sql);
- $sql = "INSERT INTO $dbNameForm.user_field_options (field_id, option_value, option_display_text, option_order) values ($id, '8', 'Daily',2) ";
- $result = iDatabase::query($sql);
- $sql = "INSERT INTO $dbNameForm.user_field_options (field_id, option_value, option_display_text, option_order) values ($id, '0', 'No',3) ";
- $result = iDatabase::query($sql);
-
- //Fixing table access_url_rel_course if the platform have courses that were created in Dok€os 1.8.5
-
- if (!isset($_configuration['multiple_access_urls']) || $_configuration['multiple_access_urls'] == false) {
- $sql = "SELECT code FROM $dbNameForm.course";
- $result = iDatabase::query($sql);
- while ($row = iDatabase::fetch_array($result)) {
- //Adding course to default URL just in case
- $sql = "INSERT INTO $dbNameForm.access_url_rel_course SET course_code = '".iDatabase::escape_string($row['code'])."', access_url_id = '1' ";
- iDatabase::query($sql);
- }
- }
-};
-
-
diff --git a/main/install/1.9.0/db_course.sql b/main/install/1.9.0/db_course.sql
deleted file mode 100644
index affa75464e..0000000000
--- a/main/install/1.9.0/db_course.sql
+++ /dev/null
@@ -1,1947 +0,0 @@
--- MySQL dump 10.13 Distrib 5.5.29, for debian-linux-gnu (i686)
---
--- Host: localhost Database: courses
--- ------------------------------------------------------
--- Server version 5.5.29-0ubuntu0.12.10.1
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
-/*!40103 SET TIME_ZONE='+00:00' */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
---
--- Table structure for table c_announcement
---
-
-DROP TABLE IF EXISTS c_announcement;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_announcement (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- title text,
- content mediumtext,
- end_date date DEFAULT NULL,
- display_order mediumint(9) NOT NULL DEFAULT '0',
- email_sent tinyint(4) DEFAULT '0',
- session_id int(11) DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY session_id (session_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_announcement_attachment
---
-
-DROP TABLE IF EXISTS c_announcement_attachment;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_announcement_attachment (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- path varchar(255) NOT NULL,
- comment text,
- size int(11) NOT NULL DEFAULT '0',
- announcement_id int(11) NOT NULL,
- filename varchar(255) NOT NULL,
- PRIMARY KEY (c_id,id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_attendance
---
-
-DROP TABLE IF EXISTS c_attendance;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_attendance (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- name text NOT NULL,
- description text,
- active tinyint(4) NOT NULL DEFAULT '1',
- attendance_qualify_title varchar(255) DEFAULT NULL,
- attendance_qualify_max int(11) NOT NULL DEFAULT '0',
- attendance_weight float(6,2) NOT NULL DEFAULT '0.00',
- session_id int(11) NOT NULL DEFAULT '0',
- locked int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY session_id (session_id),
- KEY active (active)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_attendance_calendar
---
-
-DROP TABLE IF EXISTS c_attendance_calendar;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_attendance_calendar (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- attendance_id int(11) NOT NULL,
- date_time datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- done_attendance tinyint(4) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY attendance_id (attendance_id),
- KEY done_attendance (done_attendance)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_attendance_result
---
-
-DROP TABLE IF EXISTS c_attendance_result;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_attendance_result (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- user_id int(11) NOT NULL,
- attendance_id int(11) NOT NULL,
- score int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY attendance_id (attendance_id),
- KEY user_id (user_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_attendance_sheet
---
-
-DROP TABLE IF EXISTS c_attendance_sheet;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_attendance_sheet (
- c_id int(11) NOT NULL,
- user_id int(11) NOT NULL,
- attendance_calendar_id int(11) NOT NULL,
- presence tinyint(4) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,user_id,attendance_calendar_id),
- KEY presence (presence)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_attendance_sheet_log
---
-
-DROP TABLE IF EXISTS c_attendance_sheet_log;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_attendance_sheet_log (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- attendance_id int(11) NOT NULL DEFAULT '0',
- lastedit_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- lastedit_type varchar(200) NOT NULL,
- lastedit_user_id int(11) NOT NULL DEFAULT '0',
- calendar_date_value datetime DEFAULT NULL,
- PRIMARY KEY (c_id,id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_blog
---
-
-DROP TABLE IF EXISTS c_blog;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_blog (
- c_id int(11) NOT NULL,
- blog_id int(11) NOT NULL AUTO_INCREMENT,
- blog_name varchar(250) NOT NULL DEFAULT '',
- blog_subtitle varchar(250) DEFAULT NULL,
- date_creation datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- visibility tinyint(3) unsigned NOT NULL DEFAULT '0',
- session_id int(11) DEFAULT '0',
- PRIMARY KEY (c_id,blog_id),
- KEY session_id (session_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Table with blogs in this course';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_blog_attachment
---
-
-DROP TABLE IF EXISTS c_blog_attachment;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_blog_attachment (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- path varchar(255) NOT NULL COMMENT 'the real filename',
- comment text,
- size int(11) NOT NULL DEFAULT '0',
- post_id int(11) NOT NULL,
- filename varchar(255) NOT NULL COMMENT 'the user s file name',
- blog_id int(11) NOT NULL,
- comment_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_blog_comment
---
-
-DROP TABLE IF EXISTS c_blog_comment;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_blog_comment (
- c_id int(11) NOT NULL,
- comment_id int(11) NOT NULL AUTO_INCREMENT,
- title varchar(250) NOT NULL DEFAULT '',
- comment longtext NOT NULL,
- author_id int(11) NOT NULL DEFAULT '0',
- date_creation datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- blog_id int(11) NOT NULL DEFAULT '0',
- post_id int(11) NOT NULL DEFAULT '0',
- task_id int(11) DEFAULT NULL,
- parent_comment_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,comment_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Table with comments on posts in a blog';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_blog_post
---
-
-DROP TABLE IF EXISTS c_blog_post;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_blog_post (
- c_id int(11) NOT NULL,
- post_id int(11) NOT NULL AUTO_INCREMENT,
- title varchar(250) NOT NULL DEFAULT '',
- full_text longtext NOT NULL,
- date_creation datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- blog_id int(11) NOT NULL DEFAULT '0',
- author_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,post_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Table with posts / blog.';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_blog_rating
---
-
-DROP TABLE IF EXISTS c_blog_rating;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_blog_rating (
- c_id int(11) NOT NULL,
- rating_id int(11) NOT NULL AUTO_INCREMENT,
- blog_id int(11) NOT NULL DEFAULT '0',
- rating_type enum('post','comment') NOT NULL DEFAULT 'post',
- item_id int(11) NOT NULL DEFAULT '0',
- user_id int(11) NOT NULL DEFAULT '0',
- rating int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,rating_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Table with ratings for post/comments in a certain blog';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_blog_rel_user
---
-
-DROP TABLE IF EXISTS c_blog_rel_user;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_blog_rel_user (
- c_id int(11) NOT NULL,
- blog_id int(11) NOT NULL DEFAULT '0',
- user_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,blog_id,user_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Table representing users subscribed to a blog';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_blog_task
---
-
-DROP TABLE IF EXISTS c_blog_task;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_blog_task (
- c_id int(11) NOT NULL,
- task_id int(11) NOT NULL AUTO_INCREMENT,
- blog_id int(11) NOT NULL DEFAULT '0',
- title varchar(250) NOT NULL DEFAULT '',
- description text NOT NULL,
- color varchar(10) NOT NULL DEFAULT '',
- system_task tinyint(3) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,task_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Table with tasks for a blog';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_blog_task_rel_user
---
-
-DROP TABLE IF EXISTS c_blog_task_rel_user;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_blog_task_rel_user (
- c_id int(11) NOT NULL,
- blog_id int(11) NOT NULL DEFAULT '0',
- user_id int(11) NOT NULL DEFAULT '0',
- task_id int(11) NOT NULL DEFAULT '0',
- target_date date NOT NULL DEFAULT '0000-00-00',
- PRIMARY KEY (c_id,blog_id,user_id,task_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Table with tasks assigned to a user in a blog';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_calendar_event
---
-
-DROP TABLE IF EXISTS c_calendar_event;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_calendar_event (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- title varchar(255) NOT NULL,
- content text,
- start_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- end_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- parent_event_id int(11) DEFAULT NULL,
- session_id int(10) unsigned NOT NULL DEFAULT '0',
- all_day int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY session_id (session_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_calendar_event_attachment
---
-
-DROP TABLE IF EXISTS c_calendar_event_attachment;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_calendar_event_attachment (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- path varchar(255) NOT NULL,
- comment text,
- size int(11) NOT NULL DEFAULT '0',
- agenda_id int(11) NOT NULL,
- filename varchar(255) NOT NULL,
- PRIMARY KEY (c_id,id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_calendar_event_repeat
---
-
-DROP TABLE IF EXISTS c_calendar_event_repeat;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_calendar_event_repeat (
- c_id int(11) NOT NULL,
- cal_id int(11) NOT NULL DEFAULT '0',
- cal_type varchar(20) DEFAULT NULL,
- cal_end int(11) DEFAULT NULL,
- cal_frequency int(11) DEFAULT '1',
- cal_days char(7) DEFAULT NULL,
- PRIMARY KEY (c_id,cal_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_calendar_event_repeat_not
---
-
-DROP TABLE IF EXISTS c_calendar_event_repeat_not;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_calendar_event_repeat_not (
- c_id int(11) NOT NULL,
- cal_id int(11) NOT NULL,
- cal_date int(11) NOT NULL,
- PRIMARY KEY (c_id,cal_id,cal_date)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_chat_connected
---
-
-DROP TABLE IF EXISTS c_chat_connected;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_chat_connected (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- user_id int(10) unsigned NOT NULL DEFAULT '0',
- last_connection datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- session_id int(11) NOT NULL DEFAULT '0',
- to_group_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id,user_id,last_connection),
- KEY char_connected_index (user_id,session_id,to_group_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_course_description
---
-
-DROP TABLE IF EXISTS c_course_description;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_course_description (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- title varchar(255) DEFAULT NULL,
- content text,
- session_id int(11) DEFAULT '0',
- description_type tinyint(3) unsigned NOT NULL DEFAULT '0',
- progress int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY session_id (session_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_course_setting
---
-
-DROP TABLE IF EXISTS c_course_setting;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_course_setting (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- variable varchar(255) NOT NULL DEFAULT '',
- subkey varchar(255) DEFAULT NULL,
- type varchar(255) DEFAULT NULL,
- category varchar(255) DEFAULT NULL,
- value varchar(255) NOT NULL DEFAULT '',
- title varchar(255) NOT NULL DEFAULT '',
- comment varchar(255) DEFAULT NULL,
- subkeytext varchar(255) DEFAULT NULL,
- PRIMARY KEY (c_id,id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_document
---
-
-DROP TABLE IF EXISTS c_document;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_document (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- path varchar(255) NOT NULL DEFAULT '',
- comment text,
- title varchar(255) DEFAULT NULL,
- filetype set('file','folder') NOT NULL DEFAULT 'file',
- size int(11) NOT NULL DEFAULT '0',
- readonly tinyint(3) unsigned NOT NULL,
- session_id int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_dropbox_category
---
-
-DROP TABLE IF EXISTS c_dropbox_category;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_dropbox_category (
- c_id int(11) NOT NULL,
- cat_id int(11) NOT NULL AUTO_INCREMENT,
- cat_name text NOT NULL,
- received tinyint(3) unsigned NOT NULL DEFAULT '0',
- sent tinyint(3) unsigned NOT NULL DEFAULT '0',
- user_id int(11) NOT NULL DEFAULT '0',
- session_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,cat_id),
- KEY session_id (session_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_dropbox_feedback
---
-
-DROP TABLE IF EXISTS c_dropbox_feedback;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_dropbox_feedback (
- c_id int(11) NOT NULL,
- feedback_id int(11) NOT NULL AUTO_INCREMENT,
- file_id int(11) NOT NULL DEFAULT '0',
- author_user_id int(11) NOT NULL DEFAULT '0',
- feedback text NOT NULL,
- feedback_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (c_id,feedback_id),
- KEY file_id (file_id),
- KEY author_user_id (author_user_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_dropbox_file
---
-
-DROP TABLE IF EXISTS c_dropbox_file;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_dropbox_file (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- uploader_id int(10) unsigned NOT NULL DEFAULT '0',
- filename varchar(250) NOT NULL DEFAULT '',
- filesize int(10) unsigned NOT NULL,
- title varchar(250) DEFAULT '',
- description varchar(250) DEFAULT '',
- author varchar(250) DEFAULT '',
- upload_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- last_upload_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- cat_id int(11) NOT NULL DEFAULT '0',
- session_id int(10) unsigned NOT NULL,
- PRIMARY KEY (c_id,id),
- UNIQUE KEY UN_filename (filename),
- KEY session_id (session_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_dropbox_person
---
-
-DROP TABLE IF EXISTS c_dropbox_person;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_dropbox_person (
- c_id int(11) NOT NULL,
- file_id int(10) unsigned NOT NULL,
- user_id int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,file_id,user_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_dropbox_post
---
-
-DROP TABLE IF EXISTS c_dropbox_post;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_dropbox_post (
- c_id int(11) NOT NULL,
- file_id int(10) unsigned NOT NULL,
- dest_user_id int(10) unsigned NOT NULL DEFAULT '0',
- feedback_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- feedback text,
- cat_id int(11) NOT NULL DEFAULT '0',
- session_id int(10) unsigned NOT NULL,
- PRIMARY KEY (c_id,file_id,dest_user_id),
- KEY session_id (session_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_forum_attachment
---
-
-DROP TABLE IF EXISTS c_forum_attachment;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_forum_attachment (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- path varchar(255) NOT NULL,
- comment text,
- size int(11) NOT NULL DEFAULT '0',
- post_id int(11) NOT NULL,
- filename varchar(255) NOT NULL,
- PRIMARY KEY (c_id,id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_forum_category
---
-
-DROP TABLE IF EXISTS c_forum_category;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_forum_category (
- c_id int(11) NOT NULL,
- cat_id int(11) NOT NULL AUTO_INCREMENT,
- cat_title varchar(255) NOT NULL DEFAULT '',
- cat_comment text,
- cat_order int(11) NOT NULL DEFAULT '0',
- locked int(11) NOT NULL DEFAULT '0',
- session_id int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,cat_id),
- KEY session_id (session_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_forum_forum
---
-
-DROP TABLE IF EXISTS c_forum_forum;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_forum_forum (
- c_id int(11) NOT NULL,
- forum_id int(11) NOT NULL AUTO_INCREMENT,
- forum_title varchar(255) NOT NULL DEFAULT '',
- forum_comment text,
- forum_threads int(11) DEFAULT '0',
- forum_posts int(11) DEFAULT '0',
- forum_last_post int(11) DEFAULT '0',
- forum_category int(11) DEFAULT NULL,
- allow_anonymous int(11) DEFAULT NULL,
- allow_edit int(11) DEFAULT NULL,
- approval_direct_post varchar(20) DEFAULT NULL,
- allow_attachments int(11) DEFAULT NULL,
- allow_new_threads int(11) DEFAULT NULL,
- default_view varchar(20) DEFAULT NULL,
- forum_of_group varchar(20) DEFAULT NULL,
- forum_group_public_private varchar(20) DEFAULT 'public',
- forum_order int(11) DEFAULT NULL,
- locked int(11) NOT NULL DEFAULT '0',
- session_id int(11) NOT NULL DEFAULT '0',
- forum_image varchar(255) NOT NULL DEFAULT '',
- start_time datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- end_time datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (c_id,forum_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_forum_mailcue
---
-
-DROP TABLE IF EXISTS c_forum_mailcue;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_forum_mailcue (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- user_id int(11) NOT NULL DEFAULT '0',
- thread_id int(11) NOT NULL DEFAULT '0',
- post_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (id,c_id,thread_id,user_id,post_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_forum_notification
---
-
-DROP TABLE IF EXISTS c_forum_notification;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_forum_notification (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- user_id int(11) NOT NULL DEFAULT '0',
- forum_id int(11) NOT NULL DEFAULT '0',
- thread_id int(11) NOT NULL DEFAULT '0',
- post_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (id,c_id,user_id,forum_id,thread_id,post_id),
- KEY user_id (user_id),
- KEY forum_id (forum_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_forum_post
---
-
-DROP TABLE IF EXISTS c_forum_post;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_forum_post (
- c_id int(11) NOT NULL,
- post_id int(11) NOT NULL AUTO_INCREMENT,
- post_title varchar(250) DEFAULT NULL,
- post_text text,
- thread_id int(11) DEFAULT '0',
- forum_id int(11) DEFAULT '0',
- poster_id int(11) DEFAULT '0',
- poster_name varchar(100) DEFAULT '',
- post_date datetime DEFAULT '0000-00-00 00:00:00',
- post_notification tinyint(4) DEFAULT '0',
- post_parent_id int(11) DEFAULT '0',
- visible tinyint(4) DEFAULT '1',
- PRIMARY KEY (c_id,post_id),
- KEY poster_id (poster_id),
- KEY forum_id (forum_id),
- KEY idx_forum_post_thread_id (thread_id),
- KEY idx_forum_post_visible (visible)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_forum_thread
---
-
-DROP TABLE IF EXISTS c_forum_thread;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_forum_thread (
- c_id int(11) NOT NULL,
- thread_id int(11) NOT NULL AUTO_INCREMENT,
- thread_title varchar(255) DEFAULT NULL,
- forum_id int(11) DEFAULT NULL,
- thread_replies int(11) DEFAULT '0',
- thread_poster_id int(11) DEFAULT NULL,
- thread_poster_name varchar(100) DEFAULT '',
- thread_views int(11) DEFAULT '0',
- thread_last_post int(11) DEFAULT NULL,
- thread_date datetime DEFAULT '0000-00-00 00:00:00',
- thread_sticky tinyint(3) unsigned DEFAULT '0',
- locked int(11) NOT NULL DEFAULT '0',
- session_id int(10) unsigned DEFAULT NULL,
- thread_title_qualify varchar(255) DEFAULT '',
- thread_qualify_max float(6,2) unsigned NOT NULL DEFAULT '0.00',
- thread_close_date datetime DEFAULT '0000-00-00 00:00:00',
- thread_weight float(6,2) unsigned NOT NULL DEFAULT '0.00',
- PRIMARY KEY (c_id,thread_id),
- KEY idx_forum_thread_forum_id (forum_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_forum_thread_qualify
---
-
-DROP TABLE IF EXISTS c_forum_thread_qualify;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_forum_thread_qualify (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- user_id int(10) unsigned NOT NULL,
- thread_id int(11) NOT NULL,
- qualify float(6,2) NOT NULL DEFAULT '0.00',
- qualify_user_id int(11) DEFAULT NULL,
- qualify_time datetime DEFAULT '0000-00-00 00:00:00',
- session_id int(11) DEFAULT NULL,
- PRIMARY KEY (c_id,id),
- KEY user_id (user_id,thread_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_forum_thread_qualify_log
---
-
-DROP TABLE IF EXISTS c_forum_thread_qualify_log;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_forum_thread_qualify_log (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- user_id int(10) unsigned NOT NULL,
- thread_id int(11) NOT NULL,
- qualify float(6,2) NOT NULL DEFAULT '0.00',
- qualify_user_id int(11) DEFAULT NULL,
- qualify_time datetime DEFAULT '0000-00-00 00:00:00',
- session_id int(11) DEFAULT NULL,
- PRIMARY KEY (c_id,id),
- KEY user_id (user_id,thread_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_glossary
---
-
-DROP TABLE IF EXISTS c_glossary;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_glossary (
- c_id int(11) NOT NULL,
- glossary_id int(10) unsigned NOT NULL AUTO_INCREMENT,
- name varchar(255) NOT NULL,
- description text NOT NULL,
- display_order int(11) DEFAULT NULL,
- session_id int(11) DEFAULT '0',
- PRIMARY KEY (c_id,glossary_id),
- KEY session_id (session_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_group_category
---
-
-DROP TABLE IF EXISTS c_group_category;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_group_category (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- title varchar(255) NOT NULL DEFAULT '',
- description text NOT NULL,
- doc_state tinyint(3) unsigned NOT NULL DEFAULT '1',
- calendar_state tinyint(3) unsigned NOT NULL DEFAULT '1',
- work_state tinyint(3) unsigned NOT NULL DEFAULT '1',
- announcements_state tinyint(3) unsigned NOT NULL DEFAULT '1',
- forum_state tinyint(3) unsigned NOT NULL DEFAULT '1',
- wiki_state tinyint(3) unsigned NOT NULL DEFAULT '1',
- chat_state tinyint(3) unsigned NOT NULL DEFAULT '1',
- max_student int(10) unsigned NOT NULL DEFAULT '8',
- self_reg_allowed tinyint(3) unsigned NOT NULL DEFAULT '0',
- self_unreg_allowed tinyint(3) unsigned NOT NULL DEFAULT '0',
- groups_per_user int(10) unsigned NOT NULL DEFAULT '0',
- display_order int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_group_info
---
-
-DROP TABLE IF EXISTS c_group_info;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_group_info (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- name varchar(100) DEFAULT NULL,
- category_id int(10) unsigned NOT NULL DEFAULT '0',
- description text,
- max_student int(10) unsigned NOT NULL DEFAULT '8',
- doc_state tinyint(3) unsigned NOT NULL DEFAULT '1',
- calendar_state tinyint(3) unsigned NOT NULL DEFAULT '0',
- work_state tinyint(3) unsigned NOT NULL DEFAULT '0',
- announcements_state tinyint(3) unsigned NOT NULL DEFAULT '0',
- forum_state tinyint(3) unsigned NOT NULL DEFAULT '0',
- wiki_state tinyint(3) unsigned NOT NULL DEFAULT '1',
- chat_state tinyint(3) unsigned NOT NULL DEFAULT '1',
- secret_directory varchar(255) DEFAULT NULL,
- self_registration_allowed tinyint(3) unsigned NOT NULL DEFAULT '0',
- self_unregistration_allowed tinyint(3) unsigned NOT NULL DEFAULT '0',
- session_id int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY session_id (session_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_group_rel_tutor
---
-
-DROP TABLE IF EXISTS c_group_rel_tutor;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_group_rel_tutor (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- user_id int(11) NOT NULL,
- group_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_group_rel_user
---
-
-DROP TABLE IF EXISTS c_group_rel_user;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_group_rel_user (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- user_id int(10) unsigned NOT NULL,
- group_id int(10) unsigned NOT NULL DEFAULT '0',
- status int(11) NOT NULL DEFAULT '0',
- role char(50) NOT NULL,
- PRIMARY KEY (c_id,id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_item_property
---
-
-DROP TABLE IF EXISTS c_item_property;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_item_property (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- tool varchar(100) NOT NULL DEFAULT '',
- insert_user_id int(10) unsigned NOT NULL DEFAULT '0',
- insert_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- lastedit_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- ref int(11) NOT NULL DEFAULT '0',
- lastedit_type varchar(100) NOT NULL DEFAULT '',
- lastedit_user_id int(10) unsigned NOT NULL DEFAULT '0',
- to_group_id int(10) unsigned DEFAULT NULL,
- to_user_id int(10) unsigned DEFAULT NULL,
- visibility tinyint(4) NOT NULL DEFAULT '1',
- start_visible datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- end_visible datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- id_session int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY idx_item_property_toolref (tool,ref)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_link
---
-
-DROP TABLE IF EXISTS c_link;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_link (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- url text NOT NULL,
- title varchar(150) DEFAULT NULL,
- description text,
- category_id int(10) unsigned DEFAULT NULL,
- display_order int(10) unsigned NOT NULL DEFAULT '0',
- on_homepage enum('0','1') NOT NULL DEFAULT '0',
- target char(10) DEFAULT '_self',
- session_id int(11) DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY session_id (session_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_link_category
---
-
-DROP TABLE IF EXISTS c_link_category;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_link_category (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- category_title varchar(255) NOT NULL,
- description text,
- display_order mediumint(8) unsigned NOT NULL DEFAULT '0',
- session_id int(11) DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY session_id (session_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_lp
---
-
-DROP TABLE IF EXISTS c_lp;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_lp (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- lp_type int(10) unsigned NOT NULL,
- name varchar(255) NOT NULL,
- ref tinytext,
- description text,
- path text NOT NULL,
- force_commit tinyint(3) unsigned NOT NULL DEFAULT '0',
- default_view_mod char(32) NOT NULL DEFAULT 'embedded',
- default_encoding char(32) NOT NULL DEFAULT 'UTF-8',
- display_order int(10) unsigned NOT NULL DEFAULT '0',
- content_maker tinytext NOT NULL,
- content_local varchar(32) NOT NULL DEFAULT 'local',
- content_license text NOT NULL,
- prevent_reinit tinyint(3) unsigned NOT NULL DEFAULT '1',
- js_lib tinytext NOT NULL,
- debug tinyint(3) unsigned NOT NULL DEFAULT '0',
- theme varchar(255) NOT NULL DEFAULT '',
- preview_image varchar(255) NOT NULL DEFAULT '',
- author varchar(255) NOT NULL DEFAULT '',
- session_id int(10) unsigned NOT NULL DEFAULT '0',
- prerequisite int(10) unsigned NOT NULL DEFAULT '0',
- hide_toc_frame tinyint(4) NOT NULL DEFAULT '0',
- seriousgame_mode tinyint(4) NOT NULL DEFAULT '0',
- use_max_score int(10) unsigned NOT NULL DEFAULT '1',
- autolunch int(10) unsigned NOT NULL DEFAULT '0',
- created_on datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- modified_on datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- publicated_on datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- expired_on datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (c_id,id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_lp_item
---
-
-DROP TABLE IF EXISTS c_lp_item;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_lp_item (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- lp_id int(10) unsigned NOT NULL,
- item_type char(32) NOT NULL DEFAULT 'dokeos_document',
- ref tinytext NOT NULL,
- title varchar(511) NOT NULL,
- description varchar(511) NOT NULL DEFAULT '',
- path text NOT NULL,
- min_score float unsigned NOT NULL DEFAULT '0',
- max_score float unsigned DEFAULT '100',
- mastery_score float unsigned DEFAULT NULL,
- parent_item_id int(10) unsigned NOT NULL DEFAULT '0',
- previous_item_id int(10) unsigned NOT NULL DEFAULT '0',
- next_item_id int(10) unsigned NOT NULL DEFAULT '0',
- display_order int(10) unsigned NOT NULL DEFAULT '0',
- prerequisite text,
- parameters text,
- launch_data text NOT NULL,
- max_time_allowed char(13) DEFAULT '',
- terms text,
- search_did int(11) DEFAULT NULL,
- audio varchar(250) DEFAULT NULL,
- PRIMARY KEY (c_id,id),
- KEY lp_id (lp_id),
- KEY idx_c_lp_item_cid_lp_id (c_id,lp_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_lp_item_view
---
-
-DROP TABLE IF EXISTS c_lp_item_view;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_lp_item_view (
- c_id int(11) NOT NULL,
- id bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- lp_item_id int(10) unsigned NOT NULL,
- lp_view_id int(10) unsigned NOT NULL,
- view_count int(10) unsigned NOT NULL DEFAULT '0',
- start_time int(10) unsigned NOT NULL,
- total_time int(10) unsigned NOT NULL DEFAULT '0',
- score float unsigned NOT NULL DEFAULT '0',
- status char(32) NOT NULL DEFAULT 'not attempted',
- suspend_data longtext,
- lesson_location text,
- core_exit varchar(32) NOT NULL DEFAULT 'none',
- max_score varchar(8) DEFAULT '',
- PRIMARY KEY (c_id,id),
- KEY lp_item_id (lp_item_id),
- KEY lp_view_id (lp_view_id),
- KEY idx_c_lp_item_view_cid_lp_view_id_lp_item_id (c_id,lp_view_id,lp_item_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_lp_iv_interaction
---
-
-DROP TABLE IF EXISTS c_lp_iv_interaction;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_lp_iv_interaction (
- c_id int(11) NOT NULL,
- id bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- order_id int(10) unsigned NOT NULL DEFAULT '0',
- lp_iv_id bigint(20) unsigned NOT NULL,
- interaction_id varchar(255) NOT NULL DEFAULT '',
- interaction_type varchar(255) NOT NULL DEFAULT '',
- weighting double NOT NULL DEFAULT '0',
- completion_time varchar(16) NOT NULL DEFAULT '',
- correct_responses text NOT NULL,
- student_response text NOT NULL,
- result varchar(255) NOT NULL DEFAULT '',
- latency varchar(16) NOT NULL DEFAULT '',
- PRIMARY KEY (c_id,id),
- KEY lp_iv_id (lp_iv_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_lp_iv_objective
---
-
-DROP TABLE IF EXISTS c_lp_iv_objective;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_lp_iv_objective (
- c_id int(11) NOT NULL,
- id bigint(20) unsigned NOT NULL AUTO_INCREMENT,
- lp_iv_id bigint(20) unsigned NOT NULL,
- order_id int(10) unsigned NOT NULL DEFAULT '0',
- objective_id varchar(255) NOT NULL DEFAULT '',
- score_raw float unsigned NOT NULL DEFAULT '0',
- score_max float unsigned NOT NULL DEFAULT '0',
- score_min float unsigned NOT NULL DEFAULT '0',
- status char(32) NOT NULL DEFAULT 'not attempted',
- PRIMARY KEY (c_id,id),
- KEY lp_iv_id (lp_iv_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_lp_view
---
-
-DROP TABLE IF EXISTS c_lp_view;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_lp_view (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- lp_id int(10) unsigned NOT NULL,
- user_id int(10) unsigned NOT NULL,
- view_count int(10) unsigned NOT NULL DEFAULT '0',
- last_item int(10) unsigned NOT NULL DEFAULT '0',
- progress int(10) unsigned DEFAULT '0',
- session_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY lp_id (lp_id),
- KEY user_id (user_id),
- KEY session_id (session_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_metadata
---
-
-DROP TABLE IF EXISTS c_metadata;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_metadata (
- c_id int(11) NOT NULL,
- eid varchar(250) NOT NULL,
- mdxmltext text,
- md5 char(32) DEFAULT '',
- htmlcache1 text,
- htmlcache2 text,
- indexabletext text,
- PRIMARY KEY (c_id,eid)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_notebook
---
-
-DROP TABLE IF EXISTS c_notebook;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_notebook (
- c_id int(11) NOT NULL,
- notebook_id int(10) unsigned NOT NULL AUTO_INCREMENT,
- user_id int(10) unsigned NOT NULL,
- course varchar(40) NOT NULL,
- session_id int(11) NOT NULL DEFAULT '0',
- title varchar(255) NOT NULL,
- description text NOT NULL,
- creation_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- update_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- status int(11) DEFAULT NULL,
- PRIMARY KEY (c_id,notebook_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_online_connected
---
-
-DROP TABLE IF EXISTS c_online_connected;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_online_connected (
- c_id int(11) NOT NULL,
- user_id int(10) unsigned NOT NULL,
- last_connection datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (c_id,user_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_online_link
---
-
-DROP TABLE IF EXISTS c_online_link;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_online_link (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- name char(50) NOT NULL DEFAULT '',
- url char(100) NOT NULL,
- PRIMARY KEY (c_id,id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_permission_group
---
-
-DROP TABLE IF EXISTS c_permission_group;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_permission_group (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- group_id int(11) NOT NULL DEFAULT '0',
- tool varchar(250) NOT NULL DEFAULT '',
- action varchar(250) NOT NULL DEFAULT '',
- PRIMARY KEY (c_id,id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_permission_task
---
-
-DROP TABLE IF EXISTS c_permission_task;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_permission_task (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- task_id int(11) NOT NULL DEFAULT '0',
- tool varchar(250) NOT NULL DEFAULT '',
- action varchar(250) NOT NULL DEFAULT '',
- PRIMARY KEY (c_id,id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_permission_user
---
-
-DROP TABLE IF EXISTS c_permission_user;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_permission_user (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- user_id int(11) NOT NULL DEFAULT '0',
- tool varchar(250) NOT NULL DEFAULT '',
- action varchar(250) NOT NULL DEFAULT '',
- PRIMARY KEY (c_id,id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_quiz
---
-
-DROP TABLE IF EXISTS c_quiz;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_quiz (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- title varchar(255) NOT NULL,
- description text,
- sound varchar(255) DEFAULT NULL,
- type tinyint(3) unsigned NOT NULL DEFAULT '1',
- random int(11) NOT NULL DEFAULT '0',
- random_answers tinyint(3) unsigned NOT NULL DEFAULT '0',
- active tinyint(4) NOT NULL DEFAULT '0',
- results_disabled int(10) unsigned NOT NULL DEFAULT '0',
- access_condition text,
- max_attempt int(11) NOT NULL DEFAULT '0',
- start_time datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- end_time datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- feedback_type int(11) NOT NULL DEFAULT '0',
- expired_time int(11) NOT NULL DEFAULT '0',
- session_id int(11) DEFAULT '0',
- propagate_neg int(11) NOT NULL DEFAULT '0',
- review_answers int(11) NOT NULL DEFAULT '0',
- random_by_category int(11) NOT NULL DEFAULT '0',
- text_when_finished text,
- display_category_name int(11) NOT NULL DEFAULT '1',
- pass_percentage int(11) DEFAULT NULL,
- PRIMARY KEY (c_id,id),
- KEY session_id (session_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_quiz_answer
---
-
-DROP TABLE IF EXISTS c_quiz_answer;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_quiz_answer (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL,
- id_auto int(11) NOT NULL AUTO_INCREMENT,
- question_id int(10) unsigned NOT NULL,
- answer text NOT NULL,
- correct mediumint(8) unsigned DEFAULT NULL,
- comment text,
- ponderation float(6,2) NOT NULL DEFAULT '0.00',
- position mediumint(8) unsigned NOT NULL DEFAULT '1',
- hotspot_coordinates text,
- hotspot_type enum('square','circle','poly','delineation','oar') DEFAULT NULL,
- destination text NOT NULL,
- answer_code char(10) DEFAULT '',
- PRIMARY KEY (c_id,id_auto)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_quiz_question
---
-
-DROP TABLE IF EXISTS c_quiz_question;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_quiz_question (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- question text NOT NULL,
- description text,
- ponderation float(6,2) NOT NULL DEFAULT '0.00',
- position mediumint(8) unsigned NOT NULL DEFAULT '1',
- type tinyint(3) unsigned NOT NULL DEFAULT '2',
- picture varchar(50) DEFAULT NULL,
- level int(10) unsigned NOT NULL DEFAULT '0',
- extra varchar(255) DEFAULT NULL,
- question_code char(10) DEFAULT '',
- PRIMARY KEY (c_id,id),
- KEY position (position)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_quiz_question_category
---
-
-DROP TABLE IF EXISTS c_quiz_question_category;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_quiz_question_category (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- title varchar(255) NOT NULL,
- description text NOT NULL,
- PRIMARY KEY (c_id,id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_quiz_question_option
---
-
-DROP TABLE IF EXISTS c_quiz_question_option;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_quiz_question_option (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- question_id int(11) NOT NULL,
- name varchar(255) DEFAULT NULL,
- position int(10) unsigned NOT NULL,
- PRIMARY KEY (c_id,id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_quiz_question_rel_category
---
-
-DROP TABLE IF EXISTS c_quiz_question_rel_category;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_quiz_question_rel_category (
- c_id int(11) NOT NULL,
- question_id int(11) NOT NULL,
- category_id int(11) NOT NULL,
- PRIMARY KEY (c_id,question_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_quiz_rel_question
---
-
-DROP TABLE IF EXISTS c_quiz_rel_question;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_quiz_rel_question (
- c_id int(11) NOT NULL,
- question_id int(10) unsigned NOT NULL,
- exercice_id int(10) unsigned NOT NULL,
- question_order int(10) unsigned NOT NULL DEFAULT '1',
- PRIMARY KEY (c_id,question_id,exercice_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_resource
---
-
-DROP TABLE IF EXISTS c_resource;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_resource (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- source_type varchar(50) DEFAULT NULL,
- source_id int(10) unsigned DEFAULT NULL,
- resource_type varchar(50) DEFAULT NULL,
- resource_id int(10) unsigned DEFAULT NULL,
- PRIMARY KEY (c_id,id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_role
---
-
-DROP TABLE IF EXISTS c_role;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_role (
- c_id int(11) NOT NULL,
- role_id int(11) NOT NULL AUTO_INCREMENT,
- role_name varchar(250) NOT NULL DEFAULT '',
- role_comment text,
- default_role tinyint(4) DEFAULT '0',
- PRIMARY KEY (c_id,role_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_role_group
---
-
-DROP TABLE IF EXISTS c_role_group;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_role_group (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- role_id int(11) NOT NULL DEFAULT '0',
- scope varchar(20) NOT NULL DEFAULT 'course',
- group_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (id,c_id,group_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_role_permissions
---
-
-DROP TABLE IF EXISTS c_role_permissions;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_role_permissions (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- role_id int(11) NOT NULL DEFAULT '0',
- tool varchar(250) NOT NULL DEFAULT '',
- action varchar(50) NOT NULL DEFAULT '',
- default_perm tinyint(4) NOT NULL DEFAULT '0',
- PRIMARY KEY (id,c_id,role_id,tool,action)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_role_user
---
-
-DROP TABLE IF EXISTS c_role_user;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_role_user (
- c_id int(11) NOT NULL,
- role_id int(11) NOT NULL DEFAULT '0',
- scope varchar(20) NOT NULL DEFAULT 'course',
- user_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,role_id,user_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_student_publication
---
-
-DROP TABLE IF EXISTS c_student_publication;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_student_publication (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- url varchar(255) DEFAULT NULL,
- title varchar(255) DEFAULT NULL,
- description text,
- author varchar(255) DEFAULT NULL,
- active tinyint(4) DEFAULT NULL,
- accepted tinyint(4) DEFAULT '0',
- post_group_id int(11) NOT NULL DEFAULT '0',
- sent_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- filetype set('file','folder') NOT NULL DEFAULT 'file',
- has_properties int(10) unsigned NOT NULL DEFAULT '0',
- view_properties tinyint(4) DEFAULT NULL,
- qualification float(6,2) unsigned NOT NULL DEFAULT '0.00',
- date_of_qualification datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- parent_id int(10) unsigned NOT NULL DEFAULT '0',
- qualificator_id int(10) unsigned NOT NULL DEFAULT '0',
- weight float(6,2) unsigned NOT NULL DEFAULT '0.00',
- session_id int(10) unsigned NOT NULL DEFAULT '0',
- user_id int(11) NOT NULL,
- allow_text_assignment int(11) NOT NULL DEFAULT '0',
- contains_file int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY session_id (session_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_student_publication_assignment
---
-
-DROP TABLE IF EXISTS c_student_publication_assignment;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_student_publication_assignment (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- expires_on datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- ends_on datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- add_to_calendar tinyint(4) NOT NULL,
- enable_qualification tinyint(4) NOT NULL,
- publication_id int(11) NOT NULL,
- PRIMARY KEY (c_id,id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_survey
---
-
-DROP TABLE IF EXISTS c_survey;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_survey (
- c_id int(11) NOT NULL,
- survey_id int(10) unsigned NOT NULL AUTO_INCREMENT,
- code varchar(20) DEFAULT NULL,
- title text,
- subtitle text,
- author varchar(20) DEFAULT NULL,
- lang varchar(20) DEFAULT NULL,
- avail_from date DEFAULT NULL,
- avail_till date DEFAULT NULL,
- is_shared char(1) DEFAULT '1',
- template varchar(20) DEFAULT NULL,
- intro text,
- surveythanks text,
- creation_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- invited int(11) NOT NULL,
- answered int(11) NOT NULL,
- invite_mail text NOT NULL,
- reminder_mail text NOT NULL,
- mail_subject varchar(255) NOT NULL,
- anonymous enum('0','1') NOT NULL DEFAULT '0',
- access_condition text,
- shuffle tinyint(1) NOT NULL DEFAULT '0',
- one_question_per_page tinyint(1) NOT NULL DEFAULT '0',
- survey_version varchar(255) NOT NULL DEFAULT '',
- parent_id int(10) unsigned NOT NULL,
- survey_type int(11) NOT NULL DEFAULT '0',
- show_form_profile int(11) NOT NULL DEFAULT '0',
- form_fields text NOT NULL,
- session_id int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,survey_id),
- KEY session_id (session_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_survey_answer
---
-
-DROP TABLE IF EXISTS c_survey_answer;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_survey_answer (
- c_id int(11) NOT NULL,
- answer_id int(10) unsigned NOT NULL AUTO_INCREMENT,
- survey_id int(10) unsigned NOT NULL,
- question_id int(10) unsigned NOT NULL,
- option_id text NOT NULL,
- value int(10) unsigned NOT NULL,
- user varchar(250) NOT NULL,
- PRIMARY KEY (c_id,answer_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_survey_group
---
-
-DROP TABLE IF EXISTS c_survey_group;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_survey_group (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- name varchar(20) NOT NULL,
- description varchar(255) NOT NULL,
- survey_id int(10) unsigned NOT NULL,
- PRIMARY KEY (c_id,id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_survey_invitation
---
-
-DROP TABLE IF EXISTS c_survey_invitation;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_survey_invitation (
- c_id int(11) NOT NULL,
- survey_invitation_id int(10) unsigned NOT NULL AUTO_INCREMENT,
- survey_code varchar(20) NOT NULL,
- user varchar(250) NOT NULL,
- invitation_code varchar(250) NOT NULL,
- invitation_date datetime NOT NULL,
- reminder_date datetime NOT NULL,
- answered int(11) NOT NULL DEFAULT '0',
- session_id int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,survey_invitation_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_survey_question
---
-
-DROP TABLE IF EXISTS c_survey_question;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_survey_question (
- c_id int(11) NOT NULL,
- question_id int(10) unsigned NOT NULL AUTO_INCREMENT,
- survey_id int(10) unsigned NOT NULL,
- survey_question text NOT NULL,
- survey_question_comment text NOT NULL,
- type varchar(250) NOT NULL,
- display varchar(10) NOT NULL,
- sort int(11) NOT NULL,
- shared_question_id int(11) DEFAULT NULL,
- max_value int(11) DEFAULT NULL,
- survey_group_pri int(10) unsigned NOT NULL DEFAULT '0',
- survey_group_sec1 int(10) unsigned NOT NULL DEFAULT '0',
- survey_group_sec2 int(10) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,question_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_survey_question_option
---
-
-DROP TABLE IF EXISTS c_survey_question_option;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_survey_question_option (
- c_id int(11) NOT NULL,
- question_option_id int(10) unsigned NOT NULL AUTO_INCREMENT,
- question_id int(10) unsigned NOT NULL,
- survey_id int(10) unsigned NOT NULL,
- option_text text NOT NULL,
- sort int(11) NOT NULL,
- value int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,question_option_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_thematic
---
-
-DROP TABLE IF EXISTS c_thematic;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_thematic (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- title varchar(255) NOT NULL,
- content text,
- display_order int(10) unsigned NOT NULL DEFAULT '0',
- active tinyint(4) NOT NULL DEFAULT '0',
- session_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY active (active,session_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_thematic_advance
---
-
-DROP TABLE IF EXISTS c_thematic_advance;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_thematic_advance (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- thematic_id int(11) NOT NULL,
- attendance_id int(11) NOT NULL DEFAULT '0',
- content text,
- start_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- duration int(11) NOT NULL DEFAULT '0',
- done_advance tinyint(4) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY thematic_id (thematic_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_thematic_plan
---
-
-DROP TABLE IF EXISTS c_thematic_plan;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_thematic_plan (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- thematic_id int(11) NOT NULL,
- title varchar(255) NOT NULL,
- description text,
- description_type int(11) NOT NULL,
- PRIMARY KEY (c_id,id),
- KEY thematic_id (thematic_id,description_type)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_tool
---
-
-DROP TABLE IF EXISTS c_tool;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_tool (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- name varchar(255) NOT NULL,
- link varchar(255) NOT NULL,
- image varchar(255) DEFAULT NULL,
- visibility tinyint(3) unsigned DEFAULT '0',
- admin varchar(255) DEFAULT NULL,
- address varchar(255) DEFAULT NULL,
- added_tool tinyint(3) unsigned DEFAULT '1',
- target enum('_self','_blank') NOT NULL DEFAULT '_self',
- category varchar(20) NOT NULL DEFAULT 'authoring',
- session_id int(11) DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY session_id (session_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_tool_intro
---
-
-DROP TABLE IF EXISTS c_tool_intro;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_tool_intro (
- c_id int(11) NOT NULL,
- id varchar(50) NOT NULL,
- intro_text mediumtext NOT NULL,
- session_id int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id,session_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_userinfo_content
---
-
-DROP TABLE IF EXISTS c_userinfo_content;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_userinfo_content (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- user_id int(10) unsigned NOT NULL,
- definition_id int(10) unsigned NOT NULL,
- editor_ip varchar(39) DEFAULT NULL,
- edition_time datetime DEFAULT NULL,
- content text NOT NULL,
- PRIMARY KEY (c_id,id),
- KEY user_id (user_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_userinfo_def
---
-
-DROP TABLE IF EXISTS c_userinfo_def;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_userinfo_def (
- c_id int(11) NOT NULL,
- id int(10) unsigned NOT NULL AUTO_INCREMENT,
- title varchar(80) NOT NULL DEFAULT '',
- comment text,
- line_count tinyint(3) unsigned NOT NULL DEFAULT '5',
- rank tinyint(3) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_wiki
---
-
-DROP TABLE IF EXISTS c_wiki;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_wiki (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- page_id int(11) NOT NULL DEFAULT '0',
- reflink varchar(255) NOT NULL DEFAULT 'index',
- title varchar(255) NOT NULL,
- content mediumtext NOT NULL,
- user_id int(11) NOT NULL DEFAULT '0',
- group_id int(11) DEFAULT NULL,
- dtime datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- addlock int(11) NOT NULL DEFAULT '1',
- editlock int(11) NOT NULL DEFAULT '0',
- visibility int(11) NOT NULL DEFAULT '1',
- addlock_disc int(11) NOT NULL DEFAULT '1',
- visibility_disc int(11) NOT NULL DEFAULT '1',
- ratinglock_disc int(11) NOT NULL DEFAULT '1',
- assignment int(11) NOT NULL DEFAULT '0',
- comment text NOT NULL,
- progress text NOT NULL,
- score int(11) DEFAULT '0',
- version int(11) DEFAULT NULL,
- is_editing int(11) NOT NULL DEFAULT '0',
- time_edit datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- hits int(11) DEFAULT '0',
- linksto text NOT NULL,
- tag text NOT NULL,
- user_ip varchar(39) NOT NULL,
- session_id int(11) DEFAULT '0',
- PRIMARY KEY (c_id,id),
- KEY reflink (reflink),
- KEY group_id (group_id),
- KEY page_id (page_id),
- KEY session_id (session_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_wiki_conf
---
-
-DROP TABLE IF EXISTS c_wiki_conf;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_wiki_conf (
- c_id int(11) NOT NULL,
- page_id int(11) NOT NULL DEFAULT '0',
- task text NOT NULL,
- feedback1 text NOT NULL,
- feedback2 text NOT NULL,
- feedback3 text NOT NULL,
- fprogress1 varchar(3) NOT NULL,
- fprogress2 varchar(3) NOT NULL,
- fprogress3 varchar(3) NOT NULL,
- max_size int(11) DEFAULT NULL,
- max_text int(11) DEFAULT NULL,
- max_version int(11) DEFAULT NULL,
- startdate_assig datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- enddate_assig datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- delayedsubmit int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (c_id,page_id),
- KEY page_id (page_id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_wiki_discuss
---
-
-DROP TABLE IF EXISTS c_wiki_discuss;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_wiki_discuss (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL AUTO_INCREMENT,
- publication_id int(11) NOT NULL DEFAULT '0',
- userc_id int(11) NOT NULL DEFAULT '0',
- comment text NOT NULL,
- p_score varchar(255) DEFAULT NULL,
- dtime datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (c_id,id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table c_wiki_mailcue
---
-
-DROP TABLE IF EXISTS c_wiki_mailcue;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE c_wiki_mailcue (
- c_id int(11) NOT NULL,
- id int(11) NOT NULL,
- user_id int(11) NOT NULL,
- type text NOT NULL,
- group_id int(11) DEFAULT NULL,
- session_id int(11) DEFAULT '0',
- PRIMARY KEY (c_id,id,user_id),
- KEY c_id (c_id,id)
-) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-
-/*!40101 SET character_set_client = @saved_cs_client */;
-
-/*!40101 SET character_set_client = @saved_cs_client */;
-/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
-
-/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
-/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
-/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-
--- Dump completed on 2013-03-22 18:59:00
\ No newline at end of file
diff --git a/main/install/1.9.0/db_main.sql b/main/install/1.9.0/db_main.sql
deleted file mode 100644
index f331e6e914..0000000000
--- a/main/install/1.9.0/db_main.sql
+++ /dev/null
@@ -1,3028 +0,0 @@
--- MySQL dump 10.9
---
--- Host: localhost Database: chamilo_main
--- ------------------------------------------------------
--- Server version 4.1.14
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
-
---
--- Table structure for table user
---
-
-DROP TABLE IF EXISTS user;
-CREATE TABLE IF NOT EXISTS user (
- user_id int unsigned NOT NULL auto_increment,
- lastname varchar(60) default NULL,
- firstname varchar(60) default NULL,
- username varchar(100) NOT NULL default '',
- password varchar(50) NOT NULL default '',
- auth_source varchar(50) default 'platform',
- email varchar(100) default NULL,
- status tinyint NOT NULL default '5',
- official_code varchar(40) default NULL,
- phone varchar(30) default NULL,
- picture_uri varchar(250) default NULL,
- creator_id int unsigned default NULL,
- competences text,
- diplomas text,
- openarea text,
- teach text,
- productions varchar(250) default NULL,
- chatcall_user_id int unsigned NOT NULL default '0',
- chatcall_date datetime NOT NULL default '0000-00-00 00:00:00',
- chatcall_text varchar(50) NOT NULL default '',
- language varchar(40) default NULL,
- registration_date datetime NOT NULL default '0000-00-00 00:00:00',
- expiration_date datetime NOT NULL default '0000-00-00 00:00:00',
- active tinyint unsigned NOT NULL default 1,
- openid varchar(255) DEFAULT NULL,
- theme varchar(255) DEFAULT NULL,
- hr_dept_id smallint unsigned NOT NULL default 0,
- PRIMARY KEY (user_id),
- UNIQUE KEY username (username)
-);
-ALTER TABLE user ADD INDEX (status);
-
---
--- Dumping data for table user
---
-
-/*!40000 ALTER TABLE user DISABLE KEYS */;
-LOCK TABLES user WRITE;
-INSERT INTO user (lastname, firstname, username, password, auth_source, email, status, official_code,phone, creator_id, registration_date, expiration_date,active,openid,language) VALUES ('{ADMINLASTNAME}','{ADMINFIRSTNAME}','{ADMINLOGIN}','{ADMINPASSWORD}','{PLATFORM_AUTH_SOURCE}','{ADMINEMAIL}',1,'ADMIN','{ADMINPHONE}',1,NOW(),'0000-00-00 00:00:00','1',NULL,'{ADMINLANGUAGE}');
--- Insert anonymous user
-INSERT INTO user (lastname, firstname, username, password, auth_source, email, status, official_code, creator_id, registration_date, expiration_date,active,openid,language) VALUES ('Anonymous', 'Joe', '', '', 'platform', 'anonymous@localhost', 6, 'anonymous', 1, NOW(), '0000-00-00 00:00:00', 1,NULL,'{ADMINLANGUAGE}');
-UNLOCK TABLES;
-/*!40000 ALTER TABLE user ENABLE KEYS */;
-
---
--- Table structure for table admin
---
-
-DROP TABLE IF EXISTS admin;
-CREATE TABLE IF NOT EXISTS admin (
- id INT PRIMARY KEY NOT NULL AUTO_INCREMENT,
- user_id int unsigned NOT NULL default '0',
- UNIQUE KEY user_id (user_id)
-);
-
---
--- Dumping data for table admin
---
-
-
-/*!40000 ALTER TABLE admin DISABLE KEYS */;
-LOCK TABLES admin WRITE;
-INSERT INTO admin VALUES (1, 1);
-UNLOCK TABLES;
-/*!40000 ALTER TABLE admin ENABLE KEYS */;
-
---
--- Table structure for table class
---
-
-DROP TABLE IF EXISTS class;
-CREATE TABLE IF NOT EXISTS class (
- id mediumint unsigned NOT NULL auto_increment,
- code varchar(40) default '',
- name text NOT NULL,
- PRIMARY KEY (id)
-);
-
---
--- Dumping data for table class
---
-
-
-/*!40000 ALTER TABLE class DISABLE KEYS */;
-LOCK TABLES class WRITE;
-UNLOCK TABLES;
-/*!40000 ALTER TABLE class ENABLE KEYS */;
-
---
--- Table structure for table class_user
---
-
-DROP TABLE IF EXISTS class_user;
-CREATE TABLE IF NOT EXISTS class_user (
- class_id mediumint unsigned NOT NULL default '0',
- user_id int unsigned NOT NULL default '0',
- PRIMARY KEY (class_id,user_id)
-);
-
---
--- Dumping data for table class_user
---
-
-
-/*!40000 ALTER TABLE class_user DISABLE KEYS */;
-LOCK TABLES class_user WRITE;
-UNLOCK TABLES;
-/*!40000 ALTER TABLE class_user ENABLE KEYS */;
-
---
--- Table structure for table course
---
-
-DROP TABLE IF EXISTS course;
-CREATE TABLE IF NOT EXISTS course (
- id int auto_increment,
- code varchar(40) NOT NULL,
- directory varchar(40) default NULL,
- db_name varchar(40) default NULL,
- course_language varchar(20) default NULL,
- title varchar(250) default NULL,
- description text,
- category_code varchar(40) default NULL,
- visibility tinyint default '0',
- show_score int NOT NULL default '1',
- tutor_name varchar(200) default NULL,
- visual_code varchar(40) default NULL,
- department_name varchar(30) default NULL,
- department_url varchar(180) default NULL,
- disk_quota bigint unsigned default NULL,
- last_visit datetime default NULL,
- last_edit datetime default NULL,
- creation_date datetime default NULL,
- expiration_date datetime default NULL,
- target_course_code varchar(40) default NULL,
- subscribe tinyint NOT NULL default '1',
- unsubscribe tinyint NOT NULL default '1',
- registration_code varchar(255) NOT NULL default '',
- legal TEXT NOT NULL,
- activate_legal INT NOT NULL DEFAULT 0,
- PRIMARY KEY (id),
- UNIQUE KEY code (code)
-);
-ALTER TABLE course ADD INDEX idx_course_category_code (category_code);
-ALTER TABLE course ADD INDEX idx_course_directory (directory(10));
---
--- Dumping data for table course
---
-
-
-/*!40000 ALTER TABLE course DISABLE KEYS */;
-LOCK TABLES course WRITE;
-UNLOCK TABLES;
-/*!40000 ALTER TABLE course ENABLE KEYS */;
-
---
--- Table structure for table course_category
---
-
-DROP TABLE IF EXISTS course_category;
-CREATE TABLE IF NOT EXISTS course_category (
- id int unsigned NOT NULL auto_increment,
- name varchar(100) NOT NULL default '',
- code varchar(40) NOT NULL default '',
- parent_id varchar(40) default NULL,
- tree_pos int unsigned default NULL,
- children_count smallint default NULL,
- auth_course_child enum('TRUE','FALSE') default 'TRUE',
- auth_cat_child enum('TRUE','FALSE') default 'TRUE',
- PRIMARY KEY (id),
- UNIQUE KEY code (code),
- KEY parent_id (parent_id),
- KEY tree_pos (tree_pos)
-);
-
---
--- Dumping data for table course_category
---
-
-
-/*!40000 ALTER TABLE course_category DISABLE KEYS */;
-LOCK TABLES course_category WRITE;
-INSERT INTO course_category VALUES (1,'Language skills','LANG',NULL,1,0,'TRUE','TRUE'),(2,'PC Skills','PC',NULL,2,0,'TRUE','TRUE'),(3,'Projects','PROJ',NULL,3,0,'TRUE','TRUE');
-UNLOCK TABLES;
-/*!40000 ALTER TABLE course_category ENABLE KEYS */;
-
---
--- Table structure for table course_field
---
-
-DROP TABLE IF EXISTS course_field;
-CREATE TABLE IF NOT EXISTS course_field (
- id int NOT NULL auto_increment,
- field_type int NOT NULL default 1,
- field_variable varchar(64) NOT NULL,
- field_display_text varchar(64),
- field_default_value text,
- field_order int,
- field_visible tinyint default 0,
- field_changeable tinyint default 0,
- field_filter tinyint default 0,
- tms DATETIME NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY(id)
-);
-
---
--- Table structure for table course_field_values
---
-
-DROP TABLE IF EXISTS course_field_values;
-CREATE TABLE IF NOT EXISTS course_field_values(
- id int NOT NULL auto_increment,
- course_code varchar(40) NOT NULL,
- field_id int NOT NULL,
- field_value text,
- tms DATETIME NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY(id)
-);
-
-
---
--- Table structure for table course_module
---
-
-DROP TABLE IF EXISTS course_module;
-CREATE TABLE IF NOT EXISTS course_module (
- id int unsigned NOT NULL auto_increment,
- name varchar(255) NOT NULL,
- link varchar(255) NOT NULL,
- image varchar(100) default NULL,
- `row` int unsigned NOT NULL default '0',
- `column` int unsigned NOT NULL default '0',
- position varchar(20) NOT NULL default 'basic',
- PRIMARY KEY (id)
-);
-
---
--- Dumping data for table course_module
---
-
-
-/*!40000 ALTER TABLE course_module DISABLE KEYS */;
-LOCK TABLES course_module WRITE;
-INSERT INTO course_module VALUES
-(1,'calendar_event','calendar/agenda.php','agenda.gif',1,1,'basic'),
-(2,'link','link/link.php','links.gif',4,1,'basic'),
-(3,'document','document/document.php','documents.gif',3,1,'basic'),
-(4,'student_publication','work/work.php','works.gif',3,2,'basic'),
-(5,'announcement','announcements/announcements.php','valves.gif',2,1,'basic'),
-(6,'user','user/user.php','members.gif',2,3,'basic'),
-(7,'forum','forum/index.php','forum.gif',1,2,'basic'),
-(8,'quiz','exercice/exercice.php','quiz.gif',2,2,'basic'),
-(9,'group','group/group.php','group.gif',3,3,'basic'),
-(10,'course_description','course_description/','info.gif',1,3,'basic'),
-(11,'chat','chat/chat.php','chat.gif',0,0,'external'),
-(12,'dropbox','dropbox/index.php','dropbox.gif',4,2,'basic'),
-(13,'tracking','tracking/courseLog.php','statistics.gif',1,3,'courseadmin'),
-(14,'homepage_link','link/link.php?action=addlink','npage.gif',1,1,'courseadmin'),
-(15,'course_setting','course_info/infocours.php','reference.gif',1,1,'courseadmin'),
-(16,'External','','external.gif',0,0,'external'),
-(17,'AddedLearnpath','','scormbuilder.gif',0,0,'external'),
-(18,'conference','conference/index.php?type=conference','conf.gif',0,0,'external'),
-(19,'conference','conference/index.php?type=classroom','conf.gif',0,0,'external'),
-(20,'learnpath','newscorm/lp_controller.php','scorms.gif',5,1,'basic'),
-(21,'blog','blog/blog.php','blog.gif',1,2,'basic'),
-(22,'blog_management','blog/blog_admin.php','blog_admin.gif',1,2,'courseadmin'),
-(23,'course_maintenance','course_info/maintenance.php','backup.gif',2,3,'courseadmin'),
-(24,'survey','survey/survey_list.php','survey.gif',2,1,'basic'),
-(25,'wiki','wiki/index.php','wiki.gif',2,3,'basic'),
-(26,'gradebook','gradebook/index.php','gradebook.gif',2,2,'basic'),
-(27,'glossary','glossary/index.php','glossary.gif',2,1,'basic'),
-(28,'notebook','notebook/index.php','notebook.gif',2,1,'basic'),
-(29,'attendance','attendance/index.php','attendance.gif',2,1,'basic'),
-(30,'course_progress','course_progress/index.php','course_progress.gif',2,1,'basic');
-UNLOCK TABLES;
-/*!40000 ALTER TABLE course_module ENABLE KEYS */;
-
---
--- Table structure for table course_rel_class
---
-
-DROP TABLE IF EXISTS course_rel_class;
-CREATE TABLE IF NOT EXISTS course_rel_class (
- course_code char(40) NOT NULL,
- class_id mediumint unsigned NOT NULL,
- PRIMARY KEY (course_code,class_id)
-);
-
---
--- Dumping data for table course_rel_class
---
-
-
-/*!40000 ALTER TABLE course_rel_class DISABLE KEYS */;
-LOCK TABLES course_rel_class WRITE;
-UNLOCK TABLES;
-/*!40000 ALTER TABLE course_rel_class ENABLE KEYS */;
-
---
--- Table structure for table course_rel_user
---
-
-DROP TABLE IF EXISTS course_rel_user;
-CREATE TABLE IF NOT EXISTS course_rel_user (
- course_code varchar(40) NOT NULL,
- user_id int unsigned NOT NULL default '0',
- status tinyint NOT NULL default '5',
- role varchar(60) default NULL,
- group_id int NOT NULL default '0',
- tutor_id int unsigned NOT NULL default '0',
- sort int default NULL,
- user_course_cat int default '0',
- relation_type int default 0,
- legal_agreement INTEGER DEFAULT 0,
- PRIMARY KEY (course_code,user_id,relation_type)
-);
-ALTER TABLE course_rel_user ADD INDEX (user_id);
-
---
--- Dumping data for table course_rel_user
---
-
-
-/*!40000 ALTER TABLE course_rel_user DISABLE KEYS */;
-LOCK TABLES course_rel_user WRITE;
-UNLOCK TABLES;
-/*!40000 ALTER TABLE course_rel_user ENABLE KEYS */;
-
---
--- Table structure for table language
---
-
-DROP TABLE IF EXISTS language;
-CREATE TABLE IF NOT EXISTS language (
- id tinyint unsigned NOT NULL auto_increment,
- original_name varchar(255) default NULL,
- english_name varchar(255) default NULL,
- isocode varchar(10) default NULL,
- dokeos_folder varchar(250) default NULL,
- available tinyint NOT NULL default 1,
- parent_id tinyint unsigned,
- PRIMARY KEY (id)
-);
-ALTER TABLE language ADD INDEX idx_language_dokeos_folder(dokeos_folder);
-
---
--- Dumping data for table language
---
-
-
-/*!40000 ALTER TABLE language DISABLE KEYS */;
-LOCK TABLES language WRITE;
-INSERT INTO language (original_name, english_name, isocode, dokeos_folder, available) VALUES
-('العربية','arabic','ar','arabic',0),
-('Asturianu','asturian','ast','asturian',0),
-('বাংলা','bengali','bn','bengali',0),
-('Български','bulgarian','bg','bulgarian',1),
-('Bosanski','bosnian','bs','bosnian',1),
-('Català','catalan','ca','catalan',0),
-('中文(简体)','simpl_chinese','zh','simpl_chinese',0),
-('繁體中文','trad_chinese','zh-TW','trad_chinese',0),
-('Česky','czech','cs','czech',0),
-('Dansk','danish','da','danish',0),
-('دری','dari','prs','dari',0),
-('Deutsch','german','de','german',1),
-('Ελληνικά','greek','el','greek',0),
-('English','english','en','english',1),
-('Español','spanish','es','spanish',1),
-('Esperanto','esperanto','eo','esperanto',0),
-('Euskara','basque','eu','basque',0),
-('فارسی','persian','fa','persian',0),
-('Français','french','fr','french',1),
-('Furlan','friulian','fur','friulian',0),
-('Galego','galician','gl','galician',0),
-('ქართული','georgian','ka','georgian',0),
-('Hrvatski','croatian','hr','croatian',0),
-('עברית','hebrew','he','hebrew',0),
-('हिन्दी','hindi','hi','hindi',0),
-('Bahasa Indonesia','indonesian','id','indonesian',1),
-('Italiano','italian','it','italian',1),
-('한국어','korean','ko','korean',0),
-('Latviešu','latvian','lv','latvian',0),
-('Lietuvių','lithuanian','lt','lithuanian',0),
-('Македонски','macedonian','mk','macedonian',0),
-('Magyar','hungarian','hu','hungarian',1),
-('Bahasa Melayu','malay','ms','malay',0),
-('Nederlands','dutch','nl','dutch',1),
-('日本語','japanese','ja','japanese',0),
-('Norsk','norwegian','no','norwegian',0),
-('Occitan','occitan','oc','occitan',0),
-('پښتو','pashto','ps','pashto',0),
-('Polski','polish','pl','polish',0),
-('Português europeu','portuguese','pt','portuguese',1),
-('Português do Brasil','brazilian','pt-BR','brazilian',1),
-('Română','romanian','ro','romanian',0),
-('Runasimi','quechua_cusco','qu','quechua_cusco',0),
-('Русский','russian','ru','russian',0),
-('Slovenčina','slovak','sk','slovak',0),
-('Slovenščina','slovenian','sl','slovenian',1),
-('الصومالية','somali','so','somali',0),
-('Srpski','serbian','sr','serbian',0),
-('Suomi','finnish','fi','finnish',0),
-('Svenska','swedish','sv','swedish',0),
-('ไทย','thai','th','thai',0),
-('Türkçe','turkish','tr','turkish',0),
-('Українська','ukrainian','uk','ukrainian',0),
-('Tiếng Việt','vietnamese','vi','vietnamese',0),
-('Kiswahili','swahili','sw','swahili',0),
-('Yorùbá','yoruba','yo','yoruba',0);
-
--- The chosen during the installation platform language should be enabled.
-UPDATE language SET available=1 WHERE dokeos_folder = '{PLATFORMLANGUAGE}';
-
-UNLOCK TABLES;
-/*!40000 ALTER TABLE language ENABLE KEYS */;
-
---
--- Table structure for table php_session
---
-
-DROP TABLE IF EXISTS php_session;
-CREATE TABLE IF NOT EXISTS php_session (
- session_id varchar(32) NOT NULL default '',
- session_name varchar(10) NOT NULL default '',
- session_time int NOT NULL default '0',
- session_start int NOT NULL default '0',
- session_value mediumtext NOT NULL,
- PRIMARY KEY (session_id)
-);
-
---
--- Table structure for table session
---
-DROP TABLE IF EXISTS session;
-CREATE TABLE IF NOT EXISTS session (
- id smallint unsigned NOT NULL auto_increment,
- id_coach int unsigned NOT NULL default '0',
- name char(50) NOT NULL default '',
- nbr_courses smallint unsigned NOT NULL default '0',
- nbr_users mediumint unsigned NOT NULL default '0',
- nbr_classes mediumint unsigned NOT NULL default '0',
- date_start date NOT NULL default '0000-00-00',
- date_end date NOT NULL default '0000-00-00',
- nb_days_access_before_beginning TINYINT UNSIGNED NULL default '0',
- nb_days_access_after_end TINYINT UNSIGNED NULL default '0',
- session_admin_id INT UNSIGNED NOT NULL,
- visibility int NOT NULL default 1,
- session_category_id int NOT NULL,
- promotion_id INT NOT NULL,
- PRIMARY KEY (id),
- INDEX (session_admin_id),
- UNIQUE KEY name (name)
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for table session_rel_course
---
-DROP TABLE IF EXISTS session_rel_course;
-CREATE TABLE IF NOT EXISTS session_rel_course (
- id_session smallint unsigned NOT NULL default '0',
- course_code char(40) NOT NULL default '',
- nbr_users smallint unsigned NOT NULL default '0',
- PRIMARY KEY (id_session,course_code),
- KEY course_code (course_code)
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for table session_rel_course_rel_user
---
-DROP TABLE IF EXISTS session_rel_course_rel_user;
-CREATE TABLE IF NOT EXISTS session_rel_course_rel_user (
- id_session smallint unsigned NOT NULL default '0',
- course_code char(40) NOT NULL default '',
- id_user int unsigned NOT NULL default '0',
- visibility int NOT NULL default 1,
- status int NOT NULL default 0,
- legal_agreement INTEGER DEFAULT 0,
- PRIMARY KEY (id_session,course_code,id_user),
- KEY id_user (id_user),
- KEY course_code (course_code)
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for table session_rel_user
---
-DROP TABLE IF EXISTS session_rel_user;
-CREATE TABLE IF NOT EXISTS session_rel_user (
- id_session mediumint unsigned NOT NULL default '0',
- id_user mediumint unsigned NOT NULL default '0',
- relation_type int default 0,
- PRIMARY KEY (id_session, id_user, relation_type)
-);
-
-
-DROP TABLE IF EXISTS session_field;
-CREATE TABLE IF NOT EXISTS session_field (
- id int NOT NULL auto_increment,
- field_type int NOT NULL default 1,
- field_variable varchar(64) NOT NULL,
- field_display_text varchar(64),
- field_default_value text,
- field_order int,
- field_visible tinyint default 0,
- field_changeable tinyint default 0,
- field_filter tinyint default 0,
- tms DATETIME NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY(id)
-);
-
-DROP TABLE IF EXISTS session_field_values;
-CREATE TABLE IF NOT EXISTS session_field_values(
- id int NOT NULL auto_increment,
- session_id int NOT NULL,
- field_id int NOT NULL,
- field_value text,
- tms DATETIME NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY(id)
-);
-
---
--- Table structure for table settings_current
---
-
-DROP TABLE IF EXISTS settings_current;
-CREATE TABLE IF NOT EXISTS settings_current (
- id int unsigned NOT NULL auto_increment,
- variable varchar(255) default NULL,
- subkey varchar(255) default NULL,
- type varchar(255) default NULL,
- category varchar(255) default NULL,
- selected_value varchar(255) default NULL,
- title varchar(255) NOT NULL default '',
- comment varchar(255) default NULL,
- scope varchar(50) default NULL,
- subkeytext varchar(255) default NULL,
- access_url int unsigned not null default 1,
- access_url_changeable int unsigned not null default 0,
- access_url_locked int not null default 0,
- PRIMARY KEY id (id),
- INDEX (access_url)
-);
-
-ALTER TABLE settings_current ADD UNIQUE unique_setting (variable(110), subkey(110), category(110), access_url);
-
---
--- Dumping data for table settings_current
---
-
-/*!40000 ALTER TABLE settings_current DISABLE KEYS */;
-LOCK TABLES settings_current WRITE;
-INSERT INTO settings_current
-(variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable)
-VALUES
-('Institution',NULL,'textfield','Platform','{ORGANISATIONNAME}','InstitutionTitle','InstitutionComment','platform',NULL, 1),
-('InstitutionUrl',NULL,'textfield','Platform','{ORGANISATIONURL}','InstitutionUrlTitle','InstitutionUrlComment',NULL,NULL, 1),
-('siteName',NULL,'textfield','Platform','{CAMPUSNAME}','SiteNameTitle','SiteNameComment',NULL,NULL, 1),
-('emailAdministrator',NULL,'textfield','Platform','{ADMINEMAIL}','emailAdministratorTitle','emailAdministratorComment',NULL,NULL, 1),
-('administratorSurname',NULL,'textfield','Platform','{ADMINLASTNAME}','administratorSurnameTitle','administratorSurnameComment',NULL,NULL, 1),
-('administratorName',NULL,'textfield','Platform','{ADMINFIRSTNAME}','administratorNameTitle','administratorNameComment',NULL,NULL, 1),
-('show_administrator_data',NULL,'radio','Platform','true','ShowAdministratorDataTitle','ShowAdministratorDataComment',NULL,NULL, 1),
-('show_tutor_data',NULL,'radio','Session','true','ShowTutorDataTitle','ShowTutorDataComment',NULL,NULL, 1),
-('show_teacher_data',NULL,'radio','Platform','true','ShowTeacherDataTitle','ShowTeacherDataComment',NULL,NULL, 1),
-('homepage_view',NULL,'radio','Course','activity_big','HomepageViewTitle','HomepageViewComment',NULL,NULL, 1),
-('show_toolshortcuts',NULL,'radio','Course','false','ShowToolShortcutsTitle','ShowToolShortcutsComment',NULL,NULL, 0),
-('allow_group_categories',NULL,'radio','Course','false','AllowGroupCategories','AllowGroupCategoriesComment',NULL,NULL, 0),
-('server_type',NULL,'radio','Platform','production','ServerStatusTitle','ServerStatusComment',NULL,NULL, 0),
-('platformLanguage',NULL,'link','Languages','{PLATFORMLANGUAGE}','PlatformLanguageTitle','PlatformLanguageComment',NULL,NULL, 0),
-('showonline','world','checkbox','Platform','true','ShowOnlineTitle','ShowOnlineComment',NULL,'ShowOnlineWorld', 0),
-('showonline','users','checkbox','Platform','true','ShowOnlineTitle','ShowOnlineComment',NULL,'ShowOnlineUsers', 0),
-('showonline','course','checkbox','Platform','true','ShowOnlineTitle','ShowOnlineComment',NULL,'ShowOnlineCourse', 0),
-('profile','name','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'name', 0),
-('profile','officialcode','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'officialcode', 0),
-('profile','email','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'Email', 0),
-('profile','picture','checkbox','User','true','ProfileChangesTitle','ProfileChangesComment',NULL,'UserPicture', 0),
-('profile','login','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'Login', 0),
-('profile','password','checkbox','User','true','ProfileChangesTitle','ProfileChangesComment',NULL,'UserPassword', 0),
-('profile','language','checkbox','User','true','ProfileChangesTitle','ProfileChangesComment',NULL,'Language', 0),
-('default_document_quotum',NULL,'textfield','Course','100000000','DefaultDocumentQuotumTitle','DefaultDocumentQuotumComment',NULL,NULL, 0),
-('registration','officialcode','checkbox','User','false','RegistrationRequiredFormsTitle','RegistrationRequiredFormsComment',NULL,'OfficialCode', 0),
-('registration','email','checkbox','User','true','RegistrationRequiredFormsTitle','RegistrationRequiredFormsComment',NULL,'Email', 0),
-('registration','language','checkbox','User','true','RegistrationRequiredFormsTitle','RegistrationRequiredFormsComment',NULL,'Language', 0),
-('default_group_quotum',NULL,'textfield','Course','5000000','DefaultGroupQuotumTitle','DefaultGroupQuotumComment',NULL,NULL, 0),
-('allow_registration',NULL,'radio','Platform','{ALLOWSELFREGISTRATION}','AllowRegistrationTitle','AllowRegistrationComment',NULL,NULL, 0),
-('allow_registration_as_teacher',NULL,'radio','Platform','{ALLOWTEACHERSELFREGISTRATION}','AllowRegistrationAsTeacherTitle','AllowRegistrationAsTeacherComment',NULL,NULL, 0),
-('allow_lostpassword',NULL,'radio','Platform','true','AllowLostPasswordTitle','AllowLostPasswordComment',NULL,NULL, 0),
-('allow_user_headings',NULL,'radio','Course','false','AllowUserHeadings','AllowUserHeadingsComment',NULL,NULL, 0),
-('course_create_active_tools','course_description','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'CourseDescription', 0),
-('course_create_active_tools','agenda','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Agenda', 0),
-('course_create_active_tools','documents','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Documents', 0),
-('course_create_active_tools','learning_path','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'LearningPath', 0),
-('course_create_active_tools','links','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Links', 0),
-('course_create_active_tools','announcements','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Announcements', 0),
-('course_create_active_tools','forums','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Forums', 0),
-('course_create_active_tools','dropbox','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Dropbox', 0),
-('course_create_active_tools','quiz','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Quiz', 0),
-('course_create_active_tools','users','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Users', 0),
-('course_create_active_tools','groups','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Groups', 0),
-('course_create_active_tools','chat','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Chat', 0),
-('course_create_active_tools','online_conference','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'OnlineConference', 0),
-('course_create_active_tools','student_publications','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'StudentPublications', 0),
-('allow_personal_agenda',NULL,'radio','User','true','AllowPersonalAgendaTitle','AllowPersonalAgendaComment',NULL,NULL, 0),
-('display_coursecode_in_courselist',NULL,'radio','Platform','false','DisplayCourseCodeInCourselistTitle','DisplayCourseCodeInCourselistComment',NULL,NULL, 0),
-('display_teacher_in_courselist',NULL,'radio','Platform','true','DisplayTeacherInCourselistTitle','DisplayTeacherInCourselistComment',NULL,NULL, 0),
-('permanently_remove_deleted_files',NULL,'radio','Tools','false','PermanentlyRemoveFilesTitle','PermanentlyRemoveFilesComment',NULL,NULL, 0),
-('dropbox_allow_overwrite',NULL,'radio','Tools','true','DropboxAllowOverwriteTitle','DropboxAllowOverwriteComment',NULL,NULL, 0),
-('dropbox_max_filesize',NULL,'textfield','Tools','100000000','DropboxMaxFilesizeTitle','DropboxMaxFilesizeComment',NULL,NULL, 0),
-('dropbox_allow_just_upload',NULL,'radio','Tools','true','DropboxAllowJustUploadTitle','DropboxAllowJustUploadComment',NULL,NULL, 0),
-('dropbox_allow_student_to_student',NULL,'radio','Tools','true','DropboxAllowStudentToStudentTitle','DropboxAllowStudentToStudentComment',NULL,NULL, 0),
-('dropbox_allow_group',NULL,'radio','Tools','true','DropboxAllowGroupTitle','DropboxAllowGroupComment',NULL,NULL, 0),
-('dropbox_allow_mailing',NULL,'radio','Tools','false','DropboxAllowMailingTitle','DropboxAllowMailingComment',NULL,NULL, 0),
-('administratorTelephone',NULL,'textfield','Platform','(000) 001 02 03','administratorTelephoneTitle','administratorTelephoneComment',NULL,NULL, 1),
-('extended_profile',NULL,'radio','User','false','ExtendedProfileTitle','ExtendedProfileComment',NULL,NULL, 0),
-('student_view_enabled',NULL,'radio','Platform','true','StudentViewEnabledTitle','StudentViewEnabledComment',NULL,NULL, 0),
-('show_navigation_menu',NULL,'radio','Course','false','ShowNavigationMenuTitle','ShowNavigationMenuComment',NULL,NULL, 0),
-('enable_tool_introduction',NULL,'radio','course','false','EnableToolIntroductionTitle','EnableToolIntroductionComment',NULL,NULL, 0),
-('page_after_login', NULL, 'radio','Platform','user_portal.php', 'PageAfterLoginTitle','PageAfterLoginComment', NULL, NULL, 0),
-('time_limit_whosonline', NULL, 'textfield','Platform','30', 'TimeLimitWhosonlineTitle','TimeLimitWhosonlineComment', NULL, NULL, 0),
-('breadcrumbs_course_homepage', NULL, 'radio','Course','course_title', 'BreadCrumbsCourseHomepageTitle','BreadCrumbsCourseHomepageComment', NULL, NULL, 0),
-('example_material_course_creation', NULL, 'radio','Platform','true', 'ExampleMaterialCourseCreationTitle','ExampleMaterialCourseCreationComment', NULL, NULL, 0),
-('account_valid_duration',NULL, 'textfield','Platform','3660', 'AccountValidDurationTitle','AccountValidDurationComment', NULL, NULL, 0),
-('use_session_mode', NULL, 'radio','Session','true', 'UseSessionModeTitle','UseSessionModeComment', NULL, NULL, 0),
-('allow_email_editor', NULL, 'radio', 'Tools', 'false', 'AllowEmailEditorTitle', 'AllowEmailEditorComment', NULL, NULL, 0),
-('registered', NULL, 'textfield', NULL, 'false', NULL, NULL, NULL, NULL, 0),
-('donotlistcampus', NULL, 'textfield', NULL, 'false', NULL, NULL, NULL, NULL,0 ),
-('show_email_addresses', NULL,'radio','Platform','false','ShowEmailAddresses','ShowEmailAddressesComment',NULL,NULL, 1),
-('profile','phone','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'phone', 0),
-('service_visio', 'active', 'radio',NULL,'false', 'VisioEnable','', NULL, NULL, 0),
-('service_visio', 'visio_host', 'textfield',NULL,'', 'VisioHost','', NULL, NULL, 0),
-('service_visio', 'visio_port', 'textfield',NULL,'1935', 'VisioPort','', NULL, NULL, 0),
-('service_visio', 'visio_pass', 'textfield',NULL,'', 'VisioPassword','', NULL, NULL, 0),
-('service_ppt2lp', 'active', 'radio',NULL,'false', 'ppt2lp_actived','', NULL, NULL, 0),
-('service_ppt2lp', 'host', 'textfield', NULL, NULL, 'Host', NULL, NULL, NULL, 0),
-('service_ppt2lp', 'port', 'textfield', NULL, 2002, 'Port', NULL, NULL, NULL, 0),
-('service_ppt2lp', 'user', 'textfield', NULL, NULL, 'UserOnHost', NULL, NULL, NULL, 0),
-('service_ppt2lp', 'ftp_password', 'textfield', NULL, NULL, 'FtpPassword', NULL, NULL, NULL, 0),
-('service_ppt2lp', 'path_to_lzx', 'textfield', NULL, NULL, '', NULL, NULL, NULL, 0),
-('service_ppt2lp', 'size', 'radio', NULL, '720x540', '', NULL, NULL, NULL, 0),
-('wcag_anysurfer_public_pages', NULL, 'radio','Editor','false','PublicPagesComplyToWAITitle','PublicPagesComplyToWAIComment', NULL, NULL, 0),
-('stylesheets', NULL, 'textfield','stylesheets','chamilo','',NULL, NULL, NULL, 1),
-('upload_extensions_list_type', NULL, 'radio', 'Security', 'blacklist', 'UploadExtensionsListType', 'UploadExtensionsListTypeComment', NULL, NULL, 0),
-('upload_extensions_blacklist', NULL, 'textfield', 'Security', '', 'UploadExtensionsBlacklist', 'UploadExtensionsBlacklistComment', NULL, NULL, 0),
-('upload_extensions_whitelist', NULL, 'textfield', 'Security', 'htm;html;jpg;jpeg;gif;png;swf;avi;mpg;mpeg;mov;flv;doc;docx;xls;xlsx;ppt;pptx;odt;odp;ods;pdf', 'UploadExtensionsWhitelist', 'UploadExtensionsWhitelistComment', NULL, NULL, 0),
-('upload_extensions_skip', NULL, 'radio', 'Security', 'true', 'UploadExtensionsSkip', 'UploadExtensionsSkipComment', NULL, NULL, 0),
-('upload_extensions_replace_by', NULL, 'textfield', 'Security', 'dangerous', 'UploadExtensionsReplaceBy', 'UploadExtensionsReplaceByComment', NULL, NULL, 0),
-('show_number_of_courses', NULL, 'radio','Platform','false', 'ShowNumberOfCourses','ShowNumberOfCoursesComment', NULL, NULL, 0),
-('show_empty_course_categories', NULL, 'radio','Platform','true', 'ShowEmptyCourseCategories','ShowEmptyCourseCategoriesComment', NULL, NULL, 0),
-('show_back_link_on_top_of_tree', NULL, 'radio','Platform','false', 'ShowBackLinkOnTopOfCourseTree','ShowBackLinkOnTopOfCourseTreeComment', NULL, NULL, 0),
-('show_different_course_language', NULL, 'radio','Platform','true', 'ShowDifferentCourseLanguage','ShowDifferentCourseLanguageComment', NULL, NULL, 1),
-('split_users_upload_directory', NULL, 'radio','Tuning','true', 'SplitUsersUploadDirectory','SplitUsersUploadDirectoryComment', NULL, NULL, 0),
-('hide_dltt_markup', NULL, 'radio','Languages','true', 'HideDLTTMarkup','HideDLTTMarkupComment', NULL, NULL, 0),
-('display_categories_on_homepage',NULL,'radio','Platform','false','DisplayCategoriesOnHomepageTitle','DisplayCategoriesOnHomepageComment',NULL,NULL, 1),
-('permissions_for_new_directories', NULL, 'textfield', 'Security', '0777', 'PermissionsForNewDirs', 'PermissionsForNewDirsComment', NULL, NULL, 0),
-('permissions_for_new_files', NULL, 'textfield', 'Security', '0666', 'PermissionsForNewFiles', 'PermissionsForNewFilesComment', NULL, NULL, 0),
-('show_tabs', 'campus_homepage', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsCampusHomepage', 1),
-('show_tabs', 'my_courses', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsMyCourses', 1),
-('show_tabs', 'reporting', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsReporting', 1),
-('show_tabs', 'platform_administration', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsPlatformAdministration', 1),
-('show_tabs', 'my_agenda', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsMyAgenda', 1),
-('show_tabs', 'my_profile', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsMyProfile', 1),
-('default_forum_view', NULL, 'radio', 'Course', 'flat', 'DefaultForumViewTitle','DefaultForumViewComment',NULL,NULL, 0),
-('platform_charset',NULL,'textfield','Languages','UTF-8','PlatformCharsetTitle','PlatformCharsetComment','platform',NULL, 0),
-('noreply_email_address', '', 'textfield', 'Platform', '', 'NoReplyEmailAddress', 'NoReplyEmailAddressComment', NULL, NULL, 0),
-('survey_email_sender_noreply', '', 'radio', 'Course', 'coach', 'SurveyEmailSenderNoReply', 'SurveyEmailSenderNoReplyComment', NULL, NULL, 0),
-('openid_authentication',NULL,'radio','Security','false','OpenIdAuthentication','OpenIdAuthenticationComment',NULL,NULL, 0),
-('profile','openid','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'OpenIDURL', 0),
-('gradebook_enable',NULL,'radio','Gradebook','false','GradebookActivation','GradebookActivationComment',NULL,NULL, 0),
-('show_tabs','my_gradebook','checkbox','Platform','true','ShowTabsTitle','ShowTabsComment',NULL,'TabsMyGradebook', 1),
-('gradebook_score_display_coloring','my_display_coloring','checkbox','Gradebook','false','GradebookScoreDisplayColoring','GradebookScoreDisplayColoringComment',NULL,'TabsGradebookEnableColoring', 0),
-('gradebook_score_display_custom','my_display_custom','checkbox','Gradebook','false','GradebookScoreDisplayCustom','GradebookScoreDisplayCustomComment',NULL,'TabsGradebookEnableCustom', 0),
-('gradebook_score_display_colorsplit',NULL,'textfield','Gradebook','50','GradebookScoreDisplayColorSplit','GradebookScoreDisplayColorSplitComment',NULL,NULL, 0),
-('gradebook_score_display_upperlimit','my_display_upperlimit','checkbox','Gradebook','false','GradebookScoreDisplayUpperLimit','GradebookScoreDisplayUpperLimitComment',NULL,'TabsGradebookEnableUpperLimit', 0),
-('gradebook_number_decimals', NULL, 'select', 'Gradebook', '0', 'GradebookNumberDecimals', 'GradebookNumberDecimalsComment', NULL, NULL, 0),
-('user_selected_theme',NULL,'radio','Platform','false','UserThemeSelection','UserThemeSelectionComment',NULL,NULL, 0),
-('profile','theme','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'UserTheme', 0),
-('allow_course_theme',NULL,'radio','Course','true','AllowCourseThemeTitle','AllowCourseThemeComment',NULL,NULL, 0),
-('display_mini_month_calendar',NULL,'radio','Tools', 'true', 'DisplayMiniMonthCalendarTitle', 'DisplayMiniMonthCalendarComment', NULL, NULL, 0),
-('display_upcoming_events',NULL,'radio','Tools','true','DisplayUpcomingEventsTitle','DisplayUpcomingEventsComment',NULL,NULL, 0),
-('number_of_upcoming_events',NULL,'textfield','Tools','1','NumberOfUpcomingEventsTitle','NumberOfUpcomingEventsComment',NULL,NULL, 0),
-('show_closed_courses',NULL,'radio','Platform','false','ShowClosedCoursesTitle','ShowClosedCoursesComment',NULL,NULL, 0),
-('service_visio', 'visio_use_rtmpt', 'radio',null,'false', 'VisioUseRtmptTitle','VisioUseRtmptComment', NULL, NULL, 0),
-('extendedprofile_registration', 'mycomptetences', 'checkbox','User','false', 'ExtendedProfileRegistrationTitle','ExtendedProfileRegistrationComment', NULL, 'MyCompetences', 0),
-('extendedprofile_registration', 'mydiplomas', 'checkbox','User','false', 'ExtendedProfileRegistrationTitle','ExtendedProfileRegistrationComment', NULL, 'MyDiplomas', 0),
-('extendedprofile_registration', 'myteach', 'checkbox','User','false', 'ExtendedProfileRegistrationTitle','ExtendedProfileRegistrationComment', NULL, 'MyTeach', 0),
-('extendedprofile_registration', 'mypersonalopenarea', 'checkbox','User','false', 'ExtendedProfileRegistrationTitle','ExtendedProfileRegistrationComment', NULL, 'MyPersonalOpenArea', 0),
-('extendedprofile_registrationrequired', 'mycomptetences', 'checkbox','User','false', 'ExtendedProfileRegistrationRequiredTitle','ExtendedProfileRegistrationRequiredComment', NULL, 'MyCompetences', 0),
-('extendedprofile_registrationrequired', 'mydiplomas', 'checkbox','User','false', 'ExtendedProfileRegistrationRequiredTitle','ExtendedProfileRegistrationRequiredComment', NULL, 'MyDiplomas', 0),
-('extendedprofile_registrationrequired', 'myteach', 'checkbox','User','false', 'ExtendedProfileRegistrationRequiredTitle','ExtendedProfileRegistrationRequiredComment', NULL, 'MyTeach', 0),
-('extendedprofile_registrationrequired', 'mypersonalopenarea', 'checkbox','User','false', 'ExtendedProfileRegistrationRequiredTitle','ExtendedProfileRegistrationRequiredComment', NULL, 'MyPersonalOpenArea', 0),
-('registration','phone','textfield','User','false','RegistrationRequiredFormsTitle','RegistrationRequiredFormsComment',NULL,'Phone', 0),
-('add_users_by_coach',NULL,'radio','Session','false','AddUsersByCoachTitle','AddUsersByCoachComment',NULL,NULL, 0),
-('extend_rights_for_coach',NULL,'radio','Security','false','ExtendRightsForCoachTitle','ExtendRightsForCoachComment',NULL,NULL, 0),
-('extend_rights_for_coach_on_survey',NULL,'radio','Security','true','ExtendRightsForCoachOnSurveyTitle','ExtendRightsForCoachOnSurveyComment',NULL,NULL, 0),
-('course_create_active_tools','wiki','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Wiki', 0),
-('show_session_coach', NULL, 'radio','Session','false', 'ShowSessionCoachTitle','ShowSessionCoachComment', NULL, NULL, 0),
-('course_create_active_tools','gradebook','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Gradebook', 0),
-('allow_users_to_create_courses',NULL,'radio','Platform','true','AllowUsersToCreateCoursesTitle','AllowUsersToCreateCoursesComment',NULL,NULL, 0),
-('course_create_active_tools','survey','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Survey', 0),
-('course_create_active_tools','glossary','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Glossary', 0),
-('course_create_active_tools','notebook','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Notebook', 0),
-('course_create_active_tools','attendances','checkbox','Tools','false','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Attendances', 0),
-('course_create_active_tools','course_progress','checkbox','Tools','false','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'CourseProgress', 0),
-('advanced_filemanager',NULL,'radio','Editor','true','AdvancedFileManagerTitle','AdvancedFileManagerComment',NULL,NULL, 1),
-('allow_reservation', NULL, 'radio', 'Tools', 'false', 'AllowReservationTitle', 'AllowReservationComment', NULL, NULL, 0),
-('profile','apikeys','checkbox','User','false','ProfileChangesTitle','ProfileChangesComment',NULL,'ApiKeys', 0),
-('allow_message_tool', NULL, 'radio', 'Tools', 'true', 'AllowMessageToolTitle', 'AllowMessageToolComment', NULL, NULL,1),
-('allow_social_tool', NULL, 'radio', 'Tools', 'true', 'AllowSocialToolTitle', 'AllowSocialToolComment', NULL, NULL,1),
-('allow_students_to_browse_courses',NULL,'radio','Platform','true','AllowStudentsToBrowseCoursesTitle','AllowStudentsToBrowseCoursesComment',NULL,NULL, 1),
-('show_session_data', NULL, 'radio', 'Session', 'false', 'ShowSessionDataTitle', 'ShowSessionDataComment', NULL, NULL, 1),
-('allow_use_sub_language', NULL, 'radio', 'Languages', 'false', 'AllowUseSubLanguageTitle', 'AllowUseSubLanguageComment', NULL, NULL,0),
-('show_glossary_in_documents', NULL, 'radio', 'Course', 'none', 'ShowGlossaryInDocumentsTitle', 'ShowGlossaryInDocumentsComment', NULL, NULL,1),
-('allow_terms_conditions', NULL, 'radio', 'Platform', 'false', 'AllowTermsAndConditionsTitle', 'AllowTermsAndConditionsComment', NULL, NULL,0),
-('course_create_active_tools','enable_search','checkbox','Tools','false','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Search',0),
-('search_enabled',NULL,'radio','Search','false','EnableSearchTitle','EnableSearchComment',NULL,NULL,1),
-('search_prefilter_prefix',NULL, NULL,'Search','','SearchPrefilterPrefix','SearchPrefilterPrefixComment',NULL,NULL,0),
-('search_show_unlinked_results',NULL,'radio','Search','true','SearchShowUnlinkedResultsTitle','SearchShowUnlinkedResultsComment',NULL,NULL,1),
-('show_courses_descriptions_in_catalog', NULL, 'radio', 'Course', 'true', 'ShowCoursesDescriptionsInCatalogTitle', 'ShowCoursesDescriptionsInCatalogComment', NULL, NULL, 1),
-('allow_coach_to_edit_course_session',NULL,'radio','Session','true','AllowCoachsToEditInsideTrainingSessions','AllowCoachsToEditInsideTrainingSessionsComment',NULL,NULL, 0),
-('show_glossary_in_extra_tools', NULL, 'radio', 'Course', 'false', 'ShowGlossaryInExtraToolsTitle', 'ShowGlossaryInExtraToolsComment', NULL, NULL,1),
-('send_email_to_admin_when_create_course',NULL,'radio','Platform','false','SendEmailToAdminTitle','SendEmailToAdminComment',NULL,NULL, 1),
-('go_to_course_after_login',NULL,'radio','Course','false','GoToCourseAfterLoginTitle','GoToCourseAfterLoginComment',NULL,NULL, 0),
-('math_mimetex',NULL,'radio','Editor','false','MathMimetexTitle','MathMimetexComment',NULL,NULL, 0),
-('math_asciimathML',NULL,'radio','Editor','false','MathASCIImathMLTitle','MathASCIImathMLComment',NULL,NULL, 0),
-('enabled_asciisvg',NULL,'radio','Editor','false','AsciiSvgTitle','AsciiSvgComment',NULL,NULL, 0),
-('include_asciimathml_script',NULL,'radio','Editor','false','IncludeAsciiMathMlTitle','IncludeAsciiMathMlComment',NULL,NULL, 0),
-('youtube_for_students',NULL,'radio','Editor','true','YoutubeForStudentsTitle','YoutubeForStudentsComment',NULL,NULL, 0),
-('block_copy_paste_for_students',NULL,'radio','Editor','false','BlockCopyPasteForStudentsTitle','BlockCopyPasteForStudentsComment',NULL,NULL, 0),
-('more_buttons_maximized_mode',NULL,'radio','Editor','true','MoreButtonsForMaximizedModeTitle','MoreButtonsForMaximizedModeComment',NULL,NULL, 0),
-('students_download_folders',NULL,'radio','Tools','true','AllowStudentsDownloadFoldersTitle','AllowStudentsDownloadFoldersComment',NULL,NULL, 0),
-('users_copy_files',NULL,'radio','Tools','true','AllowUsersCopyFilesTitle','AllowUsersCopyFilesComment',NULL,NULL, 1),
-('show_tabs', 'social', 'checkbox', 'Platform', 'true', 'ShowTabsTitle','ShowTabsComment',NULL,'TabsSocial', 0),
-('allow_students_to_create_groups_in_social',NULL,'radio','Tools','false','AllowStudentsToCreateGroupsInSocialTitle','AllowStudentsToCreateGroupsInSocialComment',NULL,NULL, 0),
-('allow_send_message_to_all_platform_users',NULL,'radio','Tools','true','AllowSendMessageToAllPlatformUsersTitle','AllowSendMessageToAllPlatformUsersComment',NULL,NULL, 0),
-('message_max_upload_filesize',NULL,'textfield','Tools','20971520','MessageMaxUploadFilesizeTitle','MessageMaxUploadFilesizeComment',NULL,NULL, 0),
-('show_tabs', 'dashboard', 'checkbox', 'Platform', 'true', 'ShowTabsTitle', 'ShowTabsComment', NULL, 'TabsDashboard', 1),
-('use_users_timezone', 'timezones', 'radio', 'Timezones', 'true', 'UseUsersTimezoneTitle','UseUsersTimezoneComment',NULL,'Timezones', 1),
-('timezone_value', 'timezones', 'select', 'Timezones', '', 'TimezoneValueTitle','TimezoneValueComment',NULL,'Timezones', 1),
-('allow_user_course_subscription_by_course_admin', NULL, 'radio', 'Security', 'true', 'AllowUserCourseSubscriptionByCourseAdminTitle', 'AllowUserCourseSubscriptionByCourseAdminComment', NULL, NULL, 1),
-('show_link_bug_notification', NULL, 'radio', 'Platform', 'true', 'ShowLinkBugNotificationTitle', 'ShowLinkBugNotificationComment', NULL, NULL, 0),
-('course_validation', NULL, 'radio', 'Platform', 'false', 'EnableCourseValidation', 'EnableCourseValidationComment', NULL, NULL, 1),
-('course_validation_terms_and_conditions_url', NULL, 'textfield', 'Platform', '', 'CourseValidationTermsAndConditionsLink', 'CourseValidationTermsAndConditionsLinkComment', NULL, NULL, 1),
-('sso_authentication',NULL,'radio','Security','false','EnableSSOTitle','EnableSSOComment',NULL,NULL,1),
-('sso_authentication_domain',NULL,'textfield','Security','','SSOServerDomainTitle','SSOServerDomainComment',NULL,NULL,1),
-('sso_authentication_auth_uri',NULL,'textfield','Security','/?q=user','SSOServerAuthURITitle','SSOServerAuthURIComment',NULL,NULL,1),
-('sso_authentication_unauth_uri',NULL,'textfield','Security','/?q=logout','SSOServerUnAuthURITitle','SSOServerUnAuthURIComment',NULL,NULL,1),
-('sso_authentication_protocol',NULL,'radio','Security','http://','SSOServerProtocolTitle','SSOServerProtocolComment',NULL,NULL,1),
-('enabled_wiris',NULL,'radio','Editor','false','EnabledWirisTitle','EnabledWirisComment',NULL,NULL, 0),
-('allow_spellcheck',NULL,'radio','Editor','false','AllowSpellCheckTitle','AllowSpellCheckComment',NULL,NULL, 0),
-('force_wiki_paste_as_plain_text',NULL,'radio','Editor','false','ForceWikiPasteAsPlainTextTitle','ForceWikiPasteAsPlainTextComment',NULL,NULL, 0),
-('enabled_googlemaps',NULL,'radio','Editor','false','EnabledGooglemapsTitle','EnabledGooglemapsComment',NULL,NULL, 0),
-('enabled_imgmap',NULL,'radio','Editor','true','EnabledImageMapsTitle','EnabledImageMapsComment',NULL,NULL, 0),
-('enabled_support_svg', NULL,'radio', 'Tools', 'true', 'EnabledSVGTitle','EnabledSVGComment',NULL,NULL, 0),
-('pdf_export_watermark_enable', NULL,'radio', 'Platform', 'false','PDFExportWatermarkEnableTitle', 'PDFExportWatermarkEnableComment', 'platform',NULL, 1),
-('pdf_export_watermark_by_course', NULL,'radio', 'Platform', 'false','PDFExportWatermarkByCourseTitle', 'PDFExportWatermarkByCourseComment','platform',NULL, 1),
-('pdf_export_watermark_text', NULL,'textfield', 'Platform', '', 'PDFExportWatermarkTextTitle', 'PDFExportWatermarkTextComment', 'platform',NULL, 1),
-('enabled_insertHtml', NULL,'radio', 'Editor', 'true','EnabledInsertHtmlTitle', 'EnabledInsertHtmlComment',NULL,NULL, 0),
-('students_export2pdf', NULL,'radio', 'Tools', 'true', 'EnabledStudentExport2PDFTitle', 'EnabledStudentExport2PDFComment',NULL,NULL, 0),
-('exercise_min_score', NULL,'textfield', 'Course', '', 'ExerciseMinScoreTitle', 'ExerciseMinScoreComment','platform',NULL, 1),
-('exercise_max_score', NULL,'textfield', 'Course', '', 'ExerciseMaxScoreTitle', 'ExerciseMaxScoreComment','platform',NULL, 1),
-('show_users_folders', NULL,'radio', 'Tools', 'true', 'ShowUsersFoldersTitle','ShowUsersFoldersComment',NULL,NULL, 0),
-('show_default_folders', NULL,'radio', 'Tools', 'true', 'ShowDefaultFoldersTitle','ShowDefaultFoldersComment',NULL,NULL, 0),
-('show_chat_folder', NULL,'radio', 'Tools', 'true', 'ShowChatFolderTitle','ShowChatFolderComment',NULL,NULL, 0),
-('enabled_text2audio', NULL,'radio', 'Tools', 'false', 'Text2AudioTitle','Text2AudioComment',NULL,NULL, 0),
-('course_hide_tools','course_description','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'CourseDescription', 1),
-('course_hide_tools','calendar_event','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Agenda', 1),
-('course_hide_tools','document','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Documents', 1),
-('course_hide_tools','learnpath','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'LearningPath', 1),
-('course_hide_tools','link','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Links', 1),
-('course_hide_tools','announcement','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Announcements', 1),
-('course_hide_tools','forum','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Forums', 1),
-('course_hide_tools','dropbox','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Dropbox', 1),
-('course_hide_tools','quiz','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Quiz', 1),
-('course_hide_tools','user','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Users', 1),
-('course_hide_tools','group','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Groups', 1),
-('course_hide_tools','chat','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Chat', 1),
-('course_hide_tools','student_publication','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'StudentPublications', 1),
-('course_hide_tools','wiki','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Wiki', 1),
-('course_hide_tools','gradebook','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Gradebook', 1),
-('course_hide_tools','survey','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Survey', 1),
-('course_hide_tools','glossary','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Glossary', 1),
-('course_hide_tools','notebook','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Notebook', 1),
-('course_hide_tools','attendance','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Attendances', 1),
-('course_hide_tools','course_progress','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'CourseProgress', 1),
-('course_hide_tools','blog_management','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Blog',1),
-('course_hide_tools','tracking','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Stats',1),
-('course_hide_tools','course_maintenance','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'Maintenance',1),
-('course_hide_tools','course_setting','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'CourseSettings',1),
-('enabled_support_pixlr',NULL,'radio','Tools','false','EnabledPixlrTitle','EnabledPixlrComment',NULL,NULL, 0),
-('show_groups_to_users',NULL,'radio','Session','false','ShowGroupsToUsersTitle','ShowGroupsToUsersComment',NULL,NULL, 0),
-('accessibility_font_resize',NULL,'radio','Platform','false','EnableAccessibilityFontResizeTitle','EnableAccessibilityFontResizeComment',NULL,NULL, 1),
-('hide_courses_in_sessions',NULL,'radio', 'Session','false','HideCoursesInSessionsTitle', 'HideCoursesInSessionsComment','platform',NULL, 1),
-('enable_quiz_scenario', NULL,'radio','Course','false','EnableQuizScenarioTitle','EnableQuizScenarioComment',NULL,NULL, 1),
-('enable_nanogong',NULL,'radio','Tools','false','EnableNanogongTitle','EnableNanogongComment',NULL,NULL, 0),
-('filter_terms',NULL,'textarea','Security','','FilterTermsTitle','FilterTermsComment',NULL,NULL, 0),
-('header_extra_content', NULL, 'textarea', 'Tracking', '', 'HeaderExtraContentTitle', 'HeaderExtraContentComment', NULL, NULL, 1),
-('footer_extra_content', NULL, 'textarea', 'Tracking', '', 'FooterExtraContentTitle', 'FooterExtraContentComment', NULL, NULL, 1),
-('show_documents_preview', NULL, 'radio', 'Tools', 'false', 'ShowDocumentPreviewTitle', 'ShowDocumentPreviewComment', NULL, NULL, 1),
-('htmlpurifier_wiki', NULL, 'radio', 'Editor', 'false', 'HtmlPurifierWikiTitle', 'HtmlPurifierWikiComment', NULL, NULL, 0),
-('cas_activate', NULL, 'radio', 'CAS', 'false', 'CasMainActivateTitle', 'CasMainActivateComment', NULL, NULL, 0),
-('cas_server', NULL, 'textfield', 'CAS', '', 'CasMainServerTitle', 'CasMainServerComment', NULL, NULL, 0),
-('cas_server_uri', NULL, 'textfield', 'CAS', '', 'CasMainServerURITitle', 'CasMainServerURIComment', NULL, NULL, 0),
-('cas_port', NULL, 'textfield', 'CAS', '', 'CasMainPortTitle', 'CasMainPortComment', NULL, NULL, 0),
-('cas_protocol', NULL, 'radio', 'CAS', '', 'CasMainProtocolTitle', 'CasMainProtocolComment', NULL, NULL, 0),
-('cas_add_user_activate', NULL, 'radio', 'CAS', 'false', 'CasUserAddActivateTitle', 'CasUserAddActivateComment', NULL, NULL, 0),
-('update_user_info_cas_with_ldap', NULL, 'radio', 'CAS', 'true', 'UpdateUserInfoCasWithLdapTitle', 'UpdateUserInfoCasWithLdapComment', NULL, NULL, 0),
-('student_page_after_login', NULL, 'textfield', 'Platform', '', 'StudentPageAfterLoginTitle', 'StudentPageAfterLoginComment', NULL, NULL, 0),
-('teacher_page_after_login', NULL, 'textfield', 'Platform', '', 'TeacherPageAfterLoginTitle', 'TeacherPageAfterLoginComment', NULL, NULL, 0),
-('drh_page_after_login', NULL, 'textfield', 'Platform', '', 'DRHPageAfterLoginTitle', 'DRHPageAfterLoginComment', NULL, NULL, 0),
-('sessionadmin_page_after_login', NULL, 'textfield', 'Session', '', 'SessionAdminPageAfterLoginTitle', 'SessionAdminPageAfterLoginComment', NULL, NULL, 0),
-('student_autosubscribe', NULL, 'textfield', 'Platform', '', 'StudentAutosubscribeTitle', 'StudentAutosubscribeComment', NULL, NULL, 0),
-('teacher_autosubscribe', NULL, 'textfield', 'Platform', '', 'TeacherAutosubscribeTitle', 'TeacherAutosubscribeComment', NULL, NULL, 0),
-('drh_autosubscribe', NULL, 'textfield', 'Platform', '', 'DRHAutosubscribeTitle', 'DRHAutosubscribeComment', NULL, NULL, 0),
-('sessionadmin_autosubscribe', NULL, 'textfield', 'Session', '', 'SessionadminAutosubscribeTitle', 'SessionadminAutosubscribeComment', NULL, NULL, 0),
-('scorm_cumulative_session_time', NULL, 'radio', 'Course', 'true', 'ScormCumulativeSessionTimeTitle', 'ScormCumulativeSessionTimeComment', NULL, NULL, 0),
-('allow_hr_skills_management', NULL, 'radio', 'Gradebook', 'true', 'AllowHRSkillsManagementTitle', 'AllowHRSkillsManagementComment', NULL, NULL, 1),
-('enable_help_link', NULL, 'radio', 'Platform', 'true', 'EnableHelpLinkTitle', 'EnableHelpLinkComment', NULL, NULL, 0),
-('teachers_can_change_score_settings', NULL, 'radio', 'Gradebook', 'true', 'TeachersCanChangeScoreSettingsTitle', 'TeachersCanChangeScoreSettingsComment', NULL, NULL, 1),
-('allow_users_to_change_email_with_no_password', NULL, 'radio', 'User', 'false', 'AllowUsersToChangeEmailWithNoPasswordTitle', 'AllowUsersToChangeEmailWithNoPasswordComment', NULL, NULL, 0),
-('show_admin_toolbar', NULL, 'radio', 'Platform', 'show_to_admin', 'ShowAdminToolbarTitle', 'ShowAdminToolbarComment', NULL, NULL, 1),
-('allow_global_chat', NULL, 'radio', 'Platform', 'true', 'AllowGlobalChatTitle', 'AllowGlobalChatComment', NULL, NULL, 1),
-('languagePriority1', NULL, 'radio', 'Languages', 'course_lang', 'LanguagePriority1Title', 'LanguagePriority1Comment', NULL, NULL, 0),
-('languagePriority2', NULL, 'radio', 'Languages','user_profil_lang', 'LanguagePriority2Title', 'LanguagePriority2Comment', NULL, NULL, 0),
-('languagePriority3', NULL, 'radio', 'Languages','user_selected_lang', 'LanguagePriority3Title', 'LanguagePriority3Comment', NULL, NULL, 0),
-('languagePriority4', NULL, 'radio', 'Languages', 'platform_lang','LanguagePriority4Title', 'LanguagePriority4Comment', NULL, NULL, 0),
-('login_is_email', NULL, 'radio', 'Platform', 'false', 'LoginIsEmailTitle', 'LoginIsEmailComment', NULL, NULL, 0),
-('courses_default_creation_visibility', NULL, 'radio', 'Course', '2', 'CoursesDefaultCreationVisibilityTitle', 'CoursesDefaultCreationVisibilityComment', NULL, NULL, 1),
-('allow_browser_sniffer', NULL, 'radio', 'Tuning', 'false', 'AllowBrowserSnifferTitle', 'AllowBrowserSnifferComment', NULL, NULL, 0),
-('enable_wami_record',NULL,'radio','Tools','false','EnableWamiRecordTitle','EnableWamiRecordComment',NULL,NULL, 0),
-('gradebook_enable_grade_model', NULL, 'radio', 'Gradebook', 'false', 'GradebookEnableGradeModelTitle', 'GradebookEnableGradeModelComment', NULL, NULL, 1),
-('teachers_can_change_grade_model_settings', NULL, 'radio', 'Gradebook', 'true', 'TeachersCanChangeGradeModelSettingsTitle', 'TeachersCanChangeGradeModelSettingsComment', NULL, NULL, 1),
-('gradebook_default_weight', NULL, 'textfield', 'Gradebook', '100', 'GradebookDefaultWeightTitle', 'GradebookDefaultWeightComment', NULL, NULL, 0),
-('ldap_description', NULL, 'radio', 'LDAP', NULL, 'LdapDescriptionTitle', 'LdapDescriptionComment', NULL, NULL, 0),
-('shibboleth_description', NULL, 'radio', 'Shibboleth', 'false', 'ShibbolethMainActivateTitle', 'ShibbolethMainActivateComment', NULL, NULL, 0),
-('facebook_description', NULL, 'radio', 'Facebook', 'false', 'FacebookMainActivateTitle', 'FacebookMainActivateComment', NULL, NULL, 0),
-('gradebook_locking_enabled', NULL, 'radio', 'Gradebook', 'false', 'GradebookEnableLockingTitle', 'GradebookEnableLockingComment', NULL, NULL, 0),
-('gradebook_default_grade_model_id', NULL, 'select', 'Gradebook', '', 'GradebookDefaultGradeModelTitle', 'GradebookDefaultGradeModelComment', NULL, NULL, 1),
-('allow_session_admins_to_manage_all_sessions', NULL, 'radio', 'Session', 'false', 'AllowSessionAdminsToSeeAllSessionsTitle', 'AllowSessionAdminsToSeeAllSessionsComment', NULL, NULL, 1),
-('allow_skills_tool', NULL, 'radio', 'Platform', 'false', 'AllowSkillsToolTitle', 'AllowSkillsToolComment', NULL, NULL, 1),
-('allow_public_certificates', NULL, 'radio', 'Course', 'false', 'AllowPublicCertificatesTitle', 'AllowPublicCertificatesComment', NULL, NULL, 1),
-('platform_unsubscribe_allowed', NULL, 'radio', 'Platform', 'false', 'PlatformUnsubscribeTitle', 'PlatformUnsubscribeComment', NULL, NULL, 1),
-('activate_email_template', NULL, 'radio', 'Platform', 'false', 'ActivateEmailTemplateTitle', 'ActivateEmailTemplateComment', NULL, NULL, 0),
-('enable_iframe_inclusion', NULL, 'radio', 'Editor', 'false', 'EnableIframeInclusionTitle', 'EnableIframeInclusionComment', NULL, NULL, 1),
-('show_hot_courses', NULL, 'radio', 'Platform', 'true', 'ShowHotCoursesTitle', 'ShowHotCoursesComment', NULL, NULL, 1),
-('enable_webcam_clip',NULL,'radio','Tools','false','EnableWebCamClipTitle','EnableWebCamClipComment',NULL,NULL, 0),
-('use_custom_pages', NULL, 'radio','Platform','false','UseCustomPagesTitle','UseCustomPagesComment', NULL, NULL, 1),
-('tool_visible_by_default_at_creation','documents','checkbox','Tools','true','ToolVisibleByDefaultAtCreationTitle','ToolVisibleByDefaultAtCreationComment',NULL,'Documents', 1),
-('tool_visible_by_default_at_creation','learning_path','checkbox','Tools','true','ToolVisibleByDefaultAtCreationTitle','ToolVisibleByDefaultAtCreationComment',NULL,'LearningPath', 1),
-('tool_visible_by_default_at_creation','links','checkbox','Tools','true','ToolVisibleByDefaultAtCreationTitle','ToolVisibleByDefaultAtCreationComment',NULL,'Links', 1),
-('tool_visible_by_default_at_creation','announcements','checkbox','Tools','true','ToolVisibleByDefaultAtCreationTitle','ToolVisibleByDefaultAtCreationComment',NULL,'Announcements', 1),
-('tool_visible_by_default_at_creation','forums','checkbox','Tools','true','ToolVisibleByDefaultAtCreationTitle','ToolVisibleByDefaultAtCreationComment',NULL,'Forums', 1),
-('tool_visible_by_default_at_creation','quiz','checkbox','Tools','true','ToolVisibleByDefaultAtCreationTitle','ToolVisibleByDefaultAtCreationComment',NULL,'Quiz', 1),
-('tool_visible_by_default_at_creation','gradebook','checkbox','Tools','true','ToolVisibleByDefaultAtCreationTitle','ToolVisibleByDefaultAtCreationComment',NULL,'Gradebook', 1),
-('chamilo_database_version', NULL, 'textfield',NULL, '1.9.0.18715','DatabaseVersion','', NULL, NULL, 0);
-UNLOCK TABLES;
-/*!40000 ALTER TABLE settings_current ENABLE KEYS */;
-
---
--- Table structure for table settings_options
---
-
-DROP TABLE IF EXISTS settings_options;
-CREATE TABLE IF NOT EXISTS settings_options (
- id int unsigned NOT NULL auto_increment,
- variable varchar(255) default NULL,
- value varchar(255) default NULL,
- display_text varchar(255) NOT NULL default '',
- PRIMARY KEY (id),
- UNIQUE KEY id (id)
-);
-
-ALTER TABLE settings_options ADD UNIQUE unique_setting_option (variable(165), value(165));
-
---
--- Dumping data for table settings_options
---
-
-/*!40000 ALTER TABLE settings_options DISABLE KEYS */;
-LOCK TABLES settings_options WRITE;
-INSERT INTO settings_options (variable, value, display_text)
-VALUES
-('show_administrator_data','true','Yes'),
-('show_administrator_data','false','No'),
-('show_tutor_data','true','Yes'),
-('show_tutor_data','false','No'),
-('show_teacher_data','true','Yes'),
-('show_teacher_data','false','No'),
-('homepage_view','activity','HomepageViewActivity'),
-('homepage_view','2column','HomepageView2column'),
-('homepage_view','3column','HomepageView3column'),
-('homepage_view','vertical_activity','HomepageViewVerticalActivity'),
-('homepage_view','activity_big','HomepageViewActivityBig'),
-('show_toolshortcuts','true','Yes'),
-('show_toolshortcuts','false','No'),
-('allow_group_categories','true','Yes'),
-('allow_group_categories','false','No'),
-('server_type','production','ProductionServer'),
-('server_type','test','TestServer'),
-('allow_name_change','true','Yes'),
-('allow_name_change','false','No'),
-('allow_officialcode_change','true','Yes'),
-('allow_officialcode_change','false','No'),
-('allow_registration','true','Yes'),
-('allow_registration','false','No'),
-('allow_registration','approval','AfterApproval'),
-('allow_registration_as_teacher','true','Yes'),
-('allow_registration_as_teacher','false','No'),
-('allow_lostpassword','true','Yes'),
-('allow_lostpassword','false','No'),
-('allow_user_headings','true','Yes'),
-('allow_user_headings','false','No'),
-('allow_personal_agenda','true','Yes'),
-('allow_personal_agenda','false','No'),
-('display_coursecode_in_courselist','true','Yes'),
-('display_coursecode_in_courselist','false','No'),
-('display_teacher_in_courselist','true','Yes'),
-('display_teacher_in_courselist','false','No'),
-('permanently_remove_deleted_files','true','YesWillDeletePermanently'),
-('permanently_remove_deleted_files','false','NoWillDeletePermanently'),
-('dropbox_allow_overwrite','true','Yes'),
-('dropbox_allow_overwrite','false','No'),
-('dropbox_allow_just_upload','true','Yes'),
-('dropbox_allow_just_upload','false','No'),
-('dropbox_allow_student_to_student','true','Yes'),
-('dropbox_allow_student_to_student','false','No'),
-('dropbox_allow_group','true','Yes'),
-('dropbox_allow_group','false','No'),
-('dropbox_allow_mailing','true','Yes'),
-('dropbox_allow_mailing','false','No'),
-('extended_profile','true','Yes'),
-('extended_profile','false','No'),
-('student_view_enabled','true','Yes'),
-('student_view_enabled','false','No'),
-('show_navigation_menu','false','No'),
-('show_navigation_menu','icons','IconsOnly'),
-('show_navigation_menu','text','TextOnly'),
-('show_navigation_menu','iconstext','IconsText'),
-('enable_tool_introduction','true','Yes'),
-('enable_tool_introduction','false','No'),
-('page_after_login', 'index.php', 'CampusHomepage'),
-('page_after_login', 'user_portal.php', 'MyCourses'),
-('page_after_login', 'main/auth/courses.php', 'CourseCatalog'),
-('breadcrumbs_course_homepage', 'get_lang', 'CourseHomepage'),
-('breadcrumbs_course_homepage', 'course_code', 'CourseCode'),
-('breadcrumbs_course_homepage', 'course_title', 'CourseTitle'),
-('example_material_course_creation', 'true', 'Yes'),
-('example_material_course_creation', 'false', 'No'),
-('use_session_mode', 'true', 'Yes'),
-('use_session_mode', 'false', 'No'),
-('allow_email_editor', 'true' ,'Yes'),
-('allow_email_editor', 'false', 'No'),
-('show_email_addresses','true','Yes'),
-('show_email_addresses','false','No'),
-('wcag_anysurfer_public_pages', 'true', 'Yes'),
-('wcag_anysurfer_public_pages', 'false', 'No'),
-('upload_extensions_list_type', 'blacklist', 'Blacklist'),
-('upload_extensions_list_type', 'whitelist', 'Whitelist'),
-('upload_extensions_skip', 'true', 'Remove'),
-('upload_extensions_skip', 'false', 'Rename'),
-('show_number_of_courses', 'true', 'Yes'),
-('show_number_of_courses', 'false', 'No'),
-('show_empty_course_categories', 'true', 'Yes'),
-('show_empty_course_categories', 'false', 'No'),
-('show_back_link_on_top_of_tree', 'true', 'Yes'),
-('show_back_link_on_top_of_tree', 'false', 'No'),
-('show_different_course_language', 'true', 'Yes'),
-('show_different_course_language', 'false', 'No'),
-('split_users_upload_directory', 'true', 'Yes'),
-('split_users_upload_directory', 'false', 'No'),
-('hide_dltt_markup', 'false', 'No'),
-('hide_dltt_markup', 'true', 'Yes'),
-('display_categories_on_homepage','true','Yes'),
-('display_categories_on_homepage','false','No'),
-('default_forum_view', 'flat', 'Flat'),
-('default_forum_view', 'threaded', 'Threaded'),
-('default_forum_view', 'nested', 'Nested'),
-('survey_email_sender_noreply', 'coach', 'CourseCoachEmailSender'),
-('survey_email_sender_noreply', 'noreply', 'NoReplyEmailSender'),
-('openid_authentication','true','Yes'),
-('openid_authentication','false','No'),
-('gradebook_enable','true','Yes'),
-('gradebook_enable','false','No'),
-('user_selected_theme','true','Yes'),
-('user_selected_theme','false','No'),
-('allow_course_theme','true','Yes'),
-('allow_course_theme','false','No'),
-('display_mini_month_calendar', 'true', 'Yes'),
-('display_mini_month_calendar', 'false', 'No'),
-('display_upcoming_events', 'true', 'Yes'),
-('display_upcoming_events', 'false', 'No'),
-('show_closed_courses', 'true', 'Yes'),
-('show_closed_courses', 'false', 'No'),
-('ldap_version', '2', 'LDAPVersion2'),
-('ldap_version', '3', 'LDAPVersion3'),
-('visio_use_rtmpt','true','Yes'),
-('visio_use_rtmpt','false','No'),
-('add_users_by_coach', 'true', 'Yes'),
-('add_users_by_coach', 'false', 'No'),
-('extend_rights_for_coach', 'true', 'Yes'),
-('extend_rights_for_coach', 'false', 'No'),
-('extend_rights_for_coach_on_survey', 'true', 'Yes'),
-('extend_rights_for_coach_on_survey', 'false', 'No'),
-('show_session_coach', 'true', 'Yes'),
-('show_session_coach', 'false', 'No'),
-('allow_users_to_create_courses','true','Yes'),
-('allow_users_to_create_courses','false','No'),
-('breadcrumbs_course_homepage', 'session_name_and_course_title', 'SessionNameAndCourseTitle'),
-('advanced_filemanager','true','Yes'),
-('advanced_filemanager','false','No'),
-('allow_reservation', 'true', 'Yes'),
-('allow_reservation', 'false', 'No'),
-('allow_message_tool', 'true', 'Yes'),
-('allow_message_tool', 'false', 'No'),
-('allow_social_tool', 'true', 'Yes'),
-('allow_social_tool', 'false', 'No'),
-('allow_students_to_browse_courses','true','Yes'),
-('allow_students_to_browse_courses','false','No'),
-('show_email_of_teacher_or_tutor ', 'true', 'Yes'),
-('show_email_of_teacher_or_tutor ', 'false', 'No'),
-('show_session_data ', 'true', 'Yes'),
-('show_session_data ', 'false', 'No'),
-('allow_use_sub_language', 'true', 'Yes'),
-('allow_use_sub_language', 'false', 'No'),
-('show_glossary_in_documents', 'none', 'ShowGlossaryInDocumentsIsNone'),
-('show_glossary_in_documents', 'ismanual', 'ShowGlossaryInDocumentsIsManual'),
-('show_glossary_in_documents', 'isautomatic', 'ShowGlossaryInDocumentsIsAutomatic'),
-('allow_terms_conditions', 'true', 'Yes'),
-('allow_terms_conditions', 'false', 'No'),
-('search_enabled', 'true', 'Yes'),
-('search_enabled', 'false', 'No'),
-('search_show_unlinked_results', 'true', 'SearchShowUnlinkedResults'),
-('search_show_unlinked_results', 'false', 'SearchHideUnlinkedResults'),
-('show_courses_descriptions_in_catalog', 'true', 'Yes'),
-('show_courses_descriptions_in_catalog', 'false', 'No'),
-('allow_coach_to_edit_course_session','true','Yes'),
-('allow_coach_to_edit_course_session','false','No'),
-('show_glossary_in_extra_tools', 'true', 'Yes'),
-('show_glossary_in_extra_tools', 'false', 'No'),
-('send_email_to_admin_when_create_course','true','Yes'),
-('send_email_to_admin_when_create_course','false','No'),
-('go_to_course_after_login','true','Yes'),
-('go_to_course_after_login','false','No'),
-('math_mimetex','true','Yes'),
-('math_mimetex','false','No'),
-('math_asciimathML','true','Yes'),
-('math_asciimathML','false','No'),
-('enabled_asciisvg','true','Yes'),
-('enabled_asciisvg','false','No'),
-('include_asciimathml_script','true','Yes'),
-('include_asciimathml_script','false','No'),
-('youtube_for_students','true','Yes'),
-('youtube_for_students','false','No'),
-('block_copy_paste_for_students','true','Yes'),
-('block_copy_paste_for_students','false','No'),
-('more_buttons_maximized_mode','true','Yes'),
-('more_buttons_maximized_mode','false','No'),
-('students_download_folders','true','Yes'),
-('students_download_folders','false','No'),
-('users_copy_files','true','Yes'),
-('users_copy_files','false','No'),
-('allow_students_to_create_groups_in_social','true','Yes'),
-('allow_students_to_create_groups_in_social','false','No'),
-('allow_send_message_to_all_platform_users','true','Yes'),
-('allow_send_message_to_all_platform_users','false','No'),
-('use_users_timezone', 'true', 'Yes'),
-('use_users_timezone', 'false', 'No'),
-('allow_user_course_subscription_by_course_admin', 'true', 'Yes'),
-('allow_user_course_subscription_by_course_admin', 'false', 'No'),
-('show_link_bug_notification', 'true', 'Yes'),
-('show_link_bug_notification', 'false', 'No'),
-('course_validation', 'true', 'Yes'),
-('course_validation', 'false', 'No'),
-('sso_authentication', 'true', 'Yes'),
-('sso_authentication', 'false', 'No'),
-('sso_authentication_protocol', 'http://', 'http://'),
-('sso_authentication_protocol', 'https://', 'https://'),
-('enabled_wiris','true','Yes'),
-('enabled_wiris','false','No'),
-('allow_spellcheck','true','Yes'),
-('allow_spellcheck','false','No'),
-('force_wiki_paste_as_plain_text','true','Yes'),
-('force_wiki_paste_as_plain_text','false','No'),
-('enabled_googlemaps','true','Yes'),
-('enabled_googlemaps','false','No'),
-('enabled_imgmap','true','Yes'),
-('enabled_imgmap','false','No'),
-('enabled_support_svg','true','Yes'),
-('enabled_support_svg','false','No'),
-('pdf_export_watermark_enable','true','Yes'),
-('pdf_export_watermark_enable','false','No'),
-('pdf_export_watermark_by_course','true','Yes'),
-('pdf_export_watermark_by_course','false','No'),
-('enabled_insertHtml','true','Yes'),
-('enabled_insertHtml','false','No'),
-('students_export2pdf','true','Yes'),
-('students_export2pdf','false','No'),
-('show_users_folders','true','Yes'),
-('show_users_folders','false','No'),
-('show_default_folders','true','Yes'),
-('show_default_folders','false','No'),
-('show_chat_folder','true','Yes'),
-('show_chat_folder','false','No'),
-('enabled_text2audio','true','Yes'),
-('enabled_text2audio','false','No'),
-('enabled_support_pixlr','true','Yes'),
-('enabled_support_pixlr','false','No'),
-('show_groups_to_users','true','Yes'),
-('show_groups_to_users','false','No'),
-('accessibility_font_resize', 'true', 'Yes'),
-('accessibility_font_resize', 'false', 'No'),
-('hide_courses_in_sessions','true','Yes'),
-('hide_courses_in_sessions','false','No'),
-('enable_quiz_scenario', 'true', 'Yes'),
-('enable_quiz_scenario', 'false', 'No'),
-('enable_nanogong','true','Yes'),
-('enable_nanogong','false','No'),
-('show_documents_preview', 'true', 'Yes'),
-('show_documents_preview', 'false', 'No'),
-('htmlpurifier_wiki', 'true', 'Yes'),
-('htmlpurifier_wiki', 'false', 'No'),
-('cas_activate', 'true', 'Yes'),
-('cas_activate', 'false', 'No'),
-('cas_protocol', 'CAS1', 'CAS1Text'),
-('cas_protocol', 'CAS2', 'CAS2Text'),
-('cas_protocol', 'SAML', 'SAMLText'),
-('cas_add_user_activate', 'false', 'No'),
-('cas_add_user_activate', 'platform', 'casAddUserActivatePlatform'),
-('cas_add_user_activate', 'extldap', 'casAddUserActivateLDAP'),
-('update_user_info_cas_with_ldap', 'true', 'Yes'),
-('update_user_info_cas_with_ldap', 'false', 'No'),
-('scorm_cumulative_session_time','true','Yes'),
-('scorm_cumulative_session_time','false','No'),
-('allow_hr_skills_management', 'true', 'Yes'),
-('allow_hr_skills_management', 'false', 'No'),
-('enable_help_link', 'true', 'Yes'),
-('enable_help_link', 'false', 'No'),
-('allow_users_to_change_email_with_no_password', 'true', 'Yes'),
-('allow_users_to_change_email_with_no_password', 'false', 'No'),
-('show_admin_toolbar', 'do_not_show', 'DoNotShow'),
-('show_admin_toolbar', 'show_to_admin', 'ShowToAdminsOnly'),
-('show_admin_toolbar', 'show_to_admin_and_teachers', 'ShowToAdminsAndTeachers'),
-('show_admin_toolbar', 'show_to_all', 'ShowToAllUsers'),
-('use_custom_pages','true','Yes'),
-('use_custom_pages','false','No'),
-('languagePriority1','platform_lang','PlatformLanguage'),
-('languagePriority1','user_profil_lang','UserLanguage'),
-('languagePriority1','user_selected_lang','UserSelectedLanguage'),
-('languagePriority1','course_lang','CourseLanguage'),
-('languagePriority2','platform_lang','PlatformLanguage'),
-('languagePriority2','user_profil_lang','UserLanguage'),
-('languagePriority2','user_selected_lang','UserSelectedLanguage'),
-('languagePriority2','course_lang','CourseLanguage'),
-('languagePriority3','platform_lang','PlatformLanguage'),
-('languagePriority3','user_profil_lang','UserLanguage'),
-('languagePriority3','user_selected_lang','UserSelectedLanguage'),
-('languagePriority3','course_lang','CourseLanguage'),
-('languagePriority4','platform_lang','PlatformLanguage'),
-('languagePriority4','user_profil_lang','UserLanguage'),
-('languagePriority4','user_selected_lang','UserSelectedLanguage'),
-('languagePriority4','course_lang','CourseLanguage'),
-('allow_global_chat', 'true', 'Yes'),
-('allow_global_chat', 'false', 'No'),
-('login_is_email','true','Yes'),
-('login_is_email','false','No'),
-('courses_default_creation_visibility', '3', 'OpenToTheWorld'),
-('courses_default_creation_visibility', '2', 'OpenToThePlatform'),
-('courses_default_creation_visibility', '1', 'Private'),
-('courses_default_creation_visibility', '0', 'CourseVisibilityClosed'),
-('allow_browser_sniffer', 'true', 'Yes'),
-('allow_browser_sniffer', 'false', 'No'),
-('enable_wami_record', 'true', 'Yes'),
-('enable_wami_record', 'false', 'No'),
-('teachers_can_change_score_settings', 'true', 'Yes'),
-('teachers_can_change_score_settings', 'false', 'No'),
-('teachers_can_change_grade_model_settings', 'true', 'Yes'),
-('teachers_can_change_grade_model_settings', 'false', 'No'),
-('gradebook_locking_enabled', 'true', 'Yes'),
-('gradebook_locking_enabled', 'false', 'No'),
-('gradebook_enable_grade_model', 'true', 'Yes'),
-('gradebook_enable_grade_model', 'false', 'No'),
-('allow_session_admins_to_manage_all_sessions', 'true', 'Yes'),
-('allow_session_admins_to_manage_all_sessions', 'false', 'No'),
-('allow_skills_tool', 'true', 'Yes'),
-('allow_skills_tool', 'false', 'No'),
-('allow_public_certificates', 'true', 'Yes'),
-('allow_public_certificates', 'false', 'No'),
-('platform_unsubscribe_allowed', 'true', 'Yes'),
-('platform_unsubscribe_allowed', 'false', 'No'),
-('activate_email_template', 'true', 'Yes'),
-('activate_email_template', 'false', 'No'),
- ('enable_iframe_inclusion', 'true', 'Yes'),
-('enable_iframe_inclusion', 'false', 'No'),
-('show_hot_courses', 'true', 'Yes'),
-('show_hot_courses', 'false', 'No'),
-('enable_webcam_clip', 'true', 'Yes'),
-('enable_webcam_clip', 'false', 'No');
-
-UNLOCK TABLES;
-
-/*!40000 ALTER TABLE settings_options ENABLE KEYS */;
-
-
---
--- Table structure for table sys_announcement
---
-
-DROP TABLE IF EXISTS sys_announcement;
-CREATE TABLE IF NOT EXISTS sys_announcement (
- id int unsigned NOT NULL auto_increment,
- date_start datetime NOT NULL default '0000-00-00 00:00:00',
- date_end datetime NOT NULL default '0000-00-00 00:00:00',
- visible_teacher tinyint NOT NULL default 0,
- visible_student tinyint NOT NULL default 0,
- visible_guest tinyint NOT NULL default 0,
- title varchar(250) NOT NULL default '',
- content text NOT NULL,
- lang varchar(70) NULL default NULL,
- access_url_id INT NOT NULL default 1,
- PRIMARY KEY (id)
-);
-
---
--- Table structure for shared_survey
---
-
-DROP TABLE IF EXISTS shared_survey;
-CREATE TABLE IF NOT EXISTS shared_survey (
- survey_id int unsigned NOT NULL auto_increment,
- code varchar(20) default NULL,
- title text default NULL,
- subtitle text default NULL,
- author varchar(250) default NULL,
- lang varchar(20) default NULL,
- template varchar(20) default NULL,
- intro text,
- surveythanks text,
- creation_date datetime NOT NULL default '0000-00-00 00:00:00',
- course_code varchar(40) NOT NULL default '',
- PRIMARY KEY (survey_id),
- UNIQUE KEY id (survey_id)
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for shared_survey_question
---
-
-DROP TABLE IF EXISTS shared_survey_question;
-CREATE TABLE IF NOT EXISTS shared_survey_question (
- question_id int NOT NULL auto_increment,
- survey_id int NOT NULL default '0',
- survey_question text NOT NULL,
- survey_question_comment text NOT NULL,
- type varchar(250) NOT NULL default '',
- display varchar(10) NOT NULL default '',
- sort int NOT NULL default '0',
- code varchar(40) NOT NULL default '',
- max_value int NOT NULL,
- PRIMARY KEY (question_id)
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for shared_survey_question_option
---
-
-DROP TABLE IF EXISTS shared_survey_question_option;
-CREATE TABLE IF NOT EXISTS shared_survey_question_option (
- question_option_id int NOT NULL auto_increment,
- question_id int NOT NULL default '0',
- survey_id int NOT NULL default '0',
- option_text text NOT NULL,
- sort int NOT NULL default '0',
- PRIMARY KEY (question_option_id)
-);
-
-
--- --------------------------------------------------------
-
---
--- Table structure for templates (User's FCKEditor templates)
---
-
-DROP TABLE IF EXISTS templates;
-CREATE TABLE IF NOT EXISTS templates (
- id int NOT NULL auto_increment,
- title varchar(100) NOT NULL,
- description varchar(250) NOT NULL,
- course_code varchar(40) NOT NULL,
- user_id int NOT NULL,
- ref_doc int NOT NULL,
- image varchar(250) NOT NULL,
- PRIMARY KEY (id)
-);
-
-
-
---
-
--- --------------------------------------------------------
-
---
--- Table structure of openid_association (keep info on openid servers)
---
-
-DROP TABLE IF EXISTS openid_association;
-CREATE TABLE IF NOT EXISTS openid_association (
- id int NOT NULL auto_increment,
- idp_endpoint_uri text NOT NULL,
- session_type varchar(30) NOT NULL,
- assoc_handle text NOT NULL,
- assoc_type text NOT NULL,
- expires_in bigint NOT NULL,
- mac_key text NOT NULL,
- created bigint NOT NULL,
- PRIMARY KEY (id)
-);
---
--- --------------------------------------------------------
---
--- Tables for gradebook
---
-DROP TABLE IF EXISTS gradebook_category;
-CREATE TABLE IF NOT EXISTS gradebook_category (
- id int NOT NULL auto_increment,
- name text NOT NULL,
- description text,
- user_id int NOT NULL,
- course_code varchar(40) default NULL,
- parent_id int default NULL,
- weight float NOT NULL,
- visible tinyint NOT NULL,
- certif_min_score int DEFAULT NULL,
- session_id int DEFAULT NULL,
- document_id int unsigned DEFAULT NULL,
- locked int NOT NULL DEFAULT 0,
- default_lowest_eval_exclude TINYINT default null,
- PRIMARY KEY (id)
-);
-DROP TABLE IF EXISTS gradebook_evaluation;
-CREATE TABLE IF NOT EXISTS gradebook_evaluation (
- id int unsigned NOT NULL auto_increment,
- name text NOT NULL,
- description text,
- user_id int NOT NULL,
- course_code varchar(40) default NULL,
- category_id int default NULL,
- created_at DATETIME NOT NULL default '0000-00-00 00:00:00',
- weight FLOAT NOT NULL,
- max float unsigned NOT NULL,
- visible int NOT NULL,
- type varchar(40) NOT NULL default 'evaluation',
- locked int NOT NULL DEFAULT 0,
- PRIMARY KEY (id)
-);
-DROP TABLE IF EXISTS gradebook_link;
-CREATE TABLE IF NOT EXISTS gradebook_link (
- id int NOT NULL auto_increment,
- type int NOT NULL,
- ref_id int NOT NULL,
- user_id int NOT NULL,
- course_code varchar(40) NOT NULL,
- category_id int NOT NULL,
- created_at DATETIME NOT NULL default '0000-00-00 00:00:00',
- weight float NOT NULL,
- visible int NOT NULL,
- locked int NOT NULL DEFAULT 0,
- PRIMARY KEY (id)
-);
-DROP TABLE IF EXISTS gradebook_result;
-CREATE TABLE IF NOT EXISTS gradebook_result (
- id int NOT NULL auto_increment,
- user_id int NOT NULL,
- evaluation_id int NOT NULL,
- created_at DATETIME NOT NULL default '0000-00-00 00:00:00',
- score float unsigned default NULL,
- PRIMARY KEY (id)
-);
-DROP TABLE IF EXISTS gradebook_score_display;
-CREATE TABLE IF NOT EXISTS gradebook_score_display (
- id int NOT NULL auto_increment,
- score float unsigned NOT NULL,
- display varchar(40) NOT NULL,
- category_id int NOT NULL default 0,
- score_color_percent float unsigned NOT NULL default 0,
- PRIMARY KEY (id)
-);
-ALTER TABLE gradebook_score_display ADD INDEX(category_id);
-
-DROP TABLE IF EXISTS user_field;
-CREATE TABLE IF NOT EXISTS user_field (
- id INT NOT NULL auto_increment,
- field_type int NOT NULL DEFAULT 1,
- field_variable varchar(64) NOT NULL,
- field_display_text varchar(64),
- field_default_value text,
- field_order int,
- field_visible tinyint default 0,
- field_changeable tinyint default 0,
- field_filter tinyint default 0,
- tms DATETIME NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY(id)
-);
-DROP TABLE IF EXISTS user_field_options;
-CREATE TABLE IF NOT EXISTS user_field_options (
- id int NOT NULL auto_increment,
- field_id int NOT NULL,
- option_value text,
- option_display_text varchar(64),
- option_order int,
- tms DATETIME NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY (id)
-);
-DROP TABLE IF EXISTS user_field_values;
-CREATE TABLE IF NOT EXISTS user_field_values(
- id bigint NOT NULL auto_increment,
- user_id int unsigned NOT NULL,
- field_id int NOT NULL,
- field_value text,
- tms DATETIME NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY(id)
-);
-
-ALTER TABLE user_field_values ADD INDEX (user_id, field_id);
-
-
-INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable) VALUES (1, 'legal_accept','Legal',0,0);
-INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable) VALUES (1, 'already_logged_in','Already logged in',0,0);
-INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable) VALUES (1, 'update_type','Update script type',0,0);
-INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable) VALUES (10, 'tags','tags',0,0);
-INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable) VALUES (1, 'rssfeeds','RSS',0,0);
-INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable) VALUES (1, 'dashboard', 'Dashboard', 0, 0);
-INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable) VALUES (11, 'timezone', 'Timezone', 0, 0);
-INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable, field_default_value) values (4, 'mail_notify_invitation', 'MailNotifyInvitation',1,1,'1');
-INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable, field_default_value) values (4, 'mail_notify_message', 'MailNotifyMessage',1,1,'1');
-INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable, field_default_value) values (4, 'mail_notify_group_message','MailNotifyGroupMessage',1,1,'1');
-INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable) VALUES (1, 'user_chat_status','User chat status',0,0);
-INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable) VALUES (1, 'google_calendar_url','Google Calendar URL',0,0);
-
-INSERT INTO user_field_options (field_id, option_value, option_display_text, option_order) values (8, '1', 'AtOnce',1);
-INSERT INTO user_field_options (field_id, option_value, option_display_text, option_order) values (8, '8', 'Daily',2);
-INSERT INTO user_field_options (field_id, option_value, option_display_text, option_order) values (8, '0', 'No',3);
-
-INSERT INTO user_field_options (field_id, option_value, option_display_text, option_order) values (9, '1', 'AtOnce',1);
-INSERT INTO user_field_options (field_id, option_value, option_display_text, option_order) values (9, '8', 'Daily',2);
-INSERT INTO user_field_options (field_id, option_value, option_display_text, option_order) values (9, '0', 'No',3);
-
-INSERT INTO user_field_options (field_id, option_value, option_display_text, option_order) values (10, '1', 'AtOnce',1);
-INSERT INTO user_field_options (field_id, option_value, option_display_text, option_order) values (10, '8', 'Daily',2);
-INSERT INTO user_field_options (field_id, option_value, option_display_text, option_order) values (10, '0', 'No',3);
-
-
-
-
-DROP TABLE IF EXISTS gradebook_result_log;
-CREATE TABLE IF NOT EXISTS gradebook_result_log (
- id int NOT NULL auto_increment,
- id_result int NOT NULL,
- user_id int NOT NULL,
- evaluation_id int NOT NULL,
- created_at DATETIME NOT NULL default '0000-00-00 00:00:00',
- score float unsigned default NULL,
- PRIMARY KEY(id)
-);
-
-DROP TABLE IF EXISTS gradebook_linkeval_log;
-CREATE TABLE IF NOT EXISTS gradebook_linkeval_log (
- id int NOT NULL auto_increment,
- id_linkeval_log int NOT NULL,
- name text,
- description text,
- created_at DATETIME NOT NULL default '0000-00-00 00:00:00',
- weight smallint default NULL,
- visible tinyint default NULL,
- type varchar(20) NOT NULL,
- user_id_log int NOT NULL,
- PRIMARY KEY (id)
-);
-
---
--- --------------------------------------------------------
---
--- Tables for the access URL feature
---
-
-DROP TABLE IF EXISTS access_url;
-CREATE TABLE IF NOT EXISTS access_url(
- id int unsigned NOT NULL auto_increment,
- url varchar(255) NOT NULL,
- description text,
- active int unsigned not null default 0,
- created_by int not null,
- tms DATETIME NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY (id)
-);
-
-INSERT INTO access_url(url, description, active, created_by) VALUES ('http://localhost/',' ',1,1);
-
-DROP TABLE IF EXISTS access_url_rel_user;
-CREATE TABLE IF NOT EXISTS access_url_rel_user (
- access_url_id int unsigned NOT NULL,
- user_id int unsigned NOT NULL,
- PRIMARY KEY (access_url_id, user_id)
-);
-
-ALTER TABLE access_url_rel_user ADD INDEX idx_access_url_rel_user_user (user_id);
-ALTER TABLE access_url_rel_user ADD INDEX idx_access_url_rel_user_access_url(access_url_id);
-ALTER TABLE access_url_rel_user ADD INDEX idx_access_url_rel_user_access_url_user (user_id,access_url_id);
-
--- Adding admin to the first portal
-INSERT INTO access_url_rel_user VALUES(1, 1);
-
-DROP TABLE IF EXISTS access_url_rel_course;
-CREATE TABLE IF NOT EXISTS access_url_rel_course (
- access_url_id int unsigned NOT NULL,
- course_code char(40) NOT NULL,
- PRIMARY KEY (access_url_id, course_code)
-);
-
-
-DROP TABLE IF EXISTS access_url_rel_session;
-CREATE TABLE IF NOT EXISTS access_url_rel_session (
- access_url_id int unsigned NOT NULL,
- session_id int unsigned NOT NULL,
- PRIMARY KEY (access_url_id, session_id)
-);
-
---
--- Table structure for table sys_calendar
---
-DROP TABLE IF EXISTS sys_calendar;
-CREATE TABLE IF NOT EXISTS sys_calendar (
- id int unsigned NOT NULL auto_increment,
- title varchar(255) NOT NULL,
- content text,
- start_date datetime NOT NULL default '0000-00-00 00:00:00',
- end_date datetime NOT NULL default '0000-00-00 00:00:00',
- access_url_id INT NOT NULL default 1,
- all_day INT NOT NULL DEFAULT 0,
- PRIMARY KEY (id)
-);
-
-DROP TABLE IF EXISTS system_template;
-CREATE TABLE IF NOT EXISTS system_template (
- id int UNSIGNED NOT NULL auto_increment,
- title varchar(250) NOT NULL,
- comment text NOT NULL,
- image varchar(250) NOT NULL,
- content text NOT NULL,
- PRIMARY KEY (id)
-);
-
--- Adding the platform templates
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleCourseTitle', 'TemplateTitleCourseTitleDescription', 'coursetitle.gif', '
-
- {CSS}
-
-
-
-
-
-
-
-
- TITULUS 1
- TITULUS 2
-
- |
-
-  |
-
-
-
-
-
-
-
-');
-
-/*
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleCheckList', 'TemplateTitleCheckListDescription', 'checklist.gif', '
-
- {CSS}
-
-
-
-
-
-
- Lorem ipsum dolor sit amet
-
- - consectetur adipisicing elit
- - sed do eiusmod tempor incididunt
- - ut labore et dolore magna aliqua
-
-
- Ut enim ad minim veniam
-
- - quis nostrud exercitation ullamco
- - laboris nisi ut aliquip ex ea commodo consequat
- - Excepteur sint occaecat cupidatat non proident
-
-
- Sed ut perspiciatis unde omnis
-
- - iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam
- - eaque ipsa quae ab illo inventore veritatis
- - et quasi architecto beatae vitae dicta sunt explicabo.
-
-
- |
-
- Ut enim ad minima
- Veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur.
-
- 
- |
-
-
-
-
-
-
-
-');
-*/
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleTeacher', 'TemplateTitleTeacherDescription', 'yourinstructor.gif', '
-
- {CSS}
-
-
-
-
-
-
- |
- |
- |
-
-
- |
-
-
-
- Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis pellentesque.
- |
-
-  |
-
-
-
-
-
-
-
-');
-
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleLeftList', 'TemplateTitleListLeftListDescription', 'leftlist.gif', '
-
- {CSS}
-
-
-
-
-
- |
- 
- |
-
-
- | Lorem
- ipsum dolor sit amet.
- |
-
-
-
- Vivamus
- a quam.
- |
-
-
- |
- Proin
- a est stibulum ante ipsum. |
-
-
-
-
-
-
-
-');
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleLeftRightList', 'TemplateTitleLeftRightListDescription', 'leftrightlist.gif', '
-
-
- {CSS}
-
-
-
-
-
- |
- 
- |
- |
-
-
- | Lorem
- ipsum dolor sit amet.
- |
-
- Convallis
- ut. Cras dui magna. |
-
-
-
- Vivamus
- a quam.
- |
-
- Etiam
- lacinia stibulum ante.
- |
-
-
- |
- Proin
- a est stibulum ante ipsum. |
-
- Consectetuer
- adipiscing elit.
- |
-
-
-
-
-
-
-
-
-');
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleRightList', 'TemplateTitleRightListDescription', 'rightlist.gif', '
-
- {CSS}
-
-
-
-
-
- 
- |
- |
-
-
- |
- Convallis
- ut. Cras dui magna. |
-
-
-
- Etiam
- lacinia.
- |
-
-
-
- Consectetuer
- adipiscing elit.
- |
-
-
-
-
-
-
-
-');
-
-/*
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleComparison', 'TemplateTitleComparisonDescription', 'compare.gif', '
-
- {CSS}
-
-
-
-
-
- |
- 
- |
- |
-
-
- |
- Lorem ipsum dolor sit amet.
- |
-
- Convallis
- ut. Cras dui magna. |
-
-
-');
-*/
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleDiagram', 'TemplateTitleDiagramDescription', 'diagram.gif', '
-
- {CSS}
-
-
-
-
-
-
-
-
- Etiam
- lacinia stibulum ante.
- Convallis
- ut. Cras dui magna. |
-
-  |
-
-
-
-  |
-
-
-
-
-
-
-
-
-
-');
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleDesc', 'TemplateTitleCheckListDescription', 'description.gif', '
-
- {CSS}
-
-
-
-
-
-
-  Lorem ipsum dolor sit amet
-
- Ut enim ad minim veniam
- Duis aute irure dolor in reprehenderit
- Neque porro quisquam est |
-
-
- 
|
-
-
-
-
-
-
-
-');
-
-/*
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleObjectives', 'TemplateTitleObjectivesDescription', 'courseobjectives.gif', '
-
- {CSS}
-
-
-
-
-
-
-
- 
- |
- |
-
-
-
- Lorem ipsum dolor sit amet
-
- - consectetur adipisicing elit
- - sed do eiusmod tempor incididunt
- - ut labore et dolore magna aliqua
-
- Ut enim ad minim veniam
-
- - quis nostrud exercitation ullamco
- - laboris nisi ut aliquip ex ea commodo consequat
- - Excepteur sint occaecat cupidatat non proident
-
- |
-
-
-
-
-
-
-
-');
-*/
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleCycle', 'TemplateTitleCycleDescription', 'cyclechart.gif', '
-
- {CSS}
-
-
-
-
-
-
-
-
-
-
- |
-
-
- |
- Lorem ipsum
- |
-
- |
-
- Sed ut perspiciatis
- |
-
-
-
-
- - dolor sit amet
- - consectetur adipisicing elit
- - sed do eiusmod tempor
- - adipisci velit, sed quia non numquam
- - eius modi tempora incidunt ut labore et dolore magnam
-
- |
- |
-
-
- - ut enim ad minim veniam
- - quis nostrud exercitation
- ullamco laboris nisi ut
- - Quis autem vel eum iure reprehenderit qui in ea
- - voluptate velit esse quam nihil molestiae consequatur,
-
- |
-
-
-
-
- |
-
-
-
-
-
-
-
-');
-
-/*
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleLearnerWonder', 'TemplateTitleLearnerWonderDescription', 'learnerwonder.gif', '
-
- {CSS}
-
-
-
-
-
-
-
- 
- |
- |
-
-
- |
- Convallis
- ut. Cras dui magna. |
-
-
-
- Etiam
- lacinia stibulum ante.
- |
-
-
-
- Consectetuer
- adipiscing elit.
- |
-
-
-
-
-
-
-
-');
-*/
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleTimeline', 'TemplateTitleTimelineDescription', 'phasetimeline.gif', '
-
- {CSS}
-
-
-
-
-
-
-
- | Lorem ipsum |
- |
- Perspiciatis |
- |
- Nemo enim |
-
-
-
-
-
- - dolor sit amet
- - consectetur
- - adipisicing elit
-
-
- |
-
-
- |
-
-
-
- - ut labore
- - et dolore
- - magni dolores
-
- |
-
-
- |
-
-
-
- - neque porro
- - quisquam est
- - qui dolorem
-
-
- |
-
-
-
-
-
-
-
-');
-
-/*
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleStopAndThink', 'TemplateTitleStopAndThinkDescription', 'stopthink.gif', '
-
- {CSS}
-
-
-
-
-
-
-
-
- |
- |
-
-
-
- Attentio sectetur adipisicing elit
-
- - sed do eiusmod tempor incididunt
- - ut labore et dolore magna aliqua
- - quis nostrud exercitation ullamco
-
|
-
-
-
-
-
-
-
-');
-*/
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleTable', 'TemplateTitleCheckListDescription', 'table.gif', '
-
- {CSS}
-
-
-
-
-
- A table
-
-
-
- | City |
- 2005 |
- 2006 |
- 2007 |
- 2008 |
-
-
- | Lima |
- 10,40 |
- 8,95 |
- 9,19 |
- 9,76 |
-
-
- | New York |
- 18,39 |
- 17,52 |
- 16,57 |
- 16,60 |
-
-
- | Barcelona |
- 0,10 |
- 0,10 |
- 0,05 |
- 0,05 |
-
-
- | Paris |
- 3,38 |
- 3,63 |
- 3,63 |
- 3,54 |
-
-
-
-
-
-');
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleAudio', 'TemplateTitleAudioDescription', 'audiocomment.gif', '
-
- {CSS}
-
-
-
-
-
-
-
-');
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleVideo', 'TemplateTitleVideoDescription', 'video.gif', '
-
- {CSS}
-
-
-
-
-
-
-
-
-
-
-
-
- url={REL_PATH}main/default_course_document/video/flv/example.flv width=320 height=240 loop=false play=false downloadable=false fullscreen=true displayNavigation=true displayDigits=true align=left dispPlaylist=none playlistThumbs=false
-
-
-
-
-
-
-
- |
-
-
-
- Lorem ipsum dolor sit amet
-
- - consectetur adipisicing elit
- - sed do eiusmod tempor incididunt
- - ut labore et dolore magna aliqua
-
- Ut enim ad minim veniam
-
- - quis nostrud exercitation ullamco
- - laboris nisi ut aliquip ex ea commodo consequat
- - Excepteur sint occaecat cupidatat non proident
-
- |
-
-
-
-
-
-
-
-
-');
-
-INSERT INTO system_template (title, comment, image, content) VALUES
-('TemplateTitleFlash', 'TemplateTitleFlashDescription', 'flash.gif', '
-
- {CSS}
-
-
-
-
-
-
-
-
-
-');
-
-
---
--- --------------------------------------------------------
---
--- Tables for reservation
---
-
-
---
--- Table structure for table reservation category
---
-
-DROP TABLE IF EXISTS reservation_category;
-CREATE TABLE IF NOT EXISTS reservation_category (
- id int unsigned NOT NULL auto_increment,
- parent_id int NOT NULL default 0,
- name varchar(128) NOT NULL default '',
- PRIMARY KEY ( id )
-);
-
---
--- Table structure for table reservation category_rights
---
-
-DROP TABLE IF EXISTS reservation_category_rights;
-CREATE TABLE IF NOT EXISTS reservation_category_rights (
- id int unsigned NOT NULL auto_increment,
- category_id int NOT NULL default 0,
- class_id int NOT NULL default 0,
- m_items tinyint NOT NULL default 0,
- PRIMARY KEY ( id )
-);
-
---
--- Table structure for table item reservation
---
-DROP TABLE IF EXISTS reservation_item;
-CREATE TABLE IF NOT EXISTS reservation_item (
- id int unsigned NOT NULL auto_increment,
- category_id int unsigned NOT NULL default 0,
- course_code varchar(40) NOT NULL default '',
- name varchar(128) NOT NULL default '',
- description text NOT NULL,
- blackout tinyint NOT NULL default 0,
- creator int unsigned NOT NULL default 0,
- always_available TINYINT NOT NULL default 0,
- PRIMARY KEY ( id )
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for table reservation item_rights
---
-
-DROP TABLE IF EXISTS reservation_item_rights;
-CREATE TABLE IF NOT EXISTS reservation_item_rights (
- item_id int unsigned NOT NULL default 0,
- class_id int unsigned NOT NULL default 0,
- edit_right tinyint unsigned NOT NULL default 0,
- delete_right tinyint unsigned NOT NULL default 0,
- m_reservation tinyint unsigned NOT NULL default 0,
- view_right tinyint NOT NULL default 0,
- PRIMARY KEY ( item_id , class_id )
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for main reservation table
---
-
-DROP TABLE IF EXISTS reservation_main;
-CREATE TABLE IF NOT EXISTS reservation_main (
- id int unsigned NOT NULL auto_increment,
- subid int unsigned NOT NULL default 0,
- item_id int unsigned NOT NULL default 0,
- auto_accept tinyint unsigned NOT NULL default 0,
- max_users int unsigned NOT NULL default 1,
- start_at datetime NOT NULL default '0000-00-00 00:00:00',
- end_at datetime NOT NULL default '0000-00-00 00:00:00',
- subscribe_from datetime NOT NULL default '0000-00-00 00:00:00',
- subscribe_until datetime NOT NULL default '0000-00-00 00:00:00',
- subscribers int unsigned NOT NULL default 0,
- notes text NOT NULL,
- timepicker tinyint NOT NULL default 0,
- timepicker_min int NOT NULL default 0,
- timepicker_max int NOT NULL default 0,
- PRIMARY KEY ( id )
-);
-
--- --------------------------------------------------------
-
---
--- Table structure for reservation subscription table
---
-
-DROP TABLE IF EXISTS reservation_subscription;
-CREATE TABLE IF NOT EXISTS reservation_subscription (
- dummy int unsigned NOT NULL auto_increment,
- user_id int unsigned NOT NULL default 0,
- reservation_id int unsigned NOT NULL default 0,
- accepted tinyint unsigned NOT NULL default 0,
- start_at datetime NOT NULL default '0000-00-00 00:00:00',
- end_at datetime NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY ( dummy )
-);
-
--- ---------------------------------------------------------
-
---
--- Table structure for table user_rel_user
---
-DROP TABLE IF EXISTS user_rel_user;
-CREATE TABLE IF NOT EXISTS user_rel_user (
- id bigint unsigned not null auto_increment,
- user_id int unsigned not null,
- friend_user_id int unsigned not null,
- relation_type int not null default 0,
- last_edit DATETIME,
- PRIMARY KEY(id)
-);
-
-ALTER TABLE user_rel_user ADD INDEX idx_user_rel_user__user (user_id);
-ALTER TABLE user_rel_user ADD INDEX idx_user_rel_user__friend_user(friend_user_id);
-ALTER TABLE user_rel_user ADD INDEX idx_user_rel_user__user_friend_user(user_id,friend_user_id);
-
---
--- Table structure for table user_friend_relation_type
---
-DROP TABLE IF EXISTS user_friend_relation_type;
-CREATE TABLE IF NOT EXISTS user_friend_relation_type(
- id int unsigned not null auto_increment,
- title char(20),
- PRIMARY KEY(id)
-);
-
-
---
--- Table structure for MD5 API keys for users
---
-
-DROP TABLE IF EXISTS user_api_key;
-CREATE TABLE IF NOT EXISTS user_api_key (
- id int unsigned NOT NULL auto_increment,
- user_id int unsigned NOT NULL,
- api_key char(32) NOT NULL,
- api_service char(10) NOT NULL default 'dokeos',
- api_end_point text DEFAULT NULL,
- created_date datetime DEFAULT NULL,
- validity_start_date datetime DEFAULT NULL,
- validity_end_date datetime DEFAULT NULL,
- description text DEFAULT NULL,
- PRIMARY KEY (id)
-);
-ALTER TABLE user_api_key ADD INDEX idx_user_api_keys_user (user_id);
-
---
--- Table structure for table message
---
-DROP TABLE IF EXISTS message;
-CREATE TABLE IF NOT EXISTS message(
- id bigint unsigned not null auto_increment,
- user_sender_id int unsigned not null,
- user_receiver_id int unsigned not null,
- msg_status tinyint unsigned not null default 0, -- 0 read, 1 unread, 3 deleted, 5 pending invitation, 6 accepted invitation, 7 invitation denied
- send_date datetime not null default '0000-00-00 00:00:00',
- title varchar(255) not null,
- content text not null,
- group_id int unsigned not null default 0,
- parent_id int unsigned not null default 0,
- update_date datetime not null default '0000-00-00 00:00:00',
- PRIMARY KEY(id)
-);
-ALTER TABLE message ADD INDEX idx_message_user_sender(user_sender_id);
-ALTER TABLE message ADD INDEX idx_message_user_receiver(user_receiver_id);
-ALTER TABLE message ADD INDEX idx_message_user_sender_user_receiver(user_sender_id,user_receiver_id);
-ALTER TABLE message ADD INDEX idx_message_group(group_id);
-ALTER TABLE message ADD INDEX idx_message_parent(parent_id);
-
-INSERT INTO user_friend_relation_type (id,title)
-VALUES
-(1,'SocialUnknow'),
-(2,'SocialParent'),
-(3,'SocialFriend'),
-(4,'SocialGoodFriend'),
-(5,'SocialEnemy'),
-(6,'SocialDeleted');
-
---
--- Table structure for table legal (Terms & Conditions)
---
-
-DROP TABLE IF EXISTS legal;
-CREATE TABLE IF NOT EXISTS legal (
- legal_id int NOT NULL auto_increment,
- language_id int NOT NULL,
- date int NOT NULL default 0,
- content text,
- type int NOT NULL,
- changes text NOT NULL,
- version int,
- PRIMARY KEY (legal_id,language_id)
-);
-
---
--- Table structure for certificate with gradebook
---
-
-DROP TABLE IF EXISTS gradebook_certificate;
-CREATE TABLE IF NOT EXISTS gradebook_certificate (
- id bigint unsigned not null auto_increment,
- cat_id int unsigned not null,
- user_id int unsigned not null,
- score_certificate float unsigned not null default 0,
- created_at DATETIME NOT NULL default '0000-00-00 00:00:00',
- path_certificate text null,
- PRIMARY KEY(id)
-);
-ALTER TABLE gradebook_certificate ADD INDEX idx_gradebook_certificate_category_id(cat_id);
-ALTER TABLE gradebook_certificate ADD INDEX idx_gradebook_certificate_user_id(user_id);
-ALTER TABLE gradebook_certificate ADD INDEX idx_gradebook_certificate_category_id_user_id(cat_id,user_id);
-
-
-
---
--- Tables structure for search tool
---
-
--- specific fields tables
-DROP TABLE IF EXISTS specific_field;
-CREATE TABLE IF NOT EXISTS specific_field (
- id INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
- code char(1) NOT NULL,
- name VARCHAR(200) NOT NULL
-);
-
-DROP TABLE IF EXISTS specific_field_values;
-CREATE TABLE IF NOT EXISTS specific_field_values (
- id INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
- course_code VARCHAR(40) NOT NULL ,
- tool_id VARCHAR(100) NOT NULL ,
- ref_id INT NOT NULL ,
- field_id INT NOT NULL ,
- value VARCHAR(200) NOT NULL
-);
-ALTER TABLE specific_field ADD CONSTRAINT unique_specific_field__code UNIQUE (code);
-
--- search engine references to map dokeos resources
-
-DROP TABLE IF EXISTS search_engine_ref;
-CREATE TABLE IF NOT EXISTS search_engine_ref (
- id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
- course_code VARCHAR( 40 ) NOT NULL,
- tool_id VARCHAR( 100 ) NOT NULL,
- ref_id_high_level INT NOT NULL,
- ref_id_second_level INT NULL,
- search_did INT NOT NULL
-);
-
---
--- Table structure for table sessions categories
---
-
-DROP TABLE IF EXISTS session_category;
-CREATE TABLE IF NOT EXISTS session_category (
- id int NOT NULL auto_increment,
- name varchar(100) default NULL,
- date_start date default NULL,
- date_end date default NULL,
- access_url_id INT NOT NULL default 1,
- PRIMARY KEY (id)
-);
-
-
---
--- Table structure for table user tag
---
-
-DROP TABLE IF EXISTS tag;
-CREATE TABLE IF NOT EXISTS tag (
- id int NOT NULL auto_increment,
- tag char(255) NOT NULL,
- field_id int NOT NULL,
- count int NOT NULL,
- PRIMARY KEY (id)
-);
-
-DROP TABLE IF EXISTS user_rel_tag;
-CREATE TABLE IF NOT EXISTS user_rel_tag (
- id int NOT NULL auto_increment,
- user_id int NOT NULL,
- tag_id int NOT NULL,
- PRIMARY KEY (id)
-);
-
---
--- Table structure for user platform groups
---
-
-DROP TABLE IF EXISTS groups;
-CREATE TABLE IF NOT EXISTS groups (
- id int NOT NULL AUTO_INCREMENT,
- name varchar(255) NOT NULL,
- description varchar(255) NOT NULL,
- picture_uri varchar(255) NOT NULL,
- url varchar(255) NOT NULL,
- visibility int NOT NULL,
- updated_on varchar(255) NOT NULL,
- created_on varchar(255) NOT NULL,
- PRIMARY KEY (id)
-);
-
-DROP TABLE IF EXISTS group_rel_tag;
-CREATE TABLE IF NOT EXISTS group_rel_tag (
- id int NOT NULL AUTO_INCREMENT,
- tag_id int NOT NULL,
- group_id int NOT NULL,
- PRIMARY KEY (id)
-);
-
-ALTER TABLE group_rel_tag ADD INDEX ( group_id );
-ALTER TABLE group_rel_tag ADD INDEX ( tag_id );
-
-DROP TABLE IF EXISTS group_rel_user;
-CREATE TABLE IF NOT EXISTS group_rel_user (
- id int NOT NULL AUTO_INCREMENT,
- group_id int NOT NULL,
- user_id int NOT NULL,
- relation_type int NOT NULL,
- PRIMARY KEY (id)
-);
-ALTER TABLE group_rel_user ADD INDEX ( group_id );
-ALTER TABLE group_rel_user ADD INDEX ( user_id );
-ALTER TABLE group_rel_user ADD INDEX ( relation_type );
-
-DROP TABLE IF EXISTS group_rel_group;
-CREATE TABLE IF NOT EXISTS group_rel_group (
- id int NOT NULL AUTO_INCREMENT,
- group_id int NOT NULL,
- subgroup_id int NOT NULL,
- relation_type int NOT NULL,
- PRIMARY KEY (id)
-);
-
-ALTER TABLE group_rel_group ADD INDEX ( group_id );
-ALTER TABLE group_rel_group ADD INDEX ( subgroup_id );
-ALTER TABLE group_rel_group ADD INDEX ( relation_type );
-
-DROP TABLE IF EXISTS announcement_rel_group;
-CREATE TABLE IF NOT EXISTS announcement_rel_group (
- group_id int NOT NULL,
- announcement_id int NOT NULL,
- PRIMARY KEY (group_id, announcement_id)
-);
---
--- Table structure for table message attachment
---
-
-DROP TABLE IF EXISTS message_attachment;
-CREATE TABLE IF NOT EXISTS message_attachment (
- id int NOT NULL AUTO_INCREMENT,
- path varchar(255) NOT NULL,
- comment text,
- size int NOT NULL default 0,
- message_id int NOT NULL,
- filename varchar(255) NOT NULL,
- PRIMARY KEY (id)
-);
-
-
-
-INSERT INTO course_field (field_type, field_variable, field_display_text, field_default_value, field_visible, field_changeable) values (10, 'special_course','Special course', 'Yes', 1 , 1);
-
---
--- Table structure for table block
---
-
-DROP TABLE IF EXISTS block;
-CREATE TABLE IF NOT EXISTS block (
- id INT NOT NULL AUTO_INCREMENT,
- name VARCHAR(255) NULL,
- description TEXT NULL,
- path VARCHAR(255) NOT NULL,
- controller VARCHAR(100) NOT NULL,
- active TINYINT NOT NULL DEFAULT 1,
- PRIMARY KEY(id)
-);
-ALTER TABLE block ADD UNIQUE(path);
-
---
--- Structure for table 'course_request' ("Course validation" feature)
---
-
-DROP TABLE IF EXISTS course_request;
-CREATE TABLE IF NOT EXISTS course_request (
- id int NOT NULL AUTO_INCREMENT,
- code varchar(40) NOT NULL,
- user_id int unsigned NOT NULL default '0',
- directory varchar(40) DEFAULT NULL,
- db_name varchar(40) DEFAULT NULL,
- course_language varchar(20) DEFAULT NULL,
- title varchar(250) DEFAULT NULL,
- description text,
- category_code varchar(40) DEFAULT NULL,
- tutor_name varchar(200) DEFAULT NULL,
- visual_code varchar(40) DEFAULT NULL,
- request_date datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- objetives text,
- target_audience text,
- status int unsigned NOT NULL default '0',
- info int unsigned NOT NULL default '0',
- exemplary_content int unsigned NOT NULL default '0',
- PRIMARY KEY (id),
- UNIQUE KEY code (code)
-);
-
---
--- Structure for Careers, Promotions and Usergroups
---
-
-DROP TABLE IF EXISTS career;
-CREATE TABLE IF NOT EXISTS career (
- id INT NOT NULL AUTO_INCREMENT,
- name VARCHAR(255) NOT NULL ,
- description TEXT NOT NULL,
- status INT NOT NULL default '0',
- created_at datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- updated_at datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY (id)
-);
-
-DROP TABLE IF EXISTS promotion;
-CREATE TABLE IF NOT EXISTS promotion (
- id INT NOT NULL AUTO_INCREMENT,
- name VARCHAR(255) NOT NULL ,
- description TEXT NOT NULL,
- career_id INT NOT NULL,
- status INT NOT NULL default '0',
- created_at datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- updated_at datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- PRIMARY KEY(id)
-);
-
-DROP TABLE IF EXISTS usergroup;
-CREATE TABLE IF NOT EXISTS usergroup (
- id INT NOT NULL AUTO_INCREMENT,
- name VARCHAR(255) NOT NULL,
- description TEXT NOT NULL,
- PRIMARY KEY (id)
-);
-
-DROP TABLE IF EXISTS usergroup_rel_user;
-CREATE TABLE IF NOT EXISTS usergroup_rel_user (
- id INT PRIMARY KEY NOT NULL AUTO_INCREMENT,
- usergroup_id INT NOT NULL,
- user_id INT NOT NULL
-);
-
-DROP TABLE IF EXISTS usergroup_rel_course;
-CREATE TABLE IF NOT EXISTS usergroup_rel_course (
- id INT PRIMARY KEY NOT NULL AUTO_INCREMENT,
- usergroup_id INT NOT NULL,
- course_id INT NOT NULL
-);
-
-DROP TABLE IF EXISTS usergroup_rel_session;
-CREATE TABLE IF NOT EXISTS usergroup_rel_session (
- id INT PRIMARY KEY NOT NULL AUTO_INCREMENT,
- usergroup_id INT NOT NULL,
- session_id INT NOT NULL
-);
-
-
---
--- Structure for Mail notifications
---
-
-DROP TABLE IF EXISTS notification;
-CREATE TABLE IF NOT EXISTS notification (
- id BIGINT PRIMARY KEY NOT NULL AUTO_INCREMENT,
- dest_user_id INT NOT NULL,
- dest_mail CHAR(255),
- title CHAR(255),
- content CHAR(255),
- send_freq SMALLINT DEFAULT 1,
- created_at DATETIME NOT NULL,
- sent_at DATETIME NULL
-);
-
-ALTER TABLE notification ADD index mail_notify_sent_index (sent_at);
-ALTER TABLE notification ADD index mail_notify_freq_index (sent_at, send_freq, created_at);
-
--- Skills management
-
-DROP TABLE IF EXISTS skill;
-CREATE TABLE IF NOT EXISTS skill (
- id int NOT NULL AUTO_INCREMENT,
- name varchar(255) NOT NULL,
- short_code varchar(100) NOT NULL,
- description TEXT NOT NULL,
- access_url_id int NOT NULL,
- icon varchar(255) NOT NULL,
- PRIMARY KEY (id)
-);
-
-INSERT INTO skill (name) VALUES ('Root');
-
-DROP TABLE IF EXISTS skill_rel_gradebook;
-CREATE TABLE IF NOT EXISTS skill_rel_gradebook (
- id int NOT NULL AUTO_INCREMENT,
- gradebook_id int NOT NULL,
- skill_id int NOT NULL,
- type varchar(10) NOT NULL,
- PRIMARY KEY (id)
-);
-
-DROP TABLE IF EXISTS skill_rel_skill;
-CREATE TABLE IF NOT EXISTS skill_rel_skill (
- id int NOT NULL AUTO_INCREMENT,
- skill_id int NOT NULL,
- parent_id int NOT NULL,
- relation_type int NOT NULL,
- level int NOT NULL,
- PRIMARY KEY (id)
-);
-
-INSERT INTO skill_rel_skill VALUES(1, 1, 0, 0, 0);
-
-DROP TABLE IF EXISTS skill_rel_user;
-CREATE TABLE IF NOT EXISTS skill_rel_user (
- id int NOT NULL AUTO_INCREMENT,
- user_id int NOT NULL,
- skill_id int NOT NULL,
- acquired_skill_at datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- assigned_by int NOT NULL,
- PRIMARY KEY (id)
-);
-
-DROP TABLE IF EXISTS skill_profile;
-CREATE TABLE IF NOT EXISTS skill_profile (
- id INTEGER NOT NULL AUTO_INCREMENT,
- name VARCHAR(255) NOT NULL,
- description TEXT NOT NULL,
- PRIMARY KEY (id)
-);
-
-DROP TABLE IF EXISTS skill_rel_profile;
-CREATE TABLE IF NOT EXISTS skill_rel_profile (
- id INTEGER NOT NULL AUTO_INCREMENT,
- skill_id INTEGER NOT NULL,
- profile_id INTEGER NOT NULL,
- PRIMARY KEY (id)
-);
-
---
--- Table structure for event email sending
---
-DROP TABLE IF EXISTS event_email_template;
-CREATE TABLE event_email_template (
- id int NOT NULL AUTO_INCREMENT,
- message text,
- subject varchar(255) DEFAULT NULL,
- event_type_name varchar(255) DEFAULT NULL,
- activated tinyint NOT NULL DEFAULT '0',
- language_id int DEFAULT NULL,
- PRIMARY KEY (id)
-);
-ALTER TABLE event_email_template ADD INDEX event_name_index (event_type_name);
-
-DROP TABLE IF EXISTS event_sent;
-CREATE TABLE event_sent (
- id int NOT NULL AUTO_INCREMENT,
- user_from int NOT NULL,
- user_to int DEFAULT NULL,
- event_type_name varchar(100) DEFAULT NULL,
- PRIMARY KEY (id)
-);
-ALTER TABLE event_sent ADD INDEX event_name_index (event_type_name);
-
-DROP TABLE IF EXISTS user_rel_event_type;
-CREATE TABLE user_rel_event_type (
- id int NOT NULL AUTO_INCREMENT,
- user_id int NOT NULL,
- event_type_name varchar(255) NOT NULL,
- PRIMARY KEY (id)
-);
-ALTER TABLE user_rel_event_type ADD INDEX event_name_index (event_type_name);
-
--- Course ranking
-
-DROP TABLE IF EXISTS track_course_ranking;
-CREATE TABLE IF NOT EXISTS track_course_ranking (
- id int unsigned not null PRIMARY KEY AUTO_INCREMENT,
- c_id int unsigned not null,
- session_id int unsigned not null default 0,
- url_id int unsigned not null default 0,
- accesses int unsigned not null default 0,
- total_score int unsigned not null default 0,
- users int unsigned not null default 0,
- creation_date datetime not null
-);
-
-ALTER TABLE track_course_ranking ADD INDEX idx_tcc_cid (c_id);
-ALTER TABLE track_course_ranking ADD INDEX idx_tcc_sid (session_id);
-ALTER TABLE track_course_ranking ADD INDEX idx_tcc_urlid (url_id);
-ALTER TABLE track_course_ranking ADD INDEX idx_tcc_creation_date (creation_date);
-
-DROP TABLE IF EXISTS user_rel_course_vote;
-CREATE TABLE IF NOT EXISTS user_rel_course_vote (
- id int unsigned not null AUTO_INCREMENT PRIMARY KEY,
- c_id int unsigned not null,
- user_id int unsigned not null,
- session_id int unsigned not null default 0,
- url_id int unsigned not null default 0,
- vote int unsigned not null default 0
-);
-
-ALTER TABLE user_rel_course_vote ADD INDEX idx_ucv_cid (c_id);
-ALTER TABLE user_rel_course_vote ADD INDEX idx_ucv_uid (user_id);
-ALTER TABLE user_rel_course_vote ADD INDEX idx_ucv_cuid (user_id, c_id);
-
--- Global chat
-DROP TABLE IF EXISTS chat;
-CREATE TABLE IF NOT EXISTS chat (
- id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
- from_user INTEGER,
- to_user INTEGER,
- message TEXT NOT NULL,
- sent DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
- recd INTEGER UNSIGNED NOT NULL DEFAULT 0,
- PRIMARY KEY (id)
-);
-
-ALTER TABLE chat ADD INDEX idx_chat_to_user (to_user);
-ALTER TABLE chat ADD INDEX idx_chat_from_user (from_user);
-
--- Grade Model
-DROP TABLE IF EXISTS grade_model;
-CREATE TABLE grade_model (
- id INTEGER NOT NULL AUTO_INCREMENT,
- name VARCHAR(255) NOT NULL,
- description TEXT,
- default_lowest_eval_exclude TINYINT default null,
- default_external_eval TINYINT default null,
- default_external_eval_prefix VARCHAR(140) default null,
- PRIMARY KEY (id)
-);
-
-DROP TABLE IF EXISTS grade_components;
-CREATE TABLE grade_components (
- id INTEGER NOT NULL AUTO_INCREMENT,
- percentage VARCHAR(255) NOT NULL,
- title VARCHAR(255) NOT NULL,
- acronym VARCHAR(255) NOT NULL,
- grade_model_id INTEGER NOT NULL,
- PRIMARY KEY (id)
-);
-
-ALTER TABLE gradebook_category ADD COLUMN grade_model_id INT DEFAULT 0;
-
-DROP TABLE IF EXISTS course_type;
-CREATE TABLE course_type (
- id int unsigned not null auto_increment primary key,
- name varchar(50) not null,
- translation_var char(40) default 'UndefinedCourseTypeLabel',
- description TEXT default '',
- props text default ''
-);
-
-INSERT INTO course_type (id, name) VALUES (1, 'All tools');
-INSERT INTO course_type (id, name) VALUES (2, 'Entry exam');
-
-ALTER TABLE course add course_type_id int unsigned default 1;
-
-DROP TABLE IF EXISTS usergroup_rel_question;
-CREATE TABLE usergroup_rel_question (
- id int unsigned not null auto_increment primary key,
- c_id int unsigned not null,
- question_id int unsigned not null,
- usergroup_id int unsigned not null,
- coefficient float(6,2)
-);
\ No newline at end of file
diff --git a/main/install/1.9.0/db_stats.sql b/main/install/1.9.0/db_stats.sql
deleted file mode 100644
index aa660d83cf..0000000000
--- a/main/install/1.9.0/db_stats.sql
+++ /dev/null
@@ -1,329 +0,0 @@
--- MySQL dump
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
-DROP TABLE IF EXISTS track_c_browsers;
-CREATE TABLE track_c_browsers (
- id int NOT NULL auto_increment,
- browser varchar(255) NOT NULL default '',
- counter int NOT NULL default 0,
- PRIMARY KEY (id)
-);
-
-DROP TABLE IF EXISTS track_c_countries;
-CREATE TABLE track_c_countries (
- id int NOT NULL auto_increment,
- code varchar(40) NOT NULL default '',
- country varchar(50) NOT NULL default '',
- counter int NOT NULL default 0,
- PRIMARY KEY (id)
-);
-
-DROP TABLE IF EXISTS track_c_os;
-CREATE TABLE track_c_os (
- id int NOT NULL auto_increment,
- os varchar(255) NOT NULL default '',
- counter int NOT NULL default 0,
- PRIMARY KEY (id)
-);
-
-DROP TABLE IF EXISTS track_c_providers;
-CREATE TABLE track_c_providers (
- id int NOT NULL auto_increment,
- provider varchar(255) NOT NULL default '',
- counter int NOT NULL default 0,
- PRIMARY KEY (id)
-);
-
-DROP TABLE IF EXISTS track_c_referers;
-CREATE TABLE track_c_referers (
- id int NOT NULL auto_increment,
- referer varchar(255) NOT NULL default '',
- counter int NOT NULL default 0,
- PRIMARY KEY (id)
-);
-
-DROP TABLE IF EXISTS track_e_access;
-CREATE TABLE track_e_access (
- access_id int NOT NULL auto_increment,
- access_user_id int unsigned default NULL,
- access_date datetime NOT NULL default '0000-00-00 00:00:00',
- access_cours_code varchar(40) NOT NULL default '',
- access_tool varchar(30) default NULL,
- access_session_id int NOT NULL default 0,
- PRIMARY KEY (access_id),
- KEY access_user_id (access_user_id),
- KEY access_cours_code (access_cours_code)
-);
-
-DROP TABLE IF EXISTS track_e_lastaccess;
-CREATE TABLE track_e_lastaccess (
- access_id bigint NOT NULL auto_increment,
- access_user_id int unsigned default NULL,
- access_date datetime NOT NULL default '0000-00-00 00:00:00',
- access_cours_code varchar(40) NOT NULL,
- access_tool varchar(30) default NULL,
- access_session_id int unsigned default NULL,
- PRIMARY KEY (access_id),
- KEY access_user_id (access_user_id),
- KEY access_cours_code (access_cours_code),
- KEY access_session_id (access_session_id)
-);
-
-DROP TABLE IF EXISTS track_e_default;
-CREATE TABLE track_e_default (
- default_id int NOT NULL auto_increment,
- default_user_id int unsigned NOT NULL default 0,
- default_cours_code varchar(40) NOT NULL default '',
- default_date datetime NOT NULL default '0000-00-00 00:00:00',
- default_event_type varchar(20) NOT NULL default '',
- default_value_type varchar(20) NOT NULL default '',
- default_value text NOT NULL,
- c_id int unsigned default NULL,
- PRIMARY KEY (default_id)
-);
-
-DROP TABLE IF EXISTS track_e_downloads;
-CREATE TABLE track_e_downloads (
- down_id int NOT NULL auto_increment,
- down_user_id int unsigned default NULL,
- down_date datetime NOT NULL default '0000-00-00 00:00:00',
- down_cours_id varchar(40) NOT NULL default '',
- down_doc_path varchar(255) NOT NULL default '',
- down_session_id INT NOT NULL DEFAULT 0,
- PRIMARY KEY (down_id),
- KEY down_user_id (down_user_id),
- KEY down_cours_id (down_cours_id)
-);
-
-DROP TABLE IF EXISTS track_e_exercices;
-CREATE TABLE track_e_exercices (
- exe_id int NOT NULL auto_increment,
- exe_user_id int unsigned default NULL,
- exe_date datetime NOT NULL default '0000-00-00 00:00:00',
- exe_cours_id varchar(40) NOT NULL default '',
- exe_exo_id mediumint unsigned NOT NULL default 0,
- exe_result float(6,2) NOT NULL default 0,
- exe_weighting float(6,2) NOT NULL default 0,
- PRIMARY KEY (exe_id),
- KEY exe_user_id (exe_user_id),
- KEY exe_cours_id (exe_cours_id)
-);
-
-ALTER TABLE track_e_exercices ADD status varchar(20) NOT NULL default '';
-ALTER TABLE track_e_exercices ADD data_tracking text NOT NULL default '';
-ALTER TABLE track_e_exercices ADD start_date datetime NOT NULL default '0000-00-00 00:00:00';
-ALTER TABLE track_e_exercices ADD steps_counter SMALLINT UNSIGNED NOT NULL default 0;
-ALTER TABLE track_e_exercices ADD session_id SMALLINT UNSIGNED NOT NULL default 0;
-ALTER TABLE track_e_exercices ADD INDEX ( session_id ) ;
-ALTER TABLE track_e_exercices ADD orig_lp_id int NOT NULL default 0;
-ALTER TABLE track_e_exercices ADD orig_lp_item_id int NOT NULL default 0;
-ALTER TABLE track_e_exercices ADD exe_duration int UNSIGNED NOT NULL default 0;
-ALTER TABLE track_e_exercices ADD COLUMN expired_time_control datetime NOT NULL DEFAULT '0000-00-00 00:00:00';
-ALTER TABLE track_e_exercices ADD COLUMN orig_lp_item_view_id INT NOT NULL DEFAULT 0;
-ALTER TABLE track_e_exercices ADD COLUMN questions_to_check TEXT NOT NULL DEFAULT '';
-
-DROP TABLE IF EXISTS track_e_attempt;
-CREATE TABLE track_e_attempt (
- id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
- exe_id int default NULL,
- user_id int NOT NULL default 0,
- question_id int NOT NULL default 0,
- answer text NOT NULL,
- teacher_comment text NOT NULL,
- marks float(6,2) NOT NULL default 0,
- course_code varchar(40) NOT NULL default '',
- position int default 0,
- tms datetime NOT NULL default '0000-00-00 00:00:00',
- session_id INT NOT NULL DEFAULT 0,
- filename VARCHAR(255) DEFAULT NULL
-);
-ALTER TABLE track_e_attempt ADD INDEX (exe_id);
-ALTER TABLE track_e_attempt ADD INDEX (user_id);
-ALTER TABLE track_e_attempt ADD INDEX (question_id);
-ALTER TABLE track_e_attempt ADD INDEX (session_id);
-
-DROP TABLE IF EXISTS track_e_attempt_recording;
-CREATE TABLE track_e_attempt_recording (
- id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
- exe_id int unsigned NOT NULL,
- question_id int unsigned NOT NULL,
- marks int NOT NULL,
- insert_date datetime NOT NULL default '0000-00-00 00:00:00',
- author int unsigned NOT NULL,
- teacher_comment text NOT NULL,
- session_id INT NOT NULL DEFAULT 0
-);
-ALTER TABLE track_e_attempt_recording ADD INDEX (exe_id);
-ALTER TABLE track_e_attempt_recording ADD INDEX (question_id);
-ALTER TABLE track_e_attempt_recording ADD INDEX (session_id);
-
-DROP TABLE IF EXISTS track_e_hotpotatoes;
-CREATE TABLE track_e_hotpotatoes (
- id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
- exe_name VARCHAR( 255 ) NOT NULL ,
- exe_user_id int unsigned DEFAULT NULL ,
- exe_date DATETIME DEFAULT '0000-00-00 00:00:00' NOT NULL ,
- exe_cours_id varchar(40) NOT NULL ,
- exe_result smallint default 0 NOT NULL ,
- exe_weighting smallint default 0 NOT NULL,
- KEY exe_user_id (exe_user_id),
- KEY exe_cours_id (exe_cours_id)
-);
-
-DROP TABLE IF EXISTS track_e_links;
-CREATE TABLE track_e_links (
- links_id int NOT NULL auto_increment,
- links_user_id int unsigned default NULL,
- links_date datetime NOT NULL default '0000-00-00 00:00:00',
- links_cours_id varchar(40) NOT NULL default '' ,
- links_link_id int NOT NULL default 0,
- links_session_id INT NOT NULL DEFAULT 0,
- PRIMARY KEY (links_id),
- KEY links_cours_id (links_cours_id),
- KEY links_user_id (links_user_id)
-);
-
-DROP TABLE IF EXISTS track_e_login;
-CREATE TABLE track_e_login (
- login_id int NOT NULL auto_increment,
- login_user_id int unsigned NOT NULL default 0,
- login_date datetime NOT NULL default '0000-00-00 00:00:00',
- login_ip varchar(39) NOT NULL default '',
- logout_date datetime NULL default NULL,
- PRIMARY KEY (login_id),
- KEY login_user_id (login_user_id)
-);
-
-DROP TABLE IF EXISTS track_e_online;
-CREATE TABLE track_e_online (
- login_id int NOT NULL auto_increment,
- login_user_id int unsigned NOT NULL default 0,
- login_date datetime NOT NULL default '0000-00-00 00:00:00',
- login_ip varchar(39) NOT NULL default '',
- course varchar(40) default NULL,
- session_id INT NOT NULL DEFAULT 0,
- access_url_id INT NOT NULL DEFAULT 1,
- PRIMARY KEY (login_id),
- KEY login_user_id (login_user_id)
-);
-DROP TABLE IF EXISTS track_e_open;
-CREATE TABLE track_e_open (
- open_id int NOT NULL auto_increment,
- open_remote_host tinytext NOT NULL,
- open_agent tinytext NOT NULL,
- open_referer tinytext NOT NULL,
- open_date datetime NOT NULL default '0000-00-00 00:00:00',
- PRIMARY KEY (open_id)
-);
-
-DROP TABLE IF EXISTS track_e_uploads;
-CREATE TABLE track_e_uploads (
- upload_id int NOT NULL auto_increment,
- upload_user_id int unsigned default NULL,
- upload_date datetime NOT NULL default '0000-00-00 00:00:00',
- upload_cours_id varchar(40) NOT NULL default '',
- upload_work_id int NOT NULL default 0,
- upload_session_id INT NOT NULL DEFAULT 0,
- PRIMARY KEY (upload_id),
- KEY upload_user_id (upload_user_id),
- KEY upload_cours_id (upload_cours_id)
-);
-
-DROP TABLE IF EXISTS track_e_course_access;
-CREATE TABLE track_e_course_access (
- course_access_id int NOT NULL auto_increment,
- course_code varchar(40) NOT NULL,
- user_id int NOT NULL,
- login_course_date datetime NOT NULL default '0000-00-00 00:00:00',
- logout_course_date datetime default NULL,
- counter int NOT NULL,
- session_id int NOT NULL default 0,
- PRIMARY KEY (course_access_id)
-);
-
-DROP TABLE IF EXISTS track_e_hotspot;
-CREATE TABLE track_e_hotspot (
- hotspot_id int NOT NULL auto_increment,
- hotspot_user_id int NOT NULL,
- hotspot_course_code varchar(50) NOT NULL,
- hotspot_exe_id int NOT NULL,
- hotspot_question_id int NOT NULL,
- hotspot_answer_id int NOT NULL,
- hotspot_correct tinyint(3) unsigned NOT NULL,
- hotspot_coordinate text NOT NULL,
- PRIMARY KEY (hotspot_id),
- KEY hotspot_course_code (hotspot_course_code),
- KEY hotspot_user_id (hotspot_user_id),
- KEY hotspot_exe_id (hotspot_exe_id),
- KEY hotspot_question_id (hotspot_question_id)
-);
-
-DROP TABLE IF EXISTS track_e_item_property;
-
-CREATE TABLE track_e_item_property (
- id int NOT NULL auto_increment PRIMARY KEY,
- course_id int NOT NULL,
- item_property_id int NOT NULL,
- title varchar(255),
- content text,
- progress int NOT NULL default 0,
- lastedit_date datetime NOT NULL default '0000-00-00 00:00:00',
- lastedit_user_id int NOT NULL,
- session_id int NOT NULL default 0
-);
-
-ALTER TABLE track_e_course_access ADD INDEX (user_id);
-ALTER TABLE track_e_course_access ADD INDEX (login_course_date);
-ALTER TABLE track_e_course_access ADD INDEX (course_code);
-ALTER TABLE track_e_course_access ADD INDEX (session_id);
-ALTER TABLE track_e_access ADD INDEX (access_session_id);
-
-ALTER TABLE track_e_online ADD INDEX (course);
-ALTER TABLE track_e_online ADD INDEX (session_id);
-
-ALTER TABLE track_e_item_property ADD INDEX (course_id, item_property_id, session_id);
-ALTER TABLE track_e_downloads ADD INDEX (down_session_id);
-ALTER TABLE track_e_links ADD INDEX (links_session_id);
-ALTER TABLE track_e_uploads ADD INDEX (upload_session_id);
-
---
--- Table structure for LP custom storage API
---
-DROP TABLE IF EXISTS track_stored_values;
-CREATE TABLE IF NOT EXISTS track_stored_values (
- id int unsigned not null AUTO_INCREMENT PRIMARY KEY,
- user_id INT NOT NULL,
- sco_id INT NOT NULL,
- course_id CHAR(40) NOT NULL,
- sv_key CHAR(64) NOT NULL,
- sv_value TEXT NOT NULL
-);
-ALTER TABLE track_stored_values ADD KEY (user_id, sco_id, course_id, sv_key);
-ALTER TABLE track_stored_values ADD UNIQUE (user_id, sco_id, course_id, sv_key);
-
-DROP TABLE IF EXISTS track_stored_value_stack;
-CREATE TABLE IF NOT EXISTS track_stored_values_stack (
- id int unsigned not null AUTO_INCREMENT PRIMARY KEY,
- user_id INT NOT NULL,
- sco_id INT NOT NULL,
- stack_order INT NOT NULL,
- course_id CHAR(40) NOT NULL,
- sv_key CHAR(64) NOT NULL,
- sv_value TEXT NOT NULL
-);
-ALTER TABLE track_stored_values_stack ADD KEY (user_id, sco_id, course_id, sv_key, stack_order);
-ALTER TABLE track_stored_values_stack ADD UNIQUE (user_id, sco_id, course_id, sv_key, stack_order);
-
-DROP TABLE IF EXISTS track_e_attempt_coeff;
-CREATE TABLE track_e_attempt_coeff (
- id int unsigned not null auto_increment primary key,
- attempt_id INT NOT NULL,
- marks_coeff float(6,2)
-);
\ No newline at end of file
diff --git a/main/install/1.9.0/db_user.sql b/main/install/1.9.0/db_user.sql
deleted file mode 100644
index 56d6021447..0000000000
--- a/main/install/1.9.0/db_user.sql
+++ /dev/null
@@ -1,53 +0,0 @@
--- MySQL dump
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
-/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
-/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-
-DROP TABLE IF EXISTS personal_agenda;
-CREATE TABLE personal_agenda (
- id int NOT NULL auto_increment,
- user int unsigned,
- title text,
- `text` text,
- `date` datetime DEFAULT NULL,
- enddate datetime DEFAULT NULL,
- course varchar(255),
- parent_event_id int NULL,
- all_day int NOT NULL DEFAULT 0,
- PRIMARY KEY id (id)
-);
-
-DROP TABLE IF EXISTS personal_agenda_repeat;
-CREATE TABLE personal_agenda_repeat (
- cal_id INT DEFAULT 0 NOT NULL,
- cal_type VARCHAR(20),
- cal_end INT,
- cal_frequency INT DEFAULT 1,
- cal_days CHAR(7),
- PRIMARY KEY (cal_id)
-);
-
-DROP TABLE IF EXISTS personal_agenda_repeat_not;
-CREATE TABLE personal_agenda_repeat_not (
- cal_id INT NOT NULL,
- cal_date INT NOT NULL,
- PRIMARY KEY ( cal_id, cal_date )
-);
-
-DROP TABLE IF EXISTS user_course_category;
-CREATE TABLE user_course_category (
- id int unsigned NOT NULL auto_increment,
- user_id int unsigned NOT NULL default 0,
- title text NOT NULL,
- sort int,
- PRIMARY KEY (id)
-);
-
-ALTER TABLE personal_agenda ADD INDEX idx_personal_agenda_user (user);
-ALTER TABLE personal_agenda ADD INDEX idx_personal_agenda_parent (parent_event_id);
-ALTER TABLE user_course_category ADD INDEX idx_user_c_cat_uid (user_id);
diff --git a/main/install/1.9.0/migrate-db-1.8.8-1.9.0-pre.sql b/main/install/1.9.0/migrate-db-1.8.8-1.9.0-pre.sql
deleted file mode 100755
index 4df8bb7ea2..0000000000
--- a/main/install/1.9.0/migrate-db-1.8.8-1.9.0-pre.sql
+++ /dev/null
@@ -1,326 +0,0 @@
--- This script updates the databases structure before migrating the data from
--- version 1.8.8 (or version 1.8.8.2, 1.8.8.4) to version 1.9.0
--- it is intended as a standalone script, however, because of the multiple
--- databases related difficulties, it should be parsed by a PHP script in
--- order to connect to and update the right databases.
--- There is one line per query, allowing the PHP function file() to read
--- all lines separately into an array. The xxMAINxx-type markers are there
--- to tell the PHP script which database we're talking about.
--- By always using the keyword "TABLE" in the queries, we should be able
--- to retrieve and modify the table name from the PHP script if needed, which
--- will allow us to deal with the unique-database-type installations
---
--- This first part is for the main database
-
--- xxMAINxx
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('filter_terms', NULL, 'textarea', 'Security', '', 'FilterTermsTitle', 'FilterTermsComment', NULL, NULL, 0);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('header_extra_content', NULL, 'textarea', 'Tracking', '', 'HeaderExtraContentTitle', 'HeaderExtraContentComment', NULL, NULL, 1),('footer_extra_content', NULL, 'textarea', 'Tracking', '', 'FooterExtraContentTitle', 'FooterExtraContentComment', NULL, NULL,1);
-
-ALTER TABLE sys_calendar ADD COLUMN all_day INTEGER NOT NULL DEFAULT 0;
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('show_documents_preview', NULL, 'radio', 'Tools', 'false', 'ShowDocumentPreviewTitle', 'ShowDocumentPreviewComment', NULL, NULL, 1);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('show_documents_preview', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('show_documents_preview', 'false', 'No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('htmlpurifier_wiki',NULL,'radio','Editor','false','HtmlPurifierWikiTitle','HtmlPurifierWikiComment',NULL,NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('htmlpurifier_wiki', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('htmlpurifier_wiki', 'false', 'No');
-
--- CAS feature
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('cas_activate', NULL, 'radio', 'CAS', 'false', 'CasMainActivateTitle', 'CasMainActivateComment', NULL, NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) values ('cas_activate', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) values ('cas_activate', 'false', 'No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('cas_server', NULL, 'textfield', 'CAS', '', 'CasMainServerTitle', 'CasMainServerComment', NULL, NULL, 0);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('cas_server_uri', NULL, 'textfield', 'CAS', '', 'CasMainServerURITitle', 'CasMainServerURIComment', NULL, NULL, 0);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('cas_port', NULL, 'textfield', 'CAS', '', 'CasMainPortTitle', 'CasMainPortComment', NULL, NULL, 0);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('cas_protocol', NULL, 'radio', 'CAS', '', 'CasMainProtocolTitle', 'CasMainProtocolComment', NULL, NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) values ('cas_protocol', 'CAS1', 'CAS1Text');
-INSERT INTO settings_options (variable, value, display_text) values ('cas_protocol', 'CAS2', 'CAS2Text');
-INSERT INTO settings_options (variable, value, display_text) values ('cas_protocol', 'SAML', 'SAMLText');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('cas_add_user_activate', NULL, 'radio', 'CAS', 'false', 'CasUserAddActivateTitle', 'CasUserAddActivateComment', NULL, NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) values ('cas_add_user_activate', 'platform', 'casAddUserActivatePlatform');
-INSERT INTO settings_options (variable, value, display_text) values ('cas_add_user_activate', 'extldap', 'casAddUserActivateLDAP');
-INSERT INTO settings_options (variable, value, display_text) values ('cas_add_user_activate', 'false', 'No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('update_user_info_cas_with_ldap', NULL, 'radio', 'CAS', 'true', 'UpdateUserInfoCasWithLdapTitle', 'UpdateUserInfoCasWithLdapComment', NULL, NULL, 0)
-
--- Custom Pages
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('use_custom_pages', NULL, 'radio','Platform','false','UseCustomPagesTitle','UseCustomPagesComment', NULL, NULL, 1);
-INSERT INTO settings_options (variable, value, display_text) values ('use_custom_pages', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) values ('use_custom_pages', 'false', 'No');
-
--- Pages after login by role
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('student_page_after_login', NULL, 'textfield', 'Platform', '', 'StudentPageAfterLoginTitle', 'StudentPageAfterLoginComment', NULL, NULL, 0);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('teacher_page_after_login', NULL, 'textfield', 'Platform', '', 'TeacherPageAfterLoginTitle', 'TeacherPageAfterLoginComment', NULL, NULL, 0);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('drh_page_after_login', NULL, 'textfield', 'Platform', '', 'DRHPageAfterLoginTitle', 'DRHPageAfterLoginComment', NULL, NULL, 0);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('sessionadmin_page_after_login', NULL, 'textfield', 'Session', '', 'SessionAdminPageAfterLoginTitle', 'SessionAdminPageAfterLoginComment', NULL, NULL, 0);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('student_autosubscribe', NULL, 'textfield', 'Platform', '', 'StudentAutosubscribeTitle', 'StudentAutosubscribeComment', NULL, NULL, 0);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('teacher_autosubscribe', NULL, 'textfield', 'Platform', '', 'TeacherAutosubscribeTitle', 'TeacherAutosubscribeComment', NULL, NULL, 0);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('drh_autosubscribe', NULL, 'textfield', 'Platform', '', 'DRHAutosubscribeTitle', 'DRHAutosubscribeComment', NULL, NULL, 0);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('sessionadmin_autosubscribe', NULL, 'textfield', 'Session', '', 'SessionadminAutosubscribeTitle', 'SessionadminAutosubscribeComment', NULL, NULL, 0);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('show_tabs', 'custom_tab_1', 'checkbox', 'Platform', 'true', 'ShowTabsTitle', 'ShowTabsComment', NULL, 'TabsCustom1', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('show_tabs', 'custom_tab_2', 'checkbox', 'Platform', 'false', 'ShowTabsTitle', 'ShowTabsComment', NULL, 'TabsCustom2', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('show_tabs', 'custom_tab_3', 'checkbox', 'Platform', 'false', 'ShowTabsTitle', 'ShowTabsComment', NULL, 'TabsCustom3', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('languagePriority1', NULL, 'radio', 'Languages', 'course_lang', 'LanguagePriority1Title', 'LanguagePriority1Comment', NULL, NULL, 0);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('languagePriority2', NULL, 'radio', 'Languages', 'user_profil_lang', 'LanguagePriority2Title', 'LanguagePriority2Comment', NULL, NULL, 0);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('languagePriority3', NULL, 'radio', 'Languages', 'user_selected_lang', 'LanguagePriority3Title', 'LanguagePriority3Comment', NULL, NULL, 0);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('languagePriority4', NULL, 'radio', 'Languages', 'platform_lang', 'LanguagePriority4Title', 'LanguagePriority4Comment', NULL, NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('languagePriority1','platform_lang','PlatformLanguage'), ('languagePriority1','user_profil_lang','UserLanguage'), ('languagePriority1','user_selected_lang','UserSelectedLanguage'), ('languagePriority1','course_lang','CourseLanguage'), ('languagePriority2','platform_lang','PlatformLanguage'), ('languagePriority2','user_profil_lang','UserLanguage'), ('languagePriority2','user_selected_lang','UserSelectedLanguage'), ('languagePriority2','course_lang','CourseLanguage'), ('languagePriority3','platform_lang','PlatformLanguage'), ('languagePriority3','user_profil_lang','UserLanguage'), ('languagePriority3','user_selected_lang','UserSelectedLanguage'), ('languagePriority3','course_lang','CourseLanguage'), ('languagePriority4','platform_lang','PlatformLanguage'), ('languagePriority4','user_profil_lang','UserLanguage'), ('languagePriority4','user_selected_lang','UserSelectedLanguage'), ('languagePriority4','course_lang','CourseLanguage');
--- Email is login
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('login_is_email', NULL, 'radio', 'Platform', 'false', 'LoginIsEmailTitle', 'LoginIsEmailComment', NULL, NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('login_is_email','true','Yes'),('login_is_email','false','No') ;
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('scorm_cumulative_session_time', NULL, 'radio', 'Course', 'true', 'ScormCumulativeSessionTimeTitle', 'ScormCumulativeSessionTimeComment', NULL, NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('scorm_cumulative_session_time','true','Yes'), ('scorm_cumulative_session_time','false','No');
-CREATE TABLE event_type ( id int unsigned NOT NULL AUTO_INCREMENT, name varchar(50) NOT NULL, name_lang_var varchar(50) NOT NULL, desc_lang_var varchar(50) NOT NULL, extendable_variables varchar(255) NOT NULL, PRIMARY KEY (id));
-ALTER TABLE event_type ADD INDEX ( name );
-CREATE TABLE event_type_email_template ( id int unsigned NOT NULL AUTO_INCREMENT, event_type_id int NOT NULL, language_id int NOT NULL, message text NOT NULL, subject varchar(60) NOT NULL, PRIMARY KEY (id));
-ALTER TABLE event_type_email_template ADD INDEX ( language_id );
-INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable) values (1, 'already_logged_in','Already logged in',0,0);
-INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable) values (1, 'update_type','Update script type',0,0);
-CREATE TABLE announcement_rel_group (group_id int NOT NULL, announcement_id int NOT NULL, PRIMARY KEY (group_id, announcement_id));
-CREATE TABLE group_rel_group ( id int NOT NULL AUTO_INCREMENT, group_id int NOT NULL, subgroup_id int NOT NULL, relation_type int NOT NULL, PRIMARY KEY (id));
-ALTER TABLE group_rel_group ADD INDEX ( group_id );
-ALTER TABLE group_rel_group ADD INDEX ( subgroup_id );
-ALTER TABLE group_rel_group ADD INDEX ( relation_type );
-
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('gradebook_enable_grade_model', NULL, 'radio', 'Gradebook', 'false', 'GradebookEnableGradeModelTitle', 'GradebookEnableGradeModelComment', NULL, NULL, 1);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('gradebook_enable_grade_model', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('gradebook_enable_grade_model', 'false', 'No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('teachers_can_change_grade_model_settings', NULL, 'radio', 'Gradebook', 'true', 'TeachersCanChangeGradeModelSettingsTitle', 'TeachersCanChangeGradeModelSettingsComment', NULL, NULL, 1);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('teachers_can_change_grade_model_settings', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('teachers_can_change_grade_model_settings', 'false', 'No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('gradebook_locking_enabled', NULL, 'radio', 'Gradebook', 'false', 'GradebookEnableLockingTitle', 'GradebookEnableLockingComment', NULL, NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('gradebook_locking_enabled', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('gradebook_locking_enabled', 'false', 'No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('teachers_can_change_score_settings', NULL, 'radio', 'Gradebook', 'true', 'TeachersCanChangeScoreSettingsTitle', 'TeachersCanChangeScoreSettingsComment', NULL, NULL, 1);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('teachers_can_change_score_settings', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('teachers_can_change_score_settings', 'false', 'No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('allow_users_to_change_email_with_no_password', NULL, 'radio', 'User', 'false', 'AllowUsersToChangeEmailWithNoPasswordTitle', 'AllowUsersToChangeEmailWithNoPasswordComment', NULL, NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_users_to_change_email_with_no_password', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_users_to_change_email_with_no_password', 'false', 'No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('allow_session_admins_to_manage_all_sessions', NULL, 'radio', 'Session', 'false', 'AllowSessionAdminsToSeeAllSessionsTitle', 'AllowSessionAdminsToSeeAllSessionsComment', NULL, NULL, 1);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_session_admins_to_manage_all_sessions', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_session_admins_to_manage_all_sessions', 'false', 'No');
-
--- Shibboleth and Facebook auth and ldap
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('shibboleth_description', NULL, 'radio', 'Shibboleth', 'false', 'ShibbolethMainActivateTitle', 'ShibbolethMainActivateComment', NULL, NULL, 0);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('facebook_description', NULL, 'radio', 'Facebook', 'false', 'FacebookMainActivateTitle', 'FacebookMainActivateComment', NULL, NULL, 0);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('ldap_description', NULL, 'radio', 'LDAP', NULL, 'LdapDescriptionTitle', 'LdapDescriptionComment', NULL, NULL, 0);
-
-ALTER TABLE course_rel_user ADD COLUMN legal_agreement INTEGER DEFAULT 0;
-ALTER TABLE session_rel_course_rel_user ADD COLUMN legal_agreement INTEGER DEFAULT 0;
-ALTER TABLE course ADD COLUMN legal TEXT NOT NULL;
-ALTER TABLE course ADD COLUMN activate_legal INT NOT NULL DEFAULT 0;
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('enable_help_link', NULL, 'radio', 'Platform', 'true', 'EnableHelpLinkTitle', 'EnableHelpLinkComment', NULL, NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enable_help_link', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enable_help_link', 'false', 'No');
-
-ALTER TABLE gradebook_category MODIFY COLUMN weight FLOAT NOT NULL;
-ALTER TABLE gradebook_link MODIFY COLUMN weight FLOAT NOT NULL;
-ALTER TABLE gradebook_link ADD COLUMN locked INT DEFAULT 0;
-ALTER TABLE gradebook_category ADD COLUMN locked INT DEFAULT 0;
-ALTER TABLE gradebook_category ADD COLUMN default_lowest_eval_exclude TINYINT default null;
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('allow_hr_skills_management', NULL, 'radio', 'Gradebook', 'true', 'AllowHRSkillsManagementTitle', 'AllowHRSkillsManagementComment', NULL, NULL, 1);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_hr_skills_management', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_hr_skills_management', 'false', 'No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('show_admin_toolbar', NULL, 'radio', 'Platform', 'show_to_admin', 'ShowAdminToolbarTitle', 'ShowAdminToolbarComment', NULL, NULL, 1);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('show_admin_toolbar', 'do_not_show', 'DoNotShow');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('show_admin_toolbar', 'show_to_admin', 'ShowToAdminsOnly');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('show_admin_toolbar', 'show_to_admin_and_teachers', 'ShowToAdminsAndTeachers');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('show_admin_toolbar', 'show_to_all', 'ShowToAllUsers');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('allow_global_chat', NULL, 'radio', 'Platform', 'true', 'AllowGlobalChatTitle', 'AllowGlobalChatComment', NULL, NULL, 1);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_global_chat', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_global_chat', 'false', 'No');
-
-CREATE TABLE chat (id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, from_user INTEGER, to_user INTEGER, message TEXT NOT NULL, sent DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', recd INTEGER UNSIGNED NOT NULL DEFAULT 0, PRIMARY KEY (id));
-ALTER TABLE chat ADD INDEX idx_chat_to_user (to_user);
-ALTER TABLE chat ADD INDEX idx_chat_from_user (from_user);
-
-INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable) VALUES (1, 'google_calendar_url','Google Calendar URL',0,0);
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('courses_default_creation_visibility', NULL, 'radio', 'Course', '2', 'CoursesDefaultCreationVisibilityTitle', 'CoursesDefaultCreationVisibilityComment', NULL, NULL, 1);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('courses_default_creation_visibility', '3', 'OpenToTheWorld');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('courses_default_creation_visibility', '2', 'OpenToThePlatform');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('courses_default_creation_visibility', '1', 'Private');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('courses_default_creation_visibility', '0', 'CourseVisibilityClosed');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('allow_browser_sniffer', NULL, 'radio', 'Tuning', 'false', 'AllowBrowserSnifferTitle', 'AllowBrowserSnifferComment', NULL, NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_browser_sniffer', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_browser_sniffer', 'false', 'No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('enable_wami_record', NULL, 'radio', 'Tools', 'false', 'EnableWamiRecordTitle', 'EnableWamiRecordComment', NULL, NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enable_wami_record', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enable_wami_record', 'false', 'No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('allow_public_certificates', NULL, 'radio', 'Course', 'false', 'AllowPublicCertificatesTitle', 'AllowPublicCertificatesComment', NULL, NULL, 1);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_public_certificates', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_public_certificates', 'false', 'No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('enable_iframe_inclusion', NULL, 'radio', 'Editor', 'false', 'EnableIframeInclusionTitle', 'EnableIframeInclusionComment', NULL, NULL, 1);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enable_iframe_inclusion', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enable_iframe_inclusion', 'false', 'No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('show_hot_courses', NULL, 'radio', 'Platform', 'true', 'ShowHotCoursesTitle', 'ShowHotCoursesComment', NULL, NULL, 1);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('show_hot_courses', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('show_hot_courses', 'false', 'No');
-
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('gradebook_default_weight', NULL, 'textfield', 'Gradebook', '100', 'GradebookDefaultWeightTitle', 'GradebookDefaultWeightComment', NULL, NULL, 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('gradebook_default_grade_model_id', NULL, 'select', 'Gradebook', '', 'GradebookDefaultGradeModelTitle', 'GradebookDefaultGradeModelComment', NULL, NULL, 1);
-
-UPDATE settings_current SET category = 'Session' WHERE variable IN ('show_tutor_data', 'use_session_mode', 'add_users_by_coach', 'show_session_coach', 'show_session_data', 'allow_coach_to_edit_course_session','hide_courses_in_sessions', 'show_groups_to_users');
-
-INSERT INTO language (original_name, english_name, isocode, dokeos_folder, available) VALUES ('বাংলা','bengali','bn','bengali',0), ('الصومالية','somali','so','somali',0);
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('enable_webcam_clip', NULL, 'radio', 'Tools', 'false', 'EnableWebCamClipTitle', 'EnableWebCamClipComment', NULL, NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enable_webcam_clip', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('enable_webcam_clip', 'false', 'No');
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('tool_visible_by_default_at_creation','documents','checkbox','Tools','true','ToolVisibleByDefaultAtCreationTitle','ToolVisibleByDefaultAtCreationComment',NULL,'Documents', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('tool_visible_by_default_at_creation','learning_path','checkbox','Tools','true','ToolVisibleByDefaultAtCreationTitle','ToolVisibleByDefaultAtCreationComment',NULL,'LearningPath', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('tool_visible_by_default_at_creation','links','checkbox','Tools','true','ToolVisibleByDefaultAtCreationTitle','ToolVisibleByDefaultAtCreationComment',NULL,'Links', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('tool_visible_by_default_at_creation','announcements','checkbox','Tools','true','ToolVisibleByDefaultAtCreationTitle','ToolVisibleByDefaultAtCreationComment',NULL,'Announcements', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('tool_visible_by_default_at_creation','forums','checkbox','Tools','true','ToolVisibleByDefaultAtCreationTitle','ToolVisibleByDefaultAtCreationComment',NULL,'Forums', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('tool_visible_by_default_at_creation','quiz','checkbox','Tools','true','ToolVisibleByDefaultAtCreationTitle','ToolVisibleByDefaultAtCreationComment',NULL,'Quiz', 1);
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('tool_visible_by_default_at_creation','gradebook','checkbox','Tools','true','ToolVisibleByDefaultAtCreationTitle','ToolVisibleByDefaultAtCreationComment',NULL,'Gradebook', 1);
-
--- Course ranking
-CREATE TABLE track_course_ranking (id int unsigned not null PRIMARY KEY AUTO_INCREMENT, c_id int unsigned not null, session_id int unsigned not null default 0, url_id int unsigned not null default 0, accesses int unsigned not null default 0, total_score int unsigned not null default 0, users int unsigned not null default 0, creation_date datetime not null);
-
-ALTER TABLE track_course_ranking ADD INDEX idx_tcc_cid (c_id);
-ALTER TABLE track_course_ranking ADD INDEX idx_tcc_sid (session_id);
-ALTER TABLE track_course_ranking ADD INDEX idx_tcc_urlid (url_id);
-ALTER TABLE track_course_ranking ADD INDEX idx_tcc_creation_date (creation_date);
-
-CREATE TABLE user_rel_course_vote ( id int unsigned not null AUTO_INCREMENT PRIMARY KEY, c_id int unsigned not null, user_id int unsigned not null, session_id int unsigned not null default 0, url_id int unsigned not null default 0, vote int unsigned not null default 0);
-
-ALTER TABLE user_rel_course_vote ADD INDEX idx_ucv_cid (c_id);
-ALTER TABLE user_rel_course_vote ADD INDEX idx_ucv_uid (user_id);
-ALTER TABLE user_rel_course_vote ADD INDEX idx_ucv_cuid (user_id, c_id);
-
---User chat status
-INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable) VALUES (1, 'user_chat_status','User chat status', 0, 0);
-UPDATE settings_current SET selected_value = 'true' WHERE variable = 'more_buttons_maximized_mode';
-
---Grade model
-CREATE TABLE grade_model (id INTEGER NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, description TEXT, default_lowest_eval_exclude TINYINT default null, default_external_eval_prefix VARCHAR(140) default null, PRIMARY KEY (id));
-CREATE TABLE grade_components (id INTEGER NOT NULL AUTO_INCREMENT, percentage VARCHAR(255) NOT NULL, title VARCHAR(255) NOT NULL, acronym VARCHAR(255) NOT NULL, grade_model_id INTEGER NOT NULL, PRIMARY KEY (id));
-ALTER TABLE gradebook_category ADD COLUMN grade_model_id INT DEFAULT 0;
-
-UPDATE settings_current SET title = 'DatabaseVersion' WHERE variable = 'chamilo_database_version';
-ALTER TABLE gradebook_evaluation MODIFY COLUMN weight FLOAT NOT NULL;
-
-INSERT INTO settings_options(variable, value, display_text) VALUES ('page_after_login', 'main/auth/courses.php', 'CourseCatalog');
-
-ALTER TABLE settings_current ADD COLUMN access_url_locked INTEGER NOT NULL DEFAULT 0;
-
--- Event mail
-CREATE TABLE event_email_template ( id int NOT NULL AUTO_INCREMENT, message text, subject varchar(255) DEFAULT NULL, event_type_name varchar(255) DEFAULT NULL, activated tinyint NOT NULL DEFAULT '0', language_id int DEFAULT NULL, PRIMARY KEY (id));
-ALTER TABLE event_email_template ADD INDEX event_name_index (event_type_name);
-
-CREATE TABLE event_sent ( id int NOT NULL AUTO_INCREMENT, user_from int NOT NULL, user_to int DEFAULT NULL, event_type_name varchar(100) DEFAULT NULL, PRIMARY KEY (id));
-ALTER TABLE event_sent ADD INDEX event_name_index (event_type_name);
-
-CREATE TABLE user_rel_event_type ( id int NOT NULL AUTO_INCREMENT, user_id int NOT NULL, event_type_name varchar(255) NOT NULL, PRIMARY KEY (id));
-ALTER TABLE user_rel_event_type ADD INDEX event_name_index (event_type_name);
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('activate_email_template', NULL, 'radio', 'Platform', 'false', 'ActivateEmailTemplateTitle', 'ActivateEmailTemplateComment', NULL, NULL, 0);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('activate_email_template', 'true', 'Yes'),('activate_email_template', 'false', 'No');
-
--- Skills
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('allow_skills_tool', NULL, 'radio', 'Platform', 'false', 'AllowSkillsToolTitle', 'AllowSkillsToolComment', NULL, NULL, 1);
-INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_skills_tool', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_skills_tool', 'false', 'No');
-
-CREATE TABLE IF NOT EXISTS skill ( id int NOT NULL AUTO_INCREMENT, name varchar(255) NOT NULL, short_code varchar(100) NOT NULL, description TEXT NOT NULL, access_url_id int NOT NULL, icon varchar(255) NOT NULL, PRIMARY KEY (id));
-INSERT INTO skill (name) VALUES ('Root');
-
-CREATE TABLE IF NOT EXISTS skill_rel_gradebook ( id int NOT NULL AUTO_INCREMENT, gradebook_id int NOT NULL, skill_id int NOT NULL, type varchar(10) NOT NULL, PRIMARY KEY (id));
-CREATE TABLE IF NOT EXISTS skill_rel_skill (id int NOT NULL AUTO_INCREMENT, skill_id int NOT NULL, parent_id int NOT NULL, relation_type int NOT NULL, level int NOT NULL, PRIMARY KEY (id));
-INSERT INTO skill_rel_skill VALUES(1, 1, 0, 0, 0);
-
-CREATE TABLE IF NOT EXISTS skill_rel_user ( id int NOT NULL AUTO_INCREMENT, user_id int NOT NULL, skill_id int NOT NULL, acquired_skill_at datetime NOT NULL DEFAULT '0000-00-00 00:00:00',assigned_by int NOT NULL,PRIMARY KEY (id));
-CREATE TABLE IF NOT EXISTS skill_profile ( id INTEGER NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, description TEXT NOT NULL, PRIMARY KEY (id));
-CREATE TABLE IF NOT EXISTS skill_rel_profile ( id INTEGER NOT NULL AUTO_INCREMENT, skill_id INTEGER NOT NULL, profile_id INTEGER NOT NULL, PRIMARY KEY (id));
-
--- Removing use_document_title
-DELETE FROM settings_current WHERE variable = 'use_document_title';
-DELETE FROM settings_options WHERE variable = 'use_document_title';
-
-ALTER TABLE course MODIFY COLUMN disk_quota bigint unsigned DEFAULT NULL;
-ALTER TABLE user MODIFY COLUMN username VARCHAR(100) NOT NULL;
-
-UPDATE language SET english_name = 'basque' , dokeos_folder = 'basque' where english_name = 'euskera';
-UPDATE language SET english_name = 'turkish', dokeos_folder = 'turkish' where english_name = 'turkce';
-
-INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('platform_unsubscribe_allowed', NULL, 'radio', 'Platform', 'false', 'PlatformUnsubscribeTitle', 'PlatformUnsubscribeComment', NULL, NULL, 1);
-INSERT INTO settings_options (variable, value, display_text) values ('platform_unsubscribe_allowed', 'true', 'Yes');
-INSERT INTO settings_options (variable, value, display_text) values ('platform_unsubscribe_allowed', 'false', 'No');
-
-ALTER TABLE usergroup_rel_session ADD COLUMN id INTEGER NOT NULL AUTO_INCREMENT, ADD PRIMARY KEY (id);
-ALTER TABLE usergroup_rel_course ADD COLUMN id INTEGER NOT NULL AUTO_INCREMENT, ADD PRIMARY KEY (id);
-ALTER TABLE usergroup_rel_user ADD COLUMN id INTEGER NOT NULL AUTO_INCREMENT, ADD PRIMARY KEY (id);
-ALTER TABLE admin ADD COLUMN id INTEGER NOT NULL AUTO_INCREMENT, ADD PRIMARY KEY (id);
-ALTER TABLE reservation_category_rights ADD COLUMN id INTEGER NOT NULL AUTO_INCREMENT, ADD PRIMARY KEY (id);
-
-
-CREATE TABLE course_type (id int unsigned not null auto_increment primary key, name varchar(50) not null, translation_var char(40) default 'UndefinedCourseTypeLabel', description TEXT default '', props text default '');
-
-INSERT INTO course_type (id, name) VALUES (1, 'All tools');
-INSERT INTO course_type (id, name) VALUES (2, 'Entry exam');
-
-ALTER TABLE course add course_type_id int unsigned default 1;
-
-CREATE TABLE usergroup_rel_question (id int unsigned not null auto_increment primary key, c_id int unsigned not null, question_id int unsigned not null, usergroup_id int unsigned not null, coefficient float(6,2));
-
--- Remove settings entry that doesnt exist anymore
-
-DELETE FROM settings_current WHERE variable = 'read_more_limit';
-DELETE FROM settings_current WHERE variable = 'user_order_by';
-DELETE FROM settings_options WHERE variable = 'user_order_by';
-
-ALTER TABLE user_api_key ADD COLUMN api_end_point text DEFAULT NULL;
-ALTER TABLE user_api_key ADD COLUMN created_date datetime DEFAULT NULL;
-ALTER TABLE user_api_key ADD COLUMN validity_start_date datetime DEFAULT NULL;
-ALTER TABLE user_api_key ADD COLUMN validity_end_date datetime DEFAULT NULL;
-ALTER TABLE user_api_key ADD COLUMN description text DEFAULT NULL;
-
--- Do not move this query
-UPDATE settings_current SET selected_value = '1.9.0.18715' WHERE variable = 'chamilo_database_version';
-
--- xxSTATSxx
-ALTER TABLE track_e_default MODIFY COLUMN default_value TEXT;
-ALTER TABLE track_e_exercices ADD COLUMN questions_to_check TEXT NOT NULL DEFAULT '';
---CREATE TABLE track_filtered_terms (id int, user_id int, course_id int, session_id int, tool_id char(12), filtered_term varchar(255), created_at datetime);
-CREATE TABLE track_stored_values (id int unsigned not null AUTO_INCREMENT PRIMARY KEY, user_id INT NOT NULL, sco_id INT NOT NULL, course_id CHAR(40) NOT NULL, sv_key CHAR(64) NOT NULL, sv_value TEXT NOT NULL);
-ALTER TABLE track_stored_values ADD KEY (user_id, sco_id, course_id, sv_key);
-ALTER TABLE track_stored_values ADD UNIQUE (user_id, sco_id, course_id, sv_key);
-
-CREATE TABLE track_stored_values_stack (id int unsigned not null AUTO_INCREMENT PRIMARY KEY,user_id INT NOT NULL, sco_id INT NOT NULL, stack_order INT NOT NULL, course_id CHAR(40) NOT NULL, sv_key CHAR(64) NOT NULL, sv_value TEXT NOT NULL);
-ALTER TABLE track_stored_values_stack ADD KEY (user_id, sco_id, course_id, sv_key, stack_order);
-ALTER TABLE track_stored_values_stack ADD UNIQUE (user_id, sco_id, course_id, sv_key, stack_order);
-
-ALTER TABLE track_e_attempt ADD COLUMN filename VARCHAR(255) DEFAULT NULL;
-ALTER TABLE track_e_default ADD COLUMN c_id INTEGER DEFAULT NULL;
-
-ALTER TABLE track_e_attempt_recording ADD COLUMN id INTEGER NOT NULL AUTO_INCREMENT, ADD PRIMARY KEY (id);
-ALTER TABLE track_e_attempt ADD COLUMN id INTEGER NOT NULL AUTO_INCREMENT, ADD PRIMARY KEY (id);
-ALTER TABLE track_e_hotpotatoes ADD COLUMN id INTEGER NOT NULL AUTO_INCREMENT, ADD PRIMARY KEY (id);
-
-CREATE TABLE track_e_attempt_coeff ( id int unsigned not null auto_increment primary key, attempt_id INT NOT NULL, marks_coeff float(6,2));
-
--- xxUSERxx
-ALTER TABLE personal_agenda ADD COLUMN all_day INTEGER NOT NULL DEFAULT 0;
\ No newline at end of file
diff --git a/main/install/1.9.0/update-db-1.8.8-1.9.0.inc.php b/main/install/1.9.0/update-db-1.8.8-1.9.0.inc.php
deleted file mode 100755
index 84cfe96bcf..0000000000
--- a/main/install/1.9.0/update-db-1.8.8-1.9.0.inc.php
+++ /dev/null
@@ -1,539 +0,0 @@
-beginTransaction();
-
- $singleDbForm = isset($_configuration['single_database']) ? $_configuration['single_database'] : false;
- $dbNameForm = $_configuration['main_database'];
- $dbStatsForm = isset($_configuration['statistics_database']) ? $_configuration['statistics_database'] : $_configuration['main_database'];
- $dbUserForm = isset($_configuration['user_personal_database']) ? $_configuration['user_personal_database'] : $_configuration['main_database'];
-
- //Migrate classes to the new classes (usergroups)
-
- $sql = "SELECT selected_value FROM $dbNameForm.settings_current WHERE variable='use_session_mode' ";
- $result = iDatabase::query($sql);
- $result = Database::fetch_array($result);
- $session_mode = $result['selected_value'];
-
- if ($session_mode == 'true') {
-
- $sql = "UPDATE settings_current SET selected_value = 'true' WHERE variable='use_session_mode' ";
- $mainConnection->executeQuery($sql);
-
- $sql = "SELECT * FROM $dbNameForm.class";
- $result = iDatabase::query($sql);
- $count = 0;
- $new_table = "$dbNameForm.usergroup";
- $classes_added = 0;
- $mapping_classes = array();
-
- if (Database::num_rows($result)) {
- $output->writeln('Moving classes to usergroups ');
- while($row = iDatabase::fetch_array($result, 'ASSOC')) {
- $old_id = $row['id'];
- unset($row['id']);
- unset($row['code']);
- $new_user_group_id = Database::insert($new_table, $row);
-
- if (is_numeric($new_user_group_id)) {
- $mapping_classes[$old_id] = $new_user_group_id;
- $classes_added ++;
- }
- }
- $output->writeln("Classes added: $classes_added");
- }
-
- $sql = "SELECT * FROM $dbNameForm.class_user";
- $result = iDatabase::query($sql);
- $new_table = "$dbNameForm.usergroup_rel_user";
-
- if (Database::num_rows($result)) {
- $output->writeln('Moving users from class_user to usergroup_rel_user ');
- while ($row = iDatabase::fetch_array($result, 'ASSOC')) {
- $values = array(
- 'usergroup_id' => $mapping_classes[$row['class_id']],
- 'user_id' => $row['user_id']
- );
- Database::insert($new_table, $values);
- $output->writeln("Saving : ".implode(', ', $values));
- }
- }
-
- $sql = "SELECT * FROM $dbNameForm.course_rel_class";
- $result = iDatabase::query($sql);
-
- $new_table = "$dbNameForm.usergroup_rel_course";
-
- if (Database::num_rows($result)) {
- $output->writeln("Moving course_rel_class to usergroup_rel_course");
-
- while ($row = iDatabase::fetch_array($result, 'ASSOC')) {
- $course_code = $row['course_code'];
- $course_code = addslashes($course_code);
- $sql_course = "SELECT id from $dbNameForm.course WHERE code = '$course_code'";
- $result_course = iDatabase::query($sql_course);
- $result_course = Database::fetch_array($result_course);
- $course_id = $result_course['id'];
- $values = array(
- 'usergroup_id' => $mapping_classes[$row['class_id']],
- 'course_id' => $course_id
- );
- Database::insert($new_table, $values);
- $output->writeln("Saving : ".implode(', ', $values));
- }
- }
- }
-
- //Moving Stats DB to the main DB
-
- $stats_table = array(
- "track_c_browsers",
- "track_c_countries",
- "track_c_os",
- "track_c_providers",
- "track_c_referers",
- "track_e_access",
- "track_e_attempt",
- "track_e_attempt_recording",
- "track_e_course_access",
- "track_e_default",
- "track_e_downloads",
- "track_e_exercices",
- "track_e_hotpotatoes",
- "track_e_hotspot",
- "track_e_item_property",
- "track_e_lastaccess",
- "track_e_links",
- "track_e_login",
- "track_e_online",
- "track_e_open",
- "track_e_uploads",
- "track_stored_values",
- "track_stored_values_stack",
- );
-
- if ($dbNameForm != $dbStatsForm) {
- iDatabase::select_db($dbStatsForm);
- foreach ($stats_table as $stat_table) {
- $sql = "ALTER TABLE $dbStatsForm.$stat_table RENAME $dbNameForm.$stat_table";
- Database::query($sql);
- $output->writeln($sql);
- }
- iDatabase::select_db($dbNameForm);
- }
-
- //Moving user database to the main database
- $users_tables = array(
- "personal_agenda",
- "personal_agenda_repeat",
- "personal_agenda_repeat_not",
- "user_course_category"
- );
-
- if ($dbNameForm != $dbUserForm) {
- iDatabase::select_db($dbUserForm);
- foreach ($users_tables as $table) {
- $sql = "ALTER TABLE $dbUserForm.$table RENAME $dbNameForm.$table";
- iDatabase::query($sql);
- $output->writeln($sql);
- }
- iDatabase::select_db($dbNameForm);
- }
-
- //Adding admin user in the access_url_rel_user table
- $sql = "SELECT user_id FROM admin WHERE user_id = 1";
- $result = iDatabase::query($sql);
- $has_user_id = Database::num_rows($result) > 0;
-
- $sql = "SELECT * FROM access_url_rel_user WHERE user_id = 1 AND access_url_id = 1";
- $result = iDatabase::query($sql);
- $has_entry = Database::num_rows($result) > 0;
-
- if ($has_user_id && !$has_entry) {
- $sql = "INSERT INTO access_url_rel_user VALUES(1, 1)";
- iDatabase::query($sql);
- $output->writeln($sql);
- }
- $output->writeln("Dropping c_* tables ...");
- $this->dropCourseTables();
-
- $output->writeln("Creating c_* tables ...");
- $this->createCourseTables($output);
-
- $prefix = '';
- if ($singleDbForm) {
- $prefix = $_configuration['table_prefix'];
- }
-
- $app['monolog']->addInfo("Database prefix: '$prefix'");
-
- iDatabase::select_db($dbNameForm);
- $res = iDatabase::query("SELECT id, code, db_name, directory, course_language, id as real_id FROM course WHERE target_course_code IS NULL ORDER BY code");
-
- if ($res === false) { die('Error while querying the courses list in update_db-1.8.8-1.9.0.inc.php'); }
-
- $errors = array();
-
- if (iDatabase::num_rows($res) > 0) {
- $i = 0;
- $list = array();
- while ($row = iDatabase::fetch_array($res)) {
- $list[] = $row;
- $i++;
- }
-
- $output->writeln("Moving old course tables to the new structure 1 single database");
-
- $progress = $this->getHelperSet()->get('progress');
- $progress->start($output, count($list));
-
- foreach ($list as $row_course) {
- if (!$singleDbForm) {
- // otherwise just use the main one
- iDatabase::select_db($row_course['db_name']);
- }
-
- if (!$singleDbForm) {
- // otherwise just use the main one
- iDatabase::select_db($row_course['db_name']);
- } else {
- iDatabase::select_db($dbNameForm);
- }
-
- //Course tables to be migrated
- $table_list = array(
- 'announcement',
- 'announcement_attachment',
- 'attendance',
- 'attendance_calendar',
- 'attendance_result',
- 'attendance_sheet',
- 'attendance_sheet_log',
- 'blog',
- 'blog_attachment',
- 'blog_comment',
- 'blog_post',
- 'blog_rating',
- 'blog_rel_user',
- 'blog_task',
- 'blog_task_rel_user',
- 'calendar_event',
- 'calendar_event_attachment',
- 'calendar_event_repeat',
- 'calendar_event_repeat_not',
- 'chat_connected',
- 'course_description',
- 'course_setting',
- 'document',
- 'dropbox_category',
- 'dropbox_feedback',
- 'dropbox_file',
- 'dropbox_person',
- 'dropbox_post',
- 'forum_attachment',
- 'forum_category',
- 'forum_forum',
- 'forum_mailcue',
- 'forum_notification',
- 'forum_post',
- 'forum_thread',
- 'forum_thread_qualify',
- 'forum_thread_qualify_log',
- 'glossary',
- 'group_category',
- 'group_info',
- 'group_rel_tutor',
- 'group_rel_user',
- 'item_property',
- 'link',
- 'link_category',
- 'lp',
- 'lp_item',
- 'lp_item_view',
- 'lp_iv_interaction',
- 'lp_iv_objective',
- 'lp_view',
- 'notebook',
- 'metadata',
- 'online_connected',
- 'online_link',
- 'permission_group',
- 'permission_task',
- 'permission_user',
- 'quiz',
- 'quiz_answer',
- 'quiz_question',
- 'quiz_question_option',
- 'quiz_rel_question',
- 'resource',
- 'role',
- 'role_group',
- 'role_permissions',
- 'role_user',
- 'student_publication',
- 'student_publication_assignment',
- 'survey',
- 'survey_answer',
- 'survey_group',
- 'survey_invitation',
- 'survey_question',
- 'survey_question_option',
- 'thematic',
- 'thematic_advance',
- 'thematic_plan',
- 'tool',
- 'tool_intro',
- 'userinfo_content',
- 'userinfo_def',
- 'wiki',
- 'wiki_conf',
- 'wiki_discuss',
- 'wiki_mailcue'
- );
-
- $output->writeln('');
- $output->writeln('Course DB'.$row_course['db_name']);
-
- $old_count = 0;
- foreach ($table_list as $table) {
- $just_table_name = $table;
- $old_table = $row_course['db_name'].".".$table;
-
- if ($singleDbForm) {
- $old_table = "$prefix{$row_course['db_name']}_".$table;
- $just_table_name = "$prefix{$row_course['db_name']}_".$table;
- }
-
- $course_id = $row_course['id'];
- $new_table = DB_COURSE_PREFIX.$table;
-
- //Use the old database (if this is the case)
-
- if (!$singleDbForm) {
- // otherwise just use the main one
- iDatabase::select_db($row_course['db_name']);
- } else {
- iDatabase::select_db($dbNameForm);
- }
-
- //Count of rows
- $sql = "SHOW TABLES LIKE '$just_table_name'";
- $result = iDatabase::query($sql);
-
- if (Database::num_rows($result)) {
-
- $sql = "SELECT count(*) FROM $old_table";
- $result = iDatabase::query($sql);
-
- $old_count = 0;
- if ($result) {
- $row = iDatabase::fetch_row($result);
- $old_count = $row[0];
- } else {
- $output->writeln("Count(*) in table $old_table failed");
- }
-
- $sql = "SELECT * FROM $old_table";
- $result = iDatabase::query($sql);
-
- $count = 0;
-
- /* Loads the main database */
- iDatabase::select_db($dbNameForm);
-
- while($row = iDatabase::fetch_array($result, 'ASSOC')) {
- $row['c_id'] = $course_id;
- $id = iDatabase::insert($new_table, $row);
- if (is_numeric($id)) {
- $count++;
- } else {
- $errors[$old_table][] = $row;
- }
- }
-
- //$output->writeln("$count/$old_count rows inserted in $new_table");
-
- if ($old_count != $count) {
- $output->writeln("ERROR count of new and old table doesn't match: $old_count - $new_table");
- $output->writeln("Check the results: ");
- $output->writeln(print_r($errors, 1));
- }
- } else {
- $output->writeln('');
- $output->writeln("Seems that the table $old_table doesn't exists ");
- }
- }
- $progress->advance();
- }
-
- $progress->finish();
-
- $output->writeln("End course migration");
-
-
- /* Start work fix */
-
- $output->writeln("Starting work fix");
-
- /* Fixes the work subfolder and work with no parent issues */
-
- $courseList = \CourseManager::get_real_course_list();
-
- $work_table = $_configuration['main_database'].".student_publication";
- $item_table = $_configuration['main_database'].".item_property";
-
- require_once api_get_path(SYS_CODE_PATH).'work/work.lib.php';
- $sys_course_path = api_get_path(SYS_COURSE_PATH);
- $today = api_get_utc_datetime();
- $user_id = 1;
-
- foreach ($courseList as $course) {
- $courseId = $course['id']; //int id
-
- //1. Searching for works with no parents
- $sql = "SELECT * FROM $work_table WHERE parent_id = 0 AND filetype ='file' AND c_id = $courseId ";
- $result = Database::query($sql);
-
- $work_list = array();
-
- if (Database::num_rows($result)) {
- while ($row = Database::fetch_array($result, 'ASSOC')) {
- $work_list[] = $row;
- }
- }
-
- $course_dir = $sys_course_path.$course['directory'];
- $base_work_dir = $course_dir.'/work';
-
- //2. Looping if there are works with no parents
- if (!empty($work_list)) {
- $work_dir_created = array();
-
- foreach ($work_list as $work) {
- $session_id = intval($work['session_id']);
- $group_id = intval($work['post_group_id']);
- $work_key = $session_id.$group_id;
-
- //Only create the folder once
- if (!isset($work_dir_created[$work_key])) {
-
- $dir_name = "default_tasks_".$group_id."_".$session_id;
-
- //2.1 Creating a new work folder
- $sql = "INSERT INTO $work_table SET
- c_id = '$courseId',
- url = 'work/".$dir_name."',
- title = 'Tasks',
- description = '',
- author = '',
- active = '1',
- accepted = '1',
- filetype = 'folder',
- post_group_id = '$group_id',
- sent_date = '".$today."',
- parent_id = '0',
- qualificator_id = '',
- user_id = '".$user_id."'";
- iDatabase::query($sql);
-
- $id = Database::insert_id();
- //2.2 Adding the folder in item property
- if ($id) {
- //api_item_property_update($row_course, 'work', $id, 'DirectoryCreated', $user_id, $group_id, null, 0, 0 , $session_id);
- $sql = "INSERT INTO $item_table (c_id, tool, ref, insert_date, insert_user_id, lastedit_date, lastedit_type, lastedit_user_id, to_group_id, visibility, id_session)
- VALUES ('$courseId', 'work','$id','$today', '$user_id', '$today', 'DirectoryCreated','$user_id', '$group_id', '1', '$session_id')";
-
- iDatabase::query($sql);
- $work_dir_created[$work_key] = $id;
- create_unexisting_work_directory($base_work_dir, $dir_name);
- $final_dir = $base_work_dir.'/'.$dir_name;
- }
- } else {
- $final_dir = $base_work_dir.'/'.$dir_name;
- }
-
- //2.3 Updating the url
- if (!empty($work_dir_created[$work_key])) {
- $parent_id = $work_dir_created[$work_key];
- $new_url = "work/".$dir_name.'/'.basename($work['url']);
- $new_url = Database::escape_string($new_url);
- $sql = "UPDATE $work_table SET url = '$new_url', parent_id = $parent_id, contains_file = '1' WHERE id = {$work['id']} AND c_id = $courseId";
- iDatabase::query($sql);
- if (is_dir($final_dir)) {
- rename($course_dir.'/'.$work['url'], $course_dir.'/'.$new_url);
- }
- }
- }
- }
-
- //3.0 Moving subfolders to the root
- $sql = "SELECT * FROM $work_table WHERE parent_id <> 0 AND filetype ='folder' AND c_id = $courseId";
- $result = Database::query($sql);
- $work_list = array();
-
- if (Database::num_rows($result)) {
- while ($row = Database::fetch_array($result, 'ASSOC')) {
- $work_list[] = $row;
- }
- if (!empty($work_list)) {
- foreach ($work_list as $work_folder) {
- $folder_id = $work_folder['id'];
- check_work($folder_id, $work_folder['url'], $work_table, $base_work_dir, $courseId);
- }
- }
- }
- }
-
- $output->writeln("End work fix");
-
- //Remove dn_name
- /*$query = "UPDATE course SET db_name = ''";
- $mainConnection->executeQuery($query);*/
-
- $mainConnection->commit();
- }
-};
-
-function check_work($folder_id, $work_url, $work_table, $base_work_dir, $courseId) {
- $uniq_id = uniqid();
- //Looking for subfolders
- $sql = "SELECT * FROM $work_table WHERE parent_id = $folder_id AND filetype ='folder' AND c_id = $courseId";
- $result = Database::query($sql);
-
- if (Database::num_rows($result)) {
- while ($row = Database::fetch_array($result, 'ASSOC')) {
- check_work($row['id'], $row['url'], $work_table, $base_work_dir, $courseId);
- }
- }
-
- //Moving the subfolder in the root
- $new_url = '/'.basename($work_url).'_mv_'.$uniq_id;
- $new_url = Database::escape_string($new_url);
- $sql = "UPDATE $work_table SET url = '$new_url', parent_id = 0 WHERE id = $folder_id AND c_id = $courseId";
- iDatabase::query($sql);
-
- if (is_dir($base_work_dir.$work_url)) {
- rename($base_work_dir.$work_url, $base_work_dir.$new_url);
-
- //Rename all files inside the folder
- $sql = "SELECT * FROM $work_table WHERE parent_id = $folder_id AND filetype ='file' AND c_id = $courseId";
- $result = Database::query($sql);
-
- if (Database::num_rows($result)) {
- while ($row = Database::fetch_array($result, 'ASSOC')) {
- $new_url = "work".$new_url.'/'.basename($row['url']);
- $new_url = Database::escape_string($new_url);
- $sql = "UPDATE $work_table SET url = '$new_url', parent_id = $folder_id, contains_file = '1' WHERE id = {$row['id']} AND c_id = $courseId";
- iDatabase::query($sql);
- }
- }
- }
-}
\ No newline at end of file
diff --git a/main/install/1.9.0/update-files-1.8.8-1.9.0.inc.php b/main/install/1.9.0/update-files-1.8.8-1.9.0.inc.php
deleted file mode 100644
index 96b457617a..0000000000
--- a/main/install/1.9.0/update-files-1.8.8-1.9.0.inc.php
+++ /dev/null
@@ -1,23 +0,0 @@
-addCommands(
new \Doctrine\DBAL\Migrations\Tools\Console\Command\StatusCommand(),
new \Doctrine\DBAL\Migrations\Tools\Console\Command\VersionCommand(),
- // Chamilo commands.
- new ChamiloLMS\Command\Database\UpgradeCommand(),
- new ChamiloLMS\Command\Database\InstallCommand(),
- new ChamiloLMS\Command\Database\StatusCommand(),
- new ChamiloLMS\Command\Database\SetupCommand(),
-
// Chash commands.
- /*new Chash\Command\Database\RunSQLCommand(),
- new Chash\Command\Database\DumpCommand(),
- new Chash\Command\Database\RestoreCommand(),
- new Chash\Command\Database\SQLCountCommand(),
- new Chash\Command\Database\FullBackupCommand(),
- new Chash\Command\Database\DropDatabaseCommand(),
- new Chash\Command\Files\CleanTempFolderCommand(),
- new Chash\Command\Files\CleanConfigFiles(),
- new Chash\Command\Translation\ExportLanguageCommand(),
- new Chash\Command\Translation\ImportLanguageCommand()*/
+ new Chash\Command\Installation\UpgradeCommand(),
+ new Chash\Command\Installation\InstallCommand(),
)
);
diff --git a/src/ChamiloLMS/Command/Database/CommonCommand.php b/src/ChamiloLMS/Command/Database/CommonCommand.php
deleted file mode 100644
index f2c84b1eee..0000000000
--- a/src/ChamiloLMS/Command/Database/CommonCommand.php
+++ /dev/null
@@ -1,598 +0,0 @@
-portalSettings = $portalSettings;
- }
-
- /**
- * @return array
- */
- public function getPortalSettings()
- {
- return $this->portalSettings;
- }
-
- /**
- * @param array $databaseSettings
- */
- public function setDatabaseSettings(array $databaseSettings)
- {
- $this->databaseSettings = $databaseSettings;
- }
-
- /**
- * @return array
- */
- public function getDatabaseSettings()
- {
- return $this->databaseSettings;
- }
-
- /**
- * @param array $adminSettings
- */
- public function setAdminSettings(array $adminSettings)
- {
- $this->adminSettings = $adminSettings;
- }
-
- public function getAdminSettings()
- {
- return $this->adminSettings;
- }
-
- /**
- * @param string $path
- */
- public function setRootSys($path)
- {
- $this->rootSys = $path;
- }
-
- /**
- * @return string
- */
-
- public function getRootSys()
- {
- return $this->rootSys;
- }
-
- /**
- * Gets the version name folders located in main/install
- *
- * @return array
- */
- public function getAvailableVersions()
- {
- $installPath = $this->getRootSys().'main/install';
- $dir = new \DirectoryIterator($installPath);
- $dirList = array();
- foreach ($dir as $fileInfo) {
- if ($fileInfo->isDir() && !$fileInfo->isDot()) {
- $dirList[] = $fileInfo->getFilename();
- }
- }
-
- return $dirList;
- }
-
- /**
- * @return array
- */
- public function getAdminSettingsParams()
- {
- return array(
- 'firstname' => array(
- 'attributes' => array(
- 'label' => 'Firstname',
- 'data' => 'John'
- ),
- 'type' => 'text'
- ),
- 'lastname' => array(
- 'attributes' => array(
- 'label' => 'Lastname',
- 'data' => 'Doe'
- ),
- 'type' => 'text'
- ),
- 'username' => array(
- 'attributes' => array(
- 'label' => 'Username',
- 'data' => 'admin'
- ),
- 'type' => 'text'
- ),
- 'password' => array(
- 'attributes' => array(
- 'label' => 'Password',
- 'data' => 'admin'
- ),
- 'type' => 'password'
- ),
- 'email' => array(
- 'attributes' => array(
- 'label' => 'Email',
- 'data' => 'admin@example.org'
- ),
- 'type' => 'email'
- ),
- 'language' => array(
- 'attributes' => array(
- 'label' => 'Language',
- 'data' => 'english'
- ),
- 'type' => 'text'
- ),
- 'phone' => array(
- 'attributes' => array(
- 'label' => 'Phone',
- 'data' => '123456'
- ),
- 'type' => 'text'
- )
- );
- }
-
- /**
- * @return array
- */
- public function getPortalSettingsParams()
- {
- return array(
- 'sitename' => array(
- 'attributes' => array(
- 'label' => 'Site name',
- 'data' => 'Campus Chamilo',
- ),
- 'type' => 'text'
- ),
- 'institution' => array(
- 'attributes' => array(
- 'data' => 'Chamilo',
- ),
- 'type' => 'text'
- ),
- 'institution_url' => array(
- 'attributes' => array(
- 'label' => 'URL',
- 'data' => 'http://localhost/',
- ),
- 'type' => 'text'
- ),
- 'encrypt_method' => array(
- 'attributes' => array(
- 'choices' => array(
- 'sha1' => 'sha1',
- 'md5' => 'md5',
- 'none' => 'none'
- ),
- 'data' => 'sha1'
- ),
-
- 'type' => 'choice'
- ),
- 'permissions_for_new_directories' => array(
- 'attributes' => array(
- 'data' => '0777',
- ),
- 'type' => 'text'
- ),
- 'permissions_for_new_files' => array(
- 'attributes' => array(
- 'data' => '0666',
- ),
- 'type' => 'text'
- ),
-
- );
- }
-
- /**
- * Database parameters that are going to be parsed during the console/browser installation
- * @return array
- */
- public function getDatabaseSettingsParams()
- {
- return array(
- 'driver' => array(
- 'attributes' => array(
- 'choices' =>
- array(
- 'pdo_mysql' => 'pdo_mysql',
- 'pdo_sqlite' => 'pdo_sqlite',
- 'pdo_pgsql' => 'pdo_pgsql',
- 'pdo_oci' => 'pdo_oci',
- 'ibm_db2' => 'ibm_db2',
- 'pdo_ibm' => 'pdo_ibm',
- 'pdo_sqlsrv' => 'pdo_sqlsrv'
- ),
- 'data' => 'pdo_mysql'
- ),
- 'type' => 'choice'
- ),
- 'host' => array(
- 'attributes' => array(
- 'label' => 'Host',
- 'data' => 'localhost',
- ),
- 'type' => 'text'
- ),
- 'dbname' => array(
- 'attributes' => array(
- 'label' => 'Database name',
- 'data' => 'chamilo',
- ),
- 'type' => 'text'
- ),
- 'user' => array(
- 'attributes' => array(
- 'label' => 'User',
- 'data' => 'root',
- ),
- 'type' => 'text'
- ),
- 'password' => array(
- 'attributes' => array(
- 'label' => 'Password',
- 'data' => 'root',
- ),
- 'type' => 'password'
- )
- );
- }
- /**
- * Gets the installation version path
- *
- * @param string $version
- *
- * @return string
- */
- public function getInstallationPath($version)
- {
- return __DIR__.'/../../../../main/install/'.$version.'/';
- }
-
- /**
- * Gets the content of a version from the available versions
- *
- * @param string $version
- *
- * @return bool
- */
- public function getAvailableVersionInfo($version)
- {
- $versionList = $this->availableVersions();
- foreach ($versionList as $versionName => $versionInfo) {
- if ($version == $versionName) {
- return $versionInfo;
- }
- }
-
- return false;
- }
-
- /**
- * Gets the min version available to migrate with this command
- * @return mixed
- */
- public function getMinVersionSupportedByInstall()
- {
- return key($this->availableVersions());
- }
-
- /**
- * Gets an array with the supported versions to migrate
- * @return array
- */
- public function getVersionNumberList()
- {
- $versionList = $this->availableVersions();
- $versionNumberList = array();
- foreach ($versionList as $version => $info) {
- $versionNumberList[] = $version;
- }
-
- return $versionNumberList;
- }
-
- /**
- * Gets an array with the settings for every supported version
- *
- * @return array
- */
- public function availableVersions()
- {
- $versionList = array(
- '1.8.7' => array(
- 'require_update' => false,
- ),
- '1.8.8' => array(
- 'require_update' => true,
- 'pre' => 'migrate-db-1.8.7-1.8.8-pre.sql',
- 'post' => null,
- 'update_db' => 'update-db-1.8.7-1.8.8.inc.php',
- //'update_files' => 'update-files-1.8.7-1.8.8.inc.php',
- 'hook_to_doctrine_version' => '8' //see ChamiloLMS\Migrations\Version8.php file
- ),
- '1.8.8.2' => array(
- 'require_update' => false,
- 'parent' => '1.8.8'
- ),
- '1.8.8.4' => array(
- 'require_update' => false,
- 'parent' => '1.8.8'
- ),
- '1.8.8.6' => array(
- 'require_update' => false,
- 'parent' => '1.8.8'
- ),
- '1.9.0' => array(
- 'require_update' => true,
- 'pre' => 'migrate-db-1.8.8-1.9.0-pre.sql',
- 'post' => null,
- 'update_db' => 'update-db-1.8.8-1.9.0.inc.php',
- 'update_files' => 'update-files-1.8.8-1.9.0.inc.php',
- 'hook_to_doctrine_version' => '9'
- ),
- '1.9.2' => array(
- 'require_update' => false,
- 'parent' => '1.9.0'
- ),
- '1.9.4' => array(
- 'require_update' => false,
- 'parent' => '1.9.0'
- ),
- '1.9.6' => array(
- 'require_update' => false,
- 'parent' => '1.9.0'
- ),
- '1.9.8' => array(
- 'require_update' => false,
- 'parent' => '1.9.0'
- ),
- '1.10.0' => array(
- 'require_update' => true,
- 'pre' => 'migrate-db-1.9.0-1.10.0-pre.sql',
- 'post' => 'migrate-db-1.9.0-1.10.0-post.sql',
- 'update_db' => 'update-db-1.9.0-1.10.0.inc.php',
- 'update_files' => null,
- 'hook_to_doctrine_version' => '10'
- )
- );
-
- return $versionList;
- }
-
-
- /**
- * Gets the Doctrine configuration file path
- * @return string
- */
- public function getMigrationConfigurationFile()
- {
- return api_get_path(SYS_PATH).'src/ChamiloLMS/Migrations/migrations.yml';
- }
-
- /**
- * Writes the configuration file a yml file
- * @param string $version
- * @return bool
- *
- */
- public function writeConfiguration($version)
- {
- $portalSettings = $this->getPortalSettings();
- $databaseSettings = $this->getDatabaseSettings();
-
- $configurationPath = $this->getHelper('configuration')->getNewConfigurationPath();
-
- // Creates a YML File
-
- $configuration = array();
- $configuration['system_version'] = $version;
-
- $configuration['db_host'] = $databaseSettings['host'];
- $configuration['db_user'] = $databaseSettings['user'];
- $configuration['db_password'] = $databaseSettings['password'];
- $configuration['main_database'] = $databaseSettings['dbname'];
- $configuration['driver'] = $databaseSettings['driver'];
-
- $configuration['root_web'] = $portalSettings['institution_url'];
- $configuration['root_sys'] = $this->getRootSys();
-
- $configuration['security_key'] = md5(uniqid(rand().time()));
-
- // Hash function method
- $configuration['password_encryption'] = $portalSettings['encrypt_method'];
- // You may have to restart your web server if you change this
- $configuration['session_stored_in_db'] = false;
- // Session lifetime
- $configuration['session_lifetime'] = 3600;
- // Activation for multi-url access
- $_configuration['multiple_access_urls'] = false;
- //Deny the elimination of users
- $configuration['deny_delete_users'] = false;
- //Prevent all admins from using the "login_as" feature
- $configuration['login_as_forbidden_globally'] = false;
- // Version settings
- $configuration['system_version'] = '1.10.0';
-
- /*
- $dumper = new Dumper();
- $yaml = $dumper->dump($configuration, 2);
-
- $newConfigurationFile = $configurationPath.'configuration.yml';
- file_put_contents($newConfigurationFile, $yaml);
-
- return file_exists($newConfigurationFile);*/
-
- // Create a configuration.php
- $configurationPath.'configuration.dist.php';
-
- $contents = file_get_contents($configurationPath.'configuration.dist.php');
-
- $configuration['{DATE_GENERATED}'] = date('r');
- $config['{DATABASE_HOST}'] = $configuration['db_host'];
- $config['{DATABASE_USER}'] = $configuration['db_user'];
- $config['{DATABASE_PASSWORD}'] = $configuration['db_password'];
- $config['{DATABASE_MAIN}'] = $configuration['main_database'];
- $config['{DATABASE_DRIVER}'] = $configuration['driver'];
-
- $config['{ROOT_WEB}'] = $portalSettings['institution_url'];
- $config['{ROOT_SYS}'] = $this->getRootSys();
-
- //$config['{URL_APPEND_PATH}'] = $urlAppendPath;
- $config['{SECURITY_KEY}'] = $configuration['security_key'];
- $config['{ENCRYPT_PASSWORD}'] = $configuration['password_encryption'];
-
- $config['SESSION_LIFETIME'] = 3600;
- $config['{NEW_VERSION}'] = $this->getLatestVersion();
- $config['NEW_VERSION_STABLE'] = 'true';
-
- foreach ($config as $key => $value) {
- $contents = str_replace($key, $value, $contents);
- }
- $newConfigurationFile = $configurationPath.'configuration.php';
-
- return file_put_contents($newConfigurationFile, $contents);
- }
-
-
- /**
- * Updates the configuration.yml file
- * @param string $version
- *
- * @return bool
- */
- public function updateConfiguration($version)
- {
- global $userPasswordCrypted, $storeSessionInDb;
-
- $_configuration = $this->getHelper('configuration')->getConfiguration();
-
- $configurationPath = $this->getHelper('configuration')->getConfigurationPath();
-
- $dumper = new Dumper();
-
- $_configuration['system_version'] = $version;
-
- if (!isset($_configuration['password_encryption'])) {
- $_configuration['password_encryption'] = $userPasswordCrypted;
- }
-
- if (!isset($_configuration['session_stored_in_db'])) {
- $_configuration['session_stored_in_db'] = $storeSessionInDb;
- }
-
- $yaml = $dumper->dump($_configuration, 2); //inline
- $newConfigurationFile = $configurationPath.'../../../app/config/configuration.yml';
- file_put_contents($newConfigurationFile, $yaml);
-
- return file_exists($newConfigurationFile);
- }
-
- /**
- * Gets the SQL files relation with versions
- * @return array
- */
- public function getDatabaseMap()
- {
-
- $defaultCourseData = array(
- array(
- 'name' => 'course1',
- 'sql' => array(
- 'db_course1.sql',
- ),
- ),
- array(
- 'name' => 'course2',
- 'sql' => array(
- 'db_course2.sql'
- )
- ),
- );
-
- return array(
- '1.8.7' => array(
- 'section' => array(
- 'main' => array(
- array(
- 'name' => 'chamilo',
- 'sql' => array(
- 'db_main.sql',
- 'db_stats.sql',
- 'db_user.sql'
- ),
- ),
- ),
- 'course' => $defaultCourseData
- ),
- ),
- '1.8.8' => array(
- 'section' => array(
- 'main' => array(
- array(
- 'name' => 'chamilo',
- 'sql' => array(
- 'db_main.sql',
- 'db_stats.sql',
- 'db_user.sql'
- ),
- ),
- ),
- 'course' => $defaultCourseData
- ),
- ),
- '1.9.0' => array(
- 'section' => array(
- 'main' => array(
- array(
- 'name' => 'chamilo',
- 'sql' => array(
- 'db_course.sql',
- 'db_main.sql',
- 'db_stats.sql',
- 'db_user.sql'
- ),
- ),
- ),
- )
- ),
- '1.10.0' => array(
- 'section' => array(
- 'main' => array(
- array(
- 'name' => 'chamilo',
- 'sql' => array(
- 'db_course.sql',
- 'db_main.sql'
- ),
- ),
- ),
- )
- )
- );
- }
-
-}
diff --git a/src/ChamiloLMS/Command/Database/InstallCommand.php b/src/ChamiloLMS/Command/Database/InstallCommand.php
deleted file mode 100644
index 067bf7c94f..0000000000
--- a/src/ChamiloLMS/Command/Database/InstallCommand.php
+++ /dev/null
@@ -1,509 +0,0 @@
-setName('chamilo:install')
- ->setDescription('Execute a Chamilo installation to a specified version')
- ->addArgument('version', InputArgument::REQUIRED, 'The version to migrate to.', null)
- ->addArgument('path', InputArgument::OPTIONAL, 'The path to the chamilo folder');
- }
-
- /**
- * Executes a command via CLI
- *
- * @param Console\Input\InputInterface $input
- * @param Console\Output\OutputInterface $output
- *
- * @return int|null|void
- */
- protected function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
- {
- if (PHP_SAPI != 'cli') {
- $this->commandLine = false;
- }
-
- // Arguments
- $path = $input->getArgument('path');
- $version = $input->getArgument('version');
-
- // Setting configuration helper
- $this->getApplication()->getHelperSet()->set(new \Chash\Helpers\ConfigurationHelper(), 'configuration');
-
- //$configurationPath = $this->getHelper('configuration')->getConfigurationPath($path);
-
- // Getting the new config folder
- $configurationPath = $this->getHelper('configuration')->getNewConfigurationPath($path);
-
- $this->setRootSys(realpath($configurationPath.'/../').'/');
-
- $dialog = $this->getHelperSet()->get('dialog');
-
- $defaultVersion = $this->getLatestVersion();
-
- if (empty($version)) {
- $version = $defaultVersion;
- }
-
- if ($this->commandLine) {
- $output->writeln("Welcome to the Chamilo $version installation process.");
- } else {
- $output->writeln("Chamilo installation process. ");
- }
-
- if (!is_writable($configurationPath)) {
- $output->writeln("Folder ".$configurationPath." must be writable");
- return 0;
- }
-
- $sqlFolder = $this->getInstallationPath($version);
-
- if (!is_dir($sqlFolder)) {
- $output->writeln("Sorry you can't install that version of Chamilo :( Supported versions: ".implode(', ', $this->getAvailableVersions()));
- return 0;
- }
-
- if (file_exists($configurationPath.'configuration.php') || file_exists($configurationPath.'configuration.yml')) {
- if ($this->commandLine) {
- $output->writeln("There's a Chamilo portal here ".$configurationPath." you must run chamilo:setup if you want a fresh install.");
- } else {
- $output->writeln("There's a Chamilo portal here ".$configurationPath." ");
- }
- return 0;
- /*
- if (!$dialog->askConfirmation(
- $output,
- 'There is a Chamilo installation located here: '.$configurationPath.' Are you sure you want to continue?(y/N)',
- false
- )
- ) {
- return 0;
- }
-
- if (!$dialog->askConfirmation(
- $output,
- 'This will be a fresh installation. Old databases and config files will be deleted. Are you sure?(y/N)',
- false
- )
- ) {
- return 0;
- }
- $this->cleanInstallation($output);*/
- }
-
- $avoidVariables = array(
- //'main_database', //default is chamilo
- 'db_glue',
- 'table_prefix',
- 'course_folder',
- 'db_admin_path',
- 'cdn_enable',
- 'verbose_backup',
- 'session_stored_in_db',
- 'session_lifetime',
- 'deny_delete_users',
- 'system_version',
- );
-
- if ($this->commandLine) {
-
- // Ask for portal settings
-
- $params = $this->getPortalSettingsParams();
- $total = count($params);
- $portalSettings = array();
-
- $output->writeln("Portal settings (".$total.") ");
-
- $counter = 1;
- foreach ($params as $key => $value) {
- $data = $dialog->ask(
- $output,
- "($counter/$total) Please enter the value of the $key (".$value['attributes']['data']."): ",
- $value['attributes']['data']
- );
- $counter++;
- $portalSettings[$key] = $data;
- }
- $this->setPortalSettings($portalSettings);
-
- // Ask for admin settings
- $output->writeln("Admin settings: ");
- $params = $this->getAdminSettingsParams();
- $total = count($params);
- $adminSettings = array();
-
- foreach ($params as $key => $value) {
- $data = $dialog->ask(
- $output,
- "($counter/$total) Please enter the value of the $key (".$value['attributes']['data']."): ",
- $value['attributes']['data']
- );
- $counter++;
- $adminSettings[$key] = $data;
- }
- $this->setAdminSettings($adminSettings);
-
- // Ask for db settings
- $output->writeln("Database settings: ");
- $params = $this->getDatabaseSettingsParams();
- $total = count($params);
- $databaseSettings = array();
-
- foreach ($params as $key => $value) {
- $data = $dialog->ask(
- $output,
- "($counter/$total) Please enter the value of the $key (".$value['attributes']['data']."): ",
- $value['attributes']['data']
- );
- $counter++;
- $databaseSettings[$key] = $data;
- }
- $this->setDatabaseSettings($databaseSettings);
- }
-
- $databaseSettings = $this->getDatabaseSettings();
- $connectionToHost = $this->getUserAccessConnectionToHost();
- $connectionToHostConnect = $connectionToHost->connect();
-
- if ($connectionToHostConnect) {
- $output->writeln("Connection enabled for user: ".$databaseSettings['user']);
- } else {
- $output->writeln("No access to the database for user:".$databaseSettings['user']."");
- return 0;
- }
-
- if ($this->commandLine) {
- $databases = $connectionToHost->listDatabases();
- if (in_array($databaseSettings['dbname'], $databases)) {
- $dialog = $this->getHelperSet()->get('dialog');
-
- if (!$dialog->askConfirmation(
- $output,
- 'The database '.$databaseSettings['dbname'].' exists and is going to be dropped! Are you sure?(y/N)',
- false
- )
- ) {
- return 0;
- }
- }
- }
-
- // When installing always drop the current database
- try {
- $sm = $connectionToHost->getSchemaManager();
- $sm->dropAndCreateDatabase($databaseSettings['dbname']);
- $connectionToDatabase = $this->getUserAccessConnectionToDatabase();
- $connect = $connectionToDatabase->connect();
- } catch (\Exception $e) {
- $output->writeln(sprintf('Could not create database for connection named %s', $databaseSettings['dbname']));
- $output->writeln(sprintf('%s', $e->getMessage()));
- return 0;
- }
-
- if ($connect) {
-
- $output->writeln("Connection to database '".$databaseSettings['dbname']."' established.");
-
- $configurationWasSaved = $this->writeConfiguration($version);
-
- if ($configurationWasSaved) {
-
- // $app['chamilo.log'] = $app['log.path'].'/chamilo_install.log';
-
- // Installing database
- $result = $this->install($version, $output);
-
- if ($result) {
-
- require_once $this->getRootSys().'main/inc/lib/database.constants.inc.php';
- require_once $this->getRootSys().'main/inc/lib/api.lib.php';
-
- // In order to use the Database class
- $database = new \Database($this->getHelper('db')->getConnection(), null);
-
- $this->createAdminUser($output);
-
- //@todo ask this during installation
-
- $adminInfo = $this->getAdminSettings();
- $portalSettings = $this->getPortalSettings();
-
- api_set_setting('emailAdministrator', $adminInfo['email']);
- api_set_setting('administratorSurname', $adminInfo['lastname']);
- api_set_setting('administratorName', $adminInfo['firstname']);
- api_set_setting('platformLanguage', $adminInfo['language']);
-
- api_set_setting('allow_registration', '1');
- api_set_setting('allow_registration_as_teacher', '1');
-
- api_set_setting('permissions_for_new_directories', $portalSettings['permissions_for_new_directories']);
- api_set_setting('permissions_for_new_files', $portalSettings['permissions_for_new_files']);
-
- api_set_setting('Institution', $portalSettings['institution']);
- api_set_setting('InstitutionUrl', $portalSettings['institution_url']);
- api_set_setting('siteName', $portalSettings['sitename']);
-
- // Injecting the chamilo application (because the configuration.php is now set)
-
- $app = require_once $this->getRootSys().'main/inc/global.inc.php';
- $filesystem = $app['chamilo.filesystem'];
-
- // Creating temp folders
- $filesystem->createFolders($app['temp.paths']->folders);
- $output->writeln("Temp folders were created.");
-
- //$app->run();
-
- //$versionInfo = $this->getAvailableVersionInfo($version);
-
- // Optional run Doctrine migrations from src/database/migrations
- /* $command = $this->getApplication()->find('migrations:migrate');
- $definition = $command->getDefinition();
-
- $arguments = array(
- 'command' => 'migrations:migrate',
- 'version' => $versionInfo['hook_to_doctrine_version'],
- '--configuration' => $this->getMigrationConfigurationFile()
- );
- $output->writeln("Executing migrations:migrate ".$versionInfo['hook_to_doctrine_version']." --configuration=".$this->getMigrationConfigurationFile()."");
-
- $input = new ArrayInput($arguments, $definition);
- $return = $command->run($input, $output);
- */
- //$output->writeln("Migration ended succesfully");
-
- //$output->writeln("Chamilo was successfully installed. Go to your browser and enter: ".$newConfigurationArray['root_web']);
- return 1;
- } else {
- $output->writeln("There was an error during installation.");
- return 0;
- }
- } else {
- $output->writeln("Configuration file was not saved");
- return 0;
- }
- } else {
- $output->writeln("Can't create database '".$databaseSettings['dbname']."' ");
- return 0;
- }
- }
-
- /**
- * Creates an admin user
- *
- * @param $newConfigurationArray
- * @param $output
- *
- * @return bool
- */
- public function createAdminUser($output)
- {
- //By default admin is = 1 so we update it
-
- $userInfo = $this->getAdminSettings();
- $userInfo['user_id'] = 1;
- $userInfo['auth_source'] = 'platform';
- $userInfo['password'] = $this->encryptPassword($this->portalSettings['encrypt_method'], $userInfo['password']);
-
- $result = \UserManager::update($userInfo);
- if ($result) {
- \UserManager::add_user_as_admin($userInfo['user_id']);
- $output->writeln("User admin created with id: 1");
-
- return true;
- }
-
- return false;
- }
-
- private function setDoctrineSettings()
- {
- $config = new \Doctrine\ORM\Configuration();
- $config->setMetadataCacheImpl(new \Doctrine\Common\Cache\ArrayCache);
- $reader = new AnnotationReader();
-
- $driverImpl = new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($reader, array());
- $config->setMetadataDriverImpl($driverImpl);
- $config->setProxyDir(__DIR__ . '/Proxies');
- $config->setProxyNamespace('Proxies');
-
- $em = \Doctrine\ORM\EntityManager::create($this->getDatabaseSettings(), $config);
-
- // Fixes some errors
- $platform = $em->getConnection()->getDatabasePlatform();
- $platform->registerDoctrineTypeMapping('enum', 'string');
- $platform->registerDoctrineTypeMapping('set', 'string');
-
- $helpers = array(
- 'db' => new \Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper($em->getConnection()),
- 'em' => new \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($em),
- 'configuration' => new \Chash\Helpers\ConfigurationHelper()
- );
-
- foreach ($helpers as $name => $helper) {
- $this->getApplication()->getHelperSet()->set($helper, $name);
- }
- }
-
- /**
- * Installs Chamilo
- *
- * @param string $version
- * @param array $_configuration
- * @param $output
- * @return bool
- */
- public function install($version, $output)
- {
- $this->setDoctrineSettings();
- $sqlFolder = $this->getInstallationPath($version);
-
- $databaseMap = $this->getDatabaseMap();
-
- if (isset($databaseMap[$version])) {
- $dbInfo = $databaseMap[$version];
- $sections = $dbInfo['section'];
-
- foreach ($sections as $sectionData) {
- foreach ($sectionData as $dbInfo) {
- $databaseName = $dbInfo['name'];
- $dbList = $dbInfo['sql'];
-
- $output->writeln("Creating database $databaseName ... ");
-
- // Fixing db list
- foreach ($dbList as &$db) {
- $db = $sqlFolder.$db;
- }
-
- $command = $this->getApplication()->find('dbal:import');
-
- //Importing sql files
- $arguments = array(
- 'command' => 'dbal:import',
- 'file' => $dbList
- );
- $input = new ArrayInput($arguments);
- $command->run($input, $output);
-
- //Getting extra information about the installation
- $output->writeln("Database $databaseName process ended!");
- }
- }
-
- if (isset($sections) && isset($sections['course'])) {
- //@todo fix this
- foreach ($sections['course'] as $courseInfo) {
- $databaseName = $courseInfo['name'];
- $output->writeln("Inserting course database in chamilo: $databaseName");
- $this->createCourse($databaseName);
- }
- }
-
- if ($this->commandLine) {
- $output->writeln("Check your installation status with chamilo:status");
- }
-
- return true;
- }
-
- return false;
- }
-
- /**
- *
- * In step 3. Tests establishing connection to the database server.
- * If it's a single database environment the function checks if the database exist.
- * If the database doesn't exist we check the creation permissions.
- *
- * @return int 1 when there is no problem;
- * 0 when a new database is impossible to be created, then the single/multiple database configuration is impossible too
- * -1 when there is no connection established.
- */
- public function testDatabaseConnection()
- {
- $conn = $this->testUserAccessConnection();
- $connect = $conn->connect();
- return $connect;
- }
-
- public function getUserAccessConnectionToHost()
- {
- $config = new \Doctrine\DBAL\Configuration();
- $databaseConnection = $this->getDatabaseSettings();
- $databaseConnection['dbname'] = null;
- $conn = \Doctrine\DBAL\DriverManager::getConnection($databaseConnection, $config);
- return $conn;
- }
-
- public function getUserAccessConnectionToDatabase()
- {
- $config = new \Doctrine\DBAL\Configuration();
- $databaseConnection = $this->getDatabaseSettings();
- $conn = \Doctrine\DBAL\DriverManager::getConnection($databaseConnection, $config);
- return $conn;
- }
-
- /**
- * Creates a course (only an insert in the DB)
- * @param string $databaseName
- */
- public function createCourse($databaseName)
- {
- $params = array(
- 'code' => $databaseName,
- 'db_name' => $databaseName,
- 'course_language' => 'english',
- 'title' => $databaseName,
- 'visual_code' => $databaseName
- );
- @\Database::insert(TABLE_MAIN_COURSE, $params);
- }
-
- /**
- * This function gets the hash in md5 or sha1 (it depends in the platform config) of a given password
- * @param string password
- * @return string password with the applied hash
- */
- function encryptPassword($encryptionMode, $password, $salt = '') {
-
- switch ($encryptionMode) {
- case 'sha1':
- return empty($salt) ? sha1($password) : sha1($password.$salt);
- case 'none':
- return $password;
- case 'md5':
- default:
- return empty($salt) ? md5($password) : md5($password.$salt);
- }
- }
-
-}
diff --git a/src/ChamiloLMS/Command/Database/InstallExtendCommand.php b/src/ChamiloLMS/Command/Database/InstallExtendCommand.php
deleted file mode 100644
index d9a2bf7466..0000000000
--- a/src/ChamiloLMS/Command/Database/InstallExtendCommand.php
+++ /dev/null
@@ -1,26 +0,0 @@
-setName('chamilo:install_extend')
- ->setDescription('Execute a Chamilo installation to a specified version')
- ->addArgument('version', InputArgument::REQUIRED, 'The version to migrate to.', null);
- }
-}
\ No newline at end of file
diff --git a/src/ChamiloLMS/Command/Database/SetupCommand.php b/src/ChamiloLMS/Command/Database/SetupCommand.php
deleted file mode 100644
index cedda63d8a..0000000000
--- a/src/ChamiloLMS/Command/Database/SetupCommand.php
+++ /dev/null
@@ -1,67 +0,0 @@
-setName('chamilo:setup')
- ->setDescription('Prepares a portal for a new installation');
- //->addOption('configuration', null, InputOption::VALUE_OPTIONAL, 'The path to a migrations configuration file.');
- }
-
-
- /**
- * Executes a command via CLI
- *
- * @param Console\Input\InputInterface $input
- * @param Console\Output\OutputInterface $output
- *
- * @return int|null|void
- */
- protected function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
- {
- $output->writeln("This command will clean your installation: drop db, removes config files, cache files");
-
- //Drop database chash command
- $command = $this->getApplication()->find('db:drop_databases');
-
- $arguments = array(
- 'command' => 'db:drop_databases'
- );
- $input = new ArrayInput($arguments);
- $command->run($input, $output);
-
- //Clean temp chash command
- $command = $this->getApplication()->find('files:clean_archives');
-
- $arguments = array(
- 'command' => 'files:clean_archives'
- );
- $input = new ArrayInput($arguments);
- $command->run($input, $output);
-
- //Clean files
- $command = $this->getApplication()->find('files:clean_config_files');
-
- $arguments = array(
- 'command' => 'files:clean_archives'
- );
- $input = new ArrayInput($arguments);
- $command->run($input, $output);
-
- $output->writeln("Cleaned");
- }
-}
-
diff --git a/src/ChamiloLMS/Command/Database/StatusCommand.php b/src/ChamiloLMS/Command/Database/StatusCommand.php
deleted file mode 100644
index b9dbdb2212..0000000000
--- a/src/ChamiloLMS/Command/Database/StatusCommand.php
+++ /dev/null
@@ -1,57 +0,0 @@
-setName('chamilo:status')
- ->setDescription('Show the information of the current Chamilo installation')
- ->addOption('configuration', null, InputOption::VALUE_OPTIONAL, 'The path to a migrations configuration file.');
- }
-
-
- /**
- * Executes a command via CLI
- *
- * @param Console\Input\InputInterface $input
- * @param Console\Output\OutputInterface $output
- *
- * @return int|null|void
- */
- protected function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
- {
- global $_configuration;
-
- if (empty($_configuration)) {
- $output->writeln("Chamilo is not installed here!");
- exit;
- }
-
- $configurationPath = api_get_path(SYS_PATH).'main/inc/conf/';
-
- $query = "SELECT selected_value FROM settings_current WHERE variable = 'chamilo_database_version'";
- $conn = $this->getHelper('main_database')->getConnection();
- $data = $conn->executeQuery($query);
- $data = $data->fetch();
-
- $chamiloVersion = $data['selected_value'];
- $output->writeln('Chamilo status');
- $output->writeln("Chamilo configuration path: ".$configurationPath."");
-
- $output->writeln('Chamilo $_configuration[system_version]: '.$_configuration['system_version'].'');
- $output->writeln("Chamilo setting: 'chamilo_database_version': ".$chamiloVersion."");
- }
-
-}
-
diff --git a/src/ChamiloLMS/Command/Database/UpgradeCommand.php b/src/ChamiloLMS/Command/Database/UpgradeCommand.php
deleted file mode 100644
index e7503eafc2..0000000000
--- a/src/ChamiloLMS/Command/Database/UpgradeCommand.php
+++ /dev/null
@@ -1,613 +0,0 @@
-setName('chamilo:upgrade')
- ->setDescription('Execute a chamilo migration to a specified version or the latest available version.')
- ->addArgument('version', InputArgument::REQUIRED, 'The version to migrate to.', null)
- ->addOption('dry-run', null, InputOption::VALUE_NONE, 'Execute the migration as a dry run.')
- ->addOption('configuration', null, InputOption::VALUE_OPTIONAL, 'The path to a migrations configuration file.')
- ->addOption('path', null, InputOption::VALUE_OPTIONAL, 'The path to the chamilo folder')
- ->addOption('force', null, InputOption::VALUE_NONE, 'Force the update. Only for tests');
- }
-
- /**
- * Executes a command via CLI
- *
- * @param Console\Input\InputInterface $input
- * @param Console\Output\OutputInterface $output
- *
- * @return int|null|void
- */
- protected function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
- {
- $path = $input->getOption('path');
- $version = $input->getArgument('version');
- $dryRun = $input->getOption('dry-run');
- $force = $input->getOption('force');
-
- $_configuration = $this->getHelper('configuration')->getConfiguration();
-
- if (empty($_configuration)) {
- $output->writeln("Chamilo is not installed here!");
- exit;
- }
-
- $configurationPath = $this->getHelper('configuration')->getConfigurationPath($path);
-
- //Checking configuration file
- if (!is_writable($configurationPath)) {
- $output->writeln("Folder ".$configurationPath." must have writable permissions");
- exit;
- }
-
- //Setting configuration variable in order to get the doctrine version:
- $input->setOption('configuration', $this->getMigrationConfigurationFile());
- $configuration = $this->getMigrationConfiguration($input, $output);
-
- //Doctrine migrations version
- $doctrineVersion = $configuration->getCurrentVersion();
-
- //Getting supported version number list
- $versionNameList = $this->getVersionNumberList();
-
- $minVersion = $this->getMinVersionSupportedByInstall();
- $versionList = $this->availableVersions();
-
- //Checking version
- if (!in_array($version, $versionNameList)) {
- $output->writeln("Version '$version' is not available");
- $output->writeln("Available versions: ".implode(', ', $versionNameList)."");
- exit;
- }
-
- $currentVersion = null;
-
- //Checking root_sys and correct Chamilo version to install
- if (empty($_configuration)) {
- $output->writeln("Can't migrate Chamilo. This is not a Chamilo folder installation.");
- exit;
- }
-
- //Checking system_version
-
- if (!isset($_configuration['system_version']) || empty($_configuration['system_version'])) {
- $output->writeln("You have something wrong in your Chamilo conf file. Check it with chamilo:status.");
- exit;
- }
-
- if (version_compare($_configuration['system_version'], $minVersion, '<')) {
- $output->writeln("Your Chamilo version is not supported! The minimun version is: $minVersion You want to update from ".$_configuration['system_version']." to $minVersion");
- exit;
- }
-
- if (version_compare($version, $_configuration['system_version'], '>')) {
- $currentVersion = $_configuration['system_version'];
- } else {
- $output->writeln("Please provide a version greater than ".$_configuration['system_version']." your selected version: $version");
- $output->writeln("You can also check your installation health with chamilo:status");
- exit;
- }
-
- $versionInfo = $this->getAvailableVersionInfo($version);
-
- if (isset($versionInfo['hook_to_doctrine_version']) && isset($doctrineVersion)) {
- if ($doctrineVersion == $versionInfo['hook_to_doctrine_version']) {
- $output->writeln("You already have the latest version. Nothing to update! Doctrine version $doctrineVersion");
- exit;
- }
- }
-
- if (isset($versionInfo['parent']) && !empty($versionInfo['parent'])) {
- $versionInfoParent = $this->getAvailableVersionInfo($versionInfo['parent']);
- if ($doctrineVersion == $versionInfoParent['hook_to_doctrine_version']) {
- $output->writeln("You already have the latest version. Nothing to update! Doctrine version $doctrineVersion");
- exit;
- }
- }
-
- $output->writeln("Welcome to the Chamilo upgrade!");
-
- //@todo Too much questions?
-
- $dialog = $this->getHelperSet()->get('dialog');
- if (!$dialog->askConfirmation(
- $output,
- 'Are you sure you want to update Chamilo located here? '.$_configuration['root_sys'].' (y/N)',
- false
- )
- ) {
- return;
- }
-
- $dialog = $this->getHelperSet()->get('dialog');
- if (!$dialog->askConfirmation(
- $output,
- 'Are you sure you want to update from version '.$_configuration['system_version'].' to version '.$version.' (y/N)',
- false
- )
- ) {
- return;
- }
-
- $output->writeln('Migrating from Chamilo version: '.$_configuration['system_version'].' to version '.$version);
-
- //Starting
- $output->writeln('Starting upgrade for Chamilo with configuration file: '.$configurationPath.'configuration.php');
-
- $oldVersion = $currentVersion;
- foreach ($versionList as $versionItem => $versionInfo) {
- if (version_compare($versionItem, $currentVersion, '>') && version_compare($versionItem, $version, '<=')) {
- $output->writeln("----------------------------------------------------------------");
- $output->writeln("Starting migration from version: $oldVersion to $versionItem ");
- $output->writeln("");
-
- if (isset($versionInfo['require_update']) && $versionInfo['require_update'] == true) {
- //Greater than my current version
- $this->startMigration($oldVersion, $versionItem, $dryRun, $output);
- $oldVersion = $versionItem;
- $output->writeln("----------------------------------------------------------------");
- } else {
- $output->writeln("Version '$versionItem' does not need a DB migration");
- }
- }
- }
-
- $this->updateConfiguration($version);
- $output->writeln("Wow! You just finish to migrate. Too check the current status of your platform. Run chamilo:status");
- }
-
- /**
- * Starts a migration
- *
- * @param $fromVersion
- * @param $toVersion
- * @param $dryRun
- * @param $output
- *
- * @return bool
- */
- public function startMigration($fromVersion, $toVersion, $dryRun, $output)
- {
- //used by monolog
- global $app;
-
- //Needed when using require file
- $_configuration = $this->getHelper('configuration')->getConfiguration();
-
- $installPath = api_get_path(SYS_CODE_PATH).'install/'.$toVersion.'/';
- $versionInfo = $this->getAvailableVersionInfo($toVersion);
-
- $mainConnection = $this->getHelper('main_database')->getConnection();
-
- //Cleaning query list
- $this->queryList = array();
-
- //Filling sqlList array with "pre" db changes
- if (isset($versionInfo['pre']) && !empty($versionInfo['pre'])) {
- $sqlToInstall = $installPath.$versionInfo['pre'];
- $this->fillQueryList($sqlToInstall, $output, 'pre');
-
- //Processing sql query list depending of the section
- $result = $this->processQueryList($output, $toVersion, $dryRun, 'pre');
- }
-
- //Filling sqlList array with "post" db changes
- if (isset($versionInfo['post']) && !empty($versionInfo['post'])) {
- $sqlToInstall = $installPath.$versionInfo['post'];
- $this->fillQueryList($sqlToInstall, $output, 'post');
- //Processing sql query list depending of the section
- $result = $this->processQueryList($output, $toVersion, $dryRun, 'post');
- }
-
- //Processing "db" changes
- if (isset($versionInfo['update_db']) && !empty($versionInfo['update_db'])) {
- $sqlToInstall = $installPath.$versionInfo['update_db'];
- if (is_file($sqlToInstall) && file_exists($sqlToInstall)) {
- $output->writeln("Executing update db: '$sqlToInstall'");
- require $sqlToInstall;
- $update($_configuration, $mainConnection, $dryRun, $output, $app);
- }
- }
-
- //Processing "update file" changes
- if (isset($versionInfo['update_files']) && !empty($versionInfo['update_files'])) {
- $sqlToInstall = $installPath.$versionInfo['update_files'];
- if (is_file($sqlToInstall) && file_exists($sqlToInstall)) {
- $output->writeln("Executing update files: '$sqlToInstall'");
- require $sqlToInstall;
- }
- }
-
- $output->writeln('');
- $output->writeln("You have to select yes for the 'Chamilo Migrations'");
-
-
- if ($result) {
- $command = $this->getApplication()->find('migrations:migrate');
- $arguments = array(
- 'command' => 'migrations:migrate',
- 'version' => $versionInfo['hook_to_doctrine_version'],
- '--configuration' => $this->getMigrationConfigurationFile()
- );
-
- $output->writeln("Executing migrations:migrate ".$versionInfo['hook_to_doctrine_version']." --configuration=".$this->getMigrationConfigurationFile()."");
-
- $input = new ArrayInput($arguments);
-
- $command->run($input, $output);
- $output->writeln("Migration ended succesfully");
- }
-
- return false;
- }
-
- public function getMigrationTypes() {
- return array(
- 'pre',
- 'post'
- );
- }
-
- /**
- *
- * Process the queryList array and executes queries to the correct section (main, user, course, etc)
- *
- * @param $output
- * @param $version
- * @param $dryRun
- * @return bool
- * @throws \Exception
- */
- public function processQueryList($output, $version, $dryRun, $type)
- {
- $databases = $this->getDatabaseList($version, $type);
-
- foreach ($databases as $section => &$dbList) {
- foreach ($dbList as &$dbInfo) {
- $output->writeln("");
- $output->writeln("Loading section: $section with database ".$dbInfo['database']."");
- $output->writeln("--------------------------");
-
- if ($dbInfo['status'] == 'complete') {
- $output->writeln("Database already updated");
- continue;
- }
-
- if (isset($this->queryList[$type]) && isset($this->queryList[$type][$section]) && !empty($this->queryList[$type][$section])) {
- $queryList = $this->queryList[$type][$section];
-
- try {
- $lines = 0;
- $conn = $this->getHelper($dbInfo['database'])->getConnection();
-
- $conn->beginTransaction();
-
- foreach ($queryList as $query) {
- if ($dryRun) {
- $output->writeln($query);
- } else {
- $output->writeln(' -> ' . $query);
- $conn->executeQuery($query);
- }
- $lines++;
- }
-
- if (!$dryRun) {
- $conn->commit();
- $output->writeln(sprintf('%d statements executed!', $lines) . PHP_EOL);
- $dbInfo['status'] = 'complete';
- $this->saveDatabaseList($databases, $version, $type);
- }
- } catch (\Exception $e) {
- $conn->rollback();
- $output->write(sprintf('Migration failed. Error %s', $e->getMessage()));
- throw $e;
- }
- } else {
- $output->writeln(sprintf("Nothing to execute for section $section!"));
-
- return false;
- }
- }
-
- }
- $this->queryList = array();
-
- return true;
- }
-
- /**
- * @param string $sqlFilePath
- * @param $output
- * @param string type
- */
- public function fillQueryList($sqlFilePath, $output, $type)
- {
- if (is_file($sqlFilePath) && file_exists($sqlFilePath)) {
- $output->writeln(sprintf("Processing file type:$type '%s'... ", $sqlFilePath));
- $sections = $this->getSections();
-
- foreach ($sections as $section) {
- $sqlList = $this->getSQLContents($sqlFilePath, $section);
- $this->setQueryList($sqlList, $section, $type);
- }
- } else {
- $output->writeln(sprintf("File does not exists: '%s'... ", $sqlFilePath));
- }
- }
-
- /**
- * @param $queryList
- * @param $section
- */
- public function setQueryList($queryList, $section, $type)
- {
- if (!isset($this->queryList[$type][$section])) {
- $this->queryList[$type][$section] = $queryList;
- } else {
- $this->queryList[$type][$section] = array_merge($this->queryList[$type][$section], $queryList);
- }
- }
-
- /**
- *
- * @return array
- */
- public function getSections()
- {
- return array(
- 'main',
- 'user',
- 'stats',
- 'scorm',
- 'course'
- );
- }
-
- /**
- * Generates database array info
- *
- * @return mixed
- */
- public function generateDatabaseList()
- {
- $courseList = \CourseManager::get_real_course_list();
- $courseDbList = array();
-
- foreach ($courseList as $course) {
- if (!empty($course['db_name'])) {
- $courseDbList[] = array(
- 'database' => '_chamilo_course_'.$course['db_name'],
- 'status' => 'waiting'
- );
- }
- }
-
- if (empty($courseDbList)) {
- $courseDbList = array(
- array(
- 'database'=> 'main_database',
- 'status' => 'waiting'
- )
- );
- }
-
- $databaseSection = array(
- 'main' => array(
- array(
- 'database' => 'main_database',
- 'status' => 'waiting'
- )
- ),
- 'user' => array(
- array(
- 'database' => 'user_personal_database',
- 'status' => 'waiting'
- )
- ),
- 'stats' => array(
- array(
- 'database' => 'statistics_database',
- 'status' => 'waiting'
- )
- ),
- // 'scorm' => array('main_database'),
- 'course'=> $courseDbList
- );
-
- $this->setDatabaseList($databaseSection);
-
- return $this->databaseList;
- }
-
- public function setDatabaseList($list)
- {
- $this->databaseList = $list;
- }
-
- /**
- * @param string $version
- *
- * @return mixed|void
- */
- public function getDatabaseList($version, $type)
- {
- $configurationPath = $this->getHelper('configuration')->getConfigurationPath();
- $newConfigurationFile = $configurationPath.'db_migration_status_'.$version.'_'.$type.'.yml';
-
- if (file_exists($newConfigurationFile)) {
- $yaml = new Parser();
-
- return $yaml->parse(file_get_contents($newConfigurationFile));
- } else {
-
- return $this->generateDatabaseList();
- }
- }
-
- /**
- * @param string $databaseSection
- * @param string $version
- *
- * @return bool
- */
- public function saveDatabaseList($databaseSection, $version, $type)
- {
- $configurationPath = $this->getHelper('configuration')->getConfigurationPath();
- $dumper = new Dumper();
- $yaml = $dumper->dump($databaseSection, 2); //inline
- $newConfigurationFile = $configurationPath.'db_migration_status_'.$version.'_'.$type.'.yml';
- file_put_contents($newConfigurationFile, $yaml);
-
- return file_exists($newConfigurationFile);
- }
-
- /**
- *
- * @param string $section
- *
- * @return mixed
- */
- public function getDatabasesPerSection($section, $version, $type)
- {
- $databases = $this->getDatabaseList($version, $type);
- if (isset($databases[$section])) {
- return $databases[$section];
- }
- }
-
- /**
- * Function originally wrote in install.lib.php
- *
- * @param string $file
- * @param string $section
- * @param bool $printErrors
- *
- * @return array|bool
- */
- public function getSQLContents($file, $section, $printErrors = true)
- {
- //check given parameters
- if (empty($file)) {
- $error = "Missing name of file to parse in get_sql_file_contents()";
- if ($printErrors) {
- echo $error;
- }
-
- return false;
- }
- if (!in_array($section, array('main', 'user', 'stats', 'scorm', 'course'))) {
- $error = "Section '$section' is not authorized in getSQLContents()";
- if ($printErrors) {
- echo $error;
- }
-
- return false;
- }
- $filepath = $file;
- if (!is_file($filepath) or !is_readable($filepath)) {
- $error = "File $filepath not found or not readable in getSQLContents()";
- if ($printErrors) {
- echo $error;
- }
-
- return false;
- }
- //read the file in an array
- // Empty lines should not be executed as SQL statements, because errors occur, see Task #2167.
- $file_contents = file($filepath, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
- if (!is_array($file_contents) or count($file_contents) < 1) {
- $error = "File $filepath looks empty in getSQLContents()";
- if ($printErrors) {
- echo $error;
- }
-
- return false;
- }
-
- //prepare the resulting array
- $section_contents = array();
- $record = false;
- foreach ($file_contents as $index => $line) {
- if (substr($line, 0, 2) == '--') {
- //This is a comment. Check if section name, otherwise ignore
- $result = array();
- if (preg_match('/^-- xx([A-Z]*)xx/', $line, $result)) { //we got a section name here
- if ($result[1] == strtoupper($section)) {
- //we have the section we are looking for, start recording
- $record = true;
- } else {
- //we have another section's header. If we were recording, stop now and exit loop
- if ($record) {
- break;
- }
- $record = false;
- }
- }
- } else {
- if ($record) {
- if (!empty($line)) {
- $section_contents[] = $line;
- }
- }
- }
- }
-
- //now we have our section's SQL statements group ready, return
- return $section_contents;
- }
-
-
- /**
- * Executed only before createCourseTables()
- */
- public function dropCourseTables()
- {
- $list = \CourseManager::get_course_tables();
- foreach ($list as $table) {
- $sql = "DROP TABLE IF EXISTS ".DB_COURSE_PREFIX.$table;
- \Database::query($sql);
- }
- }
-
- /**
- * Creates the course tables with the prefix c_
- * @param $output
- */
- public function createCourseTables($output)
- {
- $command = $this->getApplication()->find('dbal:import');
- $sqlFolder = $this->getInstallationPath('1.9.0');
-
- //Importing sql files
- $arguments = array(
- 'command' => 'dbal:import',
- 'file' => $sqlFolder.'db_course.sql'
- );
- $input = new ArrayInput($arguments);
- $command->run($input, $output);
- }
-}
-
diff --git a/src/ChamiloLMS/Component/Installer/Installer.php b/src/ChamiloLMS/Component/Installer/Installer.php
new file mode 100644
index 0000000000..6eff4e5199
--- /dev/null
+++ b/src/ChamiloLMS/Component/Installer/Installer.php
@@ -0,0 +1,48 @@
+=5.3.2",
- "symfony/console": ">=2.3,<3.0",
- "symfony/yaml": ">=2.3,<3.0"
- },
- "time": "2013-06-14 09:54:38",
- "type": "library",
- "installation-source": "source",
- "autoload": {
- "psr-0": {
- "Chash": "src/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "homepage": "http://www.chamilo.org"
- },
{
"name": "symfony/property-access",
"version": "2.3.x-dev",
@@ -3722,5 +3691,39 @@
"annotations",
"controllers"
]
+ },
+ {
+ "name": "chamilo/chash",
+ "version": "dev-master",
+ "version_normalized": "9999999-dev",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/chamilo/chash.git",
+ "reference": "8bce386a29778b6b02e3f5eda5d561f529db61ed"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/chamilo/chash/zipball/8bce386a29778b6b02e3f5eda5d561f529db61ed",
+ "reference": "8bce386a29778b6b02e3f5eda5d561f529db61ed",
+ "shasum": ""
+ },
+ "require": {
+ "doctrine/dbal": "~2.3",
+ "doctrine/migrations": "dev-master",
+ "doctrine/orm": "~2.3",
+ "php": ">=5.3.2",
+ "symfony/console": "~2.3",
+ "symfony/yaml": "~2.3"
+ },
+ "time": "2013-07-08 13:07:27",
+ "type": "library",
+ "installation-source": "source",
+ "autoload": {
+ "psr-0": {
+ "Chash": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "homepage": "http://www.chamilo.org"
}
]