From 6979847e8636d87e46551745e84b54afba64ba00 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 15 Mar 2019 19:31:45 +0000 Subject: [PATCH] Bug 18837: DBRev 18.12.00.027 Signed-off-by: Nick Clemens --- Koha.pm | 2 +- .../data/mysql/atomicupdate/illunmediated_tables.sql | 4 ---- installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 3 files changed, 11 insertions(+), 5 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/illunmediated_tables.sql diff --git a/Koha.pm b/Koha.pm index 8a7d963497..113728f9a1 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.026"; +$VERSION = "18.12.00.027"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/illunmediated_tables.sql b/installer/data/mysql/atomicupdate/illunmediated_tables.sql deleted file mode 100644 index 8bb64bd391..0000000000 --- a/installer/data/mysql/atomicupdate/illunmediated_tables.sql +++ /dev/null @@ -1,4 +0,0 @@ --- System preferences - -INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES - ('ILLModuleUnmediated','0','','If enabled, try to immediately progress newly placed ILL requests.','YesNo'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index c46f05f462..cdfe8fe3a6 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -17727,6 +17727,16 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 20750 - Allow timestamped auditing of ILL request events)\n"; } +$DBversion = '18.12.00.027'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ +INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES + ('ILLModuleUnmediated','0','','If enabled, try to immediately progress newly placed ILL requests.','YesNo'); + }); + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 18837: Add ILLModuleUnmediated Syspref)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 2.39.5