mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Don't forget the prefix_ for table names
This commit is contained in:
parent
04ddd06c1d
commit
9977aa0f4a
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user