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

Change subject: Rerun the geocoding.
......................................................................

Rerun the geocoding.

The only thing that seems odd about the geocoding function is the lack of 
brackets in the
for for  < 210 * . Perhaps it was in the running. Re-trying this on staging.

Bug: T158271
Change-Id: I1f1ea9870d5f9ff8da0283557e80481291c68fa7
---
M sites/all/modules/wmf_civicrm/wmf_civicrm.install
1 file changed, 10 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm 
refs/changes/59/340459/1

diff --git a/sites/all/modules/wmf_civicrm/wmf_civicrm.install 
b/sites/all/modules/wmf_civicrm/wmf_civicrm.install
index f200874..4680be0 100644
--- a/sites/all/modules/wmf_civicrm/wmf_civicrm.install
+++ b/sites/all/modules/wmf_civicrm/wmf_civicrm.install
@@ -2399,7 +2399,7 @@
   ");
 
   $batch = 100000;
-  for($startId = 0; $startId < 210 * $batch; $startId += $batch) {
+  for($startId = 0; $startId < 21000000; $startId += $batch) {
     $endId = $startId + $batch;
     CRM_Core_DAO::executeQuery("
       UPDATE civicrm_address a
@@ -2533,3 +2533,12 @@
     AND next_sched_contribution_date IN ('2017-03-28', '2017-03-27')
   ");
 }
+
+/**
+ * Re-run geocoding update, many not updated.
+ *
+ * Bug T158271.
+ */
+function wmf_civicrm_update_7470() {
+  wmf_civicrm_update_7320();
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1f1ea9870d5f9ff8da0283557e80481291c68fa7
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: master
Gerrit-Owner: Eileen <emcnaugh...@wikimedia.org>

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

Reply via email to