Legoktm has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/316080

Change subject: addRFCandPMIDInterwiki: Fix strict mode errors
......................................................................

addRFCandPMIDInterwiki: Fix strict mode errors

Those columns have no defaults and cause errors if MySQL strict mode is
enabled.

Also make this maintenance script runnable standalone.

Bug: T147536
Change-Id: I0f0ba6fc4375c44b71852c5c2dad8336db17c479
---
M maintenance/addRFCandPMIDInterwiki.php
1 file changed, 10 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/80/316080/1

diff --git a/maintenance/addRFCandPMIDInterwiki.php 
b/maintenance/addRFCandPMIDInterwiki.php
index 9740ef2..2262338 100644
--- a/maintenance/addRFCandPMIDInterwiki.php
+++ b/maintenance/addRFCandPMIDInterwiki.php
@@ -63,7 +63,10 @@
                                [ 'iw_prefix' ],
                                [
                                        'iw_prefix' => 'rfc',
-                                       'iw_url' => 
'https://tools.ietf.org/html/rfc$1'
+                                       'iw_url' => 
'https://tools.ietf.org/html/rfc$1',
+                                       'iw_api' => '',
+                                       'iw_wikiid' => '',
+                                       'iw_local' => 0,
                                ],
                                __METHOD__
                        );
@@ -74,6 +77,9 @@
                        [
                                'iw_prefix' => 'pmid',
                                'iw_url' => 
'https://www.ncbi.nlm.nih.gov/pubmed/$1?dopt=Abstract',
+                               'iw_api' => '',
+                               'iw_wikiid' => '',
+                               'iw_local' => 0,
                        ],
                        __METHOD__,
                        // If there's already a pmid interwiki link, don't
@@ -84,3 +90,6 @@
                return true;
        }
 }
+
+$maintClass = 'AddRFCAndPMIDInterwiki';
+require_once RUN_MAINTENANCE_IF_MAIN;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0f0ba6fc4375c44b71852c5c2dad8336db17c479
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com>

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

Reply via email to