Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed the primary key problem in the mysql.

  • Loading branch information...
commit e5c6a35c22bb020b4dc721b1c7b3ada22c2bc275 1 parent c0025da
authored September 16, 2004

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  mod/lesson/db/mysql.php
8  mod/lesson/db/mysql.php
@@ -46,7 +46,7 @@ function lesson_upgrade($oldversion) {
46 46
 	
47 47
 	if ($oldversion < 2004072100) {
48 48
 		execute_sql(" create table mdl_lesson_high_scores
49  
-					( id int(10) unsigned not null auto_increment primary key,
  49
+					( id int(10) unsigned not null auto_increment,
50 50
 					  lessonid int(10) unsigned not null,
51 51
 					  userid int(10) unsigned not null,
52 52
 					  gradeid int(10) unsigned not null,
@@ -55,7 +55,7 @@ function lesson_upgrade($oldversion) {
55 55
 					)");
56 56
 
57 57
 		execute_sql(" create table mdl_lesson_essay
58  
-					( id int(10) unsigned not null auto_increment primary key,
  58
+					( id int(10) unsigned not null auto_increment,
59 59
 					  lessonid int(10) unsigned not null,
60 60
 					  userid int(10) unsigned not null,
61 61
 					  pageid int(10) unsigned not null,
@@ -71,7 +71,7 @@ function lesson_upgrade($oldversion) {
71 71
 					)");
72 72
 
73 73
 		execute_sql(" create table mdl_lesson_branch
74  
-					( id int(10) unsigned not null auto_increment primary key,
  74
+					( id int(10) unsigned not null auto_increment,
75 75
 					  lessonid int(10) unsigned not null,
76 76
 					  userid int(10) unsigned not null,
77 77
 					  pageid int(10) unsigned not null,
@@ -83,7 +83,7 @@ function lesson_upgrade($oldversion) {
83 83
 
84 84
 		
85 85
 		execute_sql(" create table mdl_lesson_timer
86  
-					( id int(10) unsigned not null auto_increment primary key,
  86
+					( id int(10) unsigned not null auto_increment,
87 87
   					lessonid int(10) unsigned not null,
88 88
 					userid int(10) unsigned not null,
89 89
 					starttime int(10) unsigned not null,

0 notes on commit e5c6a35

Please sign in to comment.
Something went wrong with that request. Please try again.