From 1af93f3697af25e86c91d967fa49e687da62da1a Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 30 Aug 2022 23:05:25 +1200 Subject: [PATCH] Mark created date read-only in schema --- CRM/Contact/DAO/Contact.php | 3 ++- CRM/Mailing/DAO/BounceType.php | 4 ++-- xml/schema/Contact/Contact.xml | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CRM/Contact/DAO/Contact.php b/CRM/Contact/DAO/Contact.php index 5b67a0fa14..ec0f6bcf33 100644 --- a/CRM/Contact/DAO/Contact.php +++ b/CRM/Contact/DAO/Contact.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contact/Contact.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:06d59dff0d16b340f3e0d3144d8db49a) + * (GenCodeChecksum:3a5849bd17dab3559b6002ffd18ea0b7) */ /** @@ -1637,6 +1637,7 @@ class CRM_Contact_DAO_Contact extends CRM_Core_DAO { 'html' => [ 'label' => ts("Created Date"), ], + 'readonly' => TRUE, 'add' => '4.3', ], 'modified_date' => [ diff --git a/CRM/Mailing/DAO/BounceType.php b/CRM/Mailing/DAO/BounceType.php index ae5f8c08f9..de1ef329c6 100644 --- a/CRM/Mailing/DAO/BounceType.php +++ b/CRM/Mailing/DAO/BounceType.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Mailing/BounceType.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:1d18f6a7631be3751a4d83bc01f01134) + * (GenCodeChecksum:d98766824f0e79f32733f360ea96ff87) */ /** @@ -114,7 +114,7 @@ class CRM_Mailing_DAO_BounceType extends CRM_Core_DAO { 'description' => ts('Type of bounce'), 'required' => TRUE, 'maxlength' => 255, - 'size' => CRM_Utils_Type::MEDIUM, + 'size' => CRM_Utils_Type::HUGE, 'where' => 'civicrm_mailing_bounce_type.name', 'table_name' => 'civicrm_mailing_bounce_type', 'entity' => 'BounceType', diff --git a/xml/schema/Contact/Contact.xml b/xml/schema/Contact/Contact.xml index 69b694642c..eadfeaeb6c 100644 --- a/xml/schema/Contact/Contact.xml +++ b/xml/schema/Contact/Contact.xml @@ -873,6 +873,7 @@ false true NULL + true -- 2.25.1