From 9977aa0f4a55da68946998078ca59fbb565fcc69 Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Tue, 18 Apr 2006 21:49:14 +0000 Subject: [PATCH] Don't forget the prefix_ for table names --- lib/db/mysql.php | 8 ++++---- version.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/db/mysql.php b/lib/db/mysql.php index 39ee8fc3b2..799db2b5ba 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 5e7db38a09..ef5e6859a0 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 -- 2.39.5