begin( __METHOD__ ); $tbl_arch = $dbw->tableName( 'archive' ); # Delete as appropriate $maint->handleOutput( "Deleting archived revisions... " ); $dbw->query( "DELETE FROM $tbl_arch" ); $count = $dbw->affectedRows(); $deletedRows = $count != 0; $maint->handleOutput( "done. $count revisions deleted.\n" ); # This bit's done # Purge redundant text records $dbw->commit( __METHOD__ ); if ( $deletedRows ) { $maint->purgeRedundantText( true ); } } }