X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=blobdiff_plain;f=lib%2Fdb%2Fupgrade.php;h=df004151445cabb2029b51bb58949c8e8d22c6dd;hp=e298b27641e6e3e8325a86eb14c9b0f76b321cf8;hb=d69bf76ec7964f27ad553ca291e0607d8e652abe;hpb=0b3681a495fe81ba7dd9f6805e7ce7f267759a11 diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index e298b27641e..df004151445 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -2443,7 +2443,6 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL"); upgrade_main_savepoint(true, 2010011200); } - if ($oldversion < 2010012500) { upgrade_fix_incorrect_mnethostids(); upgrade_main_savepoint(true, 2010012500); @@ -2649,35 +2648,6 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL"); upgrade_main_savepoint(true, 2010032400); } - if ($oldversion < 2010033101.01) { - - /// Define field source to be added to files - $table = new xmldb_table('files'); - - $field = new xmldb_field('source', XMLDB_TYPE_TEXT, 'small', null, null, null, null, 'status'); - - /// Conditionally launch add field source - if (!$dbman->field_exists($table, $field)) { - $dbman->add_field($table, $field); - } - - $field = new xmldb_field('author', XMLDB_TYPE_CHAR, '255', null, null, null, null, 'source'); - - /// Conditionally launch add field author - if (!$dbman->field_exists($table, $field)) { - $dbman->add_field($table, $field); - } - - $field = new xmldb_field('license', XMLDB_TYPE_CHAR, '255', null, null, null, null, 'author'); - - /// Conditionally launch add field license - if (!$dbman->field_exists($table, $field)) { - $dbman->add_field($table, $field); - } - - upgrade_main_savepoint(true, 2010033101.01); - } - if ($oldversion < 2010033101.02) { /// Define table license to be created @@ -4761,5 +4731,4 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL"); //TODO: Cleanup before the 2.0 release - we do not want to drag along these dev machine fixes forever // 1/ drop block_pinned_old table here and in install.xml // 2/ drop block_instance_old table here and in install.xml -// 3/ remove 2010033101 block // 4/ remove 2010032400 block