***********************************************************************/
class fa2_1 {
var $version = '2.1'; // version installed
- var $description = 'Version 2.1';
+ var $description;
var $sql = 'alter2.1.sql';
+
+ function fa2_1() {
+ $this->description = _('Upgrade from version 2.0 to 2.1');
+ }
//
// Install procedure. All additional changes
// not included in sql file should go here.
// Test if patch was applied before.
//
function installed($pref) {
- $n = 5; // number of features to be installed
+ $n = 4; // number of features to be installed
if (!check_table($pref, 'item_codes')) $n--;
- if (!check_table($pref, 'company', 'foreign_codes')) $n--;
+// if (!check_table($pref, 'company', 'foreign_codes')) $n--;
if (!check_table($pref, 'suppliers', 'credit_limit')) $n--;
if (!check_table($pref, 'bank_trans', 'reconciled',
array('Type'=>'date'))) $n--;