*
* Generated from xml/schema/CRM/Core/File.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:1f553579f32db40c6a3708c56d8cf58f)
+ * (GenCodeChecksum:b96c549a621e1c17bcfdfe8c300f6e8c)
*/
/**
'entity' => 'File',
'bao' => 'CRM_Core_BAO_File',
'localizable' => 0,
+ 'html' => [
+ 'type' => 'Select',
+ ],
+ 'pseudoconstant' => [
+ 'optionGroupName' => 'file_type',
+ 'optionEditPath' => 'civicrm/admin/options/file_type',
+ ],
'add' => '1.5',
],
'mime_type' => [
$this->addTask('Make civicrm_setting.domain_id optional', 'alterColumn', 'civicrm_setting', 'domain_id', "int unsigned DEFAULT NULL COMMENT 'Which Domain does this setting belong to'");
$this->addTask('Consolidate the list of components', 'consolidateComponents');
$this->addTask(ts('Upgrade DB to %1: SQL', [1 => $rev]), 'runSql', $rev);
+
+ $this->addTask(
+ 'Add option group for file_type_id in file table',
+ 'addOptionGroup',
+ [
+ 'name' => 'file_type',
+ 'title' => ts('File Type'),
+ 'data_type' => 'Integer',
+ 'is_reserved' => 1,
+ ],
+ []
+ );
}
public static function consolidateComponents($ctx): bool {
('contribution_recur_status' , '{ts escape="sql"}Recurring Contribution Status{/ts}' , NULL, 1, 1, 1, 'name,label,description', NULL),
('environment' , '{ts escape="sql"}Environment{/ts}' , NULL, 1, 1, 0, 'name,label,description', NULL),
('activity_default_assignee' , '{ts escape="sql"}Activity default assignee{/ts}' , NULL, 1, 1, 0, 'name,label,description', NULL),
- ('entity_batch_extends' , '{ts escape="sql"}Entity Batch Extends{/ts}' , NULL, 1, 1, 0, 'name,label,description', NULL);
+ ('entity_batch_extends' , '{ts escape="sql"}Entity Batch Extends{/ts}' , NULL, 1, 1, 0, 'name,label,description', NULL),
+ ('file_type' , '{ts escape="sql"}File Type{/ts}' , 'Integer', 1, 1, 0, 'name,label,description', NULL);
SELECT @option_group_id_pcm := max(id) from civicrm_option_group where name = 'preferred_communication_method';
SELECT @option_group_id_act := max(id) from civicrm_option_group where name = 'activity_type';