From: Francois Marier <francois@catalyst.net.nz>
Date: Tue, 9 Oct 2007 03:18:07 +0000 (+1300)
Subject: Upgrade script fixes based on the NMIT 1.5 to 1.8 upgrade
X-Git-Url: http://gitprivate/gw?p=moodle-r2.git;a=commitdiff_plain;h=4ee60d6e23d444e83c7aa713db2605d18c60b4ad;hp=3ffbe63e29ca77d803b510c137b9b802e082137c

Upgrade script fixes based on the NMIT 1.5 to 1.8 upgrade
This is based on Jonathan Harker's fixes in the mdl18-nmit branch.  See commit 4e05d84c881c257728bea45dc0734dc8a0cdee25 (gitpublic).

The role assignments are now properly done during the upgrade.
---

diff --git a/mod/resource/db/postgres7.php b/mod/resource/db/postgres7.php
index 1a9ca38..7cf9a1e 100644
--- a/mod/resource/db/postgres7.php
+++ b/mod/resource/db/postgres7.php
@@ -23,7 +23,6 @@ function resource_upgrade($oldversion) {
             }
         }
         require_once("$CFG->dirroot/course/lib.php");
-        rebuild_course_cache();
     }
     
     if ($oldversion < 2004071300) {
@@ -46,7 +47,6 @@ function resource_upgrade($oldversion) {
 
     if ($oldversion < 2004080801) {
         modify_database("", "UPDATE prefix_resource SET alltext=reference,type='html' WHERE type='reference';");
-        rebuild_course_cache();
     }
 
     if ($oldversion < 2004111200) {//drop first to avoid conflicts when upgrading
