Merge pull request #9960 from colemanw/CRM-20029
[civicrm-core.git] / api / v3 / System.php
index b7514c5a0682b46c479bffa742770247e11ca818..086310357d67c434984e5622a78fe6a467b585b0 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2015                                |
+ | Copyright CiviCRM LLC (c) 2004-2017                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -389,3 +389,14 @@ function _civicrm_api3_system_get_whitelist($whitelistFile) {
   );
   return $whitelist;
 }
+
+/**
+ * Update log table structures.
+ *
+ * This updates the engine type if defined in the hook and changes the field type
+ * for log_conn_id to reflect CRM-18193.
+ */
+function civicrm_api3_system_updatelogtables() {
+  $schema = new CRM_Logging_Schema();
+  $schema->updateLogTableSchema();
+}