Skip to content

Commit

Permalink
Fixed the primary key problem in the mysql.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelpenne committed Sep 16, 2004
1 parent c0025da commit e5c6a35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mod/lesson/db/mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit e5c6a35

Please sign in to comment.