From e17500f621ec9de63f4cedb2905885b494c81edf Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 9 May 2019 18:20:34 +0000 Subject: [PATCH] Bug 7088: DBRev 18.12.00.068 Signed-off-by: Nick Clemens --- Koha.pm | 2 +- .../bug_7088_allow_renewal_on_hold_override.sql | 2 -- installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 3 files changed, 11 insertions(+), 3 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_7088_allow_renewal_on_hold_override.sql diff --git a/Koha.pm b/Koha.pm index d5661f164b..eb95720b14 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 = "18.12.00.067"; +$VERSION = "18.12.00.068"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_7088_allow_renewal_on_hold_override.sql b/installer/data/mysql/atomicupdate/bug_7088_allow_renewal_on_hold_override.sql deleted file mode 100644 index 5b61589b71..0000000000 --- a/installer/data/mysql/atomicupdate/bug_7088_allow_renewal_on_hold_override.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES -('AllowRenewalOnHoldOverride','0','','If on, allow items on hold to be renewed with a specified due date','YesNo'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 87512b4936..b3f7da7e02 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -18422,6 +18422,16 @@ if ( CheckVersion($DBversion) ) { "Upgrade to $DBversion done (Bug 8000 - Add new preferences for SendAllEmailsTo)\n"; } +$DBversion = '18.12.00.068'; +if ( CheckVersion($DBversion) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES + ('AllowRenewalOnHoldOverride','0','','If on, allow items on hold to be renewed with a specified due date','YesNo'); + }); + SetVersion($DBversion); + print "Upgrade to $DBversion done (Bug 7088: Cannot renew items on hold even with override)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5