Bug 11622 - DBrev 3.23.00.009
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 31 Dec 2015 13:31:35 +0000 (13:31 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Thu, 31 Dec 2015 13:31:35 +0000 (13:31 +0000)
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha.pm
installer/data/mysql/atomicupdate/bug_11622.sql [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index c821a5a..3ffd78d 100644 (file)
--- 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 (file)
index acc5443..0000000
+++ /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' );
index 8210bd7..f37273f 100755 (executable)
@@ -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.