$end = $db->selectField( $table, "MAX($idCol)", false, __METHOD__ );
if ( !$start || !$end ) {
$this->output( "...$table table seems to be empty.\n" );
- return true;
+ return 0;
}
$count = 0;
}
return $count;
}
-
+
+ /**
+ * @return int
+ */
protected function doSha1LegacyUpdates() {
$count = 0;
$db = $this->getDB( DB_MASTER );
}
}
$db->commit( __METHOD__ );
+ return $count;
}
+ /**
+ * @param $row
+ * @param $table
+ * @param $idCol
+ * @param $prefix
+ * @return bool
+ */
protected function upgradeRow( $row, $table, $idCol, $prefix ) {
$db = $this->getDB( DB_MASTER );
if ( $table === 'archive' ) {
}
}
+ /**
+ * @param $row
+ * @return bool
+ */
protected function upgradeLegacyArchiveRow( $row ) {
$db = $this->getDB( DB_MASTER );
$rev = Revision::newFromArchiveRow( $row );