r99652 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99651‎ | r99652 | r99653 >
Date:21:49, 12 October 2011
Author:wikinaut
Status:deferred
Tags:
Comment:
follow-up r99529 . only changes: using the Database updaters convenience wrappers where this is possible
Modified paths:
  • /trunk/extensions/OpenID/OpenID.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OpenID/OpenID.hooks.php
@@ -359,13 +359,13 @@
360360 if ( !$info->isMultipleKey() ) {
361361 $updater->addExtensionUpdate( array( 'dropIndex', 'user_openid', 'uoi_user',
362362 dirname( __FILE__ ) . '/patches/patch-drop_non_multiple_key_index_uoi_user.sql', true ) );
363 - $updater->addExtensionUpdate( array( 'addIndex', 'user_openid', 'user_openid_user',
364 - dirname( __FILE__ ) . '/patches/patch-add_multiple_key_index_user_openid_user.sql', true ) );
 363+ $updater->addExtensionIndex( 'user_openid', 'user_openid_user',
 364+ dirname( __FILE__ ) . '/patches/patch-add_multiple_key_index_user_openid_user.sql' );
365365 }
366366
367367 # uoi_user_registration field was added in OpenID version 0.937
368 - $updater->addExtensionUpdate( array( 'addField', 'user_openid', 'uoi_user_registration',
369 - dirname( __FILE__ ) . '/patches/patch-add_uoi_user_registration.sql', true ) );
 368+ $updater->addExtensionField( 'user_openid', 'uoi_user_registration',
 369+ dirname( __FILE__ ) . '/patches/patch-add_uoi_user_registration.sql' );
370370 }
371371 return true;
372372 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r99529follow-up r99511 r97447 and not using dropIndex and addIndex directly any mor...wikinaut18:39, 11 October 2011

Status & tagging log