Skip to content

Commit

Permalink
CRM/Upgrade - Move 4.7.26 steps to 4.7.27
Browse files Browse the repository at this point in the history
  • Loading branch information
totten committed Oct 12, 2017
1 parent be2faa1 commit 9f8c485
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CRM/Upgrade/Incremental/php/FourSeven.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function setPreUpgradeMessage(&$preUpgradeMessage, $rev, $currentVer = NU
. '</p>';
}
}
if ($rev == '4.7.26') {
if ($rev == '4.7.27') {
$params = array(
1 => 'Close accounting batches created by user',
2 => 'Close all accounting batches',
Expand Down Expand Up @@ -445,7 +445,7 @@ public function upgrade_4_7_25($rev) {
*
* @param string $rev
*/
public function upgrade_4_7_26($rev) {
public function upgrade_4_7_27($rev) {
$this->addTask(ts('Upgrade DB to %1: SQL', array(1 => $rev)), 'runSql', $rev);
$this->addTask('CRM-21234 Missing subdivisions of Tajikistan', 'tajikistanMissingSubdivisions');
$this->addTask('CRM-20892 - Add modified_date to civicrm_mailing', 'addColumn',
Expand Down
3 changes: 0 additions & 3 deletions CRM/Upgrade/Incremental/sql/4.7.26.mysql.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
{* file to handle db changes in 4.7.26 during upgrade *}

-- CRM-20892 Change created_date default so that we can add a modified_date column
ALTER TABLE civicrm_mailing CHANGE created_date created_date timestamp NULL DEFAULT NULL COMMENT 'Date and time this mailing was created.';
3 changes: 3 additions & 0 deletions CRM/Upgrade/Incremental/sql/4.7.27.mysql.tpl
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
{* file to handle db changes in 4.7.27 during upgrade *}

-- CRM-20892 Change created_date default so that we can add a modified_date column
ALTER TABLE civicrm_mailing CHANGE created_date created_date timestamp NULL DEFAULT NULL COMMENT 'Date and time this mailing was created.';
2 changes: 1 addition & 1 deletion CRM/Utils/Check/Component/Timestamps.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public static function getConvertedTimestamps() {
array('table' => 'civicrm_mailing_job', 'column' => 'end_date', 'changed' => '4.7.20', 'jira' => 'CRM-9683'),
array('table' => 'civicrm_mailing_spool', 'column' => 'added_at', 'changed' => '4.7.20', 'jira' => 'CRM-9683'),
array('table' => 'civicrm_mailing_spool', 'column' => 'removed_at', 'changed' => '4.7.20', 'jira' => 'CRM-9683'),
array('table' => 'civicrm_subscription_history', 'column' => 'date', 'changed' => '4.7.26', 'default' => 'CURRENT_TIMESTAMP', 'jira' => 'CRM-21157'),
array('table' => 'civicrm_subscription_history', 'column' => 'date', 'changed' => '4.7.27', 'default' => 'CURRENT_TIMESTAMP', 'jira' => 'CRM-21157'),
);
}

Expand Down

0 comments on commit 9f8c485

Please sign in to comment.