*
* Generated from xml/schema/CRM/Report/ReportInstance.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:0cc1db696d0899940ac62d266cb55a0a)
+ * (GenCodeChecksum:588c8712caae98e6765ac8ed21c9e6b2)
*/
/**
/**
* 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.
*/
public $drilldown_id;
/**
- * @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('Report Instance is Active'),
'description' => ts('Is this entry active?'),
+ 'required' => TRUE,
'where' => 'civicrm_report_instance.is_active',
+ 'default' => '1',
'table_name' => 'civicrm_report_instance',
'entity' => 'ReportInstance',
'bao' => 'CRM_Report_BAO_ReportInstance',
'name' => 'is_reserved',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Instance is Reserved'),
+ 'required' => TRUE,
'where' => 'civicrm_report_instance.is_reserved',
'default' => '0',
'table_name' => 'civicrm_report_instance',
--- /dev/null
+<?php
+return [
+ 'civicrm_report_instance' => [
+ 'is_active' => "DEFAULT 0 COMMENT 'Is this entry active?'",
+ 'is_reserved' => "DEFAULT 0",
+ ],
+ 'civicrm_report_instance' => [
+ 'is_active' => "DEFAULT 1 COMMENT 'Is this entry active?'",
+ ],
+ // WTF
+];
<name>is_active</name>
<title>Report Instance is Active</title>
<type>boolean</type>
+ <default>1</default>
+ <required>true</required>
<comment>Is this entry active?</comment>
<html>
<type>CheckBox</type>
<title>Instance is Reserved</title>
<type>boolean</type>
<default>0</default>
+ <required>true</required>
<html>
<type>CheckBox</type>
</html>