dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reopen db connection after doing SpecialPageCacheUpdates
[lhc/web/wiklou.git]
/
maintenance
/
patchSql.php
diff --git
a/maintenance/patchSql.php
b/maintenance/patchSql.php
index
f94046a
..
bc21140
100644
(file)
--- a/
maintenance/patchSql.php
+++ b/
maintenance/patchSql.php
@@
-45,12
+45,14
@@
class PatchSql extends Maintenance {
public function execute() {
$dbw = $this->getDB( DB_MASTER );
public function execute() {
$dbw = $this->getDB( DB_MASTER );
+ $updater = DatabaseUpdater::newForDB( $dbw, true, $this );
+
foreach ( $this->mArgs as $arg ) {
foreach ( $this->mArgs as $arg ) {
- $files =
array(
+ $files =
[
$arg,
$arg,
- $
dbw->patchPath(
$arg ),
- $
dbw->patchPath(
"patch-$arg.sql" ),
-
)
;
+ $
updater->patchPath( $dbw,
$arg ),
+ $
updater->patchPath( $dbw,
"patch-$arg.sql" ),
+
]
;
foreach ( $files as $file ) {
if ( file_exists( $file ) ) {
$this->output( "$file ...\n" );
foreach ( $files as $file ) {
if ( file_exists( $file ) ) {
$this->output( "$file ...\n" );