Add upgrade function for message templates that does not involve copying the whole...
[civicrm-core.git] / CRM / Upgrade / Incremental / Base.php
index 1cbf1cc3f57c23a3652ec220dce7550e209d0c36..b180904d70a3ee280cfde4108cd4f1078cf901f7 100644 (file)
@@ -183,6 +183,18 @@ class CRM_Upgrade_Incremental_Base {
     return TRUE;
   }
 
+  /**
+   * Do any relevant message template updates.
+   *
+   * @param CRM_Queue_TaskContext $ctx
+   * @param string $version
+   */
+  public static function updateMessageTemplates($ctx, $version) {
+    $messageTemplateObject = new CRM_Upgrade_Incremental_MessageTemplates($version);
+    $messageTemplateObject->updateTemplates();
+
+  }
+
   /**
    * Drop a column from a table if it exist.
    *