CI_Assessments custom module was built in Module Builder and released from there with all fields altogether. The issue now to reduce size of some fields, as we get row size over limit for the main table of the module.
When I am looking into the file modules/CI_Assessments/vardefs.php
For example, field partner_threatened has attributes:
'partner_threatened' =>
array (
'required' => false,
'readonly' => false,
'name' => 'partner_threatened',
'vname' => 'LBL_PARTNER_THREATENED',
'type' => 'enum',
'massupdate' => true,
'hidemassupdate' => false,
'no_default' => false,
'comments' => '',
'help' => '',
'importable' => 'true',
'duplicate_merge' => 'enabled',
'duplicate_merge_dom_value' => '1',
'audited' => false,
'reportable' => true,
'unified_search' => false,
'merge_filter' => 'disabled',
'pii' => false,
'calculated' => false,
'len' => 25,
'size' => '20',
'options' => 'yes_no_list',
'default' => '',
'dependency' => false,)
Where len = 25 and size = 25.
BUT if I look into DB, field is
`partner_threatened` varchar(100) COLLATE utf8mb4_general_ci DEFAULT '',
Which attribute defines the size of the field in DB? How I can manage it via vardefs?