diff --git a/lib/db/mysql.php b/lib/db/mysql.php index 39ee8fc3b23..799db2b5ba6 100644 --- a/lib/db/mysql.php +++ b/lib/db/mysql.php @@ -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; diff --git a/version.php b/version.php index 5e7db38a099..ef5e6859a07 100644 --- a/version.php +++ b/version.php @@ -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