]> git.mjollnir.org Git - moodle.git/commitdiff
Drop one more table if present
authorstronk7 <stronk7>
Sat, 30 Sep 2006 23:09:41 +0000 (23:09 +0000)
committerstronk7 <stronk7>
Sat, 30 Sep 2006 23:09:41 +0000 (23:09 +0000)
admin/xmldb/actions/test/test.class.php

index 8a886cf87b3abf60c34a247925541bcb81d37fd4..7420637829800c63e7768e0a209d524103640bda 100644 (file)
@@ -81,6 +81,10 @@ class test extends XMLDBAction {
         if (table_exists($table)) {
             $status = drop_table($table, true, false);
         }
+        $table = new XMLDBTable ('newnameforthetable');
+        if (table_exists($table)) {
+            $status = drop_table($table, true, false);
+        }
 
     /// 1st test. Complete table creation.
         $table = new XMLDBTable('testtable');