*
* Generated from xml/schema/CRM/Contact/Contact.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:1ed20aff22fc1effbd05ea8411e48139)
+ * (GenCodeChecksum:67196fefde2ec151c97d463869102e21)
*/
/**
public $contact_sub_type;
/**
- * @var bool|string|null
+ * @var bool|string
* (SQL type: tinyint)
* Note that values will be retrieved from the database as a string.
*/
public $do_not_email;
/**
- * @var bool|string|null
+ * @var bool|string
* (SQL type: tinyint)
* Note that values will be retrieved from the database as a string.
*/
public $do_not_phone;
/**
- * @var bool|string|null
+ * @var bool|string
* (SQL type: tinyint)
* Note that values will be retrieved from the database as a string.
*/
public $do_not_mail;
/**
- * @var bool|string|null
+ * @var bool|string
* (SQL type: tinyint)
* Note that values will be retrieved from the database as a string.
*/
public $do_not_sms;
/**
- * @var bool|string|null
+ * @var bool|string
* (SQL type: tinyint)
* Note that values will be retrieved from the database as a string.
*/
'name' => 'do_not_email',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Do Not Email'),
+ 'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_contact.do_not_email',
'headerPattern' => '/d(o )?(not )?(email)/i',
'name' => 'do_not_phone',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Do Not Phone'),
+ 'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_contact.do_not_phone',
'headerPattern' => '/d(o )?(not )?(call|phone)/i',
'name' => 'do_not_mail',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Do Not Mail'),
+ 'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_contact.do_not_mail',
'headerPattern' => '/^(d(o\s)?n(ot\s)?mail)|(\w*)?bulk\s?(\w*)$/i',
'name' => 'do_not_sms',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Do Not Sms'),
+ 'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_contact.do_not_sms',
'headerPattern' => '/d(o )?(not )?(sms)/i',
'name' => 'do_not_trade',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Do Not Trade'),
+ 'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_contact.do_not_trade',
'headerPattern' => '/d(o )?(not )?(trade)/i',
*
* Generated from xml/schema/CRM/Contact/ContactType.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:9f3dbdc9b75770b084a6f2d6a4dfc652)
+ * (GenCodeChecksum:c2f6858290ecb933caba200b565c69bd)
*/
/**
/**
* Is this entry active?
*
- * @var bool|string|null
+ * @var bool|string
* (SQL type: tinyint)
* Note that values will be retrieved from the database as a string.
*/
/**
* Is this contact type a predefined system type
*
- * @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('Contact Type Is Active?'),
'description' => ts('Is this entry active?'),
+ 'required' => TRUE,
'where' => 'civicrm_contact_type.is_active',
'default' => '1',
'table_name' => 'civicrm_contact_type',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Contact Type is Reserved?'),
'description' => ts('Is this contact type a predefined system type'),
+ 'required' => TRUE,
'where' => 'civicrm_contact_type.is_reserved',
'default' => '0',
'table_name' => 'civicrm_contact_type',
*
* Generated from xml/schema/CRM/Contact/DashboardContact.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:fd3f7ea02b93c0dd3ecd46fb757bc2a3)
+ * (GenCodeChecksum:ca2325df4ca179436e4901bbed693e20)
*/
/**
/**
* Is this widget 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('Dashlet is Active?'),
'description' => ts('Is this widget active?'),
+ 'required' => TRUE,
'where' => 'civicrm_dashboard_contact.is_active',
- 'default' => '0',
+ 'default' => '1',
'table_name' => 'civicrm_dashboard_contact',
'entity' => 'DashboardContact',
'bao' => 'CRM_Contact_BAO_DashboardContact',
*
* Generated from xml/schema/CRM/Contact/Group.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b58b83a311a0a9a7cd2350b452d2ca9a)
+ * (GenCodeChecksum:8b5d08ec2b844a6b9167fa80a590a58c)
*/
/**
/**
* Is this entry active?
*
- * @var bool|string|null
+ * @var bool|string
* (SQL type: tinyint)
* Note that values will be retrieved from the database as a string.
*/
/**
* Is this group hidden?
*
- * @var bool|string|null
+ * @var bool|string
* (SQL type: tinyint)
* Note that values will be retrieved from the database as a string.
*/
public $is_hidden;
/**
- * @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('Group Enabled'),
'description' => ts('Is this entry active?'),
+ 'required' => TRUE,
'where' => 'civicrm_group.is_active',
+ 'default' => '1',
'table_name' => 'civicrm_group',
'entity' => 'Group',
'bao' => 'CRM_Contact_BAO_Group',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Group is Hidden'),
'description' => ts('Is this group hidden?'),
+ 'required' => TRUE,
'where' => 'civicrm_group.is_hidden',
'default' => '0',
'table_name' => 'civicrm_group',
'name' => 'is_reserved',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Group is Reserved'),
+ 'required' => TRUE,
'where' => 'civicrm_group.is_reserved',
'default' => '0',
'table_name' => 'civicrm_group',
*
* Generated from xml/schema/CRM/Contact/Relationship.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:9857c3a39c853ba7abfeb246af8a70ec)
+ * (GenCodeChecksum:138d23f70bbc1e8c3b1ad2d247e9a8df)
*/
/**
/**
* is the relationship 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('Relationship Is Active'),
'description' => ts('is the relationship active ?'),
+ 'required' => TRUE,
'where' => 'civicrm_relationship.is_active',
'default' => '1',
'table_name' => 'civicrm_relationship',
*
* Generated from xml/schema/CRM/Contact/RelationshipCache.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:1bc7c47a01326782645f1cfac11c6d14)
+ * (GenCodeChecksum:637d262d0fe18e30673e5d1b1317e4aa)
*/
/**
/**
* is the relationship 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('Relationship Is Active'),
'description' => ts('is the relationship active ?'),
+ 'required' => TRUE,
'where' => 'civicrm_relationship_cache.is_active',
'default' => '1',
'table_name' => 'civicrm_relationship_cache',
*
* Generated from xml/schema/CRM/Contact/RelationshipType.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:b020221ec1e27cbaf4eba0b9457a8448)
+ * (GenCodeChecksum:f420b1007ffa4e74cd3e23e34133f170)
*/
/**
/**
* Is this relationship type a predefined system type (can not be changed or de-activated)?
*
- * @var bool|string|null
+ * @var bool|string
* (SQL type: tinyint)
* Note that values will be retrieved from the database as a string.
*/
/**
* Is this relationship type currently active (i.e. can be used when creating or editing relationships)?
*
- * @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('Relationship Type is Reserved'),
'description' => ts('Is this relationship type a predefined system type (can not be changed or de-activated)?'),
+ 'required' => TRUE,
'where' => 'civicrm_relationship_type.is_reserved',
+ 'default' => '0',
'table_name' => 'civicrm_relationship_type',
'entity' => 'RelationshipType',
'bao' => 'CRM_Contact_BAO_RelationshipType',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Relationship Type is Active'),
'description' => ts('Is this relationship type currently active (i.e. can be used when creating or editing relationships)?'),
+ 'required' => TRUE,
'where' => 'civicrm_relationship_type.is_active',
'default' => '1',
'table_name' => 'civicrm_relationship_type',
--- /dev/null
+<?php
+return [
+ 'civicrm_contact' => [
+ 'do_not_email' => "DEFAULT 0",
+ 'do_not_phone' => "DEFAULT 0",
+ 'do_not_mail' => "DEFAULT 0",
+ 'do_not_sms' => "DEFAULT 0",
+ 'do_not_trade' => "DEFAULT 0",
+ ],
+ 'civicrm_contact_type' => [
+ 'is_active' => "DEFAULT 1 COMMENT 'Is this entry active?'",
+ 'is_reserved' => "DEFAULT 0 COMMENT 'Is this contact type a predefined system type'",
+ ],
+ 'civicrm_dashboard_contact' => [
+ 'is_active' => "DEFAULT 1 COMMENT 'Is this widget active?'",
+ ],
+ 'civicrm_group' => [
+ 'is_active' => "DEFAULT 1 COMMENT 'Is this entry active?'",
+ 'is_hidden' => "DEFAULT 0 COMMENT 'Is this group hidden?'",
+ 'is_reserved' => "DEFAULT 0",
+ ],
+ 'civicrm_relationship' => [
+ 'is_active' => "DEFAULT 1 COMMENT 'is the relationship active ?'",
+ ],
+ 'civicrm_relationship_cache' => [
+ 'is_active' => "DEFAULT 1 COMMENT 'is the relationship active ?'",
+ ],
+ 'civicrm_relationship_type' => [
+ 'is_reserved' => "DEFAULT 0 COMMENT 'Is this relationship type a predefined system type (can not be changed or de-activated)?'",
+ 'is_active' => "DEFAULT 1 COMMENT 'Is this relationship type currently active (i.e. can be used when creating or editing relationships)?'",
+ ],
+];
<headerPattern>/d(o )?(not )?(email)/i</headerPattern>
<dataPattern>/^\d{1,}$/</dataPattern>
<default>0</default>
+ <required>true</required>
<html>
<type>CheckBox</type>
<label>Do Not Email</label>
<name>do_not_phone</name>
<type>boolean</type>
<default>0</default>
+ <required>true</required>
<import>true</import>
<headerPattern>/d(o )?(not )?(call|phone)/i</headerPattern>
<dataPattern>/^\d{1,}$/</dataPattern>
<headerPattern>/^(d(o\s)?n(ot\s)?mail)|(\w*)?bulk\s?(\w*)$/i</headerPattern>
<dataPattern>/^\d{1,}$/</dataPattern>
<default>0</default>
+ <required>true</required>
<add>1.1</add>
<html>
<type>CheckBox</type>
<headerPattern>/d(o )?(not )?(sms)/i</headerPattern>
<dataPattern>/^\d{1,}$/</dataPattern>
<default>0</default>
+ <required>true</required>
<add>3.0</add>
<html>
<type>CheckBox</type>
<headerPattern>/d(o )?(not )?(trade)/i</headerPattern>
<dataPattern>/^\d{1,}$/</dataPattern>
<default>0</default>
+ <required>true</required>
<add>1.1</add>
<html>
<type>CheckBox</type>
<type>boolean</type>
<title>No Bulk Emails (User Opt Out)</title>
<default>0</default>
+ <required>true</required>
<import>true</import>
<required>true</required>
<comment>Has the contact opted out from receiving all bulk email from the organization or site domain?</comment>
<title>Contact Type Is Active?</title>
<type>boolean</type>
<default>1</default>
+ <required>true</required>
<comment>Is this entry active?</comment>
<add>3.1</add>
</field>
<title>Contact Type is Reserved?</title>
<type>boolean</type>
<default>0</default>
+ <required>true</required>
<comment>Is this contact type a predefined system type</comment>
<add>3.1</add>
</field>
<title>Dashlet is Minimized?</title>
<comment>Is Minimized?</comment>
<default>0</default>
+ <required>true</required>
<add>3.1</add>
<drop>4.7</drop>
</field>
<title>Dashlet is FullScreen?</title>
<comment>Is Fullscreen?</comment>
<default>1</default>
+ <required>true</required>
<add>3.1</add>
<drop>4.7</drop>
</field>
<type>boolean</type>
<title>Dashlet is Active?</title>
<comment>Is this widget active?</comment>
- <default>0</default>
+ <default>1</default>
+ <required>true</required>
<add>3.1</add>
</field>
<field>
<field>
<name>is_active</name>
<type>boolean</type>
+ <default>1</default>
+ <required>true</required>
<title>Group Enabled</title>
<comment>Is this entry active?</comment>
<add>1.1</add>
<type>boolean</type>
<title>Group is Hidden</title>
<default>0</default>
+ <required>true</required>
<comment>Is this group hidden?</comment>
<add>2.2</add>
</field>
<type>boolean</type>
<title>Group is Reserved</title>
<default>0</default>
+ <required>true</required>
<add>4.2</add>
</field>
<index>
<type>boolean</type>
<title>Relationship Is Active</title>
<default>1</default>
+ <required>true</required>
<comment>is the relationship active ?</comment>
<add>1.1</add>
<html>
<type>boolean</type>
<title>Relationship Is Active</title>
<default>1</default>
+ <required>true</required>
<comment>is the relationship active ?</comment>
<add>5.29</add>
<html>
<type>CheckBox</type>
</html>
<add>1.1</add>
+ <default>0</default>
+ <required>true</required>
</field>
<field>
<name>is_active</name>
<title>Relationship Type is Active</title>
<type>boolean</type>
<default>1</default>
+ <required>true</required>
<comment>Is this relationship type currently active (i.e. can be used when creating or editing relationships)?</comment>
<html>
<type>CheckBox</type>