Index: trunk/phase3/tests/phpunit/MediaWikiTestCase.php |
— | — | @@ -144,9 +144,10 @@ |
145 | 145 | } |
146 | 146 | |
147 | 147 | foreach ( $tables as $table ) { |
148 | | - if( $this->db->tableExists( "`$table`" ) ) { |
| 148 | + try { |
149 | 149 | $sql = $this->db->getType() == 'oracle' ? "DROP TABLE $table DROP CONSTRAINTS" : "DROP TABLE `$table`"; |
150 | 150 | $this->db->query( $sql, __METHOD__ ); |
| 151 | + } catch( Exception $e ) { |
151 | 152 | } |
152 | 153 | } |
153 | 154 | |