function fa2_3() {
$this->description = _('Upgrade from version 2.2 to 2.3');
- $this->preconf = $this->fix_extensions();
}
//
//
function install($pref, $force)
{
- global $core_version;
+ global $db_version;
if (!$this->preconf)
return false;
if (!db_query($sql))
return false;
}
- return update_company_prefs(array('version_id'=>$core_version), $pref);
+ return update_company_prefs(array('version_id'=>$db_version), $pref);
}
//
// Checking before install
//
function pre_check($pref, $force)
{
+
if ($this->beta && !$force)
$this->sql = 'alter2.3rc.sql';
//
function installed($pref) {
$this->beta = !check_table($pref, 'suppliers', 'tax_included');
+ $this->preconf = $this->fix_extensions();
$n = 1; // number of patches to be installed
$patchcnt = 0;