From addef261455417cecf7138808986b6c8533dd469 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 7 Oct 2019 09:22:03 -0400 Subject: [PATCH] Bug 21701: Fix up db update Signed-off-by: Kyle M Hall --- .../atomicupdate/bug_21701_PayPalReturnURL.perl | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/installer/data/mysql/atomicupdate/bug_21701_PayPalReturnURL.perl b/installer/data/mysql/atomicupdate/bug_21701_PayPalReturnURL.perl index d62dbc1c0c..ca7f88bd92 100644 --- a/installer/data/mysql/atomicupdate/bug_21701_PayPalReturnURL.perl +++ b/installer/data/mysql/atomicupdate/bug_21701_PayPalReturnURL.perl @@ -1,14 +1,10 @@ $DBversion = 'XXX'; # will be replaced by the RM if( CheckVersion( $DBversion ) ) { - # you can use $dbh here like: - # $dbh->do("INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES ('PayPalReturnURL','BaseURL','BaseURL|OPACAlias','Specify whether PayPal will return to the url specified in the OPACBaseURL option or to the OPAC\'s alias url.','Choice')" ); + $dbh->do(q{ + INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) + VALUES ('PayPalReturnURL','BaseURL','BaseURL|OPACAlias','Specify whether PayPal will return to the url specified in the OPACBaseURL option or to the OPAC\'s alias url.','Choice') + }); - # or perform some test and warn - # if( !column_exists( 'biblio', 'biblionumber' ) ) { - # warn "There is something wrong"; - # } - - # Always end with this (adjust the bug info) SetVersion( $DBversion ); print "Upgrade to $DBversion done (Bug 21701 - PayPal return URL option)\n"; } -- 2.21.0 (Apple Git-122)