Bug 16361: Installer syntax error
authorBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Wed, 27 Apr 2016 02:08:07 +0000 (23:08 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Wed, 27 Apr 2016 12:55:45 +0000 (12:55 +0000)
Bug 16354 introduces a syntax error on updatedatabase.pl
see comment #5 there

To test
1) Check error on update 3.23.00.051
2) Apply the patch
3) run updatedabase again (perhaps changing 051 to XXX)

Signed-off-by: Liz Rea <liz@catalyst.net.nz>
happy again!

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
installer/data/mysql/updatedatabase.pl

index 1e473df..cf02734 100755 (executable)
@@ -12352,16 +12352,16 @@ $dbh->do(q{
         DROP FOREIGN KEY emfk_basketno;
         });
 
-$dbh->(q{
+$dbh->do(q{
         ALTER TABLE edifact_messages
         ADD CONSTRAINT emfk_vendor FOREIGN KEY ( vendor_id ) REFERENCES aqbooksellers ( id ) ON DELETE CASCADE ON UPDATE CASCADE,
         ADD CONSTRAINT emfk_edi_acct FOREIGN KEY ( edi_acct ) REFERENCES vendor_edi_accounts ( id ) ON DELETE CASCADE ON UPDATE CASCADE,
         ADD CONSTRAINT emfk_basketno FOREIGN KEY ( basketno ) REFERENCES aqbasket ( basketno ) ON DELETE CASCADE ON UPDATE CASCADE;
         });
 
-print "Upgrade to $DBversion done (Bug 16354 - Fix FK constraints for edifact_messages table)\n";
-        SetVersion($DBversion);
-            }
+    print "Upgrade to $DBversion done (Bug 16354 - Fix FK constraints for edifact_messages table)\n";
+    SetVersion($DBversion);
+}
 
 
 # DEVELOPER PROCESS, search for anything to execute in the db_update directory