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
Merge "Special:Preferences: Use OOjs UI"
[lhc/web/wiklou.git]
/
maintenance
/
patchSql.php
diff --git
a/maintenance/patchSql.php
b/maintenance/patchSql.php
index
43fbd38
..
bc21140
100644
(file)
--- a/
maintenance/patchSql.php
+++ b/
maintenance/patchSql.php
@@
-45,11
+45,13
@@
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 ) {
$files = [
$arg,
foreach ( $this->mArgs as $arg ) {
$files = [
$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 ) ) {
];
foreach ( $files as $file ) {
if ( file_exists( $file ) ) {