On Sat, Apr 5, 2008 at 12:44 PM, aaron@svn.wikimedia.org wrote:
Log Message:
Rename block/rights log (bug 7011)
$dbw->update( 'logging',
array( 'log_title' => $newTitle->getDBKey() ),
array( 'log_type' => array( 'block', 'rights' ),
'log_namespace' => NS_USER,
'log_title' => $oldTitle->getDBKey() ),
__METHOD__,
array( 'USE INDEX' => 'page_time' ) );
Why don't you just drop the log_type condition and rename all old logs?