From d48c2496514ef9ee3db67aa8d1785dfcd7fb7e68 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 8 Aug 2019 15:30:14 +0100 Subject: [PATCH] Bug 23228: DBRev 19.06.00.019 Signed-off-by: Martin Renvoize --- Koha.pm | 2 +- .../atomicupdate/FinePaymentAutoPopup.perl | 18 ------------------ installer/data/mysql/updatedatabase.pl | 19 +++++++++++++++++++ 3 files changed, 20 insertions(+), 19 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/FinePaymentAutoPopup.perl diff --git a/Koha.pm b/Koha.pm index 5e93d9be22..30eaf19705 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 = "19.06.00.018"; +$VERSION = "19.06.00.019"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/FinePaymentAutoPopup.perl b/installer/data/mysql/atomicupdate/FinePaymentAutoPopup.perl deleted file mode 100644 index 7e19e5fd67..0000000000 --- a/installer/data/mysql/atomicupdate/FinePaymentAutoPopup.perl +++ /dev/null @@ -1,18 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if ( CheckVersion($DBversion) ) { - $dbh->do(q{ - INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) - VALUES - ( - 'FinePaymentAutoPopup', - '0', - NULL, - 'If enabled, automatically display a print dialog for a payment receipt when making a payment.', - 'YesNo' - ) - }); - - SetVersion($DBversion); - print -"Upgrade to $DBversion done (Bug 23228 - Add option to automatically display payment receipt for printing after making a payment)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index e75420223b..3f482c75e3 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -19220,6 +19220,25 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 11529 - Add medium, subtitle and part information to biblio table)\n"; } +$DBversion = '19.06.00.019'; +if ( CheckVersion($DBversion) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) + VALUES + ( + 'FinePaymentAutoPopup', + '0', + NULL, + 'If enabled, automatically display a print dialog for a payment receipt when making a payment.', + 'YesNo' + ) + }); + + SetVersion($DBversion); + print +"Upgrade to $DBversion done (Bug 23228 - Add option to automatically display payment receipt for printing after making a payment)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/'; -- 2.39.5