From 52902cea23e3fdf1c9aec3aec5218c143a823eb5 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 16 Jun 2009 10:31:33 +0000 Subject: [PATCH] blocks upgrade: MDL-19511 And repeat the upgrade step, since some poeple will have missed it. --- lib/db/upgrade.php | 14 ++++++++++++++ version.php | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index b2d3bbf4ea..f2a1519d86 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -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; } diff --git a/version.php b/version.php index 7a1c06d9fc..740de79cc3 100644 --- a/version.php +++ b/version.php @@ -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 -- 2.39.5