Fix for bug 2627 (which was real and not a duplicate).

This commit is contained in:
defacer
2005-02-24 04:26:33 +00:00
parent 6f9e100660
commit c903f9b076
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -126,6 +126,10 @@ global $CFG;
$result = $result && table_column('block_instance', 'position', 'position', 'varchar', '10', '');
}
if ($oldversion < 2004112900 && $result) {
execute_sql('UPDATE '.$CFG->prefix.'block_instance SET pagetype = \''.PAGE_COURSE_VIEW.'\' WHERE pagetype = \'\'');
}
//Finally, return result
return $result;
}
+1 -1
View File
@@ -5,4 +5,4 @@
// database (blocks_version) to determine whether upgrades should
// be performed (see db/backup_*.php)
$blocks_version = 2004111200; // The current version is a date (YYYYMMDDXX)
$blocks_version = 2005022400; // The current version is a date (YYYYMMDDXX)