X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sql%2Falter2.1.php;h=1dade60291f2aba2d255e3e8b4cf55e605d33ba5;hb=c001557f8ebee630494c6323477bd865a61942d9;hp=a70f15a32b9a566a889bc3b6e69dc80a6b719532;hpb=d1babda7c01b314d35fb89f2d195553b55936532;p=fa-stable.git diff --git a/sql/alter2.1.php b/sql/alter2.1.php index a70f15a3..1dade602 100644 --- a/sql/alter2.1.php +++ b/sql/alter2.1.php @@ -15,7 +15,7 @@ class fa2_1 extends fa_patch { var $description; var $sql = 'alter2.1.sql'; - function fa2_1() { + function __construct() { $this->description = _('Upgrade from version 2.0 to 2.1'); } // @@ -70,7 +70,7 @@ class fa2_1 extends fa_patch { } // remove obsolete bank_trans_types table // (DROP queries are skipped during non-forced upgrade) - $sql = "DROP TABLE IF EXISTS `0_bank_trans_types`"; + $sql = "DROP TABLE IF EXISTS `".TB_PREF."bank_trans_types`"; db_query($sql); // // Move all debtor and supplier trans tax details to new table