Browse Source

Fixing commit 16d5ea0f16 when creating the table lp_item

Julio Montoya 14 years ago
parent
commit
7f2fabb238
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/inc/lib/add_course.lib.inc.php

+ 1 - 1
main/inc/lib/add_course.lib.inc.php

@@ -1235,7 +1235,7 @@ function update_Db_course($course_db_name) {
     }
 
     $sql = "CREATE TABLE IF NOT EXISTS `$TABLELPITEM` (" .
-        "i              int unsigned        primary key auto_increment," .  // unique ID from MySQL
+        "id              int unsigned        primary key auto_increment," .  // unique ID from MySQL
         "lp_id          int unsigned        not null," .                    // lp_id from 'lp'
         "item_type      char(32)            not null default 'dokeos_document'," .  // can be dokeos_document, dokeos_chapter or scorm_asset, scorm_sco, scorm_chapter
         "ref            tinytext            not null default ''," .         // the ID given to this item in the imsmanifest file