*
* Generated from xml/schema/CRM/ACL/ACL.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:56266204b43a487af7bf9963d23e0556)
+ * (GenCodeChecksum:d49159426e04e1bab16768e2f7ed9551)
*/
/**
/**
* 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.
*/
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('ACL Is Active?'),
'description' => ts('Is this property active?'),
+ 'required' => TRUE,
'usage' => [
'import' => FALSE,
'export' => FALSE,
'token' => FALSE,
],
'where' => 'civicrm_acl.is_active',
+ 'default' => '1',
'table_name' => 'civicrm_acl',
'entity' => 'ACL',
'bao' => 'CRM_ACL_BAO_ACL',
$this->addTask('Update civicrm_managed.module', 'alterColumn', 'civicrm_managed', 'module', "varchar(255) NOT NULL COMMENT 'Name of the module which declared this object (soft FK to civicrm_extension.full_name)'");
$this->addTask('Update civicrm_managed.name', 'alterColumn', 'civicrm_managed', 'name', "varchar(255) NOT NULL COMMENT 'Symbolic name used by the module to identify the object'");
$this->addTask('Update civicrm_managed.cleanup', 'alterColumn', 'civicrm_managed', 'cleanup', "varchar(16) NOT NULL DEFAULT 'always' COMMENT 'Policy on when to cleanup entity (always, never, unused)'");
+ $this->addTask('Update civicrm_acl.is_active', 'alterColumn', 'civicrm_acl', 'is_active', "tinyint NOT NULL DEFAULT 1 COMMENT 'Is this property active?'");
}
}
{* file to handle db changes in 5.68.alpha1 during upgrade *}
+UPDATE `civicrm_acl` SET `is_active` = 0 WHERE `is_active` IS NULL;
+
UPDATE `civicrm_tag` SET `label` = `name` WHERE `label` = '';
{* This column is now required. Delete any null values; a managed entity without a name is useless *}
<name>is_active</name>
<title>ACL Is Active?</title>
<type>boolean</type>
+ <required>true</required>
+ <default>1</default>
<comment>Is this property active?</comment>
<add>1.6</add>
<html>