Index: trunk/extensions/Translate/scripts/migrate-schema2.php |
— | — | @@ -64,7 +64,13 @@ |
65 | 65 | ); |
66 | 66 | } |
67 | 67 | |
68 | | - $dbw->dropTable( 'revtag_type' ); |
| 68 | + if ( is_callable( $dbw, 'dropTable' ) ) { |
| 69 | + $dbw->dropTable( 'revtag_type', __METHOD__ ); |
| 70 | + } else { |
| 71 | + // BC for MW <1.18 |
| 72 | + $table = $dbw->tableName( 'revtag_type' ); |
| 73 | + $dbw->query( "DROP TABLE $table", __METHOD__ ); |
| 74 | + } |
69 | 75 | |
70 | 76 | } |
71 | 77 | |