Skip to content

Commit

Permalink
Merge pull request #9418 from colemanw/upgradets
Browse files Browse the repository at this point in the history
Remove unnecessary ts() from upgrade tasks
  • Loading branch information
colemanw authored Nov 20, 2016
2 parents 57fac67 + b5095b4 commit 26d1d80
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions CRM/Upgrade/Incremental/php/FourSeven.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ public function upgrade_4_7_8($rev) {
*/
public function upgrade_4_7_10($rev) {
$this->addTask(ts('Upgrade DB to %1: SQL', array(1 => $rev)), 'runSql', $rev);
$this->addTask(ts('Upgrade Add Help Pre and Post Fields to price value table'), 'addHelpPreAndHelpPostFieldsPriceFieldValue');
$this->addTask(ts('Alter index and type for image URL'), 'alterIndexAndTypeForImageURL');
$this->addTask('Upgrade Add Help Pre and Post Fields to price value table', 'addHelpPreAndHelpPostFieldsPriceFieldValue');
$this->addTask('Alter index and type for image URL', 'alterIndexAndTypeForImageURL');
}

/**
Expand All @@ -235,7 +235,7 @@ public function upgrade_4_7_10($rev) {
public function upgrade_4_7_11($rev) {
$this->addTask(ts('Upgrade DB to %1: SQL', array(1 => $rev)), 'runSql', $rev);
$this->addTask('Dashboard schema updates', 'dashboardSchemaUpdate');
$this->addTask(ts('Fill in setting "remote_profile_submissions"'), 'migrateRemoteSubmissionsSetting');
$this->addTask('Fill in setting "remote_profile_submissions"', 'migrateRemoteSubmissionsSetting');
}

/**
Expand All @@ -245,7 +245,7 @@ public function upgrade_4_7_11($rev) {
*/
public function upgrade_4_7_12($rev) {
$this->addTask(ts('Upgrade DB to %1: SQL', array(1 => $rev)), 'runSql', $rev);
$this->addTask(ts('Add Data Type column to civicrm_option_group'), 'addDataTypeColumnToOptionGroupTable');
$this->addTask('Add Data Type column to civicrm_option_group', 'addDataTypeColumnToOptionGroupTable');
}
/**
* Upgrade function.
Expand All @@ -254,7 +254,7 @@ public function upgrade_4_7_12($rev) {
*/
public function upgrade_4_7_13($rev) {
$this->addTask(ts('Upgrade DB to %1: SQL', array(1 => $rev)), 'runSql', $rev);
$this->addTask(ts('Add column to allow for payment processors to set what card types are accepted'), 'addAcceptedCardTypesField');
$this->addTask('Add column to allow for payment processors to set what card types are accepted', 'addAcceptedCardTypesField');
}


Expand All @@ -272,6 +272,8 @@ public function upgrade_4_7_13($rev) {
// public function upgrade_4_7_x($rev) {
// $this->addTask(ts('Upgrade DB to %1: SQL', array(1 => $rev)), 'runSql', $rev);
// // Additional tasks here...
// // Note: do not use ts() in the addTask description because it adds unnecessary strings to transifex.
// // The above is an exception because 'Upgrade DB to %1: SQL' is generic & reusable.
// }

/**
Expand Down

0 comments on commit 26d1d80

Please sign in to comment.