http://www.mediawiki.org/wiki/Special:Code/MediaWiki/98042
Revision: 98042
Author: catrope
Date: 2011-09-24 23:03:32 +0000 (Sat, 24 Sep 2011)
Log Message:
-----------
Fix bug in r97998: updates are deferred, so indexExists() failed with a
nonexistent table error if the MoodBar table was completely absent.
Modified Paths:
--------------
trunk/extensions/MoodBar/MoodBar.hooks.php
Modified: trunk/extensions/MoodBar/MoodBar.hooks.php
===================================================================
--- trunk/extensions/MoodBar/MoodBar.hooks.php 2011-09-24 22:14:36 UTC (rev
98041)
+++ trunk/extensions/MoodBar/MoodBar.hooks.php 2011-09-24 23:03:32 UTC (rev
98042)
@@ -76,7 +76,9 @@
);
$db = $updater->getDB();
- if ( $db->indexExists( 'moodbar_feedback', 'type_timestamp',
__METHOD__ ) ) {
+ if ( $db->tableExists( 'moodbar_feedback' ) &&
+ $db->indexExists( 'moodbar_feedback',
'type_timestamp', __METHOD__ ) )
+ {
$updater->addExtensionUpdate( array( 'addIndex',
'moodbar_feedback',
'mbf_type_timestamp_id', dirname( __FILE__ ) .
'/sql/AddIDToIndexes.sql', true )
);
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs