Don't forget the prefix_ for table names

This commit is contained in:
gustav_delius 2006-04-18 21:49:14 +00:00
parent 04ddd06c1d
commit 9977aa0f4a
2 changed files with 5 additions and 5 deletions

View 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;

View 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