var $preconf = true;
var $max_upgrade_time = 900; // table recoding is really long process
- function fa2_4() {
- parent::fa_patch();
+ function __construct() {
+ parent::__construct();
$this->description = _('Upgrade from version 2.3 to 2.4');
}
if (get_company_pref('company_logo_report') === null) { // available from 2.4.2, during updates
set_company_pref('company_logo_report', 'setup.company', 'tinyint', 1, '0');
}
+ if (get_company_pref('shortname_name_in_list') === null) { // available from 2.4.2, during updates
+ set_company_pref('shortname_name_in_list', 'setup.company', 'tinyint', 1, '0');
+ }
$result = $this->update_workorders() && $this->update_grn_rates() && $this->switch_database_to_utf($pref);