From 0d902ab894f55dc3ff42eb2e769ae5277cba8967 Mon Sep 17 00:00:00 2001 From: Monish Deb Date: Thu, 7 Apr 2022 18:12:16 -0700 Subject: [PATCH] Schema - Fix boolean fields in 'Core' --- CRM/Core/DAO/ActionLog.php | 5 +- CRM/Core/DAO/ActionSchedule.php | 17 ++- CRM/Core/DAO/Address.php | 11 +- CRM/Core/DAO/Country.php | 8 +- CRM/Core/DAO/County.php | 5 +- CRM/Core/DAO/CustomField.php | 17 ++- CRM/Core/DAO/CustomGroup.php | 20 ++- CRM/Core/DAO/Dashboard.php | 8 +- CRM/Core/DAO/Email.php | 8 +- CRM/Core/DAO/IM.php | 8 +- CRM/Core/DAO/Job.php | 6 +- CRM/Core/DAO/MailSettings.php | 16 ++- CRM/Core/DAO/Menu.php | 22 ++- CRM/Core/DAO/MessageTemplate.php | 14 +- CRM/Core/DAO/OpenID.php | 5 +- CRM/Core/DAO/Phone.php | 8 +- CRM/Core/DAO/PrevNextCache.php | 5 +- CRM/Core/DAO/PrintLabel.php | 11 +- CRM/Core/DAO/Setting.php | 6 +- CRM/Core/DAO/StateProvince.php | 5 +- CRM/Core/DAO/StatusPreference.php | 5 +- CRM/Core/DAO/Tag.php | 11 +- CRM/Core/DAO/UFField.php | 24 ++-- CRM/Core/DAO/UFGroup.php | 33 +++-- CRM/Core/DAO/UFJoin.php | 5 +- CRM/Core/DAO/WordReplacement.php | 5 +- .../php/FiveFortyNine/Core.bool.php | 129 ++++++++++++++++++ xml/schema/Core/ActionLog.xml | 1 + xml/schema/Core/ActionSchedule.xml | 7 +- xml/schema/Core/Address.xml | 3 + xml/schema/Core/Country.xml | 2 + xml/schema/Core/County.xml | 1 + xml/schema/Core/CustomField.xml | 6 + xml/schema/Core/CustomGroup.xml | 6 + xml/schema/Core/Dashboard.xml | 5 + xml/schema/Core/Email.xml | 2 + xml/schema/Core/IM.xml | 2 + xml/schema/Core/Job.xml | 2 + xml/schema/Core/MailSettings.xml | 6 + xml/schema/Core/Menu.xml | 10 ++ xml/schema/Core/MessageTemplate.xml | 4 + xml/schema/Core/OpenID.xml | 1 + xml/schema/Core/OptionGroup.xml | 2 +- xml/schema/Core/Phone.xml | 2 + xml/schema/Core/PrevNextCache.xml | 1 + xml/schema/Core/PrintLabel.xml | 3 + xml/schema/Core/RecurringEntity.xml | 1 + xml/schema/Core/Setting.xml | 2 + xml/schema/Core/StateProvince.xml | 1 + xml/schema/Core/StatusPreference.xml | 1 + xml/schema/Core/Tag.xml | 3 + xml/schema/Core/UFField.xml | 8 ++ xml/schema/Core/UFGroup.xml | 11 ++ xml/schema/Core/UFJoin.xml | 1 + xml/schema/Core/WordReplacement.xml | 1 + 55 files changed, 409 insertions(+), 103 deletions(-) create mode 100644 CRM/Upgrade/Incremental/php/FiveFortyNine/Core.bool.php diff --git a/CRM/Core/DAO/ActionLog.php b/CRM/Core/DAO/ActionLog.php index 94ab9bdc8f..21c4ba8b8c 100644 --- a/CRM/Core/DAO/ActionLog.php +++ b/CRM/Core/DAO/ActionLog.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/ActionLog.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:5437b79ba43089ace75ed2e072e7677e) + * (GenCodeChecksum:f3a6da0a3e4c1c9601265c8ad6eb85f4) */ /** @@ -85,7 +85,7 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO { /** * Was there any error sending the reminder? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -254,6 +254,7 @@ class CRM_Core_DAO_ActionLog extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Error?'), 'description' => ts('Was there any error sending the reminder?'), + 'required' => TRUE, 'where' => 'civicrm_action_log.is_error', 'default' => '0', 'table_name' => 'civicrm_action_log', diff --git a/CRM/Core/DAO/ActionSchedule.php b/CRM/Core/DAO/ActionSchedule.php index 8a01d1a99f..cd58cfb12d 100644 --- a/CRM/Core/DAO/ActionSchedule.php +++ b/CRM/Core/DAO/ActionSchedule.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/ActionSchedule.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:ea596948c02894437bcc1a3f5b5c4f9d) + * (GenCodeChecksum:444acdd7b222ed9f593b0b84aebfb763) */ /** @@ -67,7 +67,7 @@ class CRM_Core_DAO_ActionSchedule extends CRM_Core_DAO { /** * Is this the recipient criteria limited to OR in addition to? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -128,7 +128,7 @@ class CRM_Core_DAO_ActionSchedule extends CRM_Core_DAO { public $start_action_date; /** - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -191,7 +191,7 @@ class CRM_Core_DAO_ActionSchedule extends CRM_Core_DAO { /** * Is this option active? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -254,7 +254,7 @@ class CRM_Core_DAO_ActionSchedule extends CRM_Core_DAO { /** * Record Activity for this reminder? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -512,7 +512,9 @@ class CRM_Core_DAO_ActionSchedule extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Limit To'), 'description' => ts('Is this the recipient criteria limited to OR in addition to?'), + 'required' => TRUE, 'where' => 'civicrm_action_schedule.limit_to', + 'default' => '1', 'table_name' => 'civicrm_action_schedule', 'entity' => 'ActionSchedule', 'bao' => 'CRM_Core_BAO_ActionSchedule', @@ -633,6 +635,7 @@ class CRM_Core_DAO_ActionSchedule extends CRM_Core_DAO { 'name' => 'is_repeat', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Repeat?'), + 'required' => TRUE, 'where' => 'civicrm_action_schedule.is_repeat', 'default' => '0', 'table_name' => 'civicrm_action_schedule', @@ -754,6 +757,7 @@ class CRM_Core_DAO_ActionSchedule extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Schedule is Active?'), 'description' => ts('Is this option active?'), + 'required' => TRUE, 'where' => 'civicrm_action_schedule.is_active', 'default' => '1', 'table_name' => 'civicrm_action_schedule', @@ -846,8 +850,9 @@ class CRM_Core_DAO_ActionSchedule extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Record Activity for Reminder?'), 'description' => ts('Record Activity for this reminder?'), + 'required' => TRUE, 'where' => 'civicrm_action_schedule.record_activity', - 'default' => NULL, + 'default' => '0', 'table_name' => 'civicrm_action_schedule', 'entity' => 'ActionSchedule', 'bao' => 'CRM_Core_BAO_ActionSchedule', diff --git a/CRM/Core/DAO/Address.php b/CRM/Core/DAO/Address.php index d0ab74783c..95ed9717b7 100644 --- a/CRM/Core/DAO/Address.php +++ b/CRM/Core/DAO/Address.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Address.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:80a3c43c953f8fe1ddb7ac96cd926139) + * (GenCodeChecksum:63f758987eb3ff9fb47750eddb1a9ee8) */ /** @@ -67,7 +67,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO { /** * Is this the primary address. * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -76,7 +76,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO { /** * Is this the billing address. * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -267,7 +267,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO { /** * Is this a manually entered geo code * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -402,6 +402,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Primary address'), 'description' => ts('Is this the primary address.'), + 'required' => TRUE, 'where' => 'civicrm_address.is_primary', 'default' => '0', 'table_name' => 'civicrm_address', @@ -418,6 +419,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Billing Address'), 'description' => ts('Is this the billing address.'), + 'required' => TRUE, 'where' => 'civicrm_address.is_billing', 'default' => '0', 'table_name' => 'civicrm_address', @@ -828,6 +830,7 @@ class CRM_Core_DAO_Address extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Manually Geocoded'), 'description' => ts('Is this a manually entered geo code'), + 'required' => TRUE, 'where' => 'civicrm_address.manual_geo_code', 'export' => TRUE, 'default' => '0', diff --git a/CRM/Core/DAO/Country.php b/CRM/Core/DAO/Country.php index dff3a8146c..d6cd9d5503 100644 --- a/CRM/Core/DAO/Country.php +++ b/CRM/Core/DAO/Country.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Country.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:7798fb6aea4643dd3f7189981c641012) + * (GenCodeChecksum:27aa4dca6a02c9e3827feff015f759fe) */ /** @@ -112,7 +112,7 @@ class CRM_Core_DAO_Country extends CRM_Core_DAO { /** * Should state/province be displayed as abbreviation for contacts from this country? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -121,7 +121,7 @@ class CRM_Core_DAO_Country extends CRM_Core_DAO { /** * Is this Country active? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -304,6 +304,7 @@ class CRM_Core_DAO_Country extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Abbreviate Province?'), 'description' => ts('Should state/province be displayed as abbreviation for contacts from this country?'), + 'required' => TRUE, 'where' => 'civicrm_country.is_province_abbreviated', 'default' => '0', 'table_name' => 'civicrm_country', @@ -317,6 +318,7 @@ class CRM_Core_DAO_Country extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Country Is Active'), 'description' => ts('Is this Country active?'), + 'required' => TRUE, 'where' => 'civicrm_country.is_active', 'default' => '1', 'table_name' => 'civicrm_country', diff --git a/CRM/Core/DAO/County.php b/CRM/Core/DAO/County.php index d1f5bb8873..72415042c8 100644 --- a/CRM/Core/DAO/County.php +++ b/CRM/Core/DAO/County.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/County.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:5a261e24e77bb54854f782628a13dbf6) + * (GenCodeChecksum:3b5b06caf78948fe6bbbafe831c2aa96) */ /** @@ -76,7 +76,7 @@ class CRM_Core_DAO_County extends CRM_Core_DAO { /** * Is this County active? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -200,6 +200,7 @@ class CRM_Core_DAO_County extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('County Is Active'), 'description' => ts('Is this County active?'), + 'required' => TRUE, 'where' => 'civicrm_county.is_active', 'default' => '1', 'table_name' => 'civicrm_county', diff --git a/CRM/Core/DAO/CustomField.php b/CRM/Core/DAO/CustomField.php index 4132455e1a..a74d5a950a 100644 --- a/CRM/Core/DAO/CustomField.php +++ b/CRM/Core/DAO/CustomField.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/CustomField.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:3af9363de85802021c314ddb8d443848) + * (GenCodeChecksum:52ca62aae191d0b8f9ec8bf5ad5595d1) */ /** @@ -116,7 +116,7 @@ class CRM_Core_DAO_CustomField extends CRM_Core_DAO { /** * Is a value required for this property. * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -125,7 +125,7 @@ class CRM_Core_DAO_CustomField extends CRM_Core_DAO { /** * Is this property searchable. * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -134,7 +134,7 @@ class CRM_Core_DAO_CustomField extends CRM_Core_DAO { /** * Is this property range searchable. * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -206,7 +206,7 @@ class CRM_Core_DAO_CustomField extends CRM_Core_DAO { /** * Is this property set by PHP Code? A code field is viewable but not editable * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -323,7 +323,7 @@ class CRM_Core_DAO_CustomField extends CRM_Core_DAO { /** * Should the multi-record custom field values be displayed in tab table listing * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -503,6 +503,7 @@ class CRM_Core_DAO_CustomField extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Custom Field Is Required?'), 'description' => ts('Is a value required for this property.'), + 'required' => TRUE, 'where' => 'civicrm_custom_field.is_required', 'default' => '0', 'table_name' => 'civicrm_custom_field', @@ -516,6 +517,7 @@ class CRM_Core_DAO_CustomField extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Allow Searching on Field?'), 'description' => ts('Is this property searchable.'), + 'required' => TRUE, 'where' => 'civicrm_custom_field.is_searchable', 'default' => '0', 'table_name' => 'civicrm_custom_field', @@ -529,6 +531,7 @@ class CRM_Core_DAO_CustomField extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Search as a Range'), 'description' => ts('Is this property range searchable.'), + 'required' => TRUE, 'where' => 'civicrm_custom_field.is_search_range', 'default' => '0', 'table_name' => 'civicrm_custom_field', @@ -635,6 +638,7 @@ class CRM_Core_DAO_CustomField extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Field is Viewable'), 'description' => ts('Is this property set by PHP Code? A code field is viewable but not editable'), + 'required' => TRUE, 'where' => 'civicrm_custom_field.is_view', 'default' => '0', 'table_name' => 'civicrm_custom_field', @@ -818,6 +822,7 @@ class CRM_Core_DAO_CustomField extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Field Display'), 'description' => ts('Should the multi-record custom field values be displayed in tab table listing'), + 'required' => TRUE, 'where' => 'civicrm_custom_field.in_selector', 'default' => '0', 'table_name' => 'civicrm_custom_field', diff --git a/CRM/Core/DAO/CustomGroup.php b/CRM/Core/DAO/CustomGroup.php index 41f78998d6..55448549ca 100644 --- a/CRM/Core/DAO/CustomGroup.php +++ b/CRM/Core/DAO/CustomGroup.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/CustomGroup.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:979bca796163b9af253a7860d9d4a01d) + * (GenCodeChecksum:65d78bdab80228a63775214faab08ee0) */ /** @@ -115,7 +115,7 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO { /** * Will this group be in collapsed or expanded mode on initial display ? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -151,7 +151,7 @@ class CRM_Core_DAO_CustomGroup 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. */ @@ -169,7 +169,7 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO { /** * Does this group hold multiple values? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -196,7 +196,7 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO { /** * Will this group be in collapsed or expanded mode on advanced search display ? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -223,7 +223,7 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO { /** * Is this a reserved Custom Group? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -232,7 +232,7 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO { /** * Is this property public? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -412,6 +412,7 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Collapse Custom Group?'), 'description' => ts('Will this group be in collapsed or expanded mode on initial display ?'), + 'required' => TRUE, 'where' => 'civicrm_custom_group.collapse_display', 'default' => '0', 'table_name' => 'civicrm_custom_group', @@ -473,6 +474,7 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Custom Group Is Active?'), 'description' => ts('Is this property active?'), + 'required' => TRUE, 'where' => 'civicrm_custom_group.is_active', 'default' => '1', 'table_name' => 'civicrm_custom_group', @@ -504,6 +506,7 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Supports Multiple Records'), 'description' => ts('Does this group hold multiple values?'), + 'required' => TRUE, 'where' => 'civicrm_custom_group.is_multiple', 'default' => '0', 'table_name' => 'civicrm_custom_group', @@ -541,6 +544,7 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Collapse Group Display'), 'description' => ts('Will this group be in collapsed or expanded mode on advanced search display ?'), + 'required' => TRUE, 'where' => 'civicrm_custom_group.collapse_adv_display', 'default' => '0', 'table_name' => 'civicrm_custom_group', @@ -582,6 +586,7 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Reserved Group?'), 'description' => ts('Is this a reserved Custom Group?'), + 'required' => TRUE, 'where' => 'civicrm_custom_group.is_reserved', 'default' => '0', 'table_name' => 'civicrm_custom_group', @@ -595,6 +600,7 @@ class CRM_Core_DAO_CustomGroup extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Custom Group Is Public?'), 'description' => ts('Is this property public?'), + 'required' => TRUE, 'where' => 'civicrm_custom_group.is_public', 'default' => '1', 'table_name' => 'civicrm_custom_group', diff --git a/CRM/Core/DAO/Dashboard.php b/CRM/Core/DAO/Dashboard.php index 6121094d5e..d1cb04ef75 100644 --- a/CRM/Core/DAO/Dashboard.php +++ b/CRM/Core/DAO/Dashboard.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Dashboard.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:c93931e695d897a5f4ad92e388748424) + * (GenCodeChecksum:35f8b4725d70d269c6c23ed8f7e2b47d) */ /** @@ -103,7 +103,7 @@ class CRM_Core_DAO_Dashboard extends CRM_Core_DAO { /** * Is this dashlet active? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -112,7 +112,7 @@ class CRM_Core_DAO_Dashboard extends CRM_Core_DAO { /** * Is this dashlet reserved? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -308,6 +308,7 @@ class CRM_Core_DAO_Dashboard extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Dashlet Active?'), 'description' => ts('Is this dashlet active?'), + 'required' => TRUE, 'where' => 'civicrm_dashboard.is_active', 'default' => '0', 'table_name' => 'civicrm_dashboard', @@ -321,6 +322,7 @@ class CRM_Core_DAO_Dashboard extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Dashlet Reserved?'), 'description' => ts('Is this dashlet reserved?'), + 'required' => TRUE, 'where' => 'civicrm_dashboard.is_reserved', 'default' => '0', 'table_name' => 'civicrm_dashboard', diff --git a/CRM/Core/DAO/Email.php b/CRM/Core/DAO/Email.php index 739ea4b164..082c77f910 100644 --- a/CRM/Core/DAO/Email.php +++ b/CRM/Core/DAO/Email.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Email.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:2a48ebd09a4f1de290856c1e7315ce69) + * (GenCodeChecksum:58fe115e0962f83c3906bce5f663f0fc) */ /** @@ -83,7 +83,7 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO { /** * Is this the primary email address * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -92,7 +92,7 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO { /** * Is this the billing? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -273,6 +273,7 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Primary email'), 'description' => ts('Is this the primary email address'), + 'required' => TRUE, 'where' => 'civicrm_email.is_primary', 'default' => '0', 'table_name' => 'civicrm_email', @@ -289,6 +290,7 @@ class CRM_Core_DAO_Email extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Billing Email?'), 'description' => ts('Is this the billing?'), + 'required' => TRUE, 'where' => 'civicrm_email.is_billing', 'default' => '0', 'table_name' => 'civicrm_email', diff --git a/CRM/Core/DAO/IM.php b/CRM/Core/DAO/IM.php index 1547662bf9..3d193b22b2 100644 --- a/CRM/Core/DAO/IM.php +++ b/CRM/Core/DAO/IM.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/IM.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:830e0ccbcdcfe1769330d4cfb39f3285) + * (GenCodeChecksum:aa43f28e70d1de3571aa1775f71d7990) */ /** @@ -92,7 +92,7 @@ class CRM_Core_DAO_IM extends CRM_Core_DAO { /** * Is this the primary IM for this contact and location. * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -101,7 +101,7 @@ class CRM_Core_DAO_IM extends CRM_Core_DAO { /** * Is this the billing? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -246,6 +246,7 @@ class CRM_Core_DAO_IM extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Primary IM'), 'description' => ts('Is this the primary IM for this contact and location.'), + 'required' => TRUE, 'where' => 'civicrm_im.is_primary', 'default' => '0', 'table_name' => 'civicrm_im', @@ -262,6 +263,7 @@ class CRM_Core_DAO_IM extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is IM Billing?'), 'description' => ts('Is this the billing?'), + 'required' => TRUE, 'where' => 'civicrm_im.is_billing', 'default' => '0', 'table_name' => 'civicrm_im', diff --git a/CRM/Core/DAO/Job.php b/CRM/Core/DAO/Job.php index 65d3519805..6ba4e72cc3 100644 --- a/CRM/Core/DAO/Job.php +++ b/CRM/Core/DAO/Job.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Job.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:75ec772bec625c1d315df0abadd2fca6) + * (GenCodeChecksum:48dcb79d3068aa6d0a994054b84658fe) */ /** @@ -123,7 +123,7 @@ class CRM_Core_DAO_Job extends CRM_Core_DAO { /** * Is this job active? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -342,7 +342,9 @@ class CRM_Core_DAO_Job extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Job Is Active?'), 'description' => ts('Is this job active?'), + 'required' => TRUE, 'where' => 'civicrm_job.is_active', + 'default' => '1', 'table_name' => 'civicrm_job', 'entity' => 'Job', 'bao' => 'CRM_Core_BAO_Job', diff --git a/CRM/Core/DAO/MailSettings.php b/CRM/Core/DAO/MailSettings.php index 206ce6c086..635828f78f 100644 --- a/CRM/Core/DAO/MailSettings.php +++ b/CRM/Core/DAO/MailSettings.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/MailSettings.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:d0b9b61f890ea3ff893f8d4e03d0afcd) + * (GenCodeChecksum:d31cb841b4c5f88a27dacae0ab50a618) */ /** @@ -60,7 +60,7 @@ class CRM_Core_DAO_MailSettings extends CRM_Core_DAO { /** * whether this is the default set of settings for this domain * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -141,7 +141,7 @@ class CRM_Core_DAO_MailSettings extends CRM_Core_DAO { /** * whether to use SSL or not * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -168,14 +168,14 @@ class CRM_Core_DAO_MailSettings extends CRM_Core_DAO { /** * Enabling this option will have CiviCRM skip any emails that do not have the Case ID or Case Hash so that the system will only process emails that can be placed on case records. Any emails that are not processed will be moved to the ignored folder. * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ public $is_non_case_email_skipped; /** - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -280,7 +280,9 @@ class CRM_Core_DAO_MailSettings extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Default Mail Settings?'), 'description' => ts('whether this is the default set of settings for this domain'), + 'required' => TRUE, 'where' => 'civicrm_mail_settings.is_default', + 'default' => '0', 'table_name' => 'civicrm_mail_settings', 'entity' => 'MailSettings', 'bao' => 'CRM_Core_BAO_MailSettings', @@ -409,7 +411,9 @@ class CRM_Core_DAO_MailSettings extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Mail Account Uses SSL'), 'description' => ts('whether to use SSL or not'), + 'required' => TRUE, 'where' => 'civicrm_mail_settings.is_ssl', + 'default' => '0', 'table_name' => 'civicrm_mail_settings', 'entity' => 'MailSettings', 'bao' => 'CRM_Core_BAO_MailSettings', @@ -457,6 +461,7 @@ class CRM_Core_DAO_MailSettings extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Skip emails which do not have a Case ID or Case hash'), 'description' => ts('Enabling this option will have CiviCRM skip any emails that do not have the Case ID or Case Hash so that the system will only process emails that can be placed on case records. Any emails that are not processed will be moved to the ignored folder.'), + 'required' => TRUE, 'where' => 'civicrm_mail_settings.is_non_case_email_skipped', 'default' => '0', 'table_name' => 'civicrm_mail_settings', @@ -472,6 +477,7 @@ class CRM_Core_DAO_MailSettings extends CRM_Core_DAO { 'name' => 'is_contact_creation_disabled_if_no_match', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Do not create new contacts when filing emails'), + 'required' => TRUE, 'where' => 'civicrm_mail_settings.is_contact_creation_disabled_if_no_match', 'default' => '0', 'table_name' => 'civicrm_mail_settings', diff --git a/CRM/Core/DAO/Menu.php b/CRM/Core/DAO/Menu.php index d2fc425efc..e8cc323017 100644 --- a/CRM/Core/DAO/Menu.php +++ b/CRM/Core/DAO/Menu.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Menu.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:a6c1c555579640a8bb83b496ee126e1a) + * (GenCodeChecksum:4d01bd1731e617a192799fab24077cac) */ /** @@ -146,7 +146,7 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO { /** * Is this menu item active? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -155,7 +155,7 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO { /** * Is this menu accessible to the public? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -164,7 +164,7 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO { /** * Is this menu exposed to the navigation system? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -173,7 +173,7 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO { /** * Should this menu be exposed via SSL if enabled? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -209,7 +209,7 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO { /** * skip this url being exposed to breadcrumb * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -468,7 +468,9 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Enabled?'), 'description' => ts('Is this menu item active?'), + 'required' => TRUE, 'where' => 'civicrm_menu.is_active', + 'default' => '1', 'table_name' => 'civicrm_menu', 'entity' => 'Menu', 'bao' => 'CRM_Core_DAO_Menu', @@ -480,7 +482,9 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Public?'), 'description' => ts('Is this menu accessible to the public?'), + 'required' => TRUE, 'where' => 'civicrm_menu.is_public', + 'default' => '1', 'table_name' => 'civicrm_menu', 'entity' => 'Menu', 'bao' => 'CRM_Core_DAO_Menu', @@ -492,7 +496,9 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Exposed?'), 'description' => ts('Is this menu exposed to the navigation system?'), + 'required' => TRUE, 'where' => 'civicrm_menu.is_exposed', + 'default' => '1', 'table_name' => 'civicrm_menu', 'entity' => 'Menu', 'bao' => 'CRM_Core_DAO_Menu', @@ -504,7 +510,9 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Use SSL?'), 'description' => ts('Should this menu be exposed via SSL if enabled?'), + 'required' => TRUE, 'where' => 'civicrm_menu.is_ssl', + 'default' => '1', 'table_name' => 'civicrm_menu', 'entity' => 'Menu', 'bao' => 'CRM_Core_DAO_Menu', @@ -558,7 +566,9 @@ class CRM_Core_DAO_Menu extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Hide Breadcrumb?'), 'description' => ts('skip this url being exposed to breadcrumb'), + 'required' => TRUE, 'where' => 'civicrm_menu.skipBreadcrumb', + 'default' => '0', 'table_name' => 'civicrm_menu', 'entity' => 'Menu', 'bao' => 'CRM_Core_DAO_Menu', diff --git a/CRM/Core/DAO/MessageTemplate.php b/CRM/Core/DAO/MessageTemplate.php index 72c9001567..a124c9d467 100644 --- a/CRM/Core/DAO/MessageTemplate.php +++ b/CRM/Core/DAO/MessageTemplate.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/MessageTemplate.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:1fba7635baeb10d95b90c02ca4ea99c6) + * (GenCodeChecksum:a2e8de0828f836d42d4dcce19200ab27) */ /** @@ -76,7 +76,7 @@ class CRM_Core_DAO_MessageTemplate extends CRM_Core_DAO { public $msg_html; /** - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -101,7 +101,7 @@ class CRM_Core_DAO_MessageTemplate extends CRM_Core_DAO { /** * is this the default message template for the workflow referenced by workflow_id? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -110,7 +110,7 @@ class CRM_Core_DAO_MessageTemplate extends CRM_Core_DAO { /** * is this the reserved message template which we ship for the workflow referenced by workflow_id? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -119,7 +119,7 @@ class CRM_Core_DAO_MessageTemplate extends CRM_Core_DAO { /** * Is this message template used for sms? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -237,6 +237,7 @@ class CRM_Core_DAO_MessageTemplate extends CRM_Core_DAO { 'name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Active'), + 'required' => TRUE, 'where' => 'civicrm_msg_template.is_active', 'default' => '1', 'table_name' => 'civicrm_msg_template', @@ -275,6 +276,7 @@ class CRM_Core_DAO_MessageTemplate extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Message Template Is Default?'), 'description' => ts('is this the default message template for the workflow referenced by workflow_id?'), + 'required' => TRUE, 'where' => 'civicrm_msg_template.is_default', 'default' => '1', 'table_name' => 'civicrm_msg_template', @@ -288,6 +290,7 @@ class CRM_Core_DAO_MessageTemplate extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Message Template Is Reserved?'), 'description' => ts('is this the reserved message template which we ship for the workflow referenced by workflow_id?'), + 'required' => TRUE, 'where' => 'civicrm_msg_template.is_reserved', 'default' => '0', 'table_name' => 'civicrm_msg_template', @@ -301,6 +304,7 @@ class CRM_Core_DAO_MessageTemplate extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Message Template is used for SMS?'), 'description' => ts('Is this message template used for sms?'), + 'required' => TRUE, 'where' => 'civicrm_msg_template.is_sms', 'default' => '0', 'table_name' => 'civicrm_msg_template', diff --git a/CRM/Core/DAO/OpenID.php b/CRM/Core/DAO/OpenID.php index c5413e170d..7a6650f7bc 100644 --- a/CRM/Core/DAO/OpenID.php +++ b/CRM/Core/DAO/OpenID.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/OpenID.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:0e8f41d1f528dfadc08d7f53610948ca) + * (GenCodeChecksum:7c70e03ffe06633c9e61c5845967d286) */ /** @@ -78,7 +78,7 @@ class CRM_Core_DAO_OpenID extends CRM_Core_DAO { /** * Is this the primary email for this contact and location. * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -213,6 +213,7 @@ class CRM_Core_DAO_OpenID extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Primary ID'), 'description' => ts('Is this the primary email for this contact and location.'), + 'required' => TRUE, 'where' => 'civicrm_openid.is_primary', 'default' => '0', 'table_name' => 'civicrm_openid', diff --git a/CRM/Core/DAO/Phone.php b/CRM/Core/DAO/Phone.php index 3241bf3f1d..e8255a6032 100644 --- a/CRM/Core/DAO/Phone.php +++ b/CRM/Core/DAO/Phone.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Phone.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:76f82c31308292a82535fb6bcf6acc4d) + * (GenCodeChecksum:b55a8820477e7df5db59b4ac8dc6adb6) */ /** @@ -74,7 +74,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO { /** * Is this the primary phone for this contact and location. * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -83,7 +83,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO { /** * Is this the billing? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -234,6 +234,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Primary phone'), 'description' => ts('Is this the primary phone for this contact and location.'), + 'required' => TRUE, 'where' => 'civicrm_phone.is_primary', 'default' => '0', 'table_name' => 'civicrm_phone', @@ -250,6 +251,7 @@ class CRM_Core_DAO_Phone extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Billing Phone'), 'description' => ts('Is this the billing?'), + 'required' => TRUE, 'where' => 'civicrm_phone.is_billing', 'default' => '0', 'table_name' => 'civicrm_phone', diff --git a/CRM/Core/DAO/PrevNextCache.php b/CRM/Core/DAO/PrevNextCache.php index 9ab4943daa..917c784383 100644 --- a/CRM/Core/DAO/PrevNextCache.php +++ b/CRM/Core/DAO/PrevNextCache.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/PrevNextCache.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:34c9a3b8f37f15fa5f0d9174e5e1c981) + * (GenCodeChecksum:f024b706891db44527cdb153c1cdaea7) */ /** @@ -83,7 +83,7 @@ class CRM_Core_DAO_PrevNextCache extends CRM_Core_DAO { public $data; /** - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -202,6 +202,7 @@ class CRM_Core_DAO_PrevNextCache extends CRM_Core_DAO { 'name' => 'is_selected', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Selected'), + 'required' => TRUE, 'where' => 'civicrm_prevnext_cache.is_selected', 'default' => '0', 'table_name' => 'civicrm_prevnext_cache', diff --git a/CRM/Core/DAO/PrintLabel.php b/CRM/Core/DAO/PrintLabel.php index 73cd71cb68..6a44d1fd37 100644 --- a/CRM/Core/DAO/PrintLabel.php +++ b/CRM/Core/DAO/PrintLabel.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/PrintLabel.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:2ff186e7860c945a080bd0d8672dee5f) + * (GenCodeChecksum:55db87fdd43d6037d64da10df24fc2b8) */ /** @@ -94,7 +94,7 @@ class CRM_Core_DAO_PrintLabel extends CRM_Core_DAO { /** * Is this default? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -103,7 +103,7 @@ class CRM_Core_DAO_PrintLabel extends CRM_Core_DAO { /** * Is this option active? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -112,7 +112,7 @@ class CRM_Core_DAO_PrintLabel extends CRM_Core_DAO { /** * Is this reserved label? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -288,6 +288,7 @@ class CRM_Core_DAO_PrintLabel extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Label is Default?'), 'description' => ts('Is this default?'), + 'required' => TRUE, 'where' => 'civicrm_print_label.is_default', 'default' => '1', 'table_name' => 'civicrm_print_label', @@ -301,6 +302,7 @@ class CRM_Core_DAO_PrintLabel extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Label Is Active?'), 'description' => ts('Is this option active?'), + 'required' => TRUE, 'where' => 'civicrm_print_label.is_active', 'default' => '1', 'table_name' => 'civicrm_print_label', @@ -314,6 +316,7 @@ class CRM_Core_DAO_PrintLabel extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Label Reserved?'), 'description' => ts('Is this reserved label?'), + 'required' => TRUE, 'where' => 'civicrm_print_label.is_reserved', 'default' => '1', 'table_name' => 'civicrm_print_label', diff --git a/CRM/Core/DAO/Setting.php b/CRM/Core/DAO/Setting.php index 32c4c45741..65cc578f4a 100644 --- a/CRM/Core/DAO/Setting.php +++ b/CRM/Core/DAO/Setting.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Setting.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:1540ee58b9ec485590f4ce8cfe94f5a4) + * (GenCodeChecksum:faec64e198a9187d40a3c1036a543d5c) */ /** @@ -76,7 +76,7 @@ class CRM_Core_DAO_Setting extends CRM_Core_DAO { /** * Is this setting a contact specific or site wide setting? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -242,7 +242,9 @@ class CRM_Core_DAO_Setting extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Domain Setting?'), 'description' => ts('Is this setting a contact specific or site wide setting?'), + 'required' => TRUE, 'where' => 'civicrm_setting.is_domain', + 'default' => '0', 'table_name' => 'civicrm_setting', 'entity' => 'Setting', 'bao' => 'CRM_Core_BAO_Setting', diff --git a/CRM/Core/DAO/StateProvince.php b/CRM/Core/DAO/StateProvince.php index a07f290a77..4492a7fa1b 100644 --- a/CRM/Core/DAO/StateProvince.php +++ b/CRM/Core/DAO/StateProvince.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/StateProvince.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:fe8e2b8bd40cc99eb28b66260a48da80) + * (GenCodeChecksum:b52f997bf6a08f0408c349a0ef187779) */ /** @@ -76,7 +76,7 @@ class CRM_Core_DAO_StateProvince extends CRM_Core_DAO { /** * Is this StateProvince active? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -194,6 +194,7 @@ class CRM_Core_DAO_StateProvince extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('StateProvince Is Active'), 'description' => ts('Is this StateProvince active?'), + 'required' => TRUE, 'where' => 'civicrm_state_province.is_active', 'default' => '1', 'table_name' => 'civicrm_state_province', diff --git a/CRM/Core/DAO/StatusPreference.php b/CRM/Core/DAO/StatusPreference.php index 60d0f297ef..6dfacf75f9 100644 --- a/CRM/Core/DAO/StatusPreference.php +++ b/CRM/Core/DAO/StatusPreference.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/StatusPreference.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:1fca44b28defd0dfa440e071408ae623) + * (GenCodeChecksum:3be71b1385c3b8095593a3c916f63b38) */ /** @@ -96,7 +96,7 @@ class CRM_Core_DAO_StatusPreference extends CRM_Core_DAO { /** * Is this status check active? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -265,6 +265,7 @@ class CRM_Core_DAO_StatusPreference extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Check Is Active'), 'description' => ts('Is this status check active?'), + 'required' => TRUE, 'where' => 'civicrm_status_pref.is_active', 'default' => '1', 'table_name' => 'civicrm_status_pref', diff --git a/CRM/Core/DAO/Tag.php b/CRM/Core/DAO/Tag.php index 3dcf7dbf5d..123795f5a9 100644 --- a/CRM/Core/DAO/Tag.php +++ b/CRM/Core/DAO/Tag.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Tag.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:4e8a87bf73d5f2f09dacdd4891ee7305) + * (GenCodeChecksum:68e222188dd1d031d2219aa1617e15af) */ /** @@ -83,21 +83,21 @@ class CRM_Core_DAO_Tag extends CRM_Core_DAO { /** * Is this tag selectable / displayed * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ public $is_selectable; /** - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ public $is_reserved; /** - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -252,6 +252,7 @@ class CRM_Core_DAO_Tag extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Display Tag?'), 'description' => ts('Is this tag selectable / displayed'), + 'required' => TRUE, 'where' => 'civicrm_tag.is_selectable', 'default' => '1', 'table_name' => 'civicrm_tag', @@ -264,6 +265,7 @@ class CRM_Core_DAO_Tag extends CRM_Core_DAO { 'name' => 'is_reserved', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Reserved'), + 'required' => TRUE, 'where' => 'civicrm_tag.is_reserved', 'default' => '0', 'table_name' => 'civicrm_tag', @@ -276,6 +278,7 @@ class CRM_Core_DAO_Tag extends CRM_Core_DAO { 'name' => 'is_tagset', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Tagset'), + 'required' => TRUE, 'where' => 'civicrm_tag.is_tagset', 'default' => '0', 'table_name' => 'civicrm_tag', diff --git a/CRM/Core/DAO/UFField.php b/CRM/Core/DAO/UFField.php index a35a7cc368..8f4b833061 100644 --- a/CRM/Core/DAO/UFField.php +++ b/CRM/Core/DAO/UFField.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/UFField.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:dbab868218968878ca554480f974c2b4) + * (GenCodeChecksum:4d8ac7c59b6f2301cc22fe7966e8fc91) */ /** @@ -60,7 +60,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { /** * Is this field currently shareable? If false, hide the field for all sharing contexts. * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -69,7 +69,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { /** * the field is view only and not editable in user forms. * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -78,7 +78,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { /** * Is this field required when included in a user or registration form? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -123,7 +123,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { /** * Is this field included as a column in the selector table? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -132,7 +132,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { /** * Is this field included search form of profile? * - * @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,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { /** * Is this field reserved for use by some other CiviCRM functionality? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -195,7 +195,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { /** * Include in multi-record listing? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -306,6 +306,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Profile Field Is Active'), 'description' => ts('Is this field currently shareable? If false, hide the field for all sharing contexts.'), + 'required' => TRUE, 'where' => 'civicrm_uf_field.is_active', 'default' => '1', 'table_name' => 'civicrm_uf_field', @@ -319,6 +320,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Profile Is View Only'), 'description' => ts('the field is view only and not editable in user forms.'), + 'required' => TRUE, 'where' => 'civicrm_uf_field.is_view', 'default' => '0', 'table_name' => 'civicrm_uf_field', @@ -332,6 +334,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Profile Field Is Required'), 'description' => ts('Is this field required when included in a user or registration form?'), + 'required' => TRUE, 'where' => 'civicrm_uf_field.is_required', 'default' => '0', 'table_name' => 'civicrm_uf_field', @@ -404,6 +407,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Profile Field Is a Filter'), 'description' => ts('Is this field included as a column in the selector table?'), + 'required' => TRUE, 'where' => 'civicrm_uf_field.in_selector', 'default' => '0', 'table_name' => 'civicrm_uf_field', @@ -417,6 +421,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Profile Field Is Searchable'), 'description' => ts('Is this field included search form of profile?'), + 'required' => TRUE, 'where' => 'civicrm_uf_field.is_searchable', 'default' => '0', 'table_name' => 'civicrm_uf_field', @@ -507,7 +512,9 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Profile Field Is Reserved'), 'description' => ts('Is this field reserved for use by some other CiviCRM functionality?'), + 'required' => TRUE, 'where' => 'civicrm_uf_field.is_reserved', + 'default' => '0', 'table_name' => 'civicrm_uf_field', 'entity' => 'UFField', 'bao' => 'CRM_Core_BAO_UFField', @@ -519,6 +526,7 @@ class CRM_Core_DAO_UFField extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Profile Field Supports Multiple'), 'description' => ts('Include in multi-record listing?'), + 'required' => TRUE, 'where' => 'civicrm_uf_field.is_multi_summary', 'default' => '0', 'table_name' => 'civicrm_uf_field', diff --git a/CRM/Core/DAO/UFGroup.php b/CRM/Core/DAO/UFGroup.php index 37f9346e36..a3b97104aa 100644 --- a/CRM/Core/DAO/UFGroup.php +++ b/CRM/Core/DAO/UFGroup.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/UFGroup.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:6d64e2deaff9b8408d4110c44d0e8152) + * (GenCodeChecksum:37e03f3367ced4a53471f4f137c8c8ad) */ /** @@ -42,7 +42,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO { /** * Is this form currently active? If false, hide all related fields for all sharing contexts. * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -132,7 +132,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO { /** * Should a CAPTCHA widget be included this Profile form. * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -141,7 +141,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO { /** * Do we want to map results from this profile. * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -150,7 +150,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO { /** * Should edit link display in profile selector * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -159,7 +159,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO { /** * Should we display a link to the website profile in profile selector * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -168,7 +168,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO { /** * Should we update the contact record if we find a duplicate * - * @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,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO { /** * Should we create a cms user for this profile * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -202,7 +202,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO { /** * Is this group reserved for use by some other CiviCRM functionality? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -238,7 +238,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO { /** * Should we include proximity search feature in this profile search form? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -265,7 +265,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO { /** * Should a Cancel button be included in this Profile form. * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -336,6 +336,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Profile Is Active'), 'description' => ts('Is this form currently active? If false, hide all related fields for all sharing contexts.'), + 'required' => TRUE, 'where' => 'civicrm_uf_group.is_active', 'default' => '1', 'table_name' => 'civicrm_uf_group', @@ -502,6 +503,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Show Captcha On Profile'), 'description' => ts('Should a CAPTCHA widget be included this Profile form.'), + 'required' => TRUE, 'where' => 'civicrm_uf_group.add_captcha', 'default' => '0', 'table_name' => 'civicrm_uf_group', @@ -515,6 +517,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Map Profile'), 'description' => ts('Do we want to map results from this profile.'), + 'required' => TRUE, 'where' => 'civicrm_uf_group.is_map', 'default' => '0', 'table_name' => 'civicrm_uf_group', @@ -528,6 +531,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Show Edit Link?'), 'description' => ts('Should edit link display in profile selector'), + 'required' => TRUE, 'where' => 'civicrm_uf_group.is_edit_link', 'default' => '0', 'table_name' => 'civicrm_uf_group', @@ -541,6 +545,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Show Link to CMS User'), 'description' => ts('Should we display a link to the website profile in profile selector'), + 'required' => TRUE, 'where' => 'civicrm_uf_group.is_uf_link', 'default' => '0', 'table_name' => 'civicrm_uf_group', @@ -554,6 +559,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Update on Duplicate'), 'description' => ts('Should we update the contact record if we find a duplicate'), + 'required' => TRUE, 'where' => 'civicrm_uf_group.is_update_dupe', 'default' => '0', 'table_name' => 'civicrm_uf_group', @@ -581,6 +587,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Create CMS User?'), 'description' => ts('Should we create a cms user for this profile '), + 'required' => TRUE, 'where' => 'civicrm_uf_group.is_cms_user', 'default' => '0', 'table_name' => 'civicrm_uf_group', @@ -605,7 +612,9 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Profile Is Reserved'), 'description' => ts('Is this group reserved for use by some other CiviCRM functionality?'), + 'required' => TRUE, 'where' => 'civicrm_uf_group.is_reserved', + 'default' => '0', 'table_name' => 'civicrm_uf_group', 'entity' => 'UFGroup', 'bao' => 'CRM_Core_BAO_UFGroup', @@ -659,6 +668,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Include Proximity Search?'), 'description' => ts('Should we include proximity search feature in this profile search form?'), + 'required' => TRUE, 'where' => 'civicrm_uf_group.is_proximity_search', 'default' => '0', 'table_name' => 'civicrm_uf_group', @@ -708,6 +718,7 @@ class CRM_Core_DAO_UFGroup extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Include Cancel Button'), 'description' => ts('Should a Cancel button be included in this Profile form.'), + 'required' => TRUE, 'where' => 'civicrm_uf_group.add_cancel_button', 'default' => '1', 'table_name' => 'civicrm_uf_group', diff --git a/CRM/Core/DAO/UFJoin.php b/CRM/Core/DAO/UFJoin.php index a3460bd94f..5d7d4d547e 100644 --- a/CRM/Core/DAO/UFJoin.php +++ b/CRM/Core/DAO/UFJoin.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/UFJoin.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:1e4fa645d4bface77a08688d714ba651) + * (GenCodeChecksum:f2e966f7c15ec53893157c9fad65cde2) */ /** @@ -42,7 +42,7 @@ class CRM_Core_DAO_UFJoin extends CRM_Core_DAO { /** * Is this join currently active? * - * @var bool|string|null + * @var bool|string * (SQL type: tinyint) * Note that values will be retrieved from the database as a string. */ @@ -166,6 +166,7 @@ class CRM_Core_DAO_UFJoin extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Profile Use is active'), 'description' => ts('Is this join currently active?'), + 'required' => TRUE, 'where' => 'civicrm_uf_join.is_active', 'default' => '1', 'table_name' => 'civicrm_uf_join', diff --git a/CRM/Core/DAO/WordReplacement.php b/CRM/Core/DAO/WordReplacement.php index efb8b81e05..d07c8547e7 100644 --- a/CRM/Core/DAO/WordReplacement.php +++ b/CRM/Core/DAO/WordReplacement.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/WordReplacement.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:705cadb5a39522334249027149873712) + * (GenCodeChecksum:c5865289b55e3bdbca5fbca82a61526b) */ /** @@ -60,7 +60,7 @@ class CRM_Core_DAO_WordReplacement extends CRM_Core_DAO { /** * 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. */ @@ -173,6 +173,7 @@ class CRM_Core_DAO_WordReplacement extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Word Replacement is Active'), 'description' => ts('Is this entry active?'), + 'required' => TRUE, 'where' => 'civicrm_word_replacement.is_active', 'default' => '1', 'table_name' => 'civicrm_word_replacement', diff --git a/CRM/Upgrade/Incremental/php/FiveFortyNine/Core.bool.php b/CRM/Upgrade/Incremental/php/FiveFortyNine/Core.bool.php new file mode 100644 index 0000000000..d2594f2059 --- /dev/null +++ b/CRM/Upgrade/Incremental/php/FiveFortyNine/Core.bool.php @@ -0,0 +1,129 @@ + [ + 'limit_to' => "DEFAULT 1 COMMENT 'Is this the recipient criteria limited to OR in addition to?'", + 'is_repeat' => "DEFAULT 0", + 'is_active' => "DEFAULT 1 COMMENT 'Is this option active?'", + 'record_activity' => "DEFAULT 0 COMMENT 'Record Activity for this reminder?'", + ], + 'civicrm_action_log' => [ + 'is_error' => "DEFAULT 0 COMMENT 'Was there any error sending the reminder?'", + ], + 'civicrm_address' => [ + 'is_primary' => "DEFAULT 0 COMMENT 'Is this the primary address.'", + 'is_billing' => "DEFAULT 0 COMMENT 'Is this the billing address.'", + 'manual_geo_code' => "DEFAULT 0 COMMENT 'Is this a manually entered geo code'", + ], + 'civicrm_country' => [ + 'is_province_abbreviated' => "DEFAULT 0 COMMENT 'Should state/province be displayed as abbreviation for contacts from this country?'", + 'is_active' => "DEFAULT 1 COMMENT 'Is this Country active?'", + ], + 'civicrm_county' => [ + 'is_active' => "DEFAULT 1 COMMENT 'Is this County active?'", + ], + 'civicrm_custom_group' => [ + 'collapse_display' => "DEFAULT 0 COMMENT 'Will this group be in collapsed or expanded mode on initial display ?'", + 'is_active' => "DEFAULT 1 COMMENT 'Is this property active?'", + 'is_multiple' => "DEFAULT 0 COMMENT 'Does this group hold multiple values?'", + 'collapse_adv_display' => "DEFAULT 0 COMMENT 'Will this group be in collapsed or expanded mode on advanced search display ?'", + 'is_reserved' => "DEFAULT 0 COMMENT 'Is this a reserved Custom Group?'", + 'is_public' => "DEFAULT 1 COMMENT 'Is this property public?'", + ], + 'civicrm_custom_field' => [ + 'is_required' => "DEFAULT 0 COMMENT 'Is a value required for this property.'", + 'is_searchable' => "DEFAULT 0 COMMENT 'Is this property searchable.'", + 'is_search_range' => "DEFAULT 0 COMMENT 'Is this property range searchable.'", + 'is_view' => "DEFAULT 0 COMMENT 'Is this property set by PHP Code? A code field is viewable but not editable'", + 'in_selector' => "DEFAULT 0 COMMENT 'Should the multi-record custom field values be displayed in tab table listing'", + ], + 'civicrm_dashboard' => [ + 'is_active' => "DEFAULT 0 COMMENT 'Is this dashlet active?'", + 'is_reserved' => "DEFAULT 0 COMMENT 'Is this dashlet reserved?'", + ], + 'civicrm_email' => [ + 'is_primary' => "DEFAULT 0 COMMENT 'Is this the primary email address'", + 'is_billing' => "DEFAULT 0 COMMENT 'Is this the billing?'", + ], + 'civicrm_im' => [ + 'is_primary' => "DEFAULT 0 COMMENT 'Is this the primary IM for this contact and location.'", + 'is_billing' => "DEFAULT 0 COMMENT 'Is this the billing?'", + ], + 'civicrm_job' => [ + 'is_active' => "DEFAULT 1 COMMENT 'Is this job active?'", + ], + 'civicrm_mail_settings' => [ + 'is_default' => "DEFAULT 0 COMMENT 'whether this is the default set of settings for this domain'", + 'is_ssl' => "DEFAULT 1 COMMENT 'whether to use SSL or not'", + 'is_non_case_email_skipped' => "DEFAULT 0 COMMENT 'Enabling this option will have CiviCRM skip any emails that do not have the Case ID or Case Hash so that the system will only process emails that can be placed on case records. Any emails that are not processed will be moved to the ignored folder.'", + 'is_contact_creation_disabled_if_no_match' => "DEFAULT 0", + ], + 'civicrm_menu' => [ + 'is_active' => "DEFAULT 1 COMMENT 'Is this menu item active?'", + 'is_public' => "DEFAULT 1 COMMENT 'Is this menu accessible to the public?'", + 'is_exposed' => "DEFAULT 1 COMMENT 'Is this menu exposed to the navigation system?'", + 'is_ssl' => "DEFAULT 1 COMMENT 'Should this menu be exposed via SSL if enabled?'", + 'skipBreadcrumb' => "DEFAULT 0 COMMENT 'skip this url being exposed to breadcrumb'", + ], + 'civicrm_msg_template' => [ + 'is_active' => "DEFAULT 1", + 'is_default' => "DEFAULT 1 COMMENT 'is this the default message template for the workflow referenced by workflow_id?'", + 'is_reserved' => "DEFAULT 0 COMMENT 'is this the reserved message template which we ship for the workflow referenced by workflow_id?'", + 'is_sms' => "DEFAULT 0 COMMENT 'Is this message template used for sms?'", + ], + 'civicrm_prevnext_cache' => [ + 'is_selected' => "DEFAULT 0", + ], + 'civicrm_phone' => [ + 'is_primary' => "DEFAULT 0 COMMENT 'Is this the primary phone for this contact and location.'", + 'is_billing' => "DEFAULT 0 COMMENT 'Is this the billing?'", + ], + 'civicrm_state_province' => [ + 'is_active' => "DEFAULT 1 COMMENT 'Is this StateProvince active?'", + ], + 'civicrm_tag' => [ + 'is_selectable' => "DEFAULT 1 COMMENT 'Is this tag selectable / displayed'", + 'is_reserved' => "DEFAULT 0", + 'is_tagset' => "DEFAULT 0", + ], + 'civicrm_openid' => [ + 'is_primary' => "DEFAULT 0 COMMENT 'Is this the primary email for this contact and location.'", + ], + 'civicrm_setting' => [ + 'is_domain' => "DEFAULT 0 COMMENT 'Is this setting a contact specific or site wide setting?'", + ], + 'civicrm_print_label' => [ + 'is_default' => "DEFAULT 1 COMMENT 'Is this default?'", + 'is_active' => "DEFAULT 1 COMMENT 'Is this option active?'", + 'is_reserved' => "DEFAULT 1 COMMENT 'Is this reserved label?'", + ], + 'civicrm_word_replacement' => [ + 'is_active' => "DEFAULT 1 COMMENT 'Is this entry active?'", + ], + 'civicrm_status_pref' => [ + 'is_active' => "DEFAULT 1 COMMENT 'Is this status check active?'", + ], + 'civicrm_uf_group' => [ + 'is_active' => "DEFAULT 1 COMMENT 'Is this form currently active? If false, hide all related fields for all sharing contexts.'", + 'add_captcha' => "DEFAULT 0 COMMENT 'Should a CAPTCHA widget be included this Profile form.'", + 'is_map' => "DEFAULT 0 COMMENT 'Do we want to map results from this profile.'", + 'is_edit_link' => "DEFAULT 0 COMMENT 'Should edit link display in profile selector'", + 'is_uf_link' => "DEFAULT 0 COMMENT 'Should we display a link to the website profile in profile selector'", + 'is_update_dupe' => "DEFAULT 0 COMMENT 'Should we update the contact record if we find a duplicate'", + 'is_cms_user' => "DEFAULT 0 COMMENT 'Should we create a cms user for this profile '", + 'is_reserved' => "DEFAULT 0 COMMENT 'Is this group reserved for use by some other CiviCRM functionality?'", + 'is_proximity_search' => "DEFAULT 0 COMMENT 'Should we include proximity search feature in this profile search form?'", + 'add_cancel_button' => "DEFAULT 1 COMMENT 'Should a Cancel button be included in this Profile form.'", + ], + 'civicrm_uf_field' => [ + 'is_active' => "DEFAULT 1 COMMENT 'Is this field currently shareable? If false, hide the field for all sharing contexts.'", + 'is_view' => "DEFAULT 0 COMMENT 'the field is view only and not editable in user forms.'", + 'is_required' => "DEFAULT 0 COMMENT 'Is this field required when included in a user or registration form?'", + 'in_selector' => "DEFAULT 0 COMMENT 'Is this field included as a column in the selector table?'", + 'is_searchable' => "DEFAULT 0 COMMENT 'Is this field included search form of profile?'", + 'is_reserved' => "DEFAULT 0 COMMENT 'Is this field reserved for use by some other CiviCRM functionality?'", + 'is_multi_summary' => "DEFAULT 0 COMMENT 'Include in multi-record listing?'", + ], + 'civicrm_uf_join' => [ + 'is_active' => "DEFAULT 1 COMMENT 'Is this join currently active?'", + ], +]; diff --git a/xml/schema/Core/ActionLog.xml b/xml/schema/Core/ActionLog.xml index 5b948eed57..7070ca638c 100644 --- a/xml/schema/Core/ActionLog.xml +++ b/xml/schema/Core/ActionLog.xml @@ -88,6 +88,7 @@ Error? boolean 0 + true Was there any error sending the reminder? 3.4 diff --git a/xml/schema/Core/ActionSchedule.xml b/xml/schema/Core/ActionSchedule.xml index 532d6dbc61..8ea04d1b7a 100644 --- a/xml/schema/Core/ActionSchedule.xml +++ b/xml/schema/Core/ActionSchedule.xml @@ -53,6 +53,8 @@ + 1 + true 4.4 @@ -126,6 +128,7 @@ Repeat? boolean 0 + true 3.4 @@ -201,6 +204,7 @@ Schedule is Active? boolean 1 + true Is this option active? 3.4 @@ -254,7 +258,8 @@ record_activity Record Activity for Reminder? boolean - NULL + 0 + true Record Activity for this reminder? 3.4 diff --git a/xml/schema/Core/Address.xml b/xml/schema/Core/Address.xml index 1ee08b9816..018390e506 100644 --- a/xml/schema/Core/Address.xml +++ b/xml/schema/Core/Address.xml @@ -67,6 +67,7 @@ Primary address boolean 0 + true Is this the primary address. 2.0 @@ -83,6 +84,7 @@ Is Billing Address boolean 0 + true Is this the billing address. 2.0 @@ -418,6 +420,7 @@ Is Manually Geocoded boolean 0 + true Is this a manually entered geo code 4.3 diff --git a/xml/schema/Core/Country.xml b/xml/schema/Core/Country.xml index 546759fa25..639ac54baf 100644 --- a/xml/schema/Core/Country.xml +++ b/xml/schema/Core/Country.xml @@ -108,6 +108,7 @@ Abbreviate Province? boolean 0 + true Should state/province be displayed as abbreviation for contacts from this country? 3.1 @@ -116,6 +117,7 @@ Country Is Active boolean 1 + true Is this Country active? 5.35 diff --git a/xml/schema/Core/County.xml b/xml/schema/Core/County.xml index 47a28a22ad..21ec83e4fd 100644 --- a/xml/schema/Core/County.xml +++ b/xml/schema/Core/County.xml @@ -68,6 +68,7 @@ County Is Active boolean 1 + true Is this County active? 5.35 diff --git a/xml/schema/Core/CustomField.xml b/xml/schema/Core/CustomField.xml index da1ba6fc0d..40de350dca 100644 --- a/xml/schema/Core/CustomField.xml +++ b/xml/schema/Core/CustomField.xml @@ -118,6 +118,7 @@ boolean Is a value required for this property. 0 + true 1.1 @@ -126,6 +127,7 @@ boolean Is this property searchable. 0 + true 1.1 @@ -135,6 +137,7 @@ Is this property range searchable. 1.4 0 + true weight @@ -191,6 +194,7 @@ Custom Field Is Active? Is this property active? 1 + 0 1.1 @@ -198,6 +202,7 @@ boolean Field is Viewable 0 + true Is this property set by PHP Code? A code field is viewable but not editable 1.1 @@ -319,6 +324,7 @@ boolean Field Display 0 + true Should the multi-record custom field values be displayed in tab table listing 4.5 diff --git a/xml/schema/Core/CustomGroup.xml b/xml/schema/Core/CustomGroup.xml index cd38ce0670..7f644b54ab 100644 --- a/xml/schema/Core/CustomGroup.xml +++ b/xml/schema/Core/CustomGroup.xml @@ -103,6 +103,7 @@ boolean Collapse Custom Group? 0 + true Will this group be in collapsed or expanded mode on initial display ? 1.1 @@ -147,6 +148,7 @@ Custom Group Is Active? Is this property active? 1 + true 1.1 @@ -166,6 +168,7 @@ Supports Multiple Records Does this group hold multiple values? 0 + true 2.0 @@ -187,6 +190,7 @@ boolean Collapse Group Display 0 + true Will this group be in collapsed or expanded mode on advanced search display ? 3.0 @@ -232,6 +236,7 @@ boolean Reserved Group? 0 + true Is this a reserved Custom Group? 4.4 @@ -240,6 +245,7 @@ boolean Custom Group Is Public? 1 + true Is this property public? 4.7 diff --git a/xml/schema/Core/Dashboard.xml b/xml/schema/Core/Dashboard.xml index b68fe09b89..15effae433 100644 --- a/xml/schema/Core/Dashboard.xml +++ b/xml/schema/Core/Dashboard.xml @@ -94,6 +94,7 @@ Dashlet Column column no for this dashlet 0 + true 3.1 4.7 @@ -103,6 +104,7 @@ Minimize Dashlet? Is Minimized? 0 + true 3.1 4.7 @@ -120,6 +122,7 @@ Is Fullscreen? Is Fullscreen? 1 + true 3.1 4.7 @@ -129,6 +132,7 @@ Is Dashlet Active? Is this dashlet active? 0 + true 3.1 @@ -137,6 +141,7 @@ Is Dashlet Reserved? Is this dashlet reserved? 0 + true 3.1 diff --git a/xml/schema/Core/Email.xml b/xml/schema/Core/Email.xml index ddb0678f61..7f01e31fc7 100644 --- a/xml/schema/Core/Email.xml +++ b/xml/schema/Core/Email.xml @@ -87,6 +87,7 @@ Primary email boolean 0 + true Is this the primary email address 1.1 @@ -103,6 +104,7 @@ Is Billing Email? boolean 0 + true Is this the billing? 2.0 diff --git a/xml/schema/Core/IM.xml b/xml/schema/Core/IM.xml index c37999b9c7..348e34eb25 100644 --- a/xml/schema/Core/IM.xml +++ b/xml/schema/Core/IM.xml @@ -100,6 +100,7 @@ Primary IM boolean 0 + true Radio @@ -116,6 +117,7 @@ Is IM Billing? boolean 0 + true Is this the billing? 2.0 diff --git a/xml/schema/Core/Job.xml b/xml/schema/Core/Job.xml index ba8ab0bf47..33847742c8 100644 --- a/xml/schema/Core/Job.xml +++ b/xml/schema/Core/Job.xml @@ -130,6 +130,8 @@ Job Is Active? boolean Is this job active? + 1 + true 4.1 diff --git a/xml/schema/Core/MailSettings.xml b/xml/schema/Core/MailSettings.xml index 0ce70437f7..38833d69d7 100644 --- a/xml/schema/Core/MailSettings.xml +++ b/xml/schema/Core/MailSettings.xml @@ -54,6 +54,8 @@ is_default Is Default Mail Settings? boolean + 0 + true whether this is the default set of settings for this domain 2.2 @@ -130,6 +132,8 @@ is_ssl Mail Account Uses SSL boolean + 0 + true whether to use SSL or not 2.2 @@ -161,6 +165,7 @@ Skip emails which do not have a Case ID or Case hash boolean 0 + true CheckBox @@ -172,6 +177,7 @@ boolean Do not create new contacts when filing emails 0 + true CheckBox diff --git a/xml/schema/Core/Menu.xml b/xml/schema/Core/Menu.xml index 3dbb0447ee..8b734010d7 100644 --- a/xml/schema/Core/Menu.xml +++ b/xml/schema/Core/Menu.xml @@ -154,6 +154,8 @@ is_active Enabled? boolean + 1 + true Is this menu item active? 2.1 @@ -161,6 +163,8 @@ is_public Public? boolean + 1 + true Is this menu accessible to the public? 2.1 @@ -168,6 +172,8 @@ is_exposed Exposed? boolean + 1 + true Is this menu exposed to the navigation system? 2.1 @@ -175,6 +181,8 @@ is_ssl Use SSL? boolean + 1 + true Should this menu be exposed via SSL if enabled? 2.1 @@ -209,6 +217,8 @@ skipBreadcrumb Hide Breadcrumb? boolean + 0 + true skip this url being exposed to breadcrumb 2.2 diff --git a/xml/schema/Core/MessageTemplate.xml b/xml/schema/Core/MessageTemplate.xml index c912a6abb0..f16bda1e57 100644 --- a/xml/schema/Core/MessageTemplate.xml +++ b/xml/schema/Core/MessageTemplate.xml @@ -68,6 +68,7 @@ Is Active boolean 1 + true 1.6 @@ -89,6 +90,7 @@ Message Template Is Default? boolean 1 + true is this the default message template for the workflow referenced by workflow_id? 3.1 @@ -97,6 +99,7 @@ Message Template Is Reserved? boolean 0 + true is this the reserved message template which we ship for the workflow referenced by workflow_id? 3.1 @@ -105,6 +108,7 @@ Message Template is used for SMS? boolean 0 + true Is this message template used for sms? 4.5 diff --git a/xml/schema/Core/OpenID.xml b/xml/schema/Core/OpenID.xml index 571b006aed..efc30536ab 100644 --- a/xml/schema/Core/OpenID.xml +++ b/xml/schema/Core/OpenID.xml @@ -87,6 +87,7 @@ Primary ID boolean 0 + true Radio diff --git a/xml/schema/Core/OptionGroup.xml b/xml/schema/Core/OptionGroup.xml index 36c6407642..bd02b88a1e 100644 --- a/xml/schema/Core/OptionGroup.xml +++ b/xml/schema/Core/OptionGroup.xml @@ -81,8 +81,8 @@ is_locked Option Group Is Locked 0 - true boolean + true A lock to remove the ability to add new options via the UI. 4.5 diff --git a/xml/schema/Core/Phone.xml b/xml/schema/Core/Phone.xml index cb9f4e8e6d..343f86f1b3 100644 --- a/xml/schema/Core/Phone.xml +++ b/xml/schema/Core/Phone.xml @@ -67,6 +67,7 @@ Primary phone boolean 0 + true Radio @@ -83,6 +84,7 @@ Is Billing Phone boolean 0 + true Is this the billing? 2.0 diff --git a/xml/schema/Core/PrevNextCache.xml b/xml/schema/Core/PrevNextCache.xml index 9eea75ff34..295f53a8e2 100644 --- a/xml/schema/Core/PrevNextCache.xml +++ b/xml/schema/Core/PrevNextCache.xml @@ -65,6 +65,7 @@ Is Selected boolean 0 + true 4.2 diff --git a/xml/schema/Core/PrintLabel.xml b/xml/schema/Core/PrintLabel.xml index a611548ecb..019c151c94 100644 --- a/xml/schema/Core/PrintLabel.xml +++ b/xml/schema/Core/PrintLabel.xml @@ -87,6 +87,7 @@ Label is Default? boolean 1 + true Is this default? 4.4 @@ -95,6 +96,7 @@ Label Is Active? boolean 1 + true Is this option active? 4.4 @@ -103,6 +105,7 @@ Is Label Reserved? boolean 1 + true Is this reserved label? 4.4 diff --git a/xml/schema/Core/RecurringEntity.xml b/xml/schema/Core/RecurringEntity.xml index 86f6f80808..f8a948c60a 100644 --- a/xml/schema/Core/RecurringEntity.xml +++ b/xml/schema/Core/RecurringEntity.xml @@ -51,6 +51,7 @@ mode boolean 1 + true Cascade Type true 1-this entity, 2-this and the following entities, 3-all the entities diff --git a/xml/schema/Core/Setting.xml b/xml/schema/Core/Setting.xml index b7a61b0acf..203977af5d 100644 --- a/xml/schema/Core/Setting.xml +++ b/xml/schema/Core/Setting.xml @@ -99,6 +99,8 @@ is_domain Is Domain Setting? boolean + 0 + true Is this setting a contact specific or site wide setting? 4.1 diff --git a/xml/schema/Core/StateProvince.xml b/xml/schema/Core/StateProvince.xml index 3e3cd60a74..ed61350f75 100644 --- a/xml/schema/Core/StateProvince.xml +++ b/xml/schema/Core/StateProvince.xml @@ -64,6 +64,7 @@ StateProvince Is Active boolean 1 + true Is this StateProvince active? 5.35 diff --git a/xml/schema/Core/StatusPreference.xml b/xml/schema/Core/StatusPreference.xml index 464a581475..e30ba01e64 100644 --- a/xml/schema/Core/StatusPreference.xml +++ b/xml/schema/Core/StatusPreference.xml @@ -100,6 +100,7 @@ Check Is Active boolean 1 + true Is this status check active? 5.19 diff --git a/xml/schema/Core/Tag.xml b/xml/schema/Core/Tag.xml index 6575eb566a..3d875d5346 100644 --- a/xml/schema/Core/Tag.xml +++ b/xml/schema/Core/Tag.xml @@ -62,6 +62,7 @@ Display Tag? boolean 1 + true Is this tag selectable / displayed 2.1 @@ -82,6 +83,7 @@ Reserved boolean 0 + true 3.2 @@ -89,6 +91,7 @@ Tagset boolean 0 + true 3.2 diff --git a/xml/schema/Core/UFField.xml b/xml/schema/Core/UFField.xml index fde4410c2d..0a2aa118ee 100644 --- a/xml/schema/Core/UFField.xml +++ b/xml/schema/Core/UFField.xml @@ -63,6 +63,7 @@ Profile Field Is Active boolean 1 + true Is this field currently shareable? If false, hide the field for all sharing contexts. 1.1 @@ -71,6 +72,7 @@ Profile Is View Only boolean 0 + true the field is view only and not editable in user forms. 1.1 @@ -79,6 +81,7 @@ Profile Field Is Required boolean 0 + true Is this field required when included in a user or registration form? 1.1 @@ -127,6 +130,7 @@ Profile Field Is a Filter boolean 0 + true Is this field included as a column in the selector table? 1.2 @@ -135,6 +139,7 @@ Profile Field Is Searchable boolean 0 + true Is this field included search form of profile? 1.4 @@ -197,6 +202,8 @@ is_reserved Profile Field Is Reserved boolean + 0 + true Is this field reserved for use by some other CiviCRM functionality? 3.0 @@ -205,6 +212,7 @@ Profile Field Supports Multiple boolean 0 + true Include in multi-record listing? 4.3 diff --git a/xml/schema/Core/UFGroup.xml b/xml/schema/Core/UFGroup.xml index 49fdad55a3..26f1075fa7 100644 --- a/xml/schema/Core/UFGroup.xml +++ b/xml/schema/Core/UFGroup.xml @@ -27,6 +27,7 @@ Profile Is Active boolean 1 + true Is this form currently active? If false, hide all related fields for all sharing contexts. 1.1 @@ -150,6 +151,7 @@ Show Captcha On Profile boolean 0 + true Should a CAPTCHA widget be included this Profile form. 1.1 @@ -158,6 +160,7 @@ Map Profile boolean 0 + true Do we want to map results from this profile. 1.5 @@ -166,6 +169,7 @@ Show Edit Link? boolean 0 + true Should edit link display in profile selector 1.6 @@ -174,6 +178,7 @@ Show Link to CMS User boolean 0 + true Should we display a link to the website profile in profile selector 1.7 @@ -182,6 +187,7 @@ Update on Duplicate boolean 0 + true Should we update the contact record if we find a duplicate 1.7 @@ -198,6 +204,7 @@ Create CMS User? boolean 0 + true Should we create a cms user for this profile 1.8 @@ -211,6 +218,8 @@ is_reserved Profile Is Reserved boolean + 0 + true Is this group reserved for use by some other CiviCRM functionality? 3.0 @@ -257,6 +266,7 @@ Include Proximity Search? boolean 0 + true Should we include proximity search feature in this profile search form? 3.2 @@ -291,6 +301,7 @@ Include Cancel Button boolean 1 + true Should a Cancel button be included in this Profile form. 5.0 diff --git a/xml/schema/Core/UFJoin.xml b/xml/schema/Core/UFJoin.xml index db81d0dcee..8470e3b080 100644 --- a/xml/schema/Core/UFJoin.xml +++ b/xml/schema/Core/UFJoin.xml @@ -27,6 +27,7 @@ Profile Use is active boolean 1 + true Is this join currently active? 1.3 diff --git a/xml/schema/Core/WordReplacement.xml b/xml/schema/Core/WordReplacement.xml index fb18789c6c..ad0400f79a 100644 --- a/xml/schema/Core/WordReplacement.xml +++ b/xml/schema/Core/WordReplacement.xml @@ -44,6 +44,7 @@ Word Replacement is Active boolean 1 + true Is this entry active? 4.4 -- 2.25.1