update schema definition, DAO update and handle upgrade
authorKurund Jalmi <kurundjalmi@thirdsectordesign.org>
Tue, 16 Aug 2022 19:31:09 +0000 (20:31 +0100)
committerKurund Jalmi <kurundjalmi@thirdsectordesign.org>
Tue, 16 Aug 2022 19:31:09 +0000 (20:31 +0100)
CRM/Mailing/DAO/BounceType.php
CRM/Upgrade/Incremental/sql/5.51.alpha1.mysql.tpl
CRM/Upgrade/Incremental/sql/5.54.alpha1.mysql.tpl
xml/schema/Mailing/BounceType.xml

index 9ce49ab06e36cbc7e7af8a8e5964fa21df42d52d..ae5f8c08f93186f0253146913804322c736b6219 100644 (file)
@@ -42,7 +42,7 @@ class CRM_Mailing_DAO_BounceType extends CRM_Core_DAO {
    * Type of bounce
    *
    * @var string
-   *   (SQL type: varchar(256))
+   *   (SQL type: varchar(255))
    *   Note that values will be retrieved from the database as a string.
    */
   public $name;
@@ -113,7 +113,7 @@ class CRM_Mailing_DAO_BounceType extends CRM_Core_DAO {
           'title' => ts('Bounce Type Name'),
           'description' => ts('Type of bounce'),
           'required' => TRUE,
-          'maxlength' => 256,
+          'maxlength' => 255,
           'size' => CRM_Utils_Type::MEDIUM,
           'where' => 'civicrm_mailing_bounce_type.name',
           'table_name' => 'civicrm_mailing_bounce_type',
index 3e753a2be1e8c104f63ff8dee3e0a39dd84fa645..3310f3c4cda8836b4065436a69e8e5c233103246 100644 (file)
@@ -1,2 +1 @@
 {* file to handle db changes in 5.51.alpha1 during upgrade *}
-ALTER TABLE `civicrm_mailing_bounce_type` CHANGE `name` `name` VARCHAR(256) NOT NULL COMMENT 'Type of bounce', CHANGE `description` `description` VARCHAR(2048) NULL DEFAULT NULL COMMENT 'A description of this bounce type';
index 45bf49263d896ba6267d7464e1217ef38290635c..03d9bcfc390dcb8370d4f35b100b33dff37889c3 100644 (file)
@@ -1 +1,2 @@
 {* file to handle db changes in 5.54.alpha1 during upgrade *}
+ALTER TABLE `civicrm_mailing_bounce_type` CHANGE `name` `name` VARCHAR(255) NOT NULL COMMENT 'Type of bounce', CHANGE `description` `description` VARCHAR(2048) NULL DEFAULT NULL COMMENT 'A description of this bounce type';
index 6d2f64b58379aa0158dda6abb32fee7dbcb9d199..d414495288b0bb975f142e2d31ac963beb80bbe2 100644 (file)
@@ -23,7 +23,7 @@
     <name>name</name>
     <title>Bounce Type Name</title>
     <type>varchar</type>
-    <length>256</length>
+    <length>255</length>
     <required>true</required>
     <comment>Type of bounce</comment>
   </field>