Reedy has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/386159 )

Change subject: Create Flow tables where $wgFlowDefaultWikiDb is false and the 
wiki is in the Flow dblist
......................................................................

Create Flow tables where $wgFlowDefaultWikiDb is false and the wiki is in the 
Flow dblist

Bug: T178886

Change-Id: I5e41b65af7379ae4ba390d5464a67b511e624723
---
M addWiki.php
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikimediaMaintenance 
refs/changes/59/386159/1

diff --git a/addWiki.php b/addWiki.php
index 391a919..057edc4 100644
--- a/addWiki.php
+++ b/addWiki.php
@@ -54,7 +54,7 @@
        }
 
        public function execute() {
-               global $IP, $wgDefaultExternalStore, $wgFlowExternalStore,
+               global $IP, $wgDefaultExternalStore, $wgFlowExternalStore, 
$wgFlowDefaultWikiDb,
                        $wmgVersionNumber, $wmgAddWikiNotify, $wgPasswordSender;
 
                if ( !$wmgVersionNumber ) { // set in CommonSettings.php
@@ -107,6 +107,10 @@
                // most wikis are wikibase client wikis and no harm to adding 
this everywhere
                $dbw->sourceFile( 
"$IP/extensions/Wikidata/extensions/Wikibase/client/sql/entity_usage.sql" );
 
+               if ( $wgFlowDefaultWikiDb === false && in_array( $dbName, 
MWWikiversions::readDbListFile( 'flow' ) ) ) {
+                       $dbw->sourceFile( "$IP/extensions/Flow/flow.sql" );
+               }
+
                // Add project specific extension table additions here
                switch ( $site ) {
                        case 'wikipedia':

-- 
To view, visit https://gerrit.wikimedia.org/r/386159
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5e41b65af7379ae4ba390d5464a67b511e624723
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikimediaMaintenance
Gerrit-Branch: master
Gerrit-Owner: Reedy <re...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to