Password reset mail could take several hours. After fix only a couple of seconds...
[fa-stable.git] / sql / alter2.1.php
index a70f15a32b9a566a889bc3b6e69dc80a6b719532..1dade60291f2aba2d255e3e8b4cf55e605d33ba5 100644 (file)
@@ -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