X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpopulateContentTables.php;h=a264545e7f3c01e4b2f59f541905de0c16d23402;hb=fa47a78f5f2a47400f8fbbe19927c7754bbbe7d6;hp=644ff87ee83b9cdef7f29f0db197a773266a6a10;hpb=c69bf3bc87bacc84da42f95781e950e4bc9d48d1;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/populateContentTables.php b/maintenance/populateContentTables.php index 644ff87ee8..a264545e7f 100644 --- a/maintenance/populateContentTables.php +++ b/maintenance/populateContentTables.php @@ -188,6 +188,11 @@ class PopulateContentTables extends Maintenance { $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 )" ],