User "Awjrichards" posted a comment on MediaWiki.r94809.
Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/94809#c21048
Commit summary:
r94720 r94771
Uncomments the 'LoadExtensionSchemaUpdates' hook in ContributionTracking.
Comment:
<code><pre>
//this only works if contribution tracking is inside a mediawiki DB, which
typically it isn't.
</pre></code>
I suspect this can be mitigated by connecting to the correct database - the
variables for the database that *should* hold the contribution_tracking tables
get set on lines 58-61 of this revision and are configurable in
LocalSettings.php.
According to Reedy, you should be able to create a new $updater instance and
pass it an appropriate $db object. Perhaps you could do something like:
<code>
<pre>
if ( $wgContributionTrackingDBserver != $wgDBserver ) {
// create db object with $wgContributionTrackingDBserver data
// create new $updater object with the new $db object
// run the schema updates/installs/whatever
} else {
// use the updater normally
}
</pre>
</code>
_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview