(dev/core#3905) Need to increase data size for 'data' column on 'civicrm_job_log...
authoryashodha <yashodha@cividesk.com>
Wed, 12 Oct 2022 03:56:57 +0000 (09:26 +0530)
committeryashodha <yashodha@cividesk.com>
Wed, 12 Oct 2022 03:56:57 +0000 (09:26 +0530)
CRM/Core/DAO/JobLog.php
CRM/Upgrade/Incremental/sql/5.56.alpha1.mysql.tpl
xml/schema/Core/JobLog.xml

index 3206263c1c0f31c62ec75f5bb226e16075da0362..cde28a06ae8aef375dc31eaf0694eb0d64f4ece8 100644 (file)
@@ -97,7 +97,7 @@ class CRM_Core_DAO_JobLog extends CRM_Core_DAO {
    * Potential extended data for specific job run (e.g. tracebacks).
    *
    * @var string|null
-   *   (SQL type: text)
+   *   (SQL type: longtext)
    *   Note that values will be retrieved from the database as a string.
    */
   public $data;
@@ -250,7 +250,7 @@ class CRM_Core_DAO_JobLog extends CRM_Core_DAO {
         ],
         'data' => [
           'name' => 'data',
-          'type' => CRM_Utils_Type::T_TEXT,
+          'type' => CRM_Utils_Type::T_LONGTEXT,
           'title' => ts('Extended Data'),
           'description' => ts('Potential extended data for specific job run (e.g. tracebacks).'),
           'where' => 'civicrm_job_log.data',
index 6b9e3fa1cf7035abf5b656b891b9695f83238bee..aabf417db011eb42a3d40a6b713fcaa55fa5b882 100644 (file)
@@ -1,5 +1,8 @@
 {* file to handle db changes in 5.56.alpha1 during upgrade *}
 
+-- dev/core#3905 Update data type for data to LONGTEXT
+ALTER TABLE civicrm_job_log MODIFY COLUMN data LONGTEXT COMMENT 'Potential extended data for specific job run (e.g. tracebacks).';
+
 -- Add in missing indian states as per iso-3166-2
 SELECT @indianCountryID := id FROM civicrm_country WHERE name = 'India' AND iso_code = 'IN';
 INSERT INTO civicrm_state_province (country_id, abbreviation, name) VALUES
index d0764fc2c413c034fe7441135283f86f0c823060..9fb80bfdacb66542c786e253ec77dc122c3f522a 100644 (file)
@@ -85,7 +85,7 @@
   <field>
     <name>data</name>
     <title>Extended Data</title>
-    <type>text</type>
+    <type>longtext</type>
     <comment>Potential extended data for specific job run (e.g. tracebacks).</comment>
     <add>4.1</add>
   </field>