Bug 11622 - DBrev 3.23.00.009

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Kyle Hall 2015-12-31 13:31:35 +00:00
parent e7a2d03249
commit c68c399983
3 changed files with 16 additions and 8 deletions

View file

@ -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;

View file

@ -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' );

View file

@ -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.