CRM-21733: Adding the ability to override membership temporarily until specific date
[civicrm-core.git] / CRM / Upgrade / Incremental / php / FourSeven.php
index 8a1947e8d8deb1331e7efbac06f243917aea963d..5a9b8288133368b28eb3acd200c8545b2e5d1cb9 100644 (file)
@@ -494,6 +494,18 @@ class CRM_Upgrade_Incremental_php_FourSeven extends CRM_Upgrade_Incremental_Base
     $this->addTask('Rebuild Multilingual Schema', 'rebuildMultilingalSchema');
   }
 
+  /**
+   * Upgrade function.
+   *
+   * @param string $rev
+   */
+  public function upgrade_4_7_32($rev) {
+    $this->addTask(ts('Upgrade DB to %1: SQL', array(1 => $rev)), 'runSql', $rev);
+
+    $this->addTask('CRM-21733: Add status_override_end_date field to civicrm_membership table', 'addColumn', 'civicrm_membership', 'status_override_end_date',
+      "date DEFAULT NULL COMMENT 'The end date of membership status override if (Override until selected date) override type is selected.'");
+  }
+
   /*
    * Important! All upgrade functions MUST add a 'runSql' task.
    * Uncomment and use the following template for a new upgrade version