// 1.27
array( 'dropTable', 'msg_resource_links' ),
array( 'dropTable', 'msg_resource' ),
- array( 'addTable', 'bot_passwords', 'patch-bot_passwords.sql' ),
);
}
foreach ( $res as $row ) {
$count = ( $count + 1 ) % 100;
if ( $count == 0 ) {
- wfWaitForSlaves();
+ wfGetLBFactory()->waitForReplication( array( 'wiki' => wfWikiID() ) );
}
$this->db->insert( 'templatelinks',
array(