From f806adf0ea9b39076d41b2b7a74fff9b5f505790 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 11 May 2020 08:57:47 +0100 Subject: [PATCH] Bug 25184: DBRev 19.12.00.087 Signed-off-by: Martin Renvoize --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_25184.perl | 11 ----------- installer/data/mysql/updatedatabase.pl | 10 ++++++++++ 3 files changed, 11 insertions(+), 12 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_25184.perl diff --git a/Koha.pm b/Koha.pm index cafbd9676c..3847fe4a93 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.12.00.086"; +$VERSION = "19.12.00.087"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_25184.perl b/installer/data/mysql/atomicupdate/bug_25184.perl deleted file mode 100644 index af823f47f3..0000000000 --- a/installer/data/mysql/atomicupdate/bug_25184.perl +++ /dev/null @@ -1,11 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - # $dbh->do( "ALTER TABLE biblio ADD COLUMN badtaste int" ); - $dbh->do(q{ - INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES - ('TrapHoldsOnOrder','1',NULL,'If enabled, Koha will trap holds for on order items ( notforloan < 0 )','YesNo't c) - }); - - # Always end with this (adjust the bug info) - NewVersion( $DBversion, 25184, "Items with a negative notforloan status should not be captured for holds"); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 6dfc067908..0e75d2e75a 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -22047,6 +22047,16 @@ if( CheckVersion( $DBversion ) ) { NewVersion( $DBversion, 24163, "Define a default CSV profile for late orders"); } +$DBversion = '19.12.00.087'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES + ('TrapHoldsOnOrder','1',NULL,'If enabled, Koha will trap holds for on order items ( notforloan < 0 )','YesNo't c) + }); + + NewVersion( $DBversion, 25184, "Items with a negative notforloan status should not be captured for holds"); +} + # 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.20.1