Bugzilla – Attachment 50780 Details for
Bug 16361
Installer syntax error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16361 - syntax error in updatedatabase
Bug-16361---syntax-error-in-updatedatabase.patch (text/plain), 1.90 KB, created by
Liz Rea
on 2016-04-27 02:22:31 UTC
(
hide
)
Description:
Bug 16361 - syntax error in updatedatabase
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2016-04-27 02:22:31 UTC
Size:
1.90 KB
patch
obsolete
>From afea22105e59fe3d5ee486d536b0d05991bd9179 Mon Sep 17 00:00:00 2001 >From: Liz Rea <liz@catalyst.net.nz> >Date: Wed, 27 Apr 2016 14:19:24 +1200 >Subject: [PATCH] Bug 16361 - syntax error in updatedatabase > >To test: > >Set version below 3.23.00.051 (if necessary - you can do this in the localuse preferences in the intranet) >Run the updatedatabase in your favourite way >There should be no errors. >--- > installer/data/mysql/updatedatabase.pl | 11 ++++++----- > 1 file changed, 6 insertions(+), 5 deletions(-) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 1f1c5a0..cd8df2b 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -12345,21 +12345,22 @@ print "Upgrade to $DBversion done (Bug 12478 - Elasticsearch support for Koha)\n > > $DBversion = "3.23.00.051"; > if ( CheckVersion($DBversion) ) { >-$dbh->do(q{ >+ $dbh->do(q{ > ALTER TABLE edifact_messages > DROP FOREIGN KEY emfk_vendor, > DROP FOREIGN KEY emfk_edi_acct, > DROP FOREIGN KEY emfk_basketno; >- >+ }); >+ $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 >-- >1.9.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 16361
:
50779
|
50780
|
50782
|
50786