]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed the primary key problem in the mysql.
authormichaelpenne <michaelpenne>
Thu, 16 Sep 2004 16:20:59 +0000 (16:20 +0000)
committermichaelpenne <michaelpenne>
Thu, 16 Sep 2004 16:20:59 +0000 (16:20 +0000)
mod/lesson/db/mysql.php

index 40bac55b4b184c502d0543e57e1c70e915b742f7..0d760b234bf812896568976836f4c3fc9dfc5fd2 100644 (file)
@@ -46,7 +46,7 @@ function lesson_upgrade($oldversion) {
        
        if ($oldversion < 2004072100) {
                execute_sql(" create table mdl_lesson_high_scores
-                                       ( id int(10) unsigned not null auto_increment primary key,
+                                       ( id int(10) unsigned not null auto_increment,
                                          lessonid int(10) unsigned not null,
                                          userid int(10) unsigned not null,
                                          gradeid int(10) unsigned not null,
@@ -55,7 +55,7 @@ function lesson_upgrade($oldversion) {
                                        )");
 
                execute_sql(" create table mdl_lesson_essay
-                                       ( id int(10) unsigned not null auto_increment primary key,
+                                       ( 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,
@@ -71,7 +71,7 @@ function lesson_upgrade($oldversion) {
                                        )");
 
                execute_sql(" create table mdl_lesson_branch
-                                       ( id int(10) unsigned not null auto_increment primary key,
+                                       ( 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,
@@ -83,7 +83,7 @@ function lesson_upgrade($oldversion) {
 
                
                execute_sql(" create table mdl_lesson_timer
-                                       ( id int(10) unsigned not null auto_increment primary key,
+                                       ( id int(10) unsigned not null auto_increment,
                                        lessonid int(10) unsigned not null,
                                        userid int(10) unsigned not null,
                                        starttime int(10) unsigned not null,