From 5464847212612438cc4cda37c30e4aaaa13faa49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0koda?= Date: Sat, 30 Jun 2012 13:57:55 +0200 Subject: [PATCH] MDL-34121 drop unused backup tables that were supposed to be dropped long ago The backup/restore leftovers that referenced these will be dropped in 2.4 --- lib/db/install.xml | 32 ++------------------------------ lib/db/upgrade.php | 23 +++++++++++++++++++++++ version.php | 2 +- 3 files changed, 26 insertions(+), 31 deletions(-) diff --git a/lib/db/install.xml b/lib/db/install.xml index a7c620f4b1d..a36d01f4b71 100644 --- a/lib/db/install.xml +++ b/lib/db/install.xml @@ -2382,7 +2382,7 @@ - +
@@ -2393,35 +2393,7 @@
- - - - - - - - - - - - - -
- - - - - - - - - - - - - -
- +
diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index 920c404e191..854fbefe385 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -7089,5 +7089,28 @@ FROM upgrade_main_savepoint(true, 2011120503.03); } + if ($oldversion < 2011120503.08) { + // 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, 2011120503.08); + } + return true; } diff --git a/version.php b/version.php index d152aae3197..7bc6a94224a 100644 --- a/version.php +++ b/version.php @@ -30,7 +30,7 @@ defined('MOODLE_INTERNAL') || die(); -$version = 2011120503.07; // 20111205 = branching date YYYYMMDD - do not modify! +$version = 2011120503.08; // 20111205 = branching date YYYYMMDD - do not modify! // RR = release increments - 00 in DEV branches // .XX = incremental changes