From 209531eae9c4612731ea1d1ddec3c92df5708112 Mon Sep 17 00:00:00 2001 From: Brendan A Gallagher Date: Thu, 3 Mar 2016 20:27:04 +0000 Subject: [PATCH] DBRev Bug 12803 - Add ability to skip closed libraries when generating the holds queue --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_12803.sql | 2 -- installer/data/mysql/updatedatabase.pl | 12 +++++++++++- 3 files changed, 12 insertions(+), 4 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_12803.sql diff --git a/Koha.pm b/Koha.pm index da015c37fe..97856b80d7 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 = "3.23.00.035"; +$VERSION = "3.23.00.036"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_12803.sql b/installer/data/mysql/atomicupdate/bug_12803.sql deleted file mode 100644 index b6c7e39087..0000000000 --- a/installer/data/mysql/atomicupdate/bug_12803.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO systempreferences (variable,value,explanation,type) VALUES - ('HoldsQueueSkipClosed', '0', 'If enabled, any libraries that are closed when the holds queue is built will be ignored for the purpose of filling holds.', 'YesNo'); diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 18eea53a34..76e5791277 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -11959,7 +11959,17 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { $dbh->do(q{ INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('HTML5MediaYouTube',0,'Embed|Don\'t embed','YouTube links as videos','YesNo'); }); - print "Upgrade to $DBversion done (Bug 11023: Adds field 'new' in items and deleteditems tabl es)\n"; + print "Upgrade to $DBversion done (Bug 14168 - enhance streaming cataloging to include youtube)\n"; + + SetVersion($DBversion); + } + +$DBversion = "3.23.00.036"; +if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { + $dbh->do(q{ + INSERT INTO systempreferences (variable,value,explanation,type) VALUES ('HoldsQueueSkipClosed', '0', 'If enabled, any libraries that are closed when the holds queue is built will be ignored for the purpose of filling holds.', 'YesNo'); + }); + print "Upgrade to $DBversion done (Bug 12803 - Add ability to skip closed libraries when generating the holds queue)\n"; SetVersion($DBversion); } -- 2.39.5