]> git.mjollnir.org Git - moodle.git/commitdiff
Enums are out in 2.0, so we cannot introduce any in the 1.9 => 2.0 upgrade. Deleting...
authorstronk7 <stronk7>
Thu, 2 Jul 2009 15:30:30 +0000 (15:30 +0000)
committerstronk7 <stronk7>
Thu, 2 Jul 2009 15:30:30 +0000 (15:30 +0000)
lib/db/upgrade.php

index 8bed0cde2ec72a839017a42f45ff3bb1eff2b10e..ec55e06b87a165d8951cda1993f6239d18adae00 100644 (file)
@@ -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');