return 2 /* Maintenance::DB_ADMIN */;
}
- private function compatChecks() {
+ function compatChecks() {
$test = new PhpXmlBugTester();
if ( !$test->ok ) {
$this->error(
}
$shared = $this->hasOption( 'doshared' );
- $purge = !$this->hasOption( 'nopurge' );
+
+ $updates = array('core','extensions');
+ if( !$this->hasOption('nopurge') ) {
+ $updates[] = 'purge';
+ }
$updater = DatabaseUpdater::newForDb( $db, $shared, $this );
- $updater->doUpdates( $purge );
+ $updater->doUpdates( $updates );
foreach( $updater->getPostDatabaseUpdateMaintenance() as $maint ) {
$child = $this->runChild( $maint );