r95306 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95305‎ | r95306 | r95307 >
Date:13:05, 23 August 2011
Author:catrope
Status:ok
Tags:
Comment:
Unbreak ArticleFeedback updater, tried to migrate the article_feedback_stats_highs_lows table even if it didn't exist
Modified paths:
  • /trunk/extensions/ArticleFeedback/ArticleFeedback.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ArticleFeedback/ArticleFeedback.hooks.php
@@ -215,11 +215,13 @@
216216 ) );
217217
218218 // migrate article_feedback_stats_highs_lows to article_feedback_stats
219 - $updater->addExtensionUpdate( array(
220 - 'applyPatch',
221 - $dir . '/sql/MigrateArticleFeedbackStatsHighsLows.sql',
222 - true
223 - ) );
 219+ if ( $db->tableExists( 'article_feedback_stats_highs_lows' ) ) {
 220+ $updater->addExtensionUpdate( array(
 221+ 'applyPatch',
 222+ $dir . '/sql/MigrateArticleFeedbackStatsHighsLows.sql',
 223+ true
 224+ ) );
 225+ }
224226
225227 $updater->addExtensionUpdate( array(
226228 'addIndex',

Status & tagging log