]> git.mjollnir.org Git - moodle.git/commitdiff
added fields: useranswer field in lesson_attempts, and added modattempts to lesson...
authormichaelpenne <michaelpenne>
Mon, 1 Nov 2004 20:47:08 +0000 (20:47 +0000)
committermichaelpenne <michaelpenne>
Mon, 1 Nov 2004 20:47:08 +0000 (20:47 +0000)
mod/lesson/db/mysql.sql

index 69b02164b28fcb2ebd382c831e01fcce5574a6f0..e8f69317ea999893908f7665720d1e2b4e406f96 100644 (file)
@@ -9,6 +9,7 @@ CREATE TABLE `prefix_lesson` (
   `course` int(10) unsigned NOT NULL default '0',
   `name` varchar(255) NOT NULL default '',
   `practice` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
+  `modattempts` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
   `usepassword` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
   `password` VARCHAR(32) NOT NULL default '',
   `grade` tinyint(3) NOT NULL default '0',
@@ -81,6 +82,7 @@ CREATE TABLE `prefix_lesson_attempts` (
   `answerid` int(10) unsigned NOT NULL default '0',
   `retry` int(3) unsigned NOT NULL default '0',
   `correct` int(10) unsigned NOT NULL default '0',
+  `useranswer' text NOT NULL default '',
   `timeseen` int(10) unsigned NOT NULL default '0',
   PRIMARY KEY  (`id`),
   KEY (`userid`)
@@ -102,6 +104,7 @@ CREATE TABLE `prefix_lesson_default`
                ( `id` int(10) unsigned NOT NULL auto_increment,
                  `course` int(10) unsigned NOT NULL default '0',
                  `practice` tinyint(3) unsigned NOT NULL default '0',
+                 `modattempts` tinyint(3) unsigned NOT NULL default '0',
                  `password` varchar(32) NOT NULL default '',
                  `usepassword` int(3) unsigned NOT NULL default '0',
                  `grade` tinyint(3) NOT NULL default '0',
@@ -151,23 +154,6 @@ CREATE TABLE `prefix_lesson_branch`
        );
 # --------------------------------------------------------
 
-CREATE TABLE `prefix_lesson_essay`
-       ( `id` int(10) unsigned not null auto_increment,
-         `lessonid` int(10) unsigned not null,
-         `userid` int(10) unsigned not null,
-         `pageid` int(10) unsigned not null,
-         `answerid` int(10) unsigned not null,
-         `try` int(10) unsigned not null,
-         `answer` text not null,
-         `graded` tinyint(3) unsigned not null default 0,
-         `score` int(10) unsigned not null default 0,
-         `response` text not null,
-         `sent` tinyint(3) unsigned not null default 0,
-         `timesubmitted` int(10) unsigned not null,
-         PRIMARY KEY (`id`)
-       );
-# --------------------------------------------------------
-
 CREATE TABLE `prefix_lesson_high_scores`
        ( `id` int(10) unsigned not null auto_increment,
          `lessonid` int(10) unsigned not null,