summaryrefslogtreecommitdiff
path: root/maintenance/update.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-05-03 13:01:35 +0200
committerPierre Schmitz <pierre@archlinux.de>2012-05-03 13:01:35 +0200
commitd9022f63880ce039446fba8364f68e656b7bf4cb (patch)
tree16b40fbf17bf7c9ee6f4ead25b16dd192378050a /maintenance/update.php
parent27cf83d177256813e2e802241085fce5dd0f3fb9 (diff)
Update to MediaWiki 1.19.0
Diffstat (limited to 'maintenance/update.php')
-rw-r--r--maintenance/update.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/maintenance/update.php b/maintenance/update.php
index 6173befd..c4bf3b22 100644
--- a/maintenance/update.php
+++ b/maintenance/update.php
@@ -89,6 +89,8 @@ class UpdateMediaWiki extends Maintenance {
$this->output( "MediaWiki {$wgVersion} Updater\n\n" );
+ wfWaitForSlaves( 5 ); // let's not kill databases, shall we? ;) --tor
+
if ( !$this->hasOption( 'skip-compat-checks' ) ) {
$this->compatChecks();
} else {
@@ -119,8 +121,12 @@ class UpdateMediaWiki extends Maintenance {
$updater->doUpdates( $updates );
foreach( $updater->getPostDatabaseUpdateMaintenance() as $maint ) {
+ if ( $updater->updateRowExists( $maint ) ) {
+ continue;
+ }
$child = $this->runChild( $maint );
$child->execute();
+ $updater->insertUpdateRow( $maint );
}
$this->output( "\nDone.\n" );