From: stronk7 Date: Thu, 2 Jul 2009 15:30:30 +0000 (+0000) Subject: Enums are out in 2.0, so we cannot introduce any in the 1.9 => 2.0 upgrade. Deleting... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fdc391470e6553aafb4d9347e184236a35e4fd2f;p=moodle.git Enums are out in 2.0, so we cannot introduce any in the 1.9 => 2.0 upgrade. Deleting the upgrade block. --- diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index 8bed0cde2e..ec55e06b87 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -608,19 +608,6 @@ function xmldb_main_upgrade($oldversion) { upgrade_main_savepoint($result, 2008081300); } - if ($result && $oldversion < 2008081301) { - - /// Changing list of values (enum) of field publishstate on table post to 'draft', 'site', 'public', 'group', 'course' - $table = new xmldb_table('post'); - $field = new xmldb_field('publishstate', XMLDB_TYPE_CHAR, '20', null, XMLDB_NOTNULL, null, XMLDB_ENUM, array('draft', 'site', 'public', 'group', 'course'), 'draft', 'attachment'); - - /// Launch change of list of values for field publishstate - $dbman->change_field_enum($table, $field); - - /// Main savepoint reached - upgrade_main_savepoint($result, 2008081301); - } - if ($result && $oldversion < 2008081500) { /// Changing the type of all the columns that the question bank uses to store grades to be NUMBER(12, 7). $table = new xmldb_table('question');