From 04c24a55ec4640d2143ad4877095286f62e0521b Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Fri, 14 Aug 2015 08:42:33 +0800 Subject: [PATCH] MDL-50723 core: Remove long-defunct table webdav_locks --- lib/db/install.xml | 26 ++------------------------ lib/db/upgrade.php | 14 ++++++++++++++ version.php | 2 +- 3 files changed, 17 insertions(+), 25 deletions(-) diff --git a/lib/db/install.xml b/lib/db/install.xml index 193dad3d77a..76e23ee6ec0 100644 --- a/lib/db/install.xml +++ b/lib/db/install.xml @@ -1,5 +1,5 @@ - @@ -2172,28 +2172,6 @@ - - - - - - - - - - - - - - - - - - - - - -
@@ -3078,4 +3056,4 @@
-
+ \ No newline at end of file diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index 10992e88be6..a3e1885a9ad 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -4441,5 +4441,19 @@ function xmldb_main_upgrade($oldversion) { upgrade_main_savepoint(true, 2015062500.01); } + if ($oldversion < 2015081400.00) { + + // Define table webdav_locks to be dropped. + $table = new xmldb_table('webdav_locks'); + + // Conditionally launch drop table for webdav_locks. + if ($dbman->table_exists($table)) { + $dbman->drop_table($table); + } + + // Main savepoint reached. + upgrade_main_savepoint(true, 2015081400.00); + } + return true; } diff --git a/version.php b/version.php index 2bba74c51fc..8e2f3146f58 100644 --- a/version.php +++ b/version.php @@ -29,7 +29,7 @@ defined('MOODLE_INTERNAL') || die(); -$version = 2015081300.00; // YYYYMMDD = weekly release date of this DEV branch. +$version = 2015081400.00; // YYYYMMDD = weekly release date of this DEV branch. // RR = release increments - 00 in DEV branches. // .XX = incremental changes. -- 2.11.4.GIT