Index: trunk/extensions/ArticleFeedback/ArticleFeedback.hooks.php |
— | — | @@ -215,11 +215,13 @@ |
216 | 216 | ) ); |
217 | 217 | |
218 | 218 | // 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 | + } |
224 | 226 | |
225 | 227 | $updater->addExtensionUpdate( array( |
226 | 228 | 'addIndex', |