]> git.mjollnir.org Git - moodle.git/commitdiff
blocks upgrade: MDL-19511 And repeat the upgrade step, since some poeple will have...
authortjhunt <tjhunt>
Tue, 16 Jun 2009 10:31:33 +0000 (10:31 +0000)
committertjhunt <tjhunt>
Tue, 16 Jun 2009 10:31:33 +0000 (10:31 +0000)
lib/db/upgrade.php
version.php

index b2d3bbf4ea7a5ecca6909a6e287c24a657a376a1..f2a1519d8697aa2a72a28782d993f6eccbe82a80 100644 (file)
@@ -2177,6 +2177,20 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
         upgrade_main_savepoint($result, 2009061300);
     }
 
+    /// Repeat 2009050607 upgrade step, which Petr commented out becuase of XMLDB
+    /// stupidity, so lots of peopel will have missed.
+    if ($result && $oldversion < 2009061600) {
+    /// 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, 'configdata');
+
+    /// Launch change of precision for field defaultregion
+        $dbman->change_field_precision($table, $field);
+
+    /// Main savepoint reached
+        upgrade_main_savepoint($result, 2009061600);
+    }
+
     return $result;
 }
 
index 7a1c06d9fc80eddc1bd9c80c3686eb523dfa6f10..740de79cc3850e8df24a8b5d113d0fe87085db7c 100644 (file)
@@ -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 = 2009061300;  // YYYYMMDD   = date of the last version bump
+    $version = 2009061600;  // YYYYMMDD   = date of the last version bump
                             //         XX = daily increments
 
     $release = '2.0 dev (Build: 20090616)';  // Human-friendly version name