# - #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;
+++ /dev/null
-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' );
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.