]> git.mjollnir.org Git - moodle.git/commitdiff
blocks upgrade: MDL-19511 put back important code that Petr commented out!
authortjhunt <tjhunt>
Tue, 16 Jun 2009 10:23:56 +0000 (10:23 +0000)
committertjhunt <tjhunt>
Tue, 16 Jun 2009 10:23:56 +0000 (10:23 +0000)
The actual mistake was the name of the previous column, which is totally irrelevant, but which XMLDB had filled in incorrectly. Grrr!

lib/db/upgrade.php

index 05dbd154e3977c7a4ac96062fe98564848231c17..b2d3bbf4ea7a5ecca6909a6e287c24a657a376a1 100644 (file)
@@ -1796,16 +1796,15 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
     }
 
     if ($result && $oldversion < 2009050607) {
-//TODO: remove, this field does not exist yet!
     /// Changing precision of field defaultregion on table block_instances to (16)
-/*        $table = new xmldb_table('block_instances');
-        $field = new xmldb_field('defaultregion', XMLDB_TYPE_CHAR, '16', null, XMLDB_NOTNULL, null, null, 'subpagepattern');
+        $table = new xmldb_table('block_instances');
+        $field = new xmldb_field('defaultregion', XMLDB_TYPE_CHAR, '16', null, XMLDB_NOTNULL, null, null, 'pagetype');
 
     /// Launch change of precision for field defaultregion
         $dbman->change_field_precision($table, $field);
 
     /// Main savepoint reached
-        upgrade_main_savepoint($result, 2009050607);*/
+        upgrade_main_savepoint($result, 2009050607);
     }
 
     if ($result && $oldversion < 2009050608) {