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 "Add first letter data for bn collation (Standard and Traditional)"
[lhc/web/wiklou.git]
/
maintenance
/
sql.php
diff --git
a/maintenance/sql.php
b/maintenance/sql.php
index
a9fe45a
..
cc976ed
100644
(file)
--- a/
maintenance/sql.php
+++ b/
maintenance/sql.php
@@
-80,13
+80,18
@@
class MwSql extends Maintenance {
$this->error( "The server selected ({$db->getServer()}) is not a replica DB.", 1 );
}
$this->error( "The server selected ({$db->getServer()}) is not a replica DB.", 1 );
}
+ if ( $index === DB_MASTER ) {
+ $updater = DatabaseUpdater::newForDB( $db, true, $this );
+ $db->setSchemaVars( $updater->getSchemaVars() );
+ }
+
if ( $this->hasArg( 0 ) ) {
$file = fopen( $this->getArg( 0 ), 'r' );
if ( !$file ) {
$this->error( "Unable to open input file", true );
}
if ( $this->hasArg( 0 ) ) {
$file = fopen( $this->getArg( 0 ), 'r' );
if ( !$file ) {
$this->error( "Unable to open input file", true );
}
- $error = $db->sourceStream( $file,
false
, [ $this, 'sqlPrintResult' ] );
+ $error = $db->sourceStream( $file,
null
, [ $this, 'sqlPrintResult' ] );
if ( $error !== true ) {
$this->error( $error, true );
} else {
if ( $error !== true ) {
$this->error( $error, true );
} else {