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 "resourceloader: Deprecate ResourceLoaderContext::getConfig and ::getLogger"
[lhc/web/wiklou.git]
/
maintenance
/
populateContentTables.php
diff --git
a/maintenance/populateContentTables.php
b/maintenance/populateContentTables.php
index
644ff87
..
a264545
100644
(file)
--- a/
maintenance/populateContentTables.php
+++ b/
maintenance/populateContentTables.php
@@
-188,6
+188,11
@@
class PopulateContentTables extends Maintenance {
$startOption = 'start-archive';
}
$startOption = 'start-archive';
}
+ if ( !$this->dbw->fieldExists( $table, $fields['text_id'], __METHOD__ ) ) {
+ $this->writeln( "No need to populate, $table.{$fields['text_id']} field does not exist" );
+ return;
+ }
+
$minmax = $this->dbw->selectRow(
$table,
[ 'min' => "MIN( $idField )", 'max' => "MAX( $idField )" ],
$minmax = $this->dbw->selectRow(
$table,
[ 'min' => "MIN( $idField )", 'max' => "MAX( $idField )" ],