From: Monish Deb Date: Fri, 8 Apr 2022 01:12:15 +0000 (-0700) Subject: Schema - Fix boolean fields in 'ACL' X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c2bd7e3c9dbe54a30f722684dd24fd88d284f9fd;p=civicrm-core.git Schema - Fix boolean fields in 'ACL' --- 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