From c2bd7e3c9dbe54a30f722684dd24fd88d284f9fd Mon Sep 17 00:00:00 2001 From: Monish Deb Date: Thu, 7 Apr 2022 18:12:15 -0700 Subject: [PATCH] Schema - Fix boolean fields in 'ACL' --- CRM/ACL/DAO/ACLEntityRole.php | 6 ++++-- CRM/Upgrade/Incremental/php/FiveFortyNine/ACL.bool.php | 4 ++++ xml/schema/ACL/ACLEntityRole.xml | 2 ++ 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 CRM/Upgrade/Incremental/php/FiveFortyNine/ACL.bool.php diff --git a/CRM/ACL/DAO/ACLEntityRole.php b/CRM/ACL/DAO/ACLEntityRole.php index c99c67b975..5d03b57ff5 100644 --- a/CRM/ACL/DAO/ACLEntityRole.php +++ b/CRM/ACL/DAO/ACLEntityRole.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/ACL/ACLEntityRole.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:22633176232bcef28b59ab0388720837) + * (GenCodeChecksum:9c4c402f2b82415b38365ed3293e0b26) */ /** @@ -69,7 +69,7 @@ class CRM_ACL_DAO_ACLEntityRole extends CRM_Core_DAO { /** * Is this property active? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -186,7 +186,9 @@ class CRM_ACL_DAO_ACLEntityRole extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('ACL Entity Role is Active'), 'description' => ts('Is this property active?'), + 'required' => TRUE, 'where' => 'civicrm_acl_entity_role.is_active', + 'default' => '0', 'table_name' => 'civicrm_acl_entity_role', 'entity' => 'ACLEntityRole', 'bao' => 'CRM_ACL_BAO_ACLEntityRole', diff --git a/CRM/Upgrade/Incremental/php/FiveFortyNine/ACL.bool.php b/CRM/Upgrade/Incremental/php/FiveFortyNine/ACL.bool.php new file mode 100644 index 0000000000..bfabe0b6ba --- /dev/null +++ b/CRM/Upgrade/Incremental/php/FiveFortyNine/ACL.bool.php @@ -0,0 +1,4 @@ +ACL Entity Role is Active boolean Is this property active? + 0 + true 1.6 -- 2.25.1