Merge branch 'MDL-50723-master' of git://github.com/andrewnicols/moodle
[moodle.git] / lib / db / upgrade.php
index 0adf125..9dcce10 100644 (file)
@@ -4456,5 +4456,19 @@ function xmldb_main_upgrade($oldversion) {
         upgrade_main_savepoint(true, 2015081300.01);
     }
 
+    if ($oldversion < 2015082400.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, 2015082400.00);
+    }
+
     return true;
 }