Permalink
Browse files

Fixed the primary key problem in the mysql.

  • Loading branch information...
1 parent c0025da commit e5c6a35c22bb020b4dc721b1c7b3ada22c2bc275 michaelpenne committed Sep 16, 2004
Showing with 4 additions and 4 deletions.
  1. +4 −4 mod/lesson/db/mysql.php
View
8 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,

0 comments on commit e5c6a35

Please sign in to comment.