]> git.mjollnir.org Git - moodle.git/commitdiff
blocklib: MDL-19010 fix upgrade breakage that Nico caused when he fixed the other...
authortjhunt <tjhunt>
Thu, 7 May 2009 02:38:12 +0000 (02:38 +0000)
committertjhunt <tjhunt>
Thu, 7 May 2009 02:38:12 +0000 (02:38 +0000)
lib/db/upgrade.php

index 0f1f4f1dd4f4bef9392368491ef2fd369b9eaf5d..edb646a1012cabd716f05a7d3562232e89382a53 100644 (file)
@@ -1718,11 +1718,11 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
 
     if ($result && $oldversion < 2009050601) {
 
-    /// Define table block_instance to be renamed to block_instance_old
+    /// Define table block_instance to be renamed to block_instances
         $table = new xmldb_table('block_instance');
 
     /// Launch rename table for block_instance
-        $dbman->rename_table($table, 'block_instance_old');
+        $dbman->rename_table($table, 'block_instances');
 
     /// Main savepoint reached
         upgrade_main_savepoint($result, 2009050601);