From de19c3991cfc2aba35ccd98f9dede4fa8796b3d6 Mon Sep 17 00:00:00 2001 From: Marc Michalsky Date: Mon, 14 Aug 2023 16:18:56 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=96=20bump=20version=20to=201.0.4-dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CRM/TwingleCampaign/Upgrader.php | 81 +------------------------------- info.xml | 4 +- 2 files changed, 3 insertions(+), 82 deletions(-) diff --git a/CRM/TwingleCampaign/Upgrader.php b/CRM/TwingleCampaign/Upgrader.php index 5c1a706..09e7401 100644 --- a/CRM/TwingleCampaign/Upgrader.php +++ b/CRM/TwingleCampaign/Upgrader.php @@ -20,7 +20,7 @@ class CRM_TwingleCampaign_Upgrader extends CRM_TwingleCampaign_Upgrader_Base { * changed campaigns will get pulled from Twingle. * @throws \CiviCRM_API3_Exception */ - public function upgrade_02(): bool { + public function upgrade_03(): bool { $campaign_info = require E::path() . '/CRM/TwingleCampaign/resources/campaigns.php'; @@ -294,83 +294,4 @@ class CRM_TwingleCampaign_Upgrader extends CRM_TwingleCampaign_Upgrader_Base { Civi::settings()->revert('twingle_api_key'); } - - /** - * Example: Run a couple simple queries. - * - * @return TRUE on success - * @throws Exception - * - * public function upgrade_4200() { - * $this->ctx->log->info('Applying update 4200'); - * CRM_Core_DAO::executeQuery('UPDATE foo SET bar = "whiz"'); - * CRM_Core_DAO::executeQuery('DELETE FROM bang WHERE willy = wonka(2)'); - * return TRUE; - * } // */ - - - /** - * Example: Run an external SQL script. - * - * @return TRUE on success - * @throws Exception - * public function upgrade_4201() { - * $this->ctx->log->info('Applying update 4201'); - * // this path is relative to the extension base dir - * $this->executeSqlFile('sql/upgrade_4201.sql'); - * return TRUE; - * } // */ - - - /** - * Example: Run a slow upgrade process by breaking it up into smaller chunk. - * - * @return TRUE on success - * @throws Exception - * public function upgrade_4202() { - * $this->ctx->log->info('Planning update 4202'); // PEAR Log interface - * - * $this->addTask(E::ts('Process first step'), 'processPart1', $arg1, $arg2); - * $this->addTask(E::ts('Process second step'), 'processPart2', $arg3, $arg4); - * $this->addTask(E::ts('Process second step'), 'processPart3', $arg5); - * return TRUE; - * } - * public function processPart1($arg1, $arg2) { sleep(10); return TRUE; } - * public function processPart2($arg3, $arg4) { sleep(10); return TRUE; } - * public function processPart3($arg5) { sleep(10); return TRUE; } - * // */ - - - /** - * Example: Run an upgrade with a query that touches many (potentially - * millions) of records by breaking it up into smaller chunks. - * - * @return TRUE on success - * @throws Exception - * public function upgrade_4203() { - * $this->ctx->log->info('Planning update 4203'); // PEAR Log interface - * - * $minId = CRM_Core_DAO::singleValueQuery('SELECT coalesce(min(id),0) FROM - * civicrm_contribution'); - * $maxId = CRM_Core_DAO::singleValueQuery('SELECT coalesce(max(id),0) FROM - * civicrm_contribution'); for ($startId = $minId; $startId <= $maxId; - * $startId += self::BATCH_SIZE) { - * $endId = $startId + self::BATCH_SIZE - 1; - * $title = E::ts('Upgrade Batch (%1 => %2)', array( - * 1 => $startId, - * 2 => $endId, - * )); - * $sql = ' - * UPDATE civicrm_contribution SET foobar = whiz(wonky()+wanker) - * WHERE id BETWEEN %1 and %2 - * '; - * $params = array( - * 1 => array($startId, 'Integer'), - * 2 => array($endId, 'Integer'), - * ); - * $this->addTask($title, 'executeSql', $sql, $params); - * } - * return TRUE; - * } // */ - } diff --git a/info.xml b/info.xml index b7ae3af..415f6ed 100644 --- a/info.xml +++ b/info.xml @@ -15,8 +15,8 @@ http://www.gnu.org/licenses/agpl-3.0.html 2023-02-28 - 1.0.3 - stable + 1.0.4-dev + dev 5.14.0