<?php
/**
- * Makes the required database updates for Special:ProtectedPages
- * to show all protected pages, even ones before the page restrictions
- * schema change. All remaining page_restriction column values are moved
- * to the new table.
+ * Makes the required database updates for log display in Special:RevisionDelete
*
* Run via update.php or directly through populateLogSearch.php
*
function migrate_log_params( $db ) {
$start = $db->selectField( 'logging', 'MIN(log_id)', false, __FUNCTION__ );
if( !$start ) {
- die("Nothing to do.\n");
+ echo "Nothing to do.\n";
+ return true;
}
$end = $db->selectField( 'logging', 'MAX(log_id)', false, __FUNCTION__ );
}
}
}
- $blockStart += LOG_SEARCH_BATCH_SIZE - 1;
- $blockEnd += LOG_SEARCH_BATCH_SIZE - 1;
+ $blockStart += LOG_SEARCH_BATCH_SIZE;
+ $blockEnd += LOG_SEARCH_BATCH_SIZE;
wfWaitForSlaves( 5 );
}
if( $db->insert(