X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sql%2Falter2.1.php;h=1dade60291f2aba2d255e3e8b4cf55e605d33ba5;hb=a31195793c023906ab5da62f06ab84aefed445c3;hp=a70f15a32b9a566a889bc3b6e69dc80a6b719532;hpb=1ea749c4abfe081bd7f1b4b11c65a61b311a189e;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