X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sql%2Falter2.1.php;h=ff9467a292f4fa1e3446f3008e5cfa7a3c3d3335;hb=1d8ca637beb25da5f36084fdecb6c24dc5d61eab;hp=9d932c9fdb39a44ba0332746c17e3a2c22819995;hpb=d61fc6be5aaa0b100f3059a6f85b1ed602dfb2e3;p=fa-stable.git diff --git a/sql/alter2.1.php b/sql/alter2.1.php index 9d932c9f..ff9467a2 100644 --- a/sql/alter2.1.php +++ b/sql/alter2.1.php @@ -11,8 +11,12 @@ ***********************************************************************/ class fa2_1 { var $version = '2.1'; // version installed - var $description = _('Upgrade from version 2.0 to 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. @@ -146,9 +150,9 @@ class fa2_1 { // 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--;