Merge branch 'w27_MDL-34121_m23_killbackupmess' of git://github.com/skodak/moodle...
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 2 Jul 2012 16:16:54 +0000 (18:16 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 2 Jul 2012 16:16:54 +0000 (18:16 +0200)
1  2 
lib/db/upgrade.php

@@@ -871,10 -871,29 +871,33 @@@ function xmldb_main_upgrade($oldversion
          upgrade_main_savepoint(true, 2012062000.01);
      }
  
+     if ($oldversion < 2012062500.01) {
+         // Drop some old backup tables, not used anymore
+         // Define table backup_files to be dropped
+         $table = new xmldb_table('backup_files');
+         // Conditionally launch drop table for backup_files
+         if ($dbman->table_exists($table)) {
+             $dbman->drop_table($table);
+         }
+         // Define table backup_ids to be dropped
+         $table = new xmldb_table('backup_ids');
+         // Conditionally launch drop table for backup_ids
+         if ($dbman->table_exists($table)) {
+             $dbman->drop_table($table);
+         }
+         // Main savepoint reached
+         upgrade_main_savepoint(true, 2012062500.01);
+     }
  
 +    // Moodle v2.3.0 release upgrade line
 +    // Put any upgrade step following this
 +
 +
      return true;
  }