-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SUP-43620 Add upgrade step for CiviCRM sites which have incorrect nam…
…e for the Credit Card Expired option
- Loading branch information
1 parent
8223ee8
commit 8b7a6cc
Showing
3 changed files
with
421 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
use CRM_Expiredcreditcards_ExtensionUtil as E; | ||
|
||
/** | ||
* Collection of upgrade steps. | ||
*/ | ||
class CRM_Expiredcreditcards_Upgrader extends CRM_Expiredcreditcards_Upgrader_Base { | ||
|
||
/** | ||
* Update 100 function | ||
* | ||
* @return TRUE on success | ||
* @throws Exception | ||
*/ | ||
public function upgrade_100() { | ||
$this->ctx->log->info('Applying update 100 - Fix incorrect option value: Credit Card Expired'); | ||
// Fix some CiviCRM sites which have the incorrect name set for this option | ||
CRM_Core_DAO::executeQuery('UPDATE `civicrm_option_value` SET `name` = "Credit_Card_Expired" WHERE `name` = "Credit Card Expired"'); | ||
|
||
return TRUE; | ||
} | ||
|
||
} |
Oops, something went wrong.