Schema - Fix boolean fields in various tables
[civicrm-core.git] / CRM / Case / DAO / CaseType.php
index 8b5f4651a4341614b60081bebdb502e43421f018..3fbe29126dbb1cb04da986e0ba7443da79561ae2 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Case/CaseType.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:1102802dc49a9899f93c16fce57fa141)
+ * (GenCodeChecksum:7b3029a4b42f22a060fadb39b7b2c678)
  */
 
 /**
@@ -70,7 +70,7 @@ class CRM_Case_DAO_CaseType extends CRM_Core_DAO {
   /**
    * Is this case type enabled?
    *
-   * @var bool|string|null
+   * @var bool|string
    *   (SQL type: tinyint)
    *   Note that values will be retrieved from the database as a string.
    */
@@ -79,7 +79,7 @@ class CRM_Case_DAO_CaseType extends CRM_Core_DAO {
   /**
    * Is this case 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.
    */
@@ -195,6 +195,7 @@ class CRM_Case_DAO_CaseType extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Case Type Is Active'),
           'description' => ts('Is this case type enabled?'),
+          'required' => TRUE,
           'where' => 'civicrm_case_type.is_active',
           'default' => '1',
           'table_name' => 'civicrm_case_type',
@@ -208,7 +209,9 @@ class CRM_Case_DAO_CaseType extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Case Type Is Reserved'),
           'description' => ts('Is this case type a predefined system type?'),
+          'required' => TRUE,
           'where' => 'civicrm_case_type.is_reserved',
+          'default' => '0',
           'table_name' => 'civicrm_case_type',
           'entity' => 'CaseType',
           'bao' => 'CRM_Case_BAO_CaseType',