*
* Generated from xml/schema/CRM/Core/StatusPreference.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:bb8e5ce5e19462083928dc256fe1ebf2)
+ * (GenCodeChecksum:ce861431549af8024fdbfe418607202f)
*/
/**
*/
public $check_info;
+ /**
+ * Is this status check active?
+ *
+ * @var bool
+ */
+ public $is_active;
+
/**
* Class constructor.
*/
'bao' => 'CRM_Core_BAO_StatusPreference',
'localizable' => 0,
],
+ 'is_active' => [
+ 'name' => 'is_active',
+ 'type' => CRM_Utils_Type::T_BOOLEAN,
+ 'title' => ts('Check Is Active'),
+ 'description' => ts('Is this status check active?'),
+ 'where' => 'civicrm_status_pref.is_active',
+ 'default' => '1',
+ 'table_name' => 'civicrm_status_pref',
+ 'entity' => 'StatusPreference',
+ 'bao' => 'CRM_Core_BAO_StatusPreference',
+ 'localizable' => 0,
+ ],
];
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);
}
public function upgrade_5_19_alpha1($rev) {
$this->addTask(ts('Upgrade DB to %1: SQL', [1 => $rev]), 'runSql', $rev);
$this->addTask('Add api4 menu', 'api4Menu');
+ $this->addTask('Add is_active field to civicrm_status_pref', 'addColumn', 'civicrm_status_pref', 'is_active',
+ "tinyint(4) DEFAULT '1' COMMENT 'Is this status check active'", TRUE, '5.19.0');
}
/**
<comment>These values are per-check, and can't be compared across checks.</comment>
<add>4.7</add>
</field>
+ <field>
+ <name>is_active</name>
+ <title>Check Is Active</title>
+ <type>boolean</type>
+ <default>1</default>
+ <comment>Is this status check active?</comment>
+ <add>5.19</add>
+ </field>
</table>