Index: trunk/phase3/maintenance/update.php |
— | — | @@ -88,7 +88,7 @@ |
89 | 89 | $wgTitle = Title::newFromText( "MediaWiki database updater" ); |
90 | 90 | |
91 | 91 | $this->output( "MediaWiki {$wgVersion} Updater\n\n" ); |
92 | | - |
| 92 | + |
93 | 93 | wfWaitForSlaves( 5 ); // let's not kill databases, shall we? ;) --tor |
94 | 94 | |
95 | 95 | if ( !$this->hasOption( 'skip-compat-checks' ) ) { |
— | — | @@ -121,8 +121,12 @@ |
122 | 122 | $updater->doUpdates( $updates ); |
123 | 123 | |
124 | 124 | foreach( $updater->getPostDatabaseUpdateMaintenance() as $maint ) { |
| 125 | + if ( $updater->updateRowExists( $maint ) ) { |
| 126 | + continue; |
| 127 | + } |
125 | 128 | $child = $this->runChild( $maint ); |
126 | 129 | $child->execute(); |
| 130 | + $updater->insertUpdateRow( $maint ); |
127 | 131 | } |
128 | 132 | |
129 | 133 | $this->output( "\nDone.\n" ); |