From e5c6a35c22bb020b4dc721b1c7b3ada22c2bc275 Mon Sep 17 00:00:00 2001 From: michaelpenne Date: Thu, 16 Sep 2004 16:20:59 +0000 Subject: [PATCH] Fixed the primary key problem in the mysql. --- mod/lesson/db/mysql.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mod/lesson/db/mysql.php b/mod/lesson/db/mysql.php index 40bac55b4b184..0d760b234bf81 100644 --- a/mod/lesson/db/mysql.php +++ b/mod/lesson/db/mysql.php @@ -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,