From: nicolasconnault Date: Thu, 3 May 2007 05:44:33 +0000 (+0000) Subject: MDL-9506 Removed childrentype after discussion with Martin D. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=cb63031c37db96281ef4c7cabec7f2d4986a3646;p=moodle.git MDL-9506 Removed childrentype after discussion with Martin D. --- diff --git a/lib/db/install.xml b/lib/db/install.xml index 2df209577a..c89d025d06 100644 --- a/lib/db/install.xml +++ b/lib/db/install.xml @@ -1272,9 +1272,8 @@ - - - + + diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index fe07f9935e..be0a781cc4 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -1161,7 +1161,16 @@ function xmldb_main_upgrade($oldversion=0) { // Launch add field childrentype $result = $result && add_field($table, $field); } + if ($result && $oldversion < 2007050301) { + + /// Define field parent to be dropped from grade_categories + $table = new XMLDBTable('grade_categories'); + $field = new XMLDBField('childrentype'); + /// Launch drop field parent + $result = $result && drop_field($table, $field); + } + return $result; } diff --git a/version.php b/version.php index 8d308f0349..f601d20202 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 = 2007050300; // YYYYMMDD = date + $version = 2007050301; // YYYYMMDD = date // XY = increments within a single day $release = '1.9 dev'; // Human-friendly version name