]> git.mjollnir.org Git - moodle.git/commitdiff
Don't forget the prefix_ for table names
authorgustav_delius <gustav_delius>
Tue, 18 Apr 2006 21:49:14 +0000 (21:49 +0000)
committergustav_delius <gustav_delius>
Tue, 18 Apr 2006 21:49:14 +0000 (21:49 +0000)
lib/db/mysql.php
version.php

index 39ee8fc3b23a67487cde69493ef4d0e5aecff3a6..799db2b5ba679e9f9f49eab994be353e92379c29 100644 (file)
@@ -1780,10 +1780,10 @@ function main_upgrade($oldversion=0) {
         table_column('course_modules','','visibleold','integer','1','unsigned','1','not null', 'visible');
     }
     
-    if ($oldversion < 2006041800) { // forgot auto_increments for ids
-        modify_database('',"ALTER TABLE post CHANGE id id INT UNSIGNED NOT NULL AUTO_INCREMENT");
-        modify_database('',"ALTER TABLE tags CHANGE id id INT UNSIGNED NOT NULL AUTO_INCREMENT");
-        modify_database('',"ALTER TABLE blog_tag_instance CHANGE id id INT UNSIGNED NOT NULL AUTO_INCREMENT");
+    if ($oldversion < 2006041801) { // forgot auto_increments for ids
+        modify_database('',"ALTER TABLE prefix_post CHANGE id id INT UNSIGNED NOT NULL AUTO_INCREMENT");
+        modify_database('',"ALTER TABLE prefix_tags CHANGE id id INT UNSIGNED NOT NULL AUTO_INCREMENT");
+        modify_database('',"ALTER TABLE prefix_blog_tag_instance CHANGE id id INT UNSIGNED NOT NULL AUTO_INCREMENT");
     }
     
     return $result;
index 5e7db38a0996136e195a93f9558f9968d289920a..ef5e6859a078c787d6ed289c03b7b7fe1bb934c4 100644 (file)
@@ -6,7 +6,7 @@
 // This is compared against the values stored in the database to determine
 // whether upgrades should be performed (see lib/db/*.php)
 
-   $version = 2006041800;  // YYYYMMDD = date
+   $version = 2006041801;  // YYYYMMDD = date
                            //       XY = increments within a single day
 
    $release = '1.6 Beta 3';    // Human-friendly version name