From c68c39998325d259e311e4f0d206fc017d0aa9d6 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 31 Dec 2015 13:31:35 +0000 Subject: [PATCH] Bug 11622 - DBrev 3.23.00.009 Signed-off-by: Kyle M Hall --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_11622.sql | 7 ------- installer/data/mysql/updatedatabase.pl | 15 +++++++++++++++ 3 files changed, 16 insertions(+), 8 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_11622.sql diff --git a/Koha.pm b/Koha.pm index c821a5a056..3ffd78d511 100644 --- a/Koha.pm +++ b/Koha.pm @@ -29,7 +29,7 @@ use vars qw{ $VERSION }; # - #4 : the developer version. The 4th number is the database subversion. # used by developers when the database changes. updatedatabase take care of the changes itself # and is automatically called by Auth.pm when needed. -$VERSION = "3.23.00.008"; +$VERSION = "3.23.00.009"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_11622.sql b/installer/data/mysql/atomicupdate/bug_11622.sql deleted file mode 100644 index acc5443b1d..0000000000 --- a/installer/data/mysql/atomicupdate/bug_11622.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type ) VALUES -( 'EnablePayPalOpacPayments', '0', NULL , 'Enables the ability to pay fees and fines from the OPAC via PayPal', 'YesNo' ), -( 'PayPalChargeDescription', 'Koha fee payment', NULL , 'This preference defines what the user will see the charge listed as in PayPal', 'Free' ), -( 'PayPalPwd', '', NULL , 'Your PayPal API password', 'Free' ), -( 'PayPalSandboxMode', '1', NULL , 'If enabled, the system will use PayPal''s sandbox server for testing, rather than the production server.', 'YesNo' ), -( 'PayPalSignature', '', NULL , 'Your PayPal API signature', 'Free' ), -( 'PayPalUser', '', NULL , 'Your PayPal API username ( email address )', 'Free' ); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 8210bd7c1a..f37273f7cf 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -11578,6 +11578,21 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } +$DBversion = "3.23.00.009"; +if ( CheckVersion($DBversion) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type ) VALUES + ( 'EnablePayPalOpacPayments', '0', NULL , 'Enables the ability to pay fees and fines from the OPAC via PayPal', 'YesNo' ), + ( 'PayPalChargeDescription', 'Koha fee payment', NULL , 'This preference defines what the user will see the charge listed as in PayPal', 'Free' ), + ( 'PayPalPwd', '', NULL , 'Your PayPal API password', 'Free' ), + ( 'PayPalSandboxMode', '1', NULL , 'If enabled, the system will use PayPal''s sandbox server for testing, rather than the production server.', 'YesNo' ), + ( 'PayPalSignature', '', NULL , 'Your PayPal API signature', 'Free' ), + ( 'PayPalUser', '', NULL , 'Your PayPal API username ( email address )', 'Free' ) + }); + + print "Upgrade to $DBversion done (Bug 11622 - Add ability to pay fees and fines from OPAC via PayPal)\n"; + SetVersion($DBversion); +} # DEVELOPER PROCESS, search for anything to execute in the db_update directory # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5