jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/324649 )

Change subject: Always add wbc_entity_usage table when adding wikis
......................................................................


Always add wbc_entity_usage table when adding wikis

The new wiki might not yet be in the wikidataclient dblist,
so removing the check and let's just always add the table.

Bug: T152062
Change-Id: Id29e6655df8218d78af585aca4881473239b0db0
---
M addWiki.php
1 file changed, 3 insertions(+), 4 deletions(-)

Approvals:
  jenkins-bot: Verified
  Thiemo Mättig (WMDE): Looks good to me, approved



diff --git a/addWiki.php b/addWiki.php
index 82492c3..c648025 100644
--- a/addWiki.php
+++ b/addWiki.php
@@ -104,6 +104,9 @@
                $dbw->sourceFile( 
"$IP/extensions/BetaFeatures/sql/create_counts.sql" );
                $dbw->sourceFile( "$IP/extensions/SecurePoll/SecurePoll.sql" );
 
+               // 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" );
+
                // Add project specific extension table additions here
                switch ( $site ) {
                        case 'wikipedia':
@@ -132,10 +135,6 @@
 
                if ( self::isPrivateOrFishbowl( $dbName ) ) {
                        $dbw->sourceFile( 
"$IP/extensions/OATHAuth/sql/mysql/tables.sql" );
-               }
-
-               if ( in_array( $dbName, MWWikiversions::readDbListFile( 
'wikidataclient' ) ) ) {
-                       $dbw->sourceFile( 
"$IP/extensions/Wikidata/extensions/Wikibase/client/sql/entity_usage.sql" );
                }
 
                $dbw->query( "INSERT INTO site_stats(ss_row_id) VALUES (1)" );

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Id29e6655df8218d78af585aca4881473239b0db0
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/WikimediaMaintenance
Gerrit-Branch: master
Gerrit-Owner: Aude <[email protected]>
Gerrit-Reviewer: Alex Monk <[email protected]>
Gerrit-Reviewer: Aude <[email protected]>
Gerrit-Reviewer: Dereckson <[email protected]>
Gerrit-Reviewer: Hoo man <[email protected]>
Gerrit-Reviewer: Thiemo Mättig (WMDE) <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to